| /Linux-v5.15/drivers/base/ |
| D | soc.c | 40 struct device *soc_device_to_device(struct soc_device *soc_dev) in soc_device_to_device() argument 42 return &soc_dev->dev; in soc_device_to_device() 50 struct soc_device *soc_dev = container_of(dev, struct soc_device, dev); in soc_attribute_mode() local 52 if ((attr == &dev_attr_machine.attr) && soc_dev->attr->machine) in soc_attribute_mode() 54 if ((attr == &dev_attr_family.attr) && soc_dev->attr->family) in soc_attribute_mode() 56 if ((attr == &dev_attr_revision.attr) && soc_dev->attr->revision) in soc_attribute_mode() 58 if ((attr == &dev_attr_serial_number.attr) && soc_dev->attr->serial_number) in soc_attribute_mode() 60 if ((attr == &dev_attr_soc_id.attr) && soc_dev->attr->soc_id) in soc_attribute_mode() 70 struct soc_device *soc_dev = container_of(dev, struct soc_device, dev); in soc_info_show() local 74 output = soc_dev->attr->machine; in soc_info_show() [all …]
|
| /Linux-v5.15/drivers/soc/samsung/ |
| D | exynos-chipid.c | 60 struct soc_device *soc_dev; in exynos_chipid_probe() local 97 soc_dev = soc_device_register(soc_dev_attr); in exynos_chipid_probe() 98 if (IS_ERR(soc_dev)) in exynos_chipid_probe() 99 return PTR_ERR(soc_dev); in exynos_chipid_probe() 105 platform_set_drvdata(pdev, soc_dev); in exynos_chipid_probe() 107 dev_info(soc_device_to_device(soc_dev), in exynos_chipid_probe() 114 soc_device_unregister(soc_dev); in exynos_chipid_probe() 121 struct soc_device *soc_dev = platform_get_drvdata(pdev); in exynos_chipid_remove() local 123 soc_device_unregister(soc_dev); in exynos_chipid_remove()
|
| /Linux-v5.15/drivers/firmware/smccc/ |
| D | soc_id.c | 32 static struct soc_device *soc_dev; variable 95 soc_dev = soc_device_register(soc_dev_attr); in smccc_soc_init() 96 if (IS_ERR(soc_dev)) { in smccc_soc_init() 98 return PTR_ERR(soc_dev); in smccc_soc_init() 110 if (soc_dev) in smccc_soc_exit() 111 soc_device_unregister(soc_dev); in smccc_soc_exit()
|
| /Linux-v5.15/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 | 130 struct soc_device *soc_dev; in meson_gx_socinfo_init() local 190 soc_dev = soc_device_register(soc_dev_attr); in meson_gx_socinfo_init() 191 if (IS_ERR(soc_dev)) { in meson_gx_socinfo_init() 195 return PTR_ERR(soc_dev); in meson_gx_socinfo_init() 197 dev = soc_device_to_device(soc_dev); in meson_gx_socinfo_init()
|
| /Linux-v5.15/arch/nios2/platform/ |
| D | platform.c | 27 struct soc_device *soc_dev; in nios2_soc_device_init() local 40 soc_dev = soc_device_register(soc_dev_attr); in nios2_soc_device_init() 41 if (IS_ERR(soc_dev)) { in nios2_soc_device_init()
|
| /Linux-v5.15/drivers/soc/aspeed/ |
| D | aspeed-socinfo.c | 80 struct soc_device *soc_dev; in aspeed_socinfo_init() local 138 soc_dev = soc_device_register(attrs); in aspeed_socinfo_init() 139 if (IS_ERR(soc_dev)) { in aspeed_socinfo_init() 143 return PTR_ERR(soc_dev); in aspeed_socinfo_init()
|
| /Linux-v5.15/drivers/soc/versatile/ |
| D | soc-integrator.c | 104 struct soc_device *soc_dev; in integrator_soc_init() local 133 soc_dev = soc_device_register(soc_dev_attr); in integrator_soc_init() 134 if (IS_ERR(soc_dev)) { in integrator_soc_init() 138 dev = soc_device_to_device(soc_dev); in integrator_soc_init()
|
| D | soc-realview.c | 87 struct soc_device *soc_dev; in realview_soc_probe() local 108 soc_dev = soc_device_register(soc_dev_attr); in realview_soc_probe() 109 if (IS_ERR(soc_dev)) { in realview_soc_probe()
|
| /Linux-v5.15/drivers/soc/fsl/ |
| D | guts.c | 30 static struct soc_device *soc_dev; variable 186 soc_dev = soc_device_register(&soc_dev_attr); in fsl_guts_probe() 187 if (IS_ERR(soc_dev)) in fsl_guts_probe() 188 return PTR_ERR(soc_dev); in fsl_guts_probe() 199 soc_device_unregister(soc_dev); in fsl_guts_remove()
|
| /Linux-v5.15/arch/arm/mach-zynq/ |
| D | common.c | 107 struct soc_device *soc_dev; in zynq_init_machine() local 121 soc_dev = soc_device_register(soc_dev_attr); in zynq_init_machine() 122 if (IS_ERR(soc_dev)) { in zynq_init_machine() 130 parent = soc_device_to_device(soc_dev); in zynq_init_machine()
|
| /Linux-v5.15/drivers/soc/ti/ |
| D | k3-socinfo.c | 66 struct soc_device *soc_dev; in k3_chipinfo_probe() local 118 soc_dev = soc_device_register(soc_dev_attr); in k3_chipinfo_probe() 119 if (IS_ERR(soc_dev)) { in k3_chipinfo_probe() 120 ret = PTR_ERR(soc_dev); in k3_chipinfo_probe()
|
| /Linux-v5.15/drivers/firmware/imx/ |
| D | imx-scu-soc.c | 84 struct soc_device *soc_dev; in imx_scu_soc_init() local 133 soc_dev = soc_device_register(soc_dev_attr); in imx_scu_soc_init() 134 if (IS_ERR(soc_dev)) in imx_scu_soc_init() 135 return PTR_ERR(soc_dev); in imx_scu_soc_init()
|
| /Linux-v5.15/drivers/soc/imx/ |
| D | soc-imx.c | 30 struct soc_device *soc_dev; in imx_soc_device_init() local 194 soc_dev = soc_device_register(soc_dev_attr); in imx_soc_device_init() 195 if (IS_ERR(soc_dev)) { in imx_soc_device_init() 196 ret = PTR_ERR(soc_dev); in imx_soc_device_init()
|
| D | soc-imx8m.c | 169 struct soc_device *soc_dev; in imx8_soc_init() local 210 soc_dev = soc_device_register(soc_dev_attr); in imx8_soc_init() 211 if (IS_ERR(soc_dev)) { in imx8_soc_init() 212 ret = PTR_ERR(soc_dev); in imx8_soc_init()
|
| /Linux-v5.15/drivers/soc/ux500/ |
| D | ux500-soc-id.c | 200 struct soc_device *soc_dev; in ux500_soc_device_init() local 219 soc_dev = soc_device_register(soc_dev_attr); in ux500_soc_device_init() 220 if (IS_ERR(soc_dev)) { in ux500_soc_device_init() 222 return PTR_ERR(soc_dev); in ux500_soc_device_init()
|
| /Linux-v5.15/drivers/soc/bcm/brcmstb/ |
| D | common.c | 75 struct soc_device *soc_dev; in brcmstb_soc_device_init() local 101 soc_dev = soc_device_register(soc_dev_attr); in brcmstb_soc_device_init() 102 if (IS_ERR(soc_dev)) { in brcmstb_soc_device_init()
|
| /Linux-v5.15/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-v5.15/arch/mips/ralink/ |
| D | mt7621.c | 61 struct soc_device *soc_dev; in soc_dev_init() local 79 soc_dev = soc_device_register(soc_dev_attr); in soc_dev_init() 80 if (IS_ERR(soc_dev)) { in soc_dev_init()
|
| /Linux-v5.15/arch/arm/mach-mxs/ |
| D | mach-mxs.c | 384 struct soc_device *soc_dev; in mxs_machine_init() local 415 soc_dev = soc_device_register(soc_dev_attr); in mxs_machine_init() 416 if (IS_ERR(soc_dev)) { in mxs_machine_init() 423 parent = soc_device_to_device(soc_dev); in mxs_machine_init()
|
| /Linux-v5.15/drivers/soc/atmel/ |
| D | soc.c | 301 struct soc_device *soc_dev; in at91_soc_init() local 340 soc_dev = soc_device_register(soc_dev_attr); in at91_soc_init() 341 if (IS_ERR(soc_dev)) { in at91_soc_init() 353 return soc_dev; in at91_soc_init()
|
| /Linux-v5.15/drivers/soc/renesas/ |
| D | renesas-soc.c | 331 struct soc_device *soc_dev; in renesas_soc_init() local 430 soc_dev = soc_device_register(soc_dev_attr); in renesas_soc_init() 431 if (IS_ERR(soc_dev)) { in renesas_soc_init() 436 return PTR_ERR(soc_dev); in renesas_soc_init()
|
| /Linux-v5.15/drivers/soc/qcom/ |
| D | socinfo.c | 185 struct soc_device *soc_dev; member 622 qs->soc_dev = soc_device_register(&qs->attr); in qcom_socinfo_probe() 623 if (IS_ERR(qs->soc_dev)) in qcom_socinfo_probe() 624 return PTR_ERR(qs->soc_dev); in qcom_socinfo_probe() 640 soc_device_unregister(qs->soc_dev); in qcom_socinfo_remove()
|
| /Linux-v5.15/include/linux/ |
| D | sys_soc.h | 32 void soc_device_unregister(struct soc_device *soc_dev);
|
| /Linux-v5.15/arch/arm/mach-omap2/ |
| D | id.c | 787 struct soc_device *soc_dev; in omap_soc_device_init() local 799 soc_dev = soc_device_register(soc_dev_attr); in omap_soc_device_init() 800 if (IS_ERR(soc_dev)) { in omap_soc_device_init()
|