Searched refs:res_attr (Results 1 – 9 of 9) sorted by relevance
121 struct bin_attribute *res_attr; in pci_remove_resource_files() local123 res_attr = pdev->res_attr[i]; in pci_remove_resource_files()124 if (res_attr) { in pci_remove_resource_files()125 sysfs_remove_bin_file(&pdev->dev.kobj, res_attr); in pci_remove_resource_files()126 kfree(res_attr); in pci_remove_resource_files()129 res_attr = pdev->res_attr_wc[i]; in pci_remove_resource_files()130 if (res_attr) { in pci_remove_resource_files()131 sysfs_remove_bin_file(&pdev->dev.kobj, res_attr); in pci_remove_resource_files()132 kfree(res_attr); in pci_remove_resource_files()157 char *suffix, struct bin_attribute *res_attr, in pci_create_one_attr() argument[all …]
745 struct bin_attribute *res_attr; in cdx_destroy_res_attr() local747 res_attr = cdx_dev->res_attr[i]; in cdx_destroy_res_attr()748 if (res_attr) { in cdx_destroy_res_attr()749 sysfs_remove_bin_file(&cdx_dev->dev.kobj, res_attr); in cdx_destroy_res_attr()750 kfree(res_attr); in cdx_destroy_res_attr()758 struct bin_attribute *res_attr; in cdx_create_res_attr() local762 res_attr = kzalloc(sizeof(*res_attr) + CDX_RES_ATTR_NAME_LEN, GFP_ATOMIC); in cdx_create_res_attr()763 if (!res_attr) in cdx_create_res_attr()766 res_attr_name = (char *)(res_attr + 1); in cdx_create_res_attr()768 sysfs_bin_attr_init(res_attr); in cdx_create_res_attr()[all …]
1151 struct bin_attribute *res_attr; in pci_remove_resource_files() local1153 res_attr = pdev->res_attr[i]; in pci_remove_resource_files()1154 if (res_attr) { in pci_remove_resource_files()1155 sysfs_remove_bin_file(&pdev->dev.kobj, res_attr); in pci_remove_resource_files()1156 kfree(res_attr); in pci_remove_resource_files()1159 res_attr = pdev->res_attr_wc[i]; in pci_remove_resource_files()1160 if (res_attr) { in pci_remove_resource_files()1161 sysfs_remove_bin_file(&pdev->dev.kobj, res_attr); in pci_remove_resource_files()1162 kfree(res_attr); in pci_remove_resource_files()1171 struct bin_attribute *res_attr; in pci_create_attr() local[all …]
190 skt->res_attr.start = _PCMCIAAttr(skt->nr); in sa11xx_drv_pcmcia_add_one()191 skt->res_attr.end = _PCMCIAAttr(skt->nr) + PCMCIAAttrSp - 1; in sa11xx_drv_pcmcia_add_one()192 skt->res_attr.name = "attribute"; in sa11xx_drv_pcmcia_add_one()193 skt->res_attr.flags = IORESOURCE_MEM; in sa11xx_drv_pcmcia_add_one()
238 skt->res_attr.start = _PCMCIAAttr(skt->nr); in pxa2xx_drv_pcmcia_add_one()239 skt->res_attr.end = _PCMCIAAttr(skt->nr) + PCMCIAAttrSp - 1; in pxa2xx_drv_pcmcia_add_one()240 skt->res_attr.name = "attribute"; in pxa2xx_drv_pcmcia_add_one()241 skt->res_attr.flags = IORESOURCE_MEM; in pxa2xx_drv_pcmcia_add_one()
644 res = &skt->res_attr; in soc_common_pcmcia_set_mem_map()787 release_resource(&skt->res_attr); in soc_pcmcia_remove_one()815 ret = request_resource(&skt->res_skt, &skt->res_attr); in soc_pcmcia_add_one()878 release_resource(&skt->res_attr); in soc_pcmcia_add_one()
51 struct resource res_attr; member
158 struct bin_attribute *res_attr[MAX_CDX_DEV_RESOURCES]; member
476 struct bin_attribute *res_attr[DEVICE_COUNT_RESOURCE]; /* sysfs file for resources */ member