Lines Matching full:off
26 static u8 Read##name##_IO(void *p, u8 off) { \
28 return inb(hw->ap.port + off); \
30 static void Write##name##_IO(void *p, u8 off, u8 val) { \
32 outb(val, hw->ap.port + off); \
34 static void ReadFiFo##name##_IO(void *p, u8 off, u8 *dp, int size) { \
36 insb(hw->ap.port + off, dp, size); \
38 static void WriteFiFo##name##_IO(void *p, u8 off, u8 *dp, int size) { \
40 outsb(hw->ap.port + off, dp, size); \
44 static u8 Read##name##_IND(void *p, u8 off) { \
46 outb(off, hw->ap.ale); \
49 static void Write##name##_IND(void *p, u8 off, u8 val) { \
51 outb(off, hw->ap.ale); \
54 static void ReadFiFo##name##_IND(void *p, u8 off, u8 *dp, int size) { \
56 outb(off, hw->ap.ale); \
59 static void WriteFiFo##name##_IND(void *p, u8 off, u8 *dp, int size) { \
61 outb(off, hw->ap.ale); \
66 static u8 Read##name##_MIO(void *p, u8 off) { \
68 return readb(((typ *)hw->adr) + off); \
70 static void Write##name##_MIO(void *p, u8 off, u8 val) { \
72 writeb(val, ((typ *)hw->adr) + off); \
74 static void ReadFiFo##name##_MIO(void *p, u8 off, u8 *dp, int size) { \
77 *dp++ = readb(((typ *)hw->adr) + off); \
79 static void WriteFiFo##name##_MIO(void *p, u8 off, u8 *dp, int size) { \
82 writeb(*dp++, ((typ *)hw->adr) + off); \