/Linux-v4.19/drivers/base/ |
D | soc.c | 39 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/ |
D | soc-realview.c | 89 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()
|
D | soc-integrator.c | 106 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/ |
D | meson-mx-socinfo.c | 110 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()
|
D | meson-gx-socinfo.c | 113 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/ |
D | platform.c | 21 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/ |
D | ux500-soc-id.c | 195 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/ |
D | cpu.c | 79 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/ |
D | common.c | 114 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/ |
D | guts.c | 34 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/ |
D | common.c | 101 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/ |
D | mvebu-soc-id.c | 154 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/ |
D | soc.c | 202 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/ |
D | renesas-soc.c | 263 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/ |
D | mach-mxs.c | 386 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/ |
D | id.c | 794 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/ |
D | sys_soc.h | 30 void soc_device_unregister(struct soc_device *soc_dev);
|
/Linux-v4.19/arch/arm/mach-ep93xx/ |
D | core.c | 936 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/ |
D | legacy_serial.c | 163 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()
|