Home
last modified time | relevance | path

Searched refs:soc_dev (Results 1 – 19 of 19) sorted by relevance

/linux-4.4.14/drivers/base/
Dsoc.c39 struct device *soc_device_to_device(struct soc_device *soc_dev) in soc_device_to_device() argument
41 return &soc_dev->dev; in soc_device_to_device()
49 struct soc_device *soc_dev = container_of(dev, struct soc_device, dev); in soc_attribute_mode() local
52 && (soc_dev->attr->machine != NULL)) in soc_attribute_mode()
55 && (soc_dev->attr->family != NULL)) in soc_attribute_mode()
58 && (soc_dev->attr->revision != NULL)) in soc_attribute_mode()
61 && (soc_dev->attr->soc_id != NULL)) in soc_attribute_mode()
72 struct soc_device *soc_dev = container_of(dev, struct soc_device, dev); in soc_info_get() local
75 return sprintf(buf, "%s\n", soc_dev->attr->machine); in soc_info_get()
77 return sprintf(buf, "%s\n", soc_dev->attr->family); in soc_info_get()
[all …]
/linux-4.4.14/drivers/soc/versatile/
Dsoc-realview.c97 struct soc_device *soc_dev; in realview_soc_probe() local
117 soc_dev = soc_device_register(soc_dev_attr); in realview_soc_probe()
118 if (IS_ERR(soc_dev)) { in realview_soc_probe()
127 device_create_file(soc_device_to_device(soc_dev), &realview_manf_attr); in realview_soc_probe()
128 device_create_file(soc_device_to_device(soc_dev), &realview_board_attr); in realview_soc_probe()
129 device_create_file(soc_device_to_device(soc_dev), &realview_arch_attr); in realview_soc_probe()
130 device_create_file(soc_device_to_device(soc_dev), &realview_build_attr); in realview_soc_probe()
Dsoc-integrator.c106 struct soc_device *soc_dev; in integrator_soc_init() local
134 soc_dev = soc_device_register(soc_dev_attr); in integrator_soc_init()
135 if (IS_ERR(soc_dev)) { in integrator_soc_init()
139 dev = soc_device_to_device(soc_dev); in integrator_soc_init()
/linux-4.4.14/arch/arm/mach-tegra/
Dtegra.c90 struct soc_device *soc_dev; in tegra_dt_init() local
102 soc_dev = soc_device_register(soc_dev_attr); in tegra_dt_init()
103 if (IS_ERR(soc_dev)) { in tegra_dt_init()
111 parent = soc_device_to_device(soc_dev); in tegra_dt_init()
/linux-4.4.14/arch/arm/mach-at91/
Dat91rm9200.c28 struct device *soc_dev = NULL; in at91rm9200_dt_device_init() local
32 soc_dev = soc_device_to_device(soc); in at91rm9200_dt_device_init()
34 of_platform_populate(NULL, of_default_bus_match_table, NULL, soc_dev); in at91rm9200_dt_device_init()
Dsoc.c34 struct soc_device *soc_dev; in at91_soc_init() local
83 soc_dev = soc_device_register(soc_dev_attr); in at91_soc_init()
84 if (IS_ERR(soc_dev)) { in at91_soc_init()
96 return soc_dev; in at91_soc_init()
Dsama5.c47 struct device *soc_dev = NULL; in sama5_dt_device_init() local
51 soc_dev = soc_device_to_device(soc); in sama5_dt_device_init()
53 of_platform_populate(NULL, of_default_bus_match_table, NULL, soc_dev); in sama5_dt_device_init()
Dat91sam9.c58 struct device *soc_dev = NULL; in at91sam9_common_init() local
62 soc_dev = soc_device_to_device(soc); in at91sam9_common_init()
64 of_platform_populate(NULL, of_default_bus_match_table, NULL, soc_dev); in at91sam9_common_init()
/linux-4.4.14/arch/nios2/platform/
Dplatform.c22 struct soc_device *soc_dev; in nios2_soc_device_init() local
35 soc_dev = soc_device_register(soc_dev_attr); in nios2_soc_device_init()
36 if (IS_ERR(soc_dev)) { in nios2_soc_device_init()
/linux-4.4.14/arch/arm/mach-ux500/
Dcpu.c130 struct soc_device *soc_dev; in ux500_soc_device_init() local
139 soc_dev = soc_device_register(soc_dev_attr); in ux500_soc_device_init()
140 if (IS_ERR(soc_dev)) { in ux500_soc_device_init()
145 parent = soc_device_to_device(soc_dev); in ux500_soc_device_init()
/linux-4.4.14/arch/arm/mach-imx/
Dcpu.c79 struct soc_device *soc_dev; in imx_soc_device_init() local
150 soc_dev = soc_device_register(soc_dev_attr); in imx_soc_device_init()
151 if (IS_ERR(soc_dev)) in imx_soc_device_init()
154 return soc_device_to_device(soc_dev); in imx_soc_device_init()
/linux-4.4.14/arch/arm/mach-zynq/
Dcommon.c115 struct soc_device *soc_dev; in zynq_init_machine() local
129 soc_dev = soc_device_register(soc_dev_attr); in zynq_init_machine()
130 if (IS_ERR(soc_dev)) { in zynq_init_machine()
138 parent = soc_device_to_device(soc_dev); in zynq_init_machine()
/linux-4.4.14/arch/arm/mach-mvebu/
Dmvebu-soc-id.c154 struct soc_device *soc_dev; in mvebu_soc_device() local
168 soc_dev = soc_device_register(soc_dev_attr); in mvebu_soc_device()
169 if (IS_ERR(soc_dev)) { in mvebu_soc_device()
/linux-4.4.14/arch/arm/mach-clps711x/
Ddevices.c103 struct soc_device *soc_dev; in clps711x_soc_init() local
131 soc_dev = soc_device_register(soc_dev_attr); in clps711x_soc_init()
132 if (IS_ERR(soc_dev)) { in clps711x_soc_init()
/linux-4.4.14/arch/arm/mach-mxs/
Dmach-mxs.c460 struct soc_device *soc_dev; in mxs_machine_init() local
477 soc_dev = soc_device_register(soc_dev_attr); in mxs_machine_init()
478 if (IS_ERR(soc_dev)) { in mxs_machine_init()
484 parent = soc_device_to_device(soc_dev); in mxs_machine_init()
/linux-4.4.14/include/linux/
Dsys_soc.h29 void soc_device_unregister(struct soc_device *soc_dev);
/linux-4.4.14/arch/arm/mach-omap2/
Did.c753 struct soc_device *soc_dev; in omap_soc_device_init() local
764 soc_dev = soc_device_register(soc_dev_attr); in omap_soc_device_init()
765 if (IS_ERR(soc_dev)) { in omap_soc_device_init()
770 parent = soc_device_to_device(soc_dev); in omap_soc_device_init()
/linux-4.4.14/arch/arm/mach-ep93xx/
Dcore.c906 struct soc_device *soc_dev; in ep93xx_init_soc() local
917 soc_dev = soc_device_register(soc_dev_attr); in ep93xx_init_soc()
918 if (IS_ERR(soc_dev)) { in ep93xx_init_soc()
924 return soc_device_to_device(soc_dev); in ep93xx_init_soc()
/linux-4.4.14/arch/powerpc/kernel/
Dlegacy_serial.c162 struct device_node *soc_dev) in add_legacy_soc_port() argument
183 addrp = of_get_address(soc_dev, 0, NULL, NULL); in add_legacy_soc_port()
187 addr = of_translate_address(soc_dev, addrp); in add_legacy_soc_port()