Home
last modified time | relevance | path

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

/Linux-v4.19/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-v4.19/drivers/soc/versatile/
Dsoc-realview.c89 struct soc_device *soc_dev; in realview_soc_probe() local
109 soc_dev = soc_device_register(soc_dev_attr); in realview_soc_probe()
110 if (IS_ERR(soc_dev)) { in realview_soc_probe()
119 device_create_file(soc_device_to_device(soc_dev), &realview_manf_attr); in realview_soc_probe()
120 device_create_file(soc_device_to_device(soc_dev), &realview_board_attr); in realview_soc_probe()
121 device_create_file(soc_device_to_device(soc_dev), &realview_arch_attr); in realview_soc_probe()
122 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-v4.19/drivers/soc/amlogic/
Dmeson-mx-socinfo.c110 struct soc_device *soc_dev; in meson_mx_socinfo_init() local
162 soc_dev = soc_device_register(soc_dev_attr); in meson_mx_socinfo_init()
163 if (IS_ERR(soc_dev)) { in meson_mx_socinfo_init()
167 return PTR_ERR(soc_dev); in meson_mx_socinfo_init()
170 dev_info(soc_device_to_device(soc_dev), "Amlogic %s %s detected\n", in meson_mx_socinfo_init()
Dmeson-gx-socinfo.c113 struct soc_device *soc_dev; in meson_gx_socinfo_init() local
169 soc_dev = soc_device_register(soc_dev_attr); in meson_gx_socinfo_init()
170 if (IS_ERR(soc_dev)) { in meson_gx_socinfo_init()
174 return PTR_ERR(soc_dev); in meson_gx_socinfo_init()
176 dev = soc_device_to_device(soc_dev); in meson_gx_socinfo_init()
/Linux-v4.19/arch/nios2/platform/
Dplatform.c21 struct soc_device *soc_dev; in nios2_soc_device_init() local
34 soc_dev = soc_device_register(soc_dev_attr); in nios2_soc_device_init()
35 if (IS_ERR(soc_dev)) { in nios2_soc_device_init()
/Linux-v4.19/drivers/soc/ux500/
Dux500-soc-id.c195 struct soc_device *soc_dev; in ux500_soc_device_init() local
211 soc_dev = soc_device_register(soc_dev_attr); in ux500_soc_device_init()
212 if (IS_ERR(soc_dev)) { in ux500_soc_device_init()
214 return PTR_ERR(soc_dev); in ux500_soc_device_init()
217 parent = soc_device_to_device(soc_dev); in ux500_soc_device_init()
/Linux-v4.19/arch/arm/mach-imx/
Dcpu.c79 struct soc_device *soc_dev; in imx_soc_device_init() local
156 soc_dev = soc_device_register(soc_dev_attr); in imx_soc_device_init()
157 if (IS_ERR(soc_dev)) in imx_soc_device_init()
160 return soc_device_to_device(soc_dev); in imx_soc_device_init()
/Linux-v4.19/arch/arm/mach-zynq/
Dcommon.c114 struct soc_device *soc_dev; in zynq_init_machine() local
128 soc_dev = soc_device_register(soc_dev_attr); in zynq_init_machine()
129 if (IS_ERR(soc_dev)) { in zynq_init_machine()
137 parent = soc_device_to_device(soc_dev); in zynq_init_machine()
/Linux-v4.19/drivers/soc/fsl/
Dguts.c34 static struct soc_device *soc_dev; variable
181 soc_dev = soc_device_register(&soc_dev_attr); in fsl_guts_probe()
182 if (IS_ERR(soc_dev)) in fsl_guts_probe()
183 return PTR_ERR(soc_dev); in fsl_guts_probe()
194 soc_device_unregister(soc_dev); in fsl_guts_remove()
/Linux-v4.19/drivers/soc/bcm/brcmstb/
Dcommon.c101 struct soc_device *soc_dev; in brcmstb_soc_device_init() local
127 soc_dev = soc_device_register(soc_dev_attr); in brcmstb_soc_device_init()
128 if (IS_ERR(soc_dev)) { in brcmstb_soc_device_init()
/Linux-v4.19/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-v4.19/drivers/soc/atmel/
Dsoc.c202 struct soc_device *soc_dev; in at91_soc_init() local
241 soc_dev = soc_device_register(soc_dev_attr); in at91_soc_init()
242 if (IS_ERR(soc_dev)) { in at91_soc_init()
254 return soc_dev; in at91_soc_init()
/Linux-v4.19/drivers/soc/renesas/
Drenesas-soc.c263 struct soc_device *soc_dev; in renesas_soc_init() local
313 soc_dev = soc_device_register(soc_dev_attr); in renesas_soc_init()
314 if (IS_ERR(soc_dev)) { in renesas_soc_init()
319 return PTR_ERR(soc_dev); in renesas_soc_init()
/Linux-v4.19/arch/arm/mach-mxs/
Dmach-mxs.c386 struct soc_device *soc_dev; in mxs_machine_init() local
403 soc_dev = soc_device_register(soc_dev_attr); in mxs_machine_init()
404 if (IS_ERR(soc_dev)) { in mxs_machine_init()
410 parent = soc_device_to_device(soc_dev); in mxs_machine_init()
/Linux-v4.19/arch/arm/mach-omap2/
Did.c794 struct soc_device *soc_dev; in omap_soc_device_init() local
805 soc_dev = soc_device_register(soc_dev_attr); in omap_soc_device_init()
806 if (IS_ERR(soc_dev)) { in omap_soc_device_init()
811 parent = soc_device_to_device(soc_dev); in omap_soc_device_init()
/Linux-v4.19/include/linux/
Dsys_soc.h30 void soc_device_unregister(struct soc_device *soc_dev);
/Linux-v4.19/arch/arm/mach-ep93xx/
Dcore.c936 struct soc_device *soc_dev; in ep93xx_init_soc() local
947 soc_dev = soc_device_register(soc_dev_attr); in ep93xx_init_soc()
948 if (IS_ERR(soc_dev)) { in ep93xx_init_soc()
954 return soc_device_to_device(soc_dev); in ep93xx_init_soc()
/Linux-v4.19/arch/powerpc/kernel/
Dlegacy_serial.c163 struct device_node *soc_dev) in add_legacy_soc_port() argument
184 addrp = of_get_address(soc_dev, 0, NULL, NULL); in add_legacy_soc_port()
188 addr = of_translate_address(soc_dev, addrp); in add_legacy_soc_port()