Home
last modified time | relevance | path

Searched refs:res_attr (Results 1 – 8 of 8) sorted by relevance

/linux/drivers/cdx/
H A Dcdx.c746 struct bin_attribute *res_attr; in cdx_destroy_res_attr() local
748 res_attr = cdx_dev->res_attr[i]; in cdx_destroy_res_attr()
749 if (res_attr) { in cdx_destroy_res_attr()
750 sysfs_remove_bin_file(&cdx_dev->dev.kobj, res_attr); in cdx_destroy_res_attr()
751 kfree(res_attr); in cdx_destroy_res_attr()
759 struct bin_attribute *res_attr; in cdx_create_res_attr() local
763 res_attr = kzalloc(sizeof(*res_attr) + CDX_RES_ATTR_NAME_LEN, GFP_ATOMIC); in cdx_create_res_attr()
764 if (!res_attr) in cdx_create_res_attr()
767 res_attr_name = (char *)(res_attr + 1); in cdx_create_res_attr()
769 sysfs_bin_attr_init(res_attr); in cdx_create_res_attr()
[all …]
/linux/drivers/pci/
H A Dpci-sysfs.c1218 struct bin_attribute *res_attr; in pci_remove_resource_files() local
1220 res_attr = pdev->res_attr[i]; in pci_remove_resource_files()
1221 if (res_attr) { in pci_remove_resource_files()
1222 sysfs_remove_bin_file(&pdev->dev.kobj, res_attr); in pci_remove_resource_files()
1223 kfree(res_attr); in pci_remove_resource_files()
1226 res_attr = pdev->res_attr_wc[i]; in pci_remove_resource_files()
1227 if (res_attr) { in pci_remove_resource_files()
1228 sysfs_remove_bin_file(&pdev->dev.kobj, res_attr); in pci_remove_resource_files()
1229 kfree(res_attr); in pci_remove_resource_files()
1238 struct bin_attribute *res_attr; in pci_create_attr() local
[all …]
/linux/drivers/pcmcia/
H A Dsa11xx_base.c190 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()
H A Dpxa2xx_base.c238 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()
H A Dsoc_common.c642 res = &skt->res_attr; in soc_common_pcmcia_set_mem_map()
785 release_resource(&skt->res_attr); in soc_pcmcia_remove_one()
813 ret = request_resource(&skt->res_skt, &skt->res_attr); in soc_pcmcia_add_one()
876 release_resource(&skt->res_attr); in soc_pcmcia_add_one()
/linux/include/pcmcia/
H A Dsoc_common.h51 struct resource res_attr; member
/linux/include/linux/cdx/
H A Dcdx_bus.h158 struct bin_attribute *res_attr[MAX_CDX_DEV_RESOURCES]; member
/linux/include/linux/
H A Dpci.h510 struct bin_attribute *res_attr[DEVICE_COUNT_RESOURCE]; /* sysfs file for resources */ member