Lines Matching refs:pattrs
27 struct powercap_attr *pattrs; member
185 pcaps[i].pattrs = kcalloc(j, sizeof(struct powercap_attr), in opal_powercap_init()
187 if (!pcaps[i].pattrs) in opal_powercap_init()
193 kfree(pcaps[i].pattrs); in opal_powercap_init()
200 kfree(pcaps[i].pattrs); in opal_powercap_init()
207 &pcaps[i].pattrs[j]); in opal_powercap_init()
208 pcaps[i].pg.attrs[j] = &pcaps[i].pattrs[j].attr.attr; in opal_powercap_init()
214 &pcaps[i].pattrs[j]); in opal_powercap_init()
215 pcaps[i].pg.attrs[j] = &pcaps[i].pattrs[j].attr.attr; in opal_powercap_init()
221 &pcaps[i].pattrs[j]); in opal_powercap_init()
222 pcaps[i].pattrs[j].attr.attr.mode |= 0220; in opal_powercap_init()
223 pcaps[i].pattrs[j].attr.store = powercap_store; in opal_powercap_init()
224 pcaps[i].pg.attrs[j] = &pcaps[i].pattrs[j].attr.attr; in opal_powercap_init()
241 kfree(pcaps[i].pattrs); in opal_powercap_init()