Lines Matching refs:io_handle
67 struct asd_ha_addrspace *io_handle; in asd_map_memio() local
71 io_handle = &asd_ha->io_handle[i==0?0:1]; in asd_map_memio()
72 io_handle->start = pci_resource_start(asd_ha->pcidev, i); in asd_map_memio()
73 io_handle->len = pci_resource_len(asd_ha->pcidev, i); in asd_map_memio()
74 io_handle->flags = pci_resource_flags(asd_ha->pcidev, i); in asd_map_memio()
76 if (!io_handle->start || !io_handle->len) { in asd_map_memio()
87 io_handle->addr = ioremap(io_handle->start, io_handle->len); in asd_map_memio()
88 if (!io_handle->addr) { in asd_map_memio()
101 io_handle = &asd_ha->io_handle[0]; in asd_map_memio()
102 iounmap(io_handle->addr); in asd_map_memio()
110 struct asd_ha_addrspace *io_handle; in asd_unmap_memio() local
112 io_handle = &asd_ha->io_handle[1]; in asd_unmap_memio()
113 iounmap(io_handle->addr); in asd_unmap_memio()
116 io_handle = &asd_ha->io_handle[0]; in asd_unmap_memio()
117 iounmap(io_handle->addr); in asd_unmap_memio()
124 struct asd_ha_addrspace *io_handle = &asd_ha->io_handle[0]; in asd_map_ioport() local
127 io_handle->start = pci_resource_start(asd_ha->pcidev, i); in asd_map_ioport()
128 io_handle->len = pci_resource_len(asd_ha->pcidev, i); in asd_map_ioport()
129 io_handle->flags = pci_resource_flags(asd_ha->pcidev, i); in asd_map_ioport()
130 io_handle->addr = (void __iomem *) io_handle->start; in asd_map_ioport()
131 if (!io_handle->start || !io_handle->len) { in asd_map_ioport()