Lines Matching defs:res_attr
119 struct bin_attribute *res_attr;
121 res_attr = pdev->res_attr[i];
122 if (res_attr) {
123 sysfs_remove_bin_file(&pdev->dev.kobj, res_attr);
124 kfree(res_attr);
127 res_attr = pdev->res_attr_wc[i];
128 if (res_attr) {
129 sysfs_remove_bin_file(&pdev->dev.kobj, res_attr);
130 kfree(res_attr);
155 char *suffix, struct bin_attribute *res_attr,
161 res_attr->mmap = sparse ? pci_mmap_resource_sparse :
163 res_attr->attr.name = name;
164 res_attr->attr.mode = S_IRUSR | S_IWUSR;
165 res_attr->size = sparse ? size << 5 : size;
166 res_attr->private = &pdev->resource[num];
167 return sysfs_create_bin_file(&pdev->dev.kobj, res_attr);
210 pdev->res_attr[num] = attr;