Lines Matching refs:addr

23 static inline void io_write8(vaddr_t addr, uint8_t val)  in io_write8()  argument
25 *(volatile uint8_t *)addr = val; in io_write8()
28 static inline void io_write16(vaddr_t addr, uint16_t val) in io_write16() argument
30 *(volatile uint16_t *)addr = val; in io_write16()
33 static inline void io_write32(vaddr_t addr, uint32_t val) in io_write32() argument
35 *(volatile uint32_t *)addr = val; in io_write32()
38 static inline uint8_t io_read8(vaddr_t addr) in io_read8() argument
40 return *(volatile uint8_t *)addr; in io_read8()
43 static inline uint16_t io_read16(vaddr_t addr) in io_read16() argument
45 return *(volatile uint16_t *)addr; in io_read16()
48 static inline uint32_t io_read32(vaddr_t addr) in io_read32() argument
50 return *(volatile uint32_t *)addr; in io_read32()
53 static inline void io_mask8(vaddr_t addr, uint8_t val, uint8_t mask) in io_mask8() argument
55 io_write8(addr, (io_read8(addr) & ~mask) | (val & mask)); in io_mask8()
58 static inline void io_mask16(vaddr_t addr, uint16_t val, uint16_t mask) in io_mask16() argument
60 io_write16(addr, (io_read16(addr) & ~mask) | (val & mask)); in io_mask16()
63 static inline void io_mask32(vaddr_t addr, uint32_t val, uint32_t mask) in io_mask32() argument
65 io_write32(addr, (io_read32(addr) & ~mask) | (val & mask)); in io_mask32()
128 static inline void io_setbits32(vaddr_t addr, uint32_t set_mask) in io_setbits32() argument
130 io_write32(addr, io_read32(addr) | set_mask); in io_setbits32()
133 static inline void io_clrbits32(vaddr_t addr, uint32_t clear_mask) in io_clrbits32() argument
135 io_write32(addr, io_read32(addr) & ~clear_mask); in io_clrbits32()
138 static inline void io_clrsetbits32(vaddr_t addr, uint32_t clear_mask, in io_clrsetbits32() argument
141 io_write32(addr, (io_read32(addr) & ~clear_mask) | set_mask); in io_clrsetbits32()
144 static inline void io_setbits16(vaddr_t addr, uint16_t set_mask) in io_setbits16() argument
146 io_write16(addr, io_read16(addr) | set_mask); in io_setbits16()
149 static inline void io_clrbits16(vaddr_t addr, uint16_t clear_mask) in io_clrbits16() argument
151 io_write16(addr, io_read16(addr) & ~clear_mask); in io_clrbits16()
154 static inline void io_clrsetbits16(vaddr_t addr, uint16_t clear_mask, in io_clrsetbits16() argument
157 io_write16(addr, (io_read16(addr) & ~clear_mask) | set_mask); in io_clrsetbits16()
160 static inline void io_setbits8(vaddr_t addr, uint8_t set_mask) in io_setbits8() argument
162 io_write8(addr, io_read8(addr) | set_mask); in io_setbits8()
165 static inline void io_clrbits8(vaddr_t addr, uint8_t clear_mask) in io_clrbits8() argument
167 io_write8(addr, io_read8(addr) & ~clear_mask); in io_clrbits8()
170 static inline void io_clrsetbits8(vaddr_t addr, uint8_t clear_mask, in io_clrsetbits8() argument
173 io_write8(addr, (io_read8(addr) & ~clear_mask) | set_mask); in io_clrsetbits8()