Lines Matching refs:base_addr
444 static inline u8 tlan_dio_read8(u16 base_addr, u16 internal_addr) in tlan_dio_read8() argument
446 outw(internal_addr, base_addr + TLAN_DIO_ADR); in tlan_dio_read8()
447 return inb((base_addr + TLAN_DIO_DATA) + (internal_addr & 0x3)); in tlan_dio_read8()
454 static inline u16 tlan_dio_read16(u16 base_addr, u16 internal_addr) in tlan_dio_read16() argument
456 outw(internal_addr, base_addr + TLAN_DIO_ADR); in tlan_dio_read16()
457 return inw((base_addr + TLAN_DIO_DATA) + (internal_addr & 0x2)); in tlan_dio_read16()
464 static inline u32 tlan_dio_read32(u16 base_addr, u16 internal_addr) in tlan_dio_read32() argument
466 outw(internal_addr, base_addr + TLAN_DIO_ADR); in tlan_dio_read32()
467 return inl(base_addr + TLAN_DIO_DATA); in tlan_dio_read32()
474 static inline void tlan_dio_write8(u16 base_addr, u16 internal_addr, u8 data) in tlan_dio_write8() argument
476 outw(internal_addr, base_addr + TLAN_DIO_ADR); in tlan_dio_write8()
477 outb(data, base_addr + TLAN_DIO_DATA + (internal_addr & 0x3)); in tlan_dio_write8()
484 static inline void tlan_dio_write16(u16 base_addr, u16 internal_addr, u16 data) in tlan_dio_write16() argument
486 outw(internal_addr, base_addr + TLAN_DIO_ADR); in tlan_dio_write16()
487 outw(data, base_addr + TLAN_DIO_DATA + (internal_addr & 0x2)); in tlan_dio_write16()
494 static inline void tlan_dio_write32(u16 base_addr, u16 internal_addr, u32 data) in tlan_dio_write32() argument
496 outw(internal_addr, base_addr + TLAN_DIO_ADR); in tlan_dio_write32()
497 outl(data, base_addr + TLAN_DIO_DATA + (internal_addr & 0x2)); in tlan_dio_write32()