Lines Matching refs:pg
26 struct attribute_group pg; member
190 pcaps[i].pg.attrs = kcalloc(j + 1, sizeof(struct attribute *), in opal_powercap_init()
192 if (!pcaps[i].pg.attrs) { in opal_powercap_init()
198 pcaps[i].pg.name = kasprintf(GFP_KERNEL, "%pOFn", node); in opal_powercap_init()
199 if (!pcaps[i].pg.name) { in opal_powercap_init()
201 kfree(pcaps[i].pg.attrs); in opal_powercap_init()
208 pcaps[i].pg.attrs[j] = &pcaps[i].pattrs[j].attr.attr; in opal_powercap_init()
215 pcaps[i].pg.attrs[j] = &pcaps[i].pattrs[j].attr.attr; in opal_powercap_init()
224 pcaps[i].pg.attrs[j] = &pcaps[i].pattrs[j].attr.attr; in opal_powercap_init()
228 if (sysfs_create_group(powercap_kobj, &pcaps[i].pg)) { in opal_powercap_init()
230 pcaps[i].pg.name); in opal_powercap_init()
241 kfree(pcaps[i].pg.attrs); in opal_powercap_init()
242 kfree(pcaps[i].pg.name); in opal_powercap_init()