Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/base/
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
53 && (soc_dev->attr->machine != NULL)) in soc_attribute_mode()
56 && (soc_dev->attr->family != NULL)) in soc_attribute_mode()
59 && (soc_dev->attr->revision != NULL)) in soc_attribute_mode()
62 && (soc_dev->attr->serial_number != NULL)) in soc_attribute_mode()
65 && (soc_dev->attr->soc_id != NULL)) in soc_attribute_mode()
76 struct soc_device *soc_dev = container_of(dev, struct soc_device, dev); in soc_info_get() local
79 return sprintf(buf, "%s\n", soc_dev->attr->machine); in soc_info_get()
[all …]
/Linux-v5.4/drivers/soc/versatile/
Dsoc-realview.c85 struct soc_device *soc_dev; in realview_soc_probe() local
105 soc_dev = soc_device_register(soc_dev_attr); in realview_soc_probe()
106 if (IS_ERR(soc_dev)) { in realview_soc_probe()
115 device_create_file(soc_device_to_device(soc_dev), &realview_manf_attr); in realview_soc_probe()
116 device_create_file(soc_device_to_device(soc_dev), &realview_board_attr); in realview_soc_probe()
117 device_create_file(soc_device_to_device(soc_dev), &realview_arch_attr); in realview_soc_probe()
118 device_create_file(soc_device_to_device(soc_dev), &realview_build_attr); in realview_soc_probe()
Dsoc-integrator.c102 struct soc_device *soc_dev; in integrator_soc_init() local
130 soc_dev = soc_device_register(soc_dev_attr); in integrator_soc_init()
131 if (IS_ERR(soc_dev)) { in integrator_soc_init()
135 dev = soc_device_to_device(soc_dev); in integrator_soc_init()
/Linux-v5.4/drivers/soc/amlogic/
Dmeson-mx-socinfo.c110 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()
Dmeson-gx-socinfo.c125 struct soc_device *soc_dev; in meson_gx_socinfo_init() local
185 soc_dev = soc_device_register(soc_dev_attr); in meson_gx_socinfo_init()
186 if (IS_ERR(soc_dev)) { in meson_gx_socinfo_init()
190 return PTR_ERR(soc_dev); in meson_gx_socinfo_init()
192 dev = soc_device_to_device(soc_dev); in meson_gx_socinfo_init()
/Linux-v5.4/drivers/soc/samsung/
Dexynos-chipid.c51 struct soc_device *soc_dev; in exynos_chipid_early_init() local
87 soc_dev = soc_device_register(soc_dev_attr); in exynos_chipid_early_init()
88 if (IS_ERR(soc_dev)) { in exynos_chipid_early_init()
89 ret = PTR_ERR(soc_dev); in exynos_chipid_early_init()
/Linux-v5.4/arch/nios2/platform/
Dplatform.c21 struct soc_device *soc_dev; in nios2_soc_device_init() local
34 soc_dev = soc_device_register(soc_dev_attr); in nios2_soc_device_init()
35 if (IS_ERR(soc_dev)) { in nios2_soc_device_init()
/Linux-v5.4/drivers/soc/ux500/
Dux500-soc-id.c195 struct soc_device *soc_dev; in ux500_soc_device_init() local
214 soc_dev = soc_device_register(soc_dev_attr); in ux500_soc_device_init()
215 if (IS_ERR(soc_dev)) { in ux500_soc_device_init()
217 return PTR_ERR(soc_dev); in ux500_soc_device_init()
220 parent = soc_device_to_device(soc_dev); in ux500_soc_device_init()
/Linux-v5.4/drivers/soc/imx/
Dsoc-imx-scu.c90 struct soc_device *soc_dev; in imx_scu_soc_probe() local
133 soc_dev = soc_device_register(soc_dev_attr); in imx_scu_soc_probe()
134 if (IS_ERR(soc_dev)) { in imx_scu_soc_probe()
135 ret = PTR_ERR(soc_dev); in imx_scu_soc_probe()
139 ret = device_create_file(soc_device_to_device(soc_dev), in imx_scu_soc_probe()
Dsoc-imx8.c142 struct soc_device *soc_dev; in imx8_soc_init() local
177 soc_dev = soc_device_register(soc_dev_attr); in imx8_soc_init()
178 if (IS_ERR(soc_dev)) { in imx8_soc_init()
179 ret = PTR_ERR(soc_dev); in imx8_soc_init()
183 ret = device_create_file(soc_device_to_device(soc_dev), in imx8_soc_init()
/Linux-v5.4/arch/arm/mach-imx/
Dcpu.c79 struct soc_device *soc_dev; in imx_soc_device_init() local
162 soc_dev = soc_device_register(soc_dev_attr); in imx_soc_device_init()
163 if (IS_ERR(soc_dev)) in imx_soc_device_init()
166 return soc_device_to_device(soc_dev); in imx_soc_device_init()
/Linux-v5.4/arch/arm/mach-zynq/
Dcommon.c107 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.4/drivers/soc/fsl/
Dguts.c30 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.4/drivers/soc/bcm/brcmstb/
Dcommon.c97 struct soc_device *soc_dev; in brcmstb_soc_device_init() local
123 soc_dev = soc_device_register(soc_dev_attr); in brcmstb_soc_device_init()
124 if (IS_ERR(soc_dev)) { in brcmstb_soc_device_init()
/Linux-v5.4/arch/arm/mach-mvebu/
Dmvebu-soc-id.c154 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.4/drivers/soc/qcom/
Dsocinfo.c149 struct soc_device *soc_dev; member
439 qs->soc_dev = soc_device_register(&qs->attr); in qcom_socinfo_probe()
440 if (IS_ERR(qs->soc_dev)) in qcom_socinfo_probe()
441 return PTR_ERR(qs->soc_dev); in qcom_socinfo_probe()
448 platform_set_drvdata(pdev, qs->soc_dev); in qcom_socinfo_probe()
457 soc_device_unregister(qs->soc_dev); in qcom_socinfo_remove()
/Linux-v5.4/drivers/soc/atmel/
Dsoc.c212 struct soc_device *soc_dev; in at91_soc_init() local
251 soc_dev = soc_device_register(soc_dev_attr); in at91_soc_init()
252 if (IS_ERR(soc_dev)) { in at91_soc_init()
264 return soc_dev; in at91_soc_init()
/Linux-v5.4/arch/arm/mach-mxs/
Dmach-mxs.c380 struct soc_device *soc_dev; in mxs_machine_init() local
397 soc_dev = soc_device_register(soc_dev_attr); in mxs_machine_init()
398 if (IS_ERR(soc_dev)) { in mxs_machine_init()
404 parent = soc_device_to_device(soc_dev); in mxs_machine_init()
/Linux-v5.4/drivers/soc/renesas/
Drenesas-soc.c288 struct soc_device *soc_dev; in renesas_soc_init() local
368 soc_dev = soc_device_register(soc_dev_attr); in renesas_soc_init()
369 if (IS_ERR(soc_dev)) { in renesas_soc_init()
374 return PTR_ERR(soc_dev); in renesas_soc_init()
/Linux-v5.4/arch/arm/mach-omap2/
Did.c791 struct soc_device *soc_dev; in omap_soc_device_init() local
802 soc_dev = soc_device_register(soc_dev_attr); in omap_soc_device_init()
803 if (IS_ERR(soc_dev)) { in omap_soc_device_init()
808 parent = soc_device_to_device(soc_dev); in omap_soc_device_init()
/Linux-v5.4/include/linux/
Dsys_soc.h31 void soc_device_unregister(struct soc_device *soc_dev);
/Linux-v5.4/arch/arm/mach-ep93xx/
Dcore.c943 struct soc_device *soc_dev; in ep93xx_init_soc() local
954 soc_dev = soc_device_register(soc_dev_attr); in ep93xx_init_soc()
955 if (IS_ERR(soc_dev)) { in ep93xx_init_soc()
961 return soc_device_to_device(soc_dev); in ep93xx_init_soc()
/Linux-v5.4/arch/powerpc/kernel/
Dlegacy_serial.c163 struct device_node *soc_dev) in add_legacy_soc_port() argument
184 addrp = of_get_address(soc_dev, 0, NULL, NULL); in add_legacy_soc_port()
188 addr = of_translate_address(soc_dev, addrp); in add_legacy_soc_port()