/linux/drivers/base/ |
H A D | soc.c | 42 struct device *soc_device_to_device(struct soc_device *soc_dev) in soc_device_to_device() argument 44 return &soc_dev->dev; in soc_device_to_device() 52 struct soc_device *soc_dev = container_of(dev, struct soc_device, dev); in soc_attribute_mode() local 54 if ((attr == &dev_attr_machine.attr) && soc_dev->attr->machine) in soc_attribute_mode() 56 if ((attr == &dev_attr_family.attr) && soc_dev->attr->family) in soc_attribute_mode() 58 if ((attr == &dev_attr_revision.attr) && soc_dev->attr->revision) in soc_attribute_mode() 60 if ((attr == &dev_attr_serial_number.attr) && soc_dev->attr->serial_number) in soc_attribute_mode() 62 if ((attr == &dev_attr_soc_id.attr) && soc_dev->attr->soc_id) in soc_attribute_mode() 72 struct soc_device *soc_dev = container_of(dev, struct soc_device, dev); in soc_info_show() local 76 output = soc_dev->attr->machine; in soc_info_show() [all …]
|
/linux/drivers/firmware/smccc/ |
H A D | soc_id.c | 32 static struct soc_device *soc_dev; variable 76 soc_dev = soc_device_register(soc_dev_attr); in smccc_soc_init() 77 if (IS_ERR(soc_dev)) { in smccc_soc_init() 79 return PTR_ERR(soc_dev); in smccc_soc_init() 91 if (soc_dev) in smccc_soc_exit() 92 soc_device_unregister(soc_dev); in smccc_soc_exit()
|
/linux/drivers/soc/versatile/ |
H A D | soc-realview.c | 87 struct soc_device *soc_dev = data; in realview_soc_socdev_release() local 89 soc_device_unregister(soc_dev); in realview_soc_socdev_release() 95 struct soc_device *soc_dev; in realview_soc_probe() local 116 soc_dev = soc_device_register(soc_dev_attr); in realview_soc_probe() 117 if (IS_ERR(soc_dev)) in realview_soc_probe() 121 soc_dev); in realview_soc_probe()
|
H A D | soc-integrator.c | 104 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/drivers/soc/amlogic/ |
H A D | meson-mx-socinfo.c | 110 struct soc_device *soc_dev; in meson_mx_socinfo_init() local 163 soc_dev = soc_device_register(soc_dev_attr); in meson_mx_socinfo_init() 164 if (IS_ERR(soc_dev)) { in meson_mx_socinfo_init() 168 return PTR_ERR(soc_dev); in meson_mx_socinfo_init() 171 dev_info(soc_device_to_device(soc_dev), "Amlogic %s %s detected\n", in meson_mx_socinfo_init()
|
H A D | meson-gx-socinfo.c | 143 struct soc_device *soc_dev; in meson_gx_socinfo_init() local 198 soc_dev = soc_device_register(soc_dev_attr); in meson_gx_socinfo_init() 199 if (IS_ERR(soc_dev)) { in meson_gx_socinfo_init() 203 return PTR_ERR(soc_dev); in meson_gx_socinfo_init() 205 dev = soc_device_to_device(soc_dev); in meson_gx_socinfo_init()
|
/linux/arch/mips/ralink/ |
H A D | rt3883.c | 68 struct soc_device *soc_dev; in rt3883_soc_dev_init() local 80 soc_dev = soc_device_register(soc_dev_attr); in rt3883_soc_dev_init() 81 if (IS_ERR(soc_dev)) { in rt3883_soc_dev_init() 83 return PTR_ERR(soc_dev); in rt3883_soc_dev_init()
|
H A D | rt288x.c | 68 struct soc_device *soc_dev; in rt2880_soc_dev_init() local 80 soc_dev = soc_device_register(soc_dev_attr); in rt2880_soc_dev_init() 81 if (IS_ERR(soc_dev)) { in rt2880_soc_dev_init() 83 return PTR_ERR(soc_dev); in rt2880_soc_dev_init()
|
H A D | rt305x.c | 171 struct soc_device *soc_dev; in rt305x_soc_dev_init() local 183 soc_dev = soc_device_register(soc_dev_attr); in rt305x_soc_dev_init() 184 if (IS_ERR(soc_dev)) { in rt305x_soc_dev_init() 186 return PTR_ERR(soc_dev); in rt305x_soc_dev_init()
|
H A D | mt7621.c | 144 struct soc_device *soc_dev; in mt7621_soc_dev_init() local 157 soc_dev = soc_device_register(soc_dev_attr); in mt7621_soc_dev_init() 158 if (IS_ERR(soc_dev)) { in mt7621_soc_dev_init() 160 return PTR_ERR(soc_dev); in mt7621_soc_dev_init()
|
H A D | mt7620.c | 198 struct soc_device *soc_dev; in mt7620_soc_dev_init() local 210 soc_dev = soc_device_register(soc_dev_attr); in mt7620_soc_dev_init() 211 if (IS_ERR(soc_dev)) { in mt7620_soc_dev_init() 213 return PTR_ERR(soc_dev); in mt7620_soc_dev_init()
|
/linux/drivers/soc/loongson/ |
H A D | loongson2_guts.c | 16 static struct soc_device *soc_dev; variable 142 soc_dev = soc_device_register(&soc_dev_attr); in loongson2_guts_probe() 143 if (IS_ERR(soc_dev)) in loongson2_guts_probe() 144 return PTR_ERR(soc_dev); in loongson2_guts_probe() 156 soc_device_unregister(soc_dev); in loongson2_guts_remove()
|
/linux/drivers/soc/aspeed/ |
H A 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() 144 return PTR_ERR(soc_dev); in aspeed_socinfo_init()
|
/linux/arch/nios2/platform/ |
H A 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/arch/arm/mach-zynq/ |
H A D | common.c | 108 struct soc_device *soc_dev; in zynq_init_machine() local 122 soc_dev = soc_device_register(soc_dev_attr); in zynq_init_machine() 123 if (IS_ERR(soc_dev)) { in zynq_init_machine() 131 parent = soc_device_to_device(soc_dev); in zynq_init_machine()
|
/linux/drivers/firmware/imx/ |
H A D | imx-scu-soc.c | 100 struct soc_device *soc_dev; in imx_scu_soc_init() local 147 soc_dev = soc_device_register(soc_dev_attr); in imx_scu_soc_init() 148 if (IS_ERR(soc_dev)) in imx_scu_soc_init() 149 return PTR_ERR(soc_dev); in imx_scu_soc_init()
|
/linux/drivers/soc/imx/ |
H A D | soc-imx.c | 30 struct soc_device *soc_dev; in imx_soc_device_init() local 195 soc_dev = soc_device_register(soc_dev_attr); in imx_soc_device_init() 196 if (IS_ERR(soc_dev)) { in imx_soc_device_init() 197 ret = PTR_ERR(soc_dev); in imx_soc_device_init()
|
/linux/drivers/soc/ux500/ |
H A D | ux500-soc-id.c | 198 struct soc_device *soc_dev; in ux500_soc_device_init() local 217 soc_dev = soc_device_register(soc_dev_attr); in ux500_soc_device_init() 218 if (IS_ERR(soc_dev)) { in ux500_soc_device_init() 220 return PTR_ERR(soc_dev); in ux500_soc_device_init()
|
/linux/drivers/soc/ti/ |
H A D | k3-socinfo.c | 113 struct soc_device *soc_dev; in k3_chipinfo_probe() local 163 soc_dev = soc_device_register(soc_dev_attr); in k3_chipinfo_probe() 164 if (IS_ERR(soc_dev)) { in k3_chipinfo_probe() 165 ret = PTR_ERR(soc_dev); in k3_chipinfo_probe()
|
/linux/drivers/soc/bcm/brcmstb/ |
H A 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/drivers/soc/fsl/ |
H A D | guts.c | 184 static struct soc_device *soc_dev; in fsl_guts_init() local 254 soc_dev = soc_device_register(soc_dev_attr); in fsl_guts_init() 255 if (IS_ERR(soc_dev)) { in fsl_guts_init() 256 ret = PTR_ERR(soc_dev); in fsl_guts_init()
|
/linux/arch/arm/mach-mvebu/ |
H A D | mvebu-soc-id.c | 151 struct soc_device *soc_dev; in mvebu_soc_device() local 165 soc_dev = soc_device_register(soc_dev_attr); in mvebu_soc_device() 166 if (IS_ERR(soc_dev)) { in mvebu_soc_device()
|
/linux/drivers/soc/cirrus/ |
H A D | soc-ep93xx.c | 175 struct soc_device *soc_dev; in ep93xx_syscon_probe() local 202 soc_dev = soc_device_register(attrs); in ep93xx_syscon_probe() 203 if (IS_ERR(soc_dev)) in ep93xx_syscon_probe() 204 return PTR_ERR(soc_dev); in ep93xx_syscon_probe()
|
/linux/arch/arm/mach-mxs/ |
H A D | mach-mxs.c | 384 struct soc_device *soc_dev; in mxs_machine_init() local 417 soc_dev = soc_device_register(soc_dev_attr); in mxs_machine_init() 418 if (IS_ERR(soc_dev)) { in mxs_machine_init() 425 parent = soc_device_to_device(soc_dev); in mxs_machine_init()
|
/linux/drivers/soc/renesas/ |
H A D | renesas-soc.c | 484 struct soc_device *soc_dev; in renesas_soc_init() local 557 soc_dev = soc_device_register(soc_dev_attr); in renesas_soc_init() 558 if (IS_ERR(soc_dev)) { in renesas_soc_init() 559 ret = PTR_ERR(soc_dev); in renesas_soc_init()
|