Lines Matching refs:io_handle
22 (unsigned long)asd_ha->io_handle[0].addr + (offs & 0xFF)); in asd_write_byte()
24 writeb(val, asd_ha->io_handle[0].addr + offs); in asd_write_byte()
33 (unsigned long)asd_ha->io_handle[0].addr + (offs & 0xFF)); in asd_write_word()
35 writew(val, asd_ha->io_handle[0].addr + offs); in asd_write_word()
44 (unsigned long)asd_ha->io_handle[0].addr + (offs & 0xFF)); in asd_write_dword()
46 writel(val, asd_ha->io_handle[0].addr + offs); in asd_write_dword()
56 val = inb((unsigned long) asd_ha->io_handle[0].addr in asd_read_byte()
59 val = readb(asd_ha->io_handle[0].addr + offs); in asd_read_byte()
69 val = inw((unsigned long)asd_ha->io_handle[0].addr in asd_read_word()
72 val = readw(asd_ha->io_handle[0].addr + offs); in asd_read_word()
82 val = inl((unsigned long) asd_ha->io_handle[0].addr in asd_read_dword()
85 val = readl(asd_ha->io_handle[0].addr + offs); in asd_read_dword()
112 struct asd_ha_addrspace *io_handle = &asd_ha->io_handle[0]; \
113 u32 map_offs = (reg - io_handle->ww##_base) + asd_mem_offs_##ww();\
121 struct asd_ha_addrspace *io_handle = &asd_ha->io_handle[0]; \
122 u32 map_offs = (reg - io_handle->ww##_base) + asd_mem_offs_##ww();\
174 asd_ha->io_handle[0].swb_base = base; in asd_move_swb()
179 struct asd_ha_addrspace *io_handle=&asd_ha->io_handle[0]; in __asd_write_reg_byte() local
181 if (io_handle->swa_base <= reg in __asd_write_reg_byte()
182 && reg < io_handle->swa_base + MBAR0_SWA_SIZE) in __asd_write_reg_byte()
184 else if (io_handle->swb_base <= reg in __asd_write_reg_byte()
185 && reg < io_handle->swb_base + MBAR0_SWB_SIZE) in __asd_write_reg_byte()
187 else if (io_handle->swc_base <= reg in __asd_write_reg_byte()
188 && reg < io_handle->swc_base + MBAR0_SWC_SIZE) in __asd_write_reg_byte()
200 struct asd_ha_addrspace *io_handle=&asd_ha->io_handle[0]; \
204 if (io_handle->swa_base <= reg \
205 && reg < io_handle->swa_base + MBAR0_SWA_SIZE) \
207 else if (io_handle->swb_base <= reg \
208 && reg < io_handle->swb_base + MBAR0_SWB_SIZE) \
210 else if (io_handle->swc_base <= reg \
211 && reg < io_handle->swc_base + MBAR0_SWC_SIZE) \
227 struct asd_ha_addrspace *io_handle=&asd_ha->io_handle[0]; in __asd_read_reg_byte() local
230 if (io_handle->swa_base <= reg in __asd_read_reg_byte()
231 && reg < io_handle->swa_base + MBAR0_SWA_SIZE) in __asd_read_reg_byte()
233 else if (io_handle->swb_base <= reg in __asd_read_reg_byte()
234 && reg < io_handle->swb_base + MBAR0_SWB_SIZE) in __asd_read_reg_byte()
236 else if (io_handle->swc_base <= reg in __asd_read_reg_byte()
237 && reg < io_handle->swc_base + MBAR0_SWC_SIZE) in __asd_read_reg_byte()
250 struct asd_ha_addrspace *io_handle=&asd_ha->io_handle[0]; \
255 if (io_handle->swa_base <= reg \
256 && reg < io_handle->swa_base + MBAR0_SWA_SIZE) \
258 else if (io_handle->swb_base <= reg \
259 && reg < io_handle->swb_base + MBAR0_SWB_SIZE) \
261 else if (io_handle->swc_base <= reg \
262 && reg < io_handle->swc_base + MBAR0_SWC_SIZE) \