Lines Matching refs:soc_dev_attr
47 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()
124 soc_dev_attr->family, in k3_chipinfo_probe()
125 soc_dev_attr->revision, jtag_id); in k3_chipinfo_probe()
130 kfree(soc_dev_attr->revision); in k3_chipinfo_probe()
132 kfree(soc_dev_attr); in k3_chipinfo_probe()