• Home
  • Raw
  • Download

Lines Matching refs:io_handle

91 	struct asd_ha_addrspace *io_handle;  in asd_map_memio()  local
95 io_handle = &asd_ha->io_handle[i==0?0:1]; in asd_map_memio()
96 io_handle->start = pci_resource_start(asd_ha->pcidev, i); in asd_map_memio()
97 io_handle->len = pci_resource_len(asd_ha->pcidev, i); in asd_map_memio()
98 io_handle->flags = pci_resource_flags(asd_ha->pcidev, i); in asd_map_memio()
100 if (!io_handle->start || !io_handle->len) { in asd_map_memio()
111 if (io_handle->flags & IORESOURCE_CACHEABLE) in asd_map_memio()
112 io_handle->addr = ioremap(io_handle->start, in asd_map_memio()
113 io_handle->len); in asd_map_memio()
115 io_handle->addr = ioremap_nocache(io_handle->start, in asd_map_memio()
116 io_handle->len); in asd_map_memio()
117 if (!io_handle->addr) { in asd_map_memio()
129 io_handle = &asd_ha->io_handle[0]; in asd_map_memio()
130 iounmap(io_handle->addr); in asd_map_memio()
138 struct asd_ha_addrspace *io_handle; in asd_unmap_memio() local
140 io_handle = &asd_ha->io_handle[1]; in asd_unmap_memio()
141 iounmap(io_handle->addr); in asd_unmap_memio()
144 io_handle = &asd_ha->io_handle[0]; in asd_unmap_memio()
145 iounmap(io_handle->addr); in asd_unmap_memio()
152 struct asd_ha_addrspace *io_handle = &asd_ha->io_handle[0]; in asd_map_ioport() local
155 io_handle->start = pci_resource_start(asd_ha->pcidev, i); in asd_map_ioport()
156 io_handle->len = pci_resource_len(asd_ha->pcidev, i); in asd_map_ioport()
157 io_handle->flags = pci_resource_flags(asd_ha->pcidev, i); in asd_map_ioport()
158 io_handle->addr = (void __iomem *) io_handle->start; in asd_map_ioport()
159 if (!io_handle->start || !io_handle->len) { in asd_map_ioport()