Lines Matching defs:io_handle
40 (unsigned long)asd_ha->io_handle[0].addr + (offs & 0xFF));
42 writeb(val, asd_ha->io_handle[0].addr + offs);
51 (unsigned long)asd_ha->io_handle[0].addr + (offs & 0xFF));
53 writew(val, asd_ha->io_handle[0].addr + offs);
62 (unsigned long)asd_ha->io_handle[0].addr + (offs & 0xFF));
64 writel(val, asd_ha->io_handle[0].addr + offs);
74 val = inb((unsigned long) asd_ha->io_handle[0].addr
77 val = readb(asd_ha->io_handle[0].addr + offs);
87 val = inw((unsigned long)asd_ha->io_handle[0].addr
90 val = readw(asd_ha->io_handle[0].addr + offs);
100 val = inl((unsigned long) asd_ha->io_handle[0].addr
103 val = readl(asd_ha->io_handle[0].addr + offs);
130 struct asd_ha_addrspace *io_handle = &asd_ha->io_handle[0]; \
131 u32 map_offs = (reg - io_handle->ww##_base) + asd_mem_offs_##ww();\
139 struct asd_ha_addrspace *io_handle = &asd_ha->io_handle[0]; \
140 u32 map_offs = (reg - io_handle->ww##_base) + asd_mem_offs_##ww();\
192 asd_ha->io_handle[0].swb_base = base;
197 struct asd_ha_addrspace *io_handle=&asd_ha->io_handle[0];
199 if (io_handle->swa_base <= reg
200 && reg < io_handle->swa_base + MBAR0_SWA_SIZE)
202 else if (io_handle->swb_base <= reg
203 && reg < io_handle->swb_base + MBAR0_SWB_SIZE)
205 else if (io_handle->swc_base <= reg
206 && reg < io_handle->swc_base + MBAR0_SWC_SIZE)
218 struct asd_ha_addrspace *io_handle=&asd_ha->io_handle[0]; \
222 if (io_handle->swa_base <= reg \
223 && reg < io_handle->swa_base + MBAR0_SWA_SIZE) \
225 else if (io_handle->swb_base <= reg \
226 && reg < io_handle->swb_base + MBAR0_SWB_SIZE) \
228 else if (io_handle->swc_base <= reg \
229 && reg < io_handle->swc_base + MBAR0_SWC_SIZE) \
245 struct asd_ha_addrspace *io_handle=&asd_ha->io_handle[0];
248 if (io_handle->swa_base <= reg
249 && reg < io_handle->swa_base + MBAR0_SWA_SIZE)
251 else if (io_handle->swb_base <= reg
252 && reg < io_handle->swb_base + MBAR0_SWB_SIZE)
254 else if (io_handle->swc_base <= reg
255 && reg < io_handle->swc_base + MBAR0_SWC_SIZE)
268 struct asd_ha_addrspace *io_handle=&asd_ha->io_handle[0]; \
273 if (io_handle->swa_base <= reg \
274 && reg < io_handle->swa_base + MBAR0_SWA_SIZE) \
276 else if (io_handle->swb_base <= reg \
277 && reg < io_handle->swb_base + MBAR0_SWB_SIZE) \
279 else if (io_handle->swc_base <= reg \
280 && reg < io_handle->swc_base + MBAR0_SWC_SIZE) \