Home
last modified time | relevance | path

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

12

/linux/drivers/base/
H A Dsoc.c42 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/soc/vt8500/
H A Dwmt-socinfo.c51 struct soc_device *soc_dev; in wmt_socinfo_probe() local
87 soc_dev = soc_device_register(attrs); in wmt_socinfo_probe()
88 if (IS_ERR(soc_dev)) in wmt_socinfo_probe()
89 return PTR_ERR(soc_dev); in wmt_socinfo_probe()
97 platform_set_drvdata(pdev, soc_dev); in wmt_socinfo_probe()
103 struct soc_device *soc_dev = platform_get_drvdata(pdev); in wmt_socinfo_remove() local
105 soc_device_unregister(soc_dev); in wmt_socinfo_remove()
/linux/drivers/soc/samsung/
H A Dexynos-chipid.c113 struct soc_device *soc_dev; in exynos_chipid_probe() local
151 soc_dev = soc_device_register(soc_dev_attr); in exynos_chipid_probe()
152 if (IS_ERR(soc_dev)) in exynos_chipid_probe()
153 return PTR_ERR(soc_dev); in exynos_chipid_probe()
159 platform_set_drvdata(pdev, soc_dev); in exynos_chipid_probe()
167 soc_device_unregister(soc_dev); in exynos_chipid_probe()
174 struct soc_device *soc_dev = platform_get_drvdata(pdev); in exynos_chipid_remove() local
176 soc_device_unregister(soc_dev); in exynos_chipid_remove()
/linux/drivers/soc/versatile/
H A Dsoc-realview.c87 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 Dsoc-integrator.c104 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/firmware/smccc/
H A Dsoc_id.c32 static struct soc_device *soc_dev; variable
156 soc_dev = soc_device_register(soc_dev_attr); in smccc_soc_init()
157 if (IS_ERR(soc_dev)) { in smccc_soc_init()
159 return PTR_ERR(soc_dev); in smccc_soc_init()
171 if (soc_dev) in smccc_soc_exit()
172 soc_device_unregister(soc_dev); in smccc_soc_exit()
/linux/drivers/soc/amlogic/
H A Dmeson-mx-socinfo.c110 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 Dmeson-gx-socinfo.c149 struct soc_device *soc_dev; in meson_gx_socinfo_init() local
204 soc_dev = soc_device_register(soc_dev_attr); in meson_gx_socinfo_init()
205 if (IS_ERR(soc_dev)) { in meson_gx_socinfo_init()
209 return PTR_ERR(soc_dev); in meson_gx_socinfo_init()
211 dev = soc_device_to_device(soc_dev); in meson_gx_socinfo_init()
/linux/arch/mips/ralink/
H A Drt3883.c68 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 Drt288x.c68 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 Drt305x.c171 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 Dmt7621.c144 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 Dmt7620.c198 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 Dloongson2_guts.c16 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/arch/nios2/platform/
H A Dplatform.c27 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 Dcommon.c108 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/soc/mediatek/
H A Dmtk-socinfo.c33 struct soc_device *soc_dev; member
90 mtk_socinfop->soc_dev = soc_device_register(attrs); in mtk_socinfo_create_socinfo_node()
91 if (IS_ERR(mtk_socinfop->soc_dev)) in mtk_socinfo_create_socinfo_node()
92 return PTR_ERR(mtk_socinfop->soc_dev); in mtk_socinfo_create_socinfo_node()
198 soc_device_unregister(mtk_socinfop->soc_dev); in mtk_socinfo_remove()
/linux/drivers/firmware/imx/
H A Dimx-scu-soc.c100 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 Dsoc-imx.c30 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 Dux500-soc-id.c198 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/
H A Dcommon.c75 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/renesas/
H A Drz-sysc.c37 struct soc_device *soc_dev; in rz_sysc_soc_init() local
80 soc_dev = soc_device_register(soc_dev_attr); in rz_sysc_soc_init()
81 if (IS_ERR(soc_dev)) in rz_sysc_soc_init()
82 return PTR_ERR(soc_dev); in rz_sysc_soc_init()
/linux/drivers/soc/fsl/
H A Dguts.c184 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 Dmvebu-soc-id.c151 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 Dsoc-ep93xx.c175 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()

12