| /linux/drivers/base/ |
| A D | soc.c | 44 return &soc_dev->dev; in soc_device_to_device() 110 kfree(soc_dev->dev.groups); in soc_release() 111 kfree(soc_dev); in soc_release() 130 struct soc_device *soc_dev; in soc_device_register() local 143 soc_dev = kzalloc(sizeof(*soc_dev), GFP_KERNEL); in soc_device_register() 144 if (!soc_dev) { in soc_device_register() 161 soc_dev->soc_dev_num = ret; in soc_device_register() 168 dev_set_name(&soc_dev->dev, "soc%d", soc_dev->soc_dev_num); in soc_device_register() 172 put_device(&soc_dev->dev); in soc_device_register() 176 return soc_dev; in soc_device_register() [all …]
|
| /linux/drivers/firmware/smccc/ |
| 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/samsung/ |
| A D | exynos-chipid.c | 104 struct soc_device *soc_dev; in exynos_chipid_probe() local 141 soc_dev = soc_device_register(soc_dev_attr); in exynos_chipid_probe() 142 if (IS_ERR(soc_dev)) in exynos_chipid_probe() 143 return PTR_ERR(soc_dev); in exynos_chipid_probe() 149 platform_set_drvdata(pdev, soc_dev); in exynos_chipid_probe() 157 soc_device_unregister(soc_dev); in exynos_chipid_probe() 164 struct soc_device *soc_dev = platform_get_drvdata(pdev); in exynos_chipid_remove() local 166 soc_device_unregister(soc_dev); in exynos_chipid_remove()
|
| /linux/drivers/soc/versatile/ |
| 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()
|
| 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/ |
| 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()
|
| 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/ |
| 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()
|
| 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()
|
| 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()
|
| 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()
|
| 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/ |
| A D | loongson2_guts.c | 16 static struct soc_device *soc_dev; variable 139 soc_dev = soc_device_register(&soc_dev_attr); in loongson2_guts_probe() 140 if (IS_ERR(soc_dev)) in loongson2_guts_probe() 141 return PTR_ERR(soc_dev); in loongson2_guts_probe() 153 soc_device_unregister(soc_dev); in loongson2_guts_remove()
|
| /linux/arch/nios2/platform/ |
| 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/drivers/soc/aspeed/ |
| 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/drivers/soc/mediatek/ |
| A D | mtk-socinfo.c | 33 struct soc_device *soc_dev; member 77 mtk_socinfop->soc_dev = soc_device_register(attrs); in mtk_socinfo_create_socinfo_node() 78 if (IS_ERR(mtk_socinfop->soc_dev)) in mtk_socinfo_create_socinfo_node() 79 return PTR_ERR(mtk_socinfop->soc_dev); in mtk_socinfo_create_socinfo_node() 185 soc_device_unregister(mtk_socinfop->soc_dev); in mtk_socinfo_remove()
|
| /linux/arch/arm/mach-zynq/ |
| 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/ |
| 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/ |
| 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/ti/ |
| 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/ux500/ |
| 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/bcm/brcmstb/ |
| 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/arch/arm/mach-mvebu/ |
| 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/fsl/ |
| 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/drivers/soc/cirrus/ |
| 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()
|