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

12

/linux-master/arch/nios2/platform/
H A Dplatform.c28 struct soc_device_attribute *soc_dev_attr; local
31 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL);
32 if (soc_dev_attr) {
35 soc_dev_attr->machine = kasprintf(GFP_KERNEL, "%s",
38 soc_dev_attr->family = "Nios II";
40 soc_dev = soc_device_register(soc_dev_attr);
42 kfree(soc_dev_attr->machine);
43 kfree(soc_dev_attr);
/linux-master/drivers/soc/bcm/brcmstb/
H A Dcommon.c73 struct soc_device_attribute *soc_dev_attr; local
85 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL);
86 if (!soc_dev_attr) {
91 soc_dev_attr->family = kasprintf(GFP_KERNEL, "%x",
94 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "%x",
97 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%c%d",
101 soc_dev = soc_device_register(soc_dev_attr);
103 kfree(soc_dev_attr->family);
104 kfree(soc_dev_attr
[all...]
/linux-master/drivers/firmware/smccc/
H A Dsoc_id.c33 static struct soc_device_attribute *soc_dev_attr; variable in typeref:struct:soc_device_attribute
61 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL);
62 if (!soc_dev_attr)
72 soc_dev_attr->soc_id = soc_id_str;
73 soc_dev_attr->revision = soc_id_rev_str;
74 soc_dev_attr->family = soc_id_jep106_id_str;
76 soc_dev = soc_device_register(soc_dev_attr);
78 kfree(soc_dev_attr);
82 pr_info("ID = %s Revision = %s\n", soc_dev_attr
[all...]
/linux-master/arch/mips/ralink/
H A Drt3883.c69 struct soc_device_attribute *soc_dev_attr; local
71 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL);
72 if (!soc_dev_attr)
75 soc_dev_attr->family = "Ralink";
76 soc_dev_attr->soc_id = rt3883_get_soc_name();
78 soc_dev_attr->data = soc_info_ptr;
80 soc_dev = soc_device_register(soc_dev_attr);
82 kfree(soc_dev_attr);
H A Drt288x.c69 struct soc_device_attribute *soc_dev_attr; local
71 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL);
72 if (!soc_dev_attr)
75 soc_dev_attr->family = "Ralink";
76 soc_dev_attr->soc_id = rt2880_get_soc_name();
78 soc_dev_attr->data = soc_info_ptr;
80 soc_dev = soc_device_register(soc_dev_attr);
82 kfree(soc_dev_attr);
H A Drt305x.c172 struct soc_device_attribute *soc_dev_attr; local
174 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL);
175 if (!soc_dev_attr)
178 soc_dev_attr->family = "Ralink";
179 soc_dev_attr->soc_id = rt305x_get_soc_id_name();
181 soc_dev_attr->data = soc_info_ptr;
183 soc_dev = soc_device_register(soc_dev_attr);
185 kfree(soc_dev_attr);
H A Dmt7621.c145 struct soc_device_attribute *soc_dev_attr; local
147 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL);
148 if (!soc_dev_attr)
151 soc_dev_attr->soc_id = "mt7621";
152 soc_dev_attr->family = "Ralink";
153 soc_dev_attr->revision = mt7621_get_soc_revision();
155 soc_dev_attr->data = soc_info_ptr;
157 soc_dev = soc_device_register(soc_dev_attr);
159 kfree(soc_dev_attr);
[all...]
H A Dmt7620.c199 struct soc_device_attribute *soc_dev_attr; local
201 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL);
202 if (!soc_dev_attr)
205 soc_dev_attr->family = "Ralink";
206 soc_dev_attr->soc_id = mt7620_get_soc_id_name();
208 soc_dev_attr->data = soc_info_ptr;
210 soc_dev = soc_device_register(soc_dev_attr);
212 kfree(soc_dev_attr);
/linux-master/drivers/soc/amlogic/
H A Dmeson-mx-socinfo.c109 struct soc_device_attribute *soc_dev_attr; local
149 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL);
150 if (!soc_dev_attr)
153 soc_dev_attr->family = "Amlogic Meson";
156 of_property_read_string(np, "model", &soc_dev_attr->machine);
159 soc_dev_attr->revision = meson_mx_socinfo_revision(major_ver, misc_ver,
161 soc_dev_attr->soc_id = meson_mx_socinfo_soc_id(major_ver, metal_rev);
163 soc_dev = soc_device_register(soc_dev_attr);
165 kfree_const(soc_dev_attr
[all...]
H A Dmeson-gx-socinfo.c130 struct soc_device_attribute *soc_dev_attr; local
172 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL);
173 if (!soc_dev_attr)
176 soc_dev_attr->family = "Amlogic Meson";
177 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%x:%x - %x:%x",
182 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "%s (%s)",
186 soc_dev = soc_device_register(soc_dev_attr);
188 kfree(soc_dev_attr->revision);
189 kfree_const(soc_dev_attr
[all...]
/linux-master/drivers/soc/ti/
H A Dk3-socinfo.c69 struct soc_device_attribute *soc_dev_attr)
75 soc_dev_attr->family = k3_soc_ids[i].family_name;
84 struct soc_device_attribute *soc_dev_attr)
90 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "SR%s",
95 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "SR%x.0",
99 if (!soc_dev_attr->revision)
111 struct soc_device_attribute *soc_dev_attr; local
143 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL);
144 if (!soc_dev_attr)
68 k3_chipinfo_partno_to_names(unsigned int partno, struct soc_device_attribute *soc_dev_attr) argument
83 k3_chipinfo_variant_to_sr(unsigned int partno, unsigned int variant, struct soc_device_attribute *soc_dev_attr) argument
[all...]
/linux-master/arch/arm/mach-mvebu/
H A Dmvebu-soc-id.c150 struct soc_device_attribute *soc_dev_attr; local
157 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL);
158 if (!soc_dev_attr)
161 soc_dev_attr->family = kasprintf(GFP_KERNEL, "Marvell");
162 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%X", soc_rev);
163 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "%X", soc_dev_id);
165 soc_dev = soc_device_register(soc_dev_attr);
167 kfree(soc_dev_attr->family);
168 kfree(soc_dev_attr
[all...]
/linux-master/drivers/firmware/imx/
H A Dimx-scu-soc.c99 struct soc_device_attribute *soc_dev_attr; local
109 soc_dev_attr = devm_kzalloc(dev, sizeof(*soc_dev_attr),
111 if (!soc_dev_attr)
114 soc_dev_attr->family = "Freescale i.MX";
118 &soc_dev_attr->machine);
132 soc_dev_attr->soc_id = imx_scu_soc_name(val);
137 soc_dev_attr->revision = devm_kasprintf(dev, GFP_KERNEL, "%d.%d",
139 if (!soc_dev_attr->revision)
142 soc_dev_attr
[all...]
/linux-master/drivers/soc/fsl/
H A Dguts.c183 struct soc_device_attribute *soc_dev_attr; local
216 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL);
217 if (!soc_dev_attr)
223 soc_dev_attr->machine = kstrdup(machine, GFP_KERNEL);
224 if (!soc_dev_attr->machine)
230 soc_dev_attr->family = kasprintf(GFP_KERNEL, "QorIQ %s",
233 soc_dev_attr->family = kasprintf(GFP_KERNEL, "QorIQ");
235 if (!soc_dev_attr->family)
238 soc_dev_attr
[all...]
/linux-master/drivers/soc/imx/
H A Dsoc-imx.c28 struct soc_device_attribute *soc_dev_attr; local
43 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL);
44 if (!soc_dev_attr)
47 soc_dev_attr->family = "Freescale i.MX";
50 ret = of_property_read_string(root, "model", &soc_dev_attr->machine);
144 soc_dev_attr->soc_id = soc_id;
181 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%d.%d",
184 if (!soc_dev_attr->revision) {
189 soc_dev_attr
[all...]
H A Dsoc-imx8m.c189 struct soc_device_attribute *soc_dev_attr; local
196 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL);
197 if (!soc_dev_attr)
200 soc_dev_attr->family = "Freescale i.MX";
202 ret = of_property_read_string(of_root, "model", &soc_dev_attr->machine);
214 soc_dev_attr->soc_id = data->name;
219 soc_dev_attr->revision = imx8_revision(soc_rev);
220 if (!soc_dev_attr->revision) {
225 soc_dev_attr
[all...]
/linux-master/drivers/soc/versatile/
H A Dsoc-realview.c88 struct soc_device_attribute *soc_dev_attr; local
96 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL);
97 if (!soc_dev_attr)
101 &soc_dev_attr->soc_id);
105 soc_dev_attr->machine = "RealView";
106 soc_dev_attr->family = "Versatile";
107 soc_dev_attr->custom_attr_group = realview_groups[0];
108 soc_dev = soc_device_register(soc_dev_attr);
110 kfree(soc_dev_attr);
[all...]
H A Dsoc-integrator.c105 struct soc_device_attribute *soc_dev_attr; local
125 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL);
126 if (!soc_dev_attr)
129 soc_dev_attr->soc_id = "Integrator";
130 soc_dev_attr->machine = "Integrator";
131 soc_dev_attr->family = "Versatile";
132 soc_dev_attr->custom_attr_group = integrator_groups[0];
133 soc_dev = soc_device_register(soc_dev_attr);
135 kfree(soc_dev_attr);
[all...]
/linux-master/drivers/soc/loongson/
H A Dloongson2_guts.c15 static struct soc_device_attribute soc_dev_attr; variable in typeref:struct:soc_device_attribute
118 soc_dev_attr.machine = devm_kstrdup(dev, machine, GFP_KERNEL);
123 soc_dev_attr.family = devm_kasprintf(dev, GFP_KERNEL,
126 soc_dev_attr.family = devm_kasprintf(dev, GFP_KERNEL, "Loongson");
128 if (!soc_dev_attr.family)
130 soc_dev_attr.soc_id = devm_kasprintf(dev, GFP_KERNEL,
132 if (!soc_dev_attr.soc_id)
134 soc_dev_attr.revision = devm_kasprintf(dev, GFP_KERNEL, "%d.%d",
136 if (!soc_dev_attr.revision)
139 soc_dev = soc_device_register(&soc_dev_attr);
[all...]
/linux-master/drivers/soc/ux500/
H A Dux500-soc-id.c186 static void __init soc_info_populate(struct soc_device_attribute *soc_dev_attr, argument
189 soc_dev_attr->soc_id = db8500_read_soc_id(backupram);
190 soc_dev_attr->machine = ux500_get_machine();
191 soc_dev_attr->family = ux500_get_family();
192 soc_dev_attr->revision = ux500_get_revision();
193 soc_dev_attr->custom_attr_group = ux500_soc_groups[0];
199 struct soc_device_attribute *soc_dev_attr; local
208 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL);
209 if (!soc_dev_attr) {
[all...]
/linux-master/arch/arm/mach-zynq/
H A Dcommon.c107 struct soc_device_attribute *soc_dev_attr; local
111 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL);
112 if (!soc_dev_attr)
117 soc_dev_attr->family = kasprintf(GFP_KERNEL, "Xilinx Zynq");
118 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "0x%x", system_rev);
119 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "0x%x",
122 soc_dev = soc_device_register(soc_dev_attr);
124 kfree(soc_dev_attr->family);
125 kfree(soc_dev_attr
[all...]
/linux-master/drivers/soc/samsung/
H A Dexynos-chipid.c103 struct soc_device_attribute *soc_dev_attr; local
121 soc_dev_attr = devm_kzalloc(&pdev->dev, sizeof(*soc_dev_attr),
123 if (!soc_dev_attr)
126 soc_dev_attr->family = "Samsung Exynos";
129 of_property_read_string(root, "model", &soc_dev_attr->machine);
132 soc_dev_attr->revision = devm_kasprintf(&pdev->dev, GFP_KERNEL,
134 soc_dev_attr->soc_id = product_id_to_soc_id(soc_info.product_id);
135 if (!soc_dev_attr->soc_id) {
141 soc_dev = soc_device_register(soc_dev_attr);
[all...]
/linux-master/arch/arm/mach-mxs/
H A Dmach-mxs.c385 struct soc_device_attribute *soc_dev_attr; local
390 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL);
391 if (!soc_dev_attr)
395 ret = of_property_read_string(root, "model", &soc_dev_attr->machine);
397 kfree(soc_dev_attr);
401 soc_dev_attr->family = "Freescale MXS Family";
402 soc_dev_attr->soc_id = mxs_get_soc_id();
403 soc_dev_attr->revision = mxs_get_revision();
415 soc_dev_attr
[all...]
/linux-master/drivers/soc/renesas/
H A Drenesas-soc.c458 struct soc_device_attribute *soc_dev_attr; local
490 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL);
491 if (!soc_dev_attr) {
497 soc_dev_attr->family = kstrdup_const(family->name, GFP_KERNEL);
498 soc_dev_attr->soc_id = kstrdup_const(soc_id, GFP_KERNEL);
514 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "ES%u.%u",
518 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%u",
524 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%u.%u",
536 pr_info("Detected Renesas %s %s %s%s\n", soc_dev_attr
[all...]
/linux-master/drivers/base/
H A Dsoc.c114 static void soc_device_get_machine(struct soc_device_attribute *soc_dev_attr) argument
118 if (soc_dev_attr->machine)
122 of_property_read_string(np, "model", &soc_dev_attr->machine);
128 struct soc_device *soc_device_register(struct soc_device_attribute *soc_dev_attr) argument
134 soc_device_get_machine(soc_dev_attr);
139 early_soc_dev_attr = soc_dev_attr;
155 soc_attr_groups[1] = soc_dev_attr->custom_attr_group;
163 soc_dev->attr = soc_dev_attr;

Completed in 189 milliseconds

12