Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/soc/samsung/
Dexynos-chipid.c50 struct soc_device_attribute *soc_dev_attr; in exynos_chipid_early_init() local
76 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in exynos_chipid_early_init()
77 if (!soc_dev_attr) in exynos_chipid_early_init()
80 soc_dev_attr->family = "Samsung Exynos"; in exynos_chipid_early_init()
83 of_property_read_string(root, "model", &soc_dev_attr->machine); in exynos_chipid_early_init()
86 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%x", revision); in exynos_chipid_early_init()
87 soc_dev_attr->soc_id = product_id_to_soc_id(product_id); in exynos_chipid_early_init()
88 if (!soc_dev_attr->soc_id) { in exynos_chipid_early_init()
95 soc_dev = soc_device_register(soc_dev_attr); in exynos_chipid_early_init()
103 soc_dev_attr->soc_id, product_id, revision); in exynos_chipid_early_init()
[all …]
/kernel/linux/linux-5.10/drivers/soc/ti/
Dk3-socinfo.c47 struct soc_device_attribute *soc_dev_attr) in k3_chipinfo_partno_to_names() argument
53 soc_dev_attr->family = k3_soc_ids[i].family_name; in k3_chipinfo_partno_to_names()
63 struct soc_device_attribute *soc_dev_attr; in k3_chipinfo_probe() local
96 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in k3_chipinfo_probe()
97 if (!soc_dev_attr) in k3_chipinfo_probe()
100 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "SR%x.0", variant); in k3_chipinfo_probe()
101 if (!soc_dev_attr->revision) { in k3_chipinfo_probe()
106 ret = k3_chipinfo_partno_to_names(partno_id, soc_dev_attr); in k3_chipinfo_probe()
114 of_property_read_string(node, "model", &soc_dev_attr->machine); in k3_chipinfo_probe()
117 soc_dev = soc_device_register(soc_dev_attr); in k3_chipinfo_probe()
[all …]
/kernel/linux/linux-5.10/drivers/soc/amlogic/
Dmeson-mx-socinfo.c109 struct soc_device_attribute *soc_dev_attr; in meson_mx_socinfo_init() local
148 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in meson_mx_socinfo_init()
149 if (!soc_dev_attr) in meson_mx_socinfo_init()
152 soc_dev_attr->family = "Amlogic Meson"; in meson_mx_socinfo_init()
155 of_property_read_string(np, "model", &soc_dev_attr->machine); in meson_mx_socinfo_init()
158 soc_dev_attr->revision = meson_mx_socinfo_revision(major_ver, misc_ver, in meson_mx_socinfo_init()
160 soc_dev_attr->soc_id = meson_mx_socinfo_soc_id(major_ver, metal_rev); in meson_mx_socinfo_init()
162 soc_dev = soc_device_register(soc_dev_attr); in meson_mx_socinfo_init()
164 kfree_const(soc_dev_attr->revision); in meson_mx_socinfo_init()
165 kfree_const(soc_dev_attr->soc_id); in meson_mx_socinfo_init()
[all …]
Dmeson-gx-socinfo.c129 struct soc_device_attribute *soc_dev_attr; in meson_gx_socinfo_init() local
171 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in meson_gx_socinfo_init()
172 if (!soc_dev_attr) in meson_gx_socinfo_init()
175 soc_dev_attr->family = "Amlogic Meson"; in meson_gx_socinfo_init()
178 of_property_read_string(np, "model", &soc_dev_attr->machine); in meson_gx_socinfo_init()
181 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%x:%x - %x:%x", in meson_gx_socinfo_init()
186 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "%s (%s)", in meson_gx_socinfo_init()
190 soc_dev = soc_device_register(soc_dev_attr); in meson_gx_socinfo_init()
192 kfree(soc_dev_attr->revision); in meson_gx_socinfo_init()
193 kfree_const(soc_dev_attr->soc_id); in meson_gx_socinfo_init()
[all …]
/kernel/linux/linux-5.10/drivers/soc/imx/
Dsoc-imx8m.c168 struct soc_device_attribute *soc_dev_attr; in imx8_soc_init() local
175 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in imx8_soc_init()
176 if (!soc_dev_attr) in imx8_soc_init()
179 soc_dev_attr->family = "Freescale i.MX"; in imx8_soc_init()
181 ret = of_property_read_string(of_root, "model", &soc_dev_attr->machine); in imx8_soc_init()
193 soc_dev_attr->soc_id = data->name; in imx8_soc_init()
198 soc_dev_attr->revision = imx8_revision(soc_rev); in imx8_soc_init()
199 if (!soc_dev_attr->revision) { in imx8_soc_init()
204 soc_dev_attr->serial_number = kasprintf(GFP_KERNEL, "%016llX", soc_uid); in imx8_soc_init()
205 if (!soc_dev_attr->serial_number) { in imx8_soc_init()
[all …]
Dsoc-imx.c26 struct soc_device_attribute *soc_dev_attr; in imx_soc_device_init() local
43 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in imx_soc_device_init()
44 if (!soc_dev_attr) in imx_soc_device_init()
47 soc_dev_attr->family = "Freescale i.MX"; in imx_soc_device_init()
50 ret = of_property_read_string(root, "model", &soc_dev_attr->machine); in imx_soc_device_init()
139 soc_dev_attr->soc_id = soc_id; in imx_soc_device_init()
169 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%d.%d", in imx_soc_device_init()
172 if (!soc_dev_attr->revision) { in imx_soc_device_init()
177 soc_dev_attr->serial_number = kasprintf(GFP_KERNEL, "%016llX", soc_uid); in imx_soc_device_init()
178 if (!soc_dev_attr->serial_number) { in imx_soc_device_init()
[all …]
/kernel/linux/linux-5.10/arch/nios2/platform/
Dplatform.c28 struct soc_device_attribute *soc_dev_attr; in nios2_soc_device_init() local
31 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in nios2_soc_device_init()
32 if (soc_dev_attr) { in nios2_soc_device_init()
35 soc_dev_attr->machine = kasprintf(GFP_KERNEL, "%s", in nios2_soc_device_init()
38 soc_dev_attr->family = "Nios II"; in nios2_soc_device_init()
40 soc_dev = soc_device_register(soc_dev_attr); in nios2_soc_device_init()
42 kfree(soc_dev_attr->machine); in nios2_soc_device_init()
43 kfree(soc_dev_attr); in nios2_soc_device_init()
/kernel/linux/linux-5.10/drivers/firmware/smccc/
Dsoc_id.c33 static struct soc_device_attribute *soc_dev_attr; variable
80 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in smccc_soc_init()
81 if (!soc_dev_attr) in smccc_soc_init()
91 soc_dev_attr->soc_id = soc_id_str; in smccc_soc_init()
92 soc_dev_attr->revision = soc_id_rev_str; in smccc_soc_init()
93 soc_dev_attr->family = soc_id_jep106_id_str; in smccc_soc_init()
95 soc_dev = soc_device_register(soc_dev_attr); in smccc_soc_init()
97 kfree(soc_dev_attr); in smccc_soc_init()
101 pr_info("ID = %s Revision = %s\n", soc_dev_attr->soc_id, in smccc_soc_init()
102 soc_dev_attr->revision); in smccc_soc_init()
[all …]
/kernel/linux/linux-5.10/drivers/soc/bcm/brcmstb/
Dcommon.c95 struct soc_device_attribute *soc_dev_attr; in brcmstb_soc_device_init() local
107 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in brcmstb_soc_device_init()
108 if (!soc_dev_attr) { in brcmstb_soc_device_init()
113 soc_dev_attr->family = kasprintf(GFP_KERNEL, "%x", in brcmstb_soc_device_init()
116 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "%x", in brcmstb_soc_device_init()
119 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%c%d", in brcmstb_soc_device_init()
123 soc_dev = soc_device_register(soc_dev_attr); in brcmstb_soc_device_init()
125 kfree(soc_dev_attr->family); in brcmstb_soc_device_init()
126 kfree(soc_dev_attr->soc_id); in brcmstb_soc_device_init()
127 kfree(soc_dev_attr->revision); in brcmstb_soc_device_init()
[all …]
/kernel/linux/linux-5.10/arch/arm/mach-mvebu/
Dmvebu-soc-id.c153 struct soc_device_attribute *soc_dev_attr; in mvebu_soc_device() local
160 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in mvebu_soc_device()
161 if (!soc_dev_attr) in mvebu_soc_device()
164 soc_dev_attr->family = kasprintf(GFP_KERNEL, "Marvell"); in mvebu_soc_device()
165 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%X", soc_rev); in mvebu_soc_device()
166 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "%X", soc_dev_id); in mvebu_soc_device()
168 soc_dev = soc_device_register(soc_dev_attr); in mvebu_soc_device()
170 kfree(soc_dev_attr->family); in mvebu_soc_device()
171 kfree(soc_dev_attr->revision); in mvebu_soc_device()
172 kfree(soc_dev_attr->soc_id); in mvebu_soc_device()
[all …]
/kernel/linux/linux-5.10/drivers/firmware/imx/
Dimx-scu-soc.c83 struct soc_device_attribute *soc_dev_attr; in imx_scu_soc_init() local
93 soc_dev_attr = devm_kzalloc(dev, sizeof(*soc_dev_attr), in imx_scu_soc_init()
95 if (!soc_dev_attr) in imx_scu_soc_init()
98 soc_dev_attr->family = "Freescale i.MX"; in imx_scu_soc_init()
102 &soc_dev_attr->machine); in imx_scu_soc_init()
116 soc_dev_attr->soc_id = devm_kasprintf(dev, GFP_KERNEL, "0x%x", val); in imx_scu_soc_init()
117 if (!soc_dev_attr->soc_id) in imx_scu_soc_init()
123 soc_dev_attr->revision = devm_kasprintf(dev, GFP_KERNEL, "%d.%d", in imx_scu_soc_init()
125 if (!soc_dev_attr->revision) in imx_scu_soc_init()
128 soc_dev_attr->serial_number = devm_kasprintf(dev, GFP_KERNEL, in imx_scu_soc_init()
[all …]
/kernel/linux/linux-5.10/arch/arm/mach-zynq/
Dcommon.c106 struct soc_device_attribute *soc_dev_attr; in zynq_init_machine() local
110 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in zynq_init_machine()
111 if (!soc_dev_attr) in zynq_init_machine()
116 soc_dev_attr->family = kasprintf(GFP_KERNEL, "Xilinx Zynq"); in zynq_init_machine()
117 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "0x%x", system_rev); in zynq_init_machine()
118 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "0x%x", in zynq_init_machine()
121 soc_dev = soc_device_register(soc_dev_attr); in zynq_init_machine()
123 kfree(soc_dev_attr->family); in zynq_init_machine()
124 kfree(soc_dev_attr->revision); in zynq_init_machine()
125 kfree(soc_dev_attr->soc_id); in zynq_init_machine()
[all …]
/kernel/linux/linux-5.10/drivers/soc/ux500/
Dux500-soc-id.c188 static void __init soc_info_populate(struct soc_device_attribute *soc_dev_attr, in soc_info_populate() argument
191 soc_dev_attr->soc_id = db8500_read_soc_id(backupram); in soc_info_populate()
192 soc_dev_attr->machine = ux500_get_machine(); in soc_info_populate()
193 soc_dev_attr->family = ux500_get_family(); in soc_info_populate()
194 soc_dev_attr->revision = ux500_get_revision(); in soc_info_populate()
195 soc_dev_attr->custom_attr_group = ux500_soc_groups[0]; in soc_info_populate()
201 struct soc_device_attribute *soc_dev_attr; in ux500_soc_device_init() local
210 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in ux500_soc_device_init()
211 if (!soc_dev_attr) { in ux500_soc_device_init()
216 soc_info_populate(soc_dev_attr, backupram); in ux500_soc_device_init()
[all …]
/kernel/linux/linux-5.10/drivers/soc/fsl/
Dguts.c29 static struct soc_device_attribute soc_dev_attr; variable
165 soc_dev_attr.machine = machine; in fsl_guts_probe()
170 soc_dev_attr.family = devm_kasprintf(dev, GFP_KERNEL, in fsl_guts_probe()
173 soc_dev_attr.family = devm_kasprintf(dev, GFP_KERNEL, "QorIQ"); in fsl_guts_probe()
175 if (!soc_dev_attr.family) in fsl_guts_probe()
177 soc_dev_attr.soc_id = devm_kasprintf(dev, GFP_KERNEL, in fsl_guts_probe()
179 if (!soc_dev_attr.soc_id) in fsl_guts_probe()
181 soc_dev_attr.revision = devm_kasprintf(dev, GFP_KERNEL, "%d.%d", in fsl_guts_probe()
183 if (!soc_dev_attr.revision) in fsl_guts_probe()
186 soc_dev = soc_device_register(&soc_dev_attr); in fsl_guts_probe()
[all …]
/kernel/linux/linux-5.10/drivers/soc/versatile/
Dsoc-realview.c88 struct soc_device_attribute *soc_dev_attr; in realview_soc_probe() local
96 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in realview_soc_probe()
97 if (!soc_dev_attr) in realview_soc_probe()
101 &soc_dev_attr->soc_id); in realview_soc_probe()
105 soc_dev_attr->machine = "RealView"; in realview_soc_probe()
106 soc_dev_attr->family = "Versatile"; in realview_soc_probe()
107 soc_dev_attr->custom_attr_group = realview_groups[0]; in realview_soc_probe()
108 soc_dev = soc_device_register(soc_dev_attr); in realview_soc_probe()
110 kfree(soc_dev_attr); in realview_soc_probe()
Dsoc-integrator.c105 struct soc_device_attribute *soc_dev_attr; in integrator_soc_init() local
125 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in integrator_soc_init()
126 if (!soc_dev_attr) in integrator_soc_init()
129 soc_dev_attr->soc_id = "Integrator"; in integrator_soc_init()
130 soc_dev_attr->machine = "Integrator"; in integrator_soc_init()
131 soc_dev_attr->family = "Versatile"; in integrator_soc_init()
132 soc_dev_attr->custom_attr_group = integrator_groups[0]; in integrator_soc_init()
133 soc_dev = soc_device_register(soc_dev_attr); in integrator_soc_init()
135 kfree(soc_dev_attr); in integrator_soc_init()
/kernel/linux/linux-5.10/arch/mips/ralink/
Dmt7621.c125 struct soc_device_attribute *soc_dev_attr; in soc_dev_init() local
127 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in soc_dev_init()
128 if (!soc_dev_attr) in soc_dev_init()
131 soc_dev_attr->soc_id = "mt7621"; in soc_dev_init()
132 soc_dev_attr->family = "Ralink"; in soc_dev_init()
136 soc_dev_attr->revision = "E2"; in soc_dev_init()
138 soc_dev_attr->revision = "E1"; in soc_dev_init()
140 soc_dev_attr->data = soc_info; in soc_dev_init()
142 soc_dev = soc_device_register(soc_dev_attr); in soc_dev_init()
144 kfree(soc_dev_attr); in soc_dev_init()
/kernel/linux/linux-5.10/drivers/soc/renesas/
Drenesas-soc.c310 struct soc_device_attribute *soc_dev_attr; in renesas_soc_init() local
377 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in renesas_soc_init()
378 if (!soc_dev_attr) in renesas_soc_init()
382 of_property_read_string(np, "model", &soc_dev_attr->machine); in renesas_soc_init()
385 soc_dev_attr->family = kstrdup_const(family->name, GFP_KERNEL); in renesas_soc_init()
386 soc_dev_attr->soc_id = kstrdup_const(strchr(match->compatible, ',') + 1, in renesas_soc_init()
389 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "ES%u.%u", eshi, in renesas_soc_init()
392 pr_info("Detected Renesas %s %s %s\n", soc_dev_attr->family, in renesas_soc_init()
393 soc_dev_attr->soc_id, soc_dev_attr->revision ?: ""); in renesas_soc_init()
395 soc_dev = soc_device_register(soc_dev_attr); in renesas_soc_init()
[all …]
/kernel/linux/linux-5.10/drivers/soc/atmel/
Dsoc.c211 struct soc_device_attribute *soc_dev_attr; in at91_soc_init() local
244 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in at91_soc_init()
245 if (!soc_dev_attr) in at91_soc_init()
248 soc_dev_attr->family = soc->family; in at91_soc_init()
249 soc_dev_attr->soc_id = soc->name; in at91_soc_init()
250 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%X", in at91_soc_init()
252 soc_dev = soc_device_register(soc_dev_attr); in at91_soc_init()
254 kfree(soc_dev_attr->revision); in at91_soc_init()
255 kfree(soc_dev_attr); in at91_soc_init()
/kernel/linux/linux-5.10/arch/arm/mach-mxs/
Dmach-mxs.c381 struct soc_device_attribute *soc_dev_attr; in mxs_machine_init() local
384 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in mxs_machine_init()
385 if (!soc_dev_attr) in mxs_machine_init()
389 ret = of_property_read_string(root, "model", &soc_dev_attr->machine); in mxs_machine_init()
393 soc_dev_attr->family = "Freescale MXS Family"; in mxs_machine_init()
394 soc_dev_attr->soc_id = mxs_get_soc_id(); in mxs_machine_init()
395 soc_dev_attr->revision = mxs_get_revision(); in mxs_machine_init()
397 soc_dev = soc_device_register(soc_dev_attr); in mxs_machine_init()
399 kfree(soc_dev_attr->revision); in mxs_machine_init()
400 kfree(soc_dev_attr); in mxs_machine_init()
/kernel/linux/linux-5.10/arch/arm/mach-omap2/
Did.c788 struct soc_device_attribute *soc_dev_attr; in omap_soc_device_init() local
790 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in omap_soc_device_init()
791 if (!soc_dev_attr) in omap_soc_device_init()
794 soc_dev_attr->machine = soc_name; in omap_soc_device_init()
795 soc_dev_attr->family = omap_get_family(); in omap_soc_device_init()
796 soc_dev_attr->revision = soc_rev; in omap_soc_device_init()
797 soc_dev_attr->custom_attr_group = omap_soc_groups[0]; in omap_soc_device_init()
799 soc_dev = soc_device_register(soc_dev_attr); in omap_soc_device_init()
801 kfree(soc_dev_attr); in omap_soc_device_init()
/kernel/linux/linux-5.10/arch/arm/mach-ep93xx/
Dcore.c942 struct soc_device_attribute *soc_dev_attr; in ep93xx_init_soc() local
945 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in ep93xx_init_soc()
946 if (!soc_dev_attr) in ep93xx_init_soc()
949 soc_dev_attr->machine = ep93xx_get_machine_name(); in ep93xx_init_soc()
950 soc_dev_attr->family = "Cirrus Logic EP93xx"; in ep93xx_init_soc()
951 soc_dev_attr->revision = ep93xx_get_soc_rev(); in ep93xx_init_soc()
952 soc_dev_attr->soc_id = ep93xx_get_soc_id(); in ep93xx_init_soc()
954 soc_dev = soc_device_register(soc_dev_attr); in ep93xx_init_soc()
956 kfree(soc_dev_attr->machine); in ep93xx_init_soc()
957 kfree(soc_dev_attr); in ep93xx_init_soc()
/kernel/linux/linux-5.10/drivers/base/
Dsoc.c114 struct soc_device *soc_device_register(struct soc_device_attribute *soc_dev_attr) in soc_device_register() argument
123 early_soc_dev_attr = soc_dev_attr; in soc_device_register()
139 soc_attr_groups[1] = soc_dev_attr->custom_attr_group; in soc_device_register()
147 soc_dev->attr = soc_dev_attr; in soc_device_register()
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/
D0018_linux_drivers_firmware.patch431 - soc_dev_attr->soc_id = devm_kasprintf(dev, GFP_KERNEL, "0x%x", val);
432 - if (!soc_dev_attr->soc_id)
435 + soc_dev_attr->soc_id = "i.MX8QM";
438 + soc_dev_attr->soc_id = "i.MX8QXP";
440 + soc_dev_attr->soc_id = "i.MX8DXL";
D0033_linux_drivers_soc_scsi_spi_tee_thermal.patch3300 struct soc_device_attribute *soc_dev_attr;
3317 soc_dev_attr->soc_id = data->name;
3332 soc_dev_attr->revision = imx8_revision(soc_rev);
3344 kfree(soc_dev_attr);