• Home
  • Raw
  • Download

Lines Matching refs:io_handle

40 		     (unsigned long)asd_ha->io_handle[0].addr + (offs & 0xFF));  in asd_write_byte()
42 writeb(val, asd_ha->io_handle[0].addr + offs); in asd_write_byte()
51 (unsigned long)asd_ha->io_handle[0].addr + (offs & 0xFF)); in asd_write_word()
53 writew(val, asd_ha->io_handle[0].addr + offs); in asd_write_word()
62 (unsigned long)asd_ha->io_handle[0].addr + (offs & 0xFF)); in asd_write_dword()
64 writel(val, asd_ha->io_handle[0].addr + offs); in asd_write_dword()
74 val = inb((unsigned long) asd_ha->io_handle[0].addr in asd_read_byte()
77 val = readb(asd_ha->io_handle[0].addr + offs); in asd_read_byte()
87 val = inw((unsigned long)asd_ha->io_handle[0].addr in asd_read_word()
90 val = readw(asd_ha->io_handle[0].addr + offs); in asd_read_word()
100 val = inl((unsigned long) asd_ha->io_handle[0].addr in asd_read_dword()
103 val = readl(asd_ha->io_handle[0].addr + offs); in asd_read_dword()
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; in asd_move_swb()
197 struct asd_ha_addrspace *io_handle=&asd_ha->io_handle[0]; in __asd_write_reg_byte() local
199 if (io_handle->swa_base <= reg in __asd_write_reg_byte()
200 && reg < io_handle->swa_base + MBAR0_SWA_SIZE) in __asd_write_reg_byte()
202 else if (io_handle->swb_base <= reg in __asd_write_reg_byte()
203 && reg < io_handle->swb_base + MBAR0_SWB_SIZE) in __asd_write_reg_byte()
205 else if (io_handle->swc_base <= reg in __asd_write_reg_byte()
206 && reg < io_handle->swc_base + MBAR0_SWC_SIZE) in __asd_write_reg_byte()
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]; in __asd_read_reg_byte() local
248 if (io_handle->swa_base <= reg in __asd_read_reg_byte()
249 && reg < io_handle->swa_base + MBAR0_SWA_SIZE) in __asd_read_reg_byte()
251 else if (io_handle->swb_base <= reg in __asd_read_reg_byte()
252 && reg < io_handle->swb_base + MBAR0_SWB_SIZE) in __asd_read_reg_byte()
254 else if (io_handle->swc_base <= reg in __asd_read_reg_byte()
255 && reg < io_handle->swc_base + MBAR0_SWC_SIZE) in __asd_read_reg_byte()
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) \