Lines Matching refs:offs
18 unsigned long offs, u8 val) in asd_write_byte() argument
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()
29 unsigned long offs, u16 val) in asd_write_word() argument
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()
40 unsigned long offs, u32 val) in asd_write_dword() argument
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()
52 static u8 asd_read_byte(struct asd_ha_struct *asd_ha, unsigned long offs) in asd_read_byte() argument
57 + (offs & 0xFF)); in asd_read_byte()
59 val = readb(asd_ha->io_handle[0].addr + offs); in asd_read_byte()
65 unsigned long offs) in asd_read_word() argument
70 + (offs & 0xFF)); in asd_read_word()
72 val = readw(asd_ha->io_handle[0].addr + offs); in asd_read_word()
78 unsigned long offs) in asd_read_dword() argument
83 + (offs & 0xFF)); in asd_read_dword()
85 val = readl(asd_ha->io_handle[0].addr + offs); in asd_read_dword()
285 u32 offs, int count) in asd_read_reg_string() argument
291 for ( ; count > 0; count--, offs++, p++) in asd_read_reg_string()
292 *p = __asd_read_reg_byte(asd_ha, offs); in asd_read_reg_string()
304 u32 offs, int count) in asd_write_reg_string() argument
310 for ( ; count > 0; count--, offs++, p++) in asd_write_reg_string()
311 __asd_write_reg_byte(asd_ha, offs, *p); in asd_write_reg_string()