Lines Matching full: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()
202 pcaps[i].pg.attrs[j] = &pcaps[i].pattrs[j].attr.attr; in opal_powercap_init()
209 pcaps[i].pg.attrs[j] = &pcaps[i].pattrs[j].attr.attr; in opal_powercap_init()
218 pcaps[i].pg.attrs[j] = &pcaps[i].pattrs[j].attr.attr; in opal_powercap_init()
222 if (sysfs_create_group(powercap_kobj, &pcaps[i].pg)) { in opal_powercap_init()
224 pcaps[i].pg.name); in opal_powercap_init()
235 kfree(pcaps[i].pg.attrs); in opal_powercap_init()
236 kfree(pcaps[i].pg.name); in opal_powercap_init()