/linux-6.1.9/drivers/soc/fsl/ |
D | guts.c | 183 struct soc_device_attribute *soc_dev_attr; in fsl_guts_init() local 216 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in fsl_guts_init() 217 if (!soc_dev_attr) in fsl_guts_init() 223 soc_dev_attr->machine = kstrdup(machine, GFP_KERNEL); in fsl_guts_init() 224 if (!soc_dev_attr->machine) in fsl_guts_init() 230 soc_dev_attr->family = kasprintf(GFP_KERNEL, "QorIQ %s", in fsl_guts_init() 233 soc_dev_attr->family = kasprintf(GFP_KERNEL, "QorIQ"); in fsl_guts_init() 235 if (!soc_dev_attr->family) in fsl_guts_init() 238 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "svr:0x%08x", svr); in fsl_guts_init() 239 if (!soc_dev_attr->soc_id) in fsl_guts_init() [all …]
|
/linux-6.1.9/drivers/soc/ti/ |
D | k3-socinfo.c | 50 struct soc_device_attribute *soc_dev_attr) in k3_chipinfo_partno_to_names() argument 56 soc_dev_attr->family = k3_soc_ids[i].family_name; in k3_chipinfo_partno_to_names() 66 struct soc_device_attribute *soc_dev_attr; in k3_chipinfo_probe() local 99 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in k3_chipinfo_probe() 100 if (!soc_dev_attr) in k3_chipinfo_probe() 103 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "SR%x.0", variant); in k3_chipinfo_probe() 104 if (!soc_dev_attr->revision) { in k3_chipinfo_probe() 109 ret = k3_chipinfo_partno_to_names(partno_id, soc_dev_attr); in k3_chipinfo_probe() 117 of_property_read_string(node, "model", &soc_dev_attr->machine); in k3_chipinfo_probe() 120 soc_dev = soc_device_register(soc_dev_attr); in k3_chipinfo_probe() [all …]
|
/linux-6.1.9/drivers/soc/amlogic/ |
D | meson-mx-socinfo.c | 109 struct soc_device_attribute *soc_dev_attr; in meson_mx_socinfo_init() local 149 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in meson_mx_socinfo_init() 150 if (!soc_dev_attr) in meson_mx_socinfo_init() 153 soc_dev_attr->family = "Amlogic Meson"; in meson_mx_socinfo_init() 156 of_property_read_string(np, "model", &soc_dev_attr->machine); in meson_mx_socinfo_init() 159 soc_dev_attr->revision = meson_mx_socinfo_revision(major_ver, misc_ver, in meson_mx_socinfo_init() 161 soc_dev_attr->soc_id = meson_mx_socinfo_soc_id(major_ver, metal_rev); in meson_mx_socinfo_init() 163 soc_dev = soc_device_register(soc_dev_attr); in meson_mx_socinfo_init() 165 kfree_const(soc_dev_attr->revision); in meson_mx_socinfo_init() 166 kfree_const(soc_dev_attr->soc_id); in meson_mx_socinfo_init() [all …]
|
D | meson-gx-socinfo.c | 130 struct soc_device_attribute *soc_dev_attr; in meson_gx_socinfo_init() local 172 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in meson_gx_socinfo_init() 173 if (!soc_dev_attr) in meson_gx_socinfo_init() 176 soc_dev_attr->family = "Amlogic Meson"; in meson_gx_socinfo_init() 179 of_property_read_string(np, "model", &soc_dev_attr->machine); in meson_gx_socinfo_init() 182 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%x:%x - %x:%x", in meson_gx_socinfo_init() 187 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "%s (%s)", in meson_gx_socinfo_init() 191 soc_dev = soc_device_register(soc_dev_attr); in meson_gx_socinfo_init() 193 kfree(soc_dev_attr->revision); in meson_gx_socinfo_init() 194 kfree_const(soc_dev_attr->soc_id); in meson_gx_socinfo_init() [all …]
|
/linux-6.1.9/drivers/soc/imx/ |
D | soc-imx8m.c | 179 struct soc_device_attribute *soc_dev_attr; in imx8_soc_init() local 186 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in imx8_soc_init() 187 if (!soc_dev_attr) in imx8_soc_init() 190 soc_dev_attr->family = "Freescale i.MX"; in imx8_soc_init() 192 ret = of_property_read_string(of_root, "model", &soc_dev_attr->machine); in imx8_soc_init() 204 soc_dev_attr->soc_id = data->name; in imx8_soc_init() 209 soc_dev_attr->revision = imx8_revision(soc_rev); in imx8_soc_init() 210 if (!soc_dev_attr->revision) { in imx8_soc_init() 215 soc_dev_attr->serial_number = kasprintf(GFP_KERNEL, "%016llX", soc_uid); in imx8_soc_init() 216 if (!soc_dev_attr->serial_number) { in imx8_soc_init() [all …]
|
D | soc-imx.c | 28 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() 144 soc_dev_attr->soc_id = soc_id; in imx_soc_device_init() 181 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%d.%d", in imx_soc_device_init() 184 if (!soc_dev_attr->revision) { in imx_soc_device_init() 189 soc_dev_attr->serial_number = kasprintf(GFP_KERNEL, "%016llX", soc_uid); in imx_soc_device_init() 190 if (!soc_dev_attr->serial_number) { in imx_soc_device_init() [all …]
|
/linux-6.1.9/drivers/soc/bcm/brcmstb/ |
D | common.c | 73 struct soc_device_attribute *soc_dev_attr; in brcmstb_soc_device_init() local 85 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in brcmstb_soc_device_init() 86 if (!soc_dev_attr) { in brcmstb_soc_device_init() 91 soc_dev_attr->family = kasprintf(GFP_KERNEL, "%x", in brcmstb_soc_device_init() 94 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "%x", in brcmstb_soc_device_init() 97 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%c%d", in brcmstb_soc_device_init() 101 soc_dev = soc_device_register(soc_dev_attr); in brcmstb_soc_device_init() 103 kfree(soc_dev_attr->family); in brcmstb_soc_device_init() 104 kfree(soc_dev_attr->soc_id); in brcmstb_soc_device_init() 105 kfree(soc_dev_attr->revision); in brcmstb_soc_device_init() [all …]
|
/linux-6.1.9/arch/nios2/platform/ |
D | platform.c | 28 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()
|
/linux-6.1.9/drivers/firmware/smccc/ |
D | soc_id.c | 33 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 …]
|
/linux-6.1.9/arch/arm/mach-mvebu/ |
D | mvebu-soc-id.c | 150 struct soc_device_attribute *soc_dev_attr; in mvebu_soc_device() local 157 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in mvebu_soc_device() 158 if (!soc_dev_attr) in mvebu_soc_device() 161 soc_dev_attr->family = kasprintf(GFP_KERNEL, "Marvell"); in mvebu_soc_device() 162 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%X", soc_rev); in mvebu_soc_device() 163 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "%X", soc_dev_id); in mvebu_soc_device() 165 soc_dev = soc_device_register(soc_dev_attr); in mvebu_soc_device() 167 kfree(soc_dev_attr->family); in mvebu_soc_device() 168 kfree(soc_dev_attr->revision); in mvebu_soc_device() 169 kfree(soc_dev_attr->soc_id); in mvebu_soc_device() [all …]
|
/linux-6.1.9/drivers/firmware/imx/ |
D | imx-scu-soc.c | 83 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 …]
|
/linux-6.1.9/arch/arm/mach-zynq/ |
D | common.c | 107 struct soc_device_attribute *soc_dev_attr; in zynq_init_machine() local 111 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in zynq_init_machine() 112 if (!soc_dev_attr) in zynq_init_machine() 117 soc_dev_attr->family = kasprintf(GFP_KERNEL, "Xilinx Zynq"); in zynq_init_machine() 118 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "0x%x", system_rev); in zynq_init_machine() 119 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "0x%x", in zynq_init_machine() 122 soc_dev = soc_device_register(soc_dev_attr); in zynq_init_machine() 124 kfree(soc_dev_attr->family); in zynq_init_machine() 125 kfree(soc_dev_attr->revision); in zynq_init_machine() 126 kfree(soc_dev_attr->soc_id); in zynq_init_machine() [all …]
|
/linux-6.1.9/drivers/soc/ux500/ |
D | ux500-soc-id.c | 186 static void __init soc_info_populate(struct soc_device_attribute *soc_dev_attr, in soc_info_populate() argument 189 soc_dev_attr->soc_id = db8500_read_soc_id(backupram); in soc_info_populate() 190 soc_dev_attr->machine = ux500_get_machine(); in soc_info_populate() 191 soc_dev_attr->family = ux500_get_family(); in soc_info_populate() 192 soc_dev_attr->revision = ux500_get_revision(); in soc_info_populate() 193 soc_dev_attr->custom_attr_group = ux500_soc_groups[0]; in soc_info_populate() 199 struct soc_device_attribute *soc_dev_attr; in ux500_soc_device_init() local 208 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in ux500_soc_device_init() 209 if (!soc_dev_attr) { in ux500_soc_device_init() 214 soc_info_populate(soc_dev_attr, backupram); in ux500_soc_device_init() [all …]
|
/linux-6.1.9/drivers/soc/versatile/ |
D | soc-realview.c | 88 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()
|
D | soc-integrator.c | 105 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()
|
/linux-6.1.9/drivers/soc/samsung/ |
D | exynos-chipid.c | 103 struct soc_device_attribute *soc_dev_attr; in exynos_chipid_probe() local 121 soc_dev_attr = devm_kzalloc(&pdev->dev, sizeof(*soc_dev_attr), in exynos_chipid_probe() 123 if (!soc_dev_attr) in exynos_chipid_probe() 126 soc_dev_attr->family = "Samsung Exynos"; in exynos_chipid_probe() 129 of_property_read_string(root, "model", &soc_dev_attr->machine); in exynos_chipid_probe() 132 soc_dev_attr->revision = devm_kasprintf(&pdev->dev, GFP_KERNEL, in exynos_chipid_probe() 134 soc_dev_attr->soc_id = product_id_to_soc_id(soc_info.product_id); in exynos_chipid_probe() 135 if (!soc_dev_attr->soc_id) { in exynos_chipid_probe() 141 soc_dev = soc_device_register(soc_dev_attr); in exynos_chipid_probe() 152 soc_dev_attr->soc_id, soc_info.product_id, soc_info.revision); in exynos_chipid_probe()
|
/linux-6.1.9/arch/mips/ralink/ |
D | mt7621.c | 154 struct soc_device_attribute *soc_dev_attr; in mt7621_soc_dev_init() local 156 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in mt7621_soc_dev_init() 157 if (!soc_dev_attr) in mt7621_soc_dev_init() 160 soc_dev_attr->soc_id = "mt7621"; in mt7621_soc_dev_init() 161 soc_dev_attr->family = "Ralink"; in mt7621_soc_dev_init() 162 soc_dev_attr->revision = mt7621_get_soc_revision(); in mt7621_soc_dev_init() 164 soc_dev_attr->data = soc_info_ptr; in mt7621_soc_dev_init() 166 soc_dev = soc_device_register(soc_dev_attr); in mt7621_soc_dev_init() 168 kfree(soc_dev_attr); in mt7621_soc_dev_init()
|
/linux-6.1.9/arch/arm/mach-mxs/ |
D | mach-mxs.c | 385 struct soc_device_attribute *soc_dev_attr; in mxs_machine_init() local 390 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in mxs_machine_init() 391 if (!soc_dev_attr) in mxs_machine_init() 395 ret = of_property_read_string(root, "model", &soc_dev_attr->machine); in mxs_machine_init() 397 kfree(soc_dev_attr); in mxs_machine_init() 401 soc_dev_attr->family = "Freescale MXS Family"; in mxs_machine_init() 402 soc_dev_attr->soc_id = mxs_get_soc_id(); in mxs_machine_init() 403 soc_dev_attr->revision = mxs_get_revision(); in mxs_machine_init() 415 soc_dev_attr->serial_number = kasprintf(GFP_KERNEL, "%016llX", soc_uid); in mxs_machine_init() 417 soc_dev = soc_device_register(soc_dev_attr); in mxs_machine_init() [all …]
|
/linux-6.1.9/drivers/soc/renesas/ |
D | renesas-soc.c | 424 struct soc_device_attribute *soc_dev_attr; in renesas_soc_init() local 456 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in renesas_soc_init() 457 if (!soc_dev_attr) in renesas_soc_init() 461 of_property_read_string(np, "model", &soc_dev_attr->machine); in renesas_soc_init() 464 soc_dev_attr->family = kstrdup_const(family->name, GFP_KERNEL); in renesas_soc_init() 465 soc_dev_attr->soc_id = kstrdup_const(soc_id, GFP_KERNEL); in renesas_soc_init() 481 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "ES%u.%u", in renesas_soc_init() 485 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%u", in renesas_soc_init() 498 pr_info("Detected Renesas %s %s %s%s\n", soc_dev_attr->family, in renesas_soc_init() 499 soc_dev_attr->soc_id, rev_prefix, soc_dev_attr->revision ?: ""); in renesas_soc_init() [all …]
|
/linux-6.1.9/drivers/soc/atmel/ |
D | soc.c | 302 struct soc_device_attribute *soc_dev_attr; in at91_soc_init() local 335 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in at91_soc_init() 336 if (!soc_dev_attr) in at91_soc_init() 339 soc_dev_attr->family = soc->family; in at91_soc_init() 340 soc_dev_attr->soc_id = soc->name; in at91_soc_init() 341 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%X", in at91_soc_init() 343 soc_dev = soc_device_register(soc_dev_attr); in at91_soc_init() 345 kfree(soc_dev_attr->revision); in at91_soc_init() 346 kfree(soc_dev_attr); in at91_soc_init()
|
/linux-6.1.9/arch/arm/mach-omap2/ |
D | id.c | 788 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()
|
/linux-6.1.9/arch/arm/mach-ep93xx/ |
D | core.c | 944 struct soc_device_attribute *soc_dev_attr; in ep93xx_init_soc() local 947 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in ep93xx_init_soc() 948 if (!soc_dev_attr) in ep93xx_init_soc() 951 soc_dev_attr->machine = ep93xx_get_machine_name(); in ep93xx_init_soc() 952 soc_dev_attr->family = "Cirrus Logic EP93xx"; in ep93xx_init_soc() 953 soc_dev_attr->revision = ep93xx_get_soc_rev(); in ep93xx_init_soc() 954 soc_dev_attr->soc_id = ep93xx_get_soc_id(); in ep93xx_init_soc() 956 soc_dev = soc_device_register(soc_dev_attr); in ep93xx_init_soc() 958 kfree(soc_dev_attr->machine); in ep93xx_init_soc() 959 kfree(soc_dev_attr); in ep93xx_init_soc()
|
/linux-6.1.9/drivers/base/ |
D | soc.c | 114 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()
|