Lines Matching refs:soc_dev_attr
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()
127 soc_dev_attr->family, in k3_chipinfo_probe()
128 soc_dev_attr->revision, jtag_id); in k3_chipinfo_probe()
133 kfree(soc_dev_attr->revision); in k3_chipinfo_probe()
135 kfree(soc_dev_attr); in k3_chipinfo_probe()