Home
last modified time | relevance | path

Searched refs:soc_dev (Results 1 - 25 of 58) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/base/
H A Dsoc.c40 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 in soc_info_show()
105 struct soc_device *soc_dev = container_of(dev, struct soc_device, dev); soc_release() local
116 struct soc_device *soc_dev; soc_device_register() local
172 soc_device_unregister(struct soc_device *soc_dev) soc_device_unregister() argument
218 struct soc_device *soc_dev = container_of(dev, struct soc_device, dev); soc_device_match_one() local
[all...]
/kernel/linux/linux-6.6/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 in soc_info_show()
107 struct soc_device *soc_dev = container_of(dev, struct soc_device, dev); soc_release() local
130 struct soc_device *soc_dev; soc_device_register() local
188 soc_device_unregister(struct soc_device *soc_dev) soc_device_unregister() argument
235 struct soc_device *soc_dev = container_of(dev, struct soc_device, dev); soc_device_match_one() local
[all...]
/kernel/linux/linux-5.10/drivers/firmware/smccc/
H A Dsoc_id.c32 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()
/kernel/linux/linux-6.6/drivers/firmware/smccc/
H A Dsoc_id.c32 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()
/kernel/linux/linux-6.6/drivers/soc/samsung/
H A Dexynos-chipid.c103 struct soc_device *soc_dev; in exynos_chipid_probe() local
140 soc_dev = soc_device_register(soc_dev_attr); in exynos_chipid_probe()
141 if (IS_ERR(soc_dev)) in exynos_chipid_probe()
142 return PTR_ERR(soc_dev); in exynos_chipid_probe()
148 platform_set_drvdata(pdev, soc_dev); in exynos_chipid_probe()
156 soc_device_unregister(soc_dev); in exynos_chipid_probe()
163 struct soc_device *soc_dev = platform_get_drvdata(pdev); in exynos_chipid_remove() local
165 soc_device_unregister(soc_dev); in exynos_chipid_remove()
/kernel/linux/linux-5.10/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.c130 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()
/kernel/linux/linux-6.6/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.c131 struct soc_device *soc_dev; in meson_gx_socinfo_init() local
186 soc_dev = soc_device_register(soc_dev_attr); in meson_gx_socinfo_init()
187 if (IS_ERR(soc_dev)) { in meson_gx_socinfo_init()
191 return PTR_ERR(soc_dev); in meson_gx_socinfo_init()
193 dev = soc_device_to_device(soc_dev); in meson_gx_socinfo_init()
/kernel/linux/linux-6.6/drivers/soc/loongson/
H A Dloongson2_guts.c16 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()
/kernel/linux/linux-6.6/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 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 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()
/kernel/linux/linux-5.10/drivers/soc/samsung/
H A Dexynos-chipid.c51 struct soc_device *soc_dev; in exynos_chipid_early_init() local
95 soc_dev = soc_device_register(soc_dev_attr); in exynos_chipid_early_init()
96 if (IS_ERR(soc_dev)) { in exynos_chipid_early_init()
97 ret = PTR_ERR(soc_dev); in exynos_chipid_early_init()
101 /* it is too early to use dev_info() here (soc_dev is NULL) */ in exynos_chipid_early_init()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/drivers/soc/fsl/
H A Dguts.c30 static struct soc_device *soc_dev; variable
191 soc_dev = soc_device_register(&soc_dev_attr); in fsl_guts_probe()
192 if (IS_ERR(soc_dev)) in fsl_guts_probe()
193 return PTR_ERR(soc_dev); in fsl_guts_probe()
204 soc_device_unregister(soc_dev); in fsl_guts_remove()
/kernel/linux/linux-5.10/drivers/firmware/imx/
H A Dimx-scu-soc.c84 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()
/kernel/linux/linux-5.10/drivers/soc/versatile/
H A Dsoc-integrator.c104 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()
/kernel/linux/linux-5.10/drivers/soc/imx/
H A Dsoc-imx.c28 struct soc_device *soc_dev; in imx_soc_device_init() local
183 soc_dev = soc_device_register(soc_dev_attr); in imx_soc_device_init()
184 if (IS_ERR(soc_dev)) { in imx_soc_device_init()
185 ret = PTR_ERR(soc_dev); in imx_soc_device_init()
/kernel/linux/linux-5.10/drivers/soc/ti/
H A Dk3-socinfo.c65 struct soc_device *soc_dev; in k3_chipinfo_probe() local
117 soc_dev = soc_device_register(soc_dev_attr); in k3_chipinfo_probe()
118 if (IS_ERR(soc_dev)) { in k3_chipinfo_probe()
119 ret = PTR_ERR(soc_dev); in k3_chipinfo_probe()
/kernel/linux/linux-6.6/drivers/soc/versatile/
H A Dsoc-integrator.c104 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()
/kernel/linux/linux-6.6/drivers/soc/aspeed/
H A Daspeed-socinfo.c80 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()
/kernel/linux/linux-6.6/drivers/soc/ti/
H A Dk3-socinfo.c71 struct soc_device *soc_dev; in k3_chipinfo_probe() local
123 soc_dev = soc_device_register(soc_dev_attr); in k3_chipinfo_probe()
124 if (IS_ERR(soc_dev)) { in k3_chipinfo_probe()
125 ret = PTR_ERR(soc_dev); in k3_chipinfo_probe()

Completed in 7 milliseconds

123