Lines Matching refs:psr_attrs
23 } *psr_attrs; variable
135 psr_attrs = kcalloc(of_get_child_count(psr), sizeof(*psr_attrs), in opal_psr_init()
137 if (!psr_attrs) in opal_psr_init()
148 &psr_attrs[i].handle)) in opal_psr_init()
151 sysfs_attr_init(&psr_attrs[i].attr.attr); in opal_psr_init()
153 &psr_attrs[i].attr.attr.name)) in opal_psr_init()
155 psr_attrs[i].attr.attr.mode = 0664; in opal_psr_init()
156 psr_attrs[i].attr.show = psr_show; in opal_psr_init()
157 psr_attrs[i].attr.store = psr_store; in opal_psr_init()
158 if (sysfs_create_file(psr_kobj, &psr_attrs[i].attr.attr)) { in opal_psr_init()
160 psr_attrs[i].attr.attr.name); in opal_psr_init()
172 kfree(psr_attrs); in opal_psr_init()