Lines Matching defs:io_handle
93 struct asd_ha_addrspace *io_handle;
97 io_handle = &asd_ha->io_handle[i==0?0:1];
98 io_handle->start = pci_resource_start(asd_ha->pcidev, i);
99 io_handle->len = pci_resource_len(asd_ha->pcidev, i);
100 io_handle->flags = pci_resource_flags(asd_ha->pcidev, i);
102 if (!io_handle->start || !io_handle->len) {
113 if (io_handle->flags & IORESOURCE_CACHEABLE)
114 io_handle->addr = ioremap(io_handle->start,
115 io_handle->len);
117 io_handle->addr = ioremap_nocache(io_handle->start,
118 io_handle->len);
119 if (!io_handle->addr) {
131 io_handle = &asd_ha->io_handle[0];
132 iounmap(io_handle->addr);
140 struct asd_ha_addrspace *io_handle;
142 io_handle = &asd_ha->io_handle[1];
143 iounmap(io_handle->addr);
146 io_handle = &asd_ha->io_handle[0];
147 iounmap(io_handle->addr);
154 struct asd_ha_addrspace *io_handle = &asd_ha->io_handle[0];
157 io_handle->start = pci_resource_start(asd_ha->pcidev, i);
158 io_handle->len = pci_resource_len(asd_ha->pcidev, i);
159 io_handle->flags = pci_resource_flags(asd_ha->pcidev, i);
160 io_handle->addr = (void __iomem *) io_handle->start;
161 if (!io_handle->start || !io_handle->len) {