Lines Matching full:off

24 typedef uint32_t (*spi_dw_read_t)(uint8_t size, mm_reg_t addr, uint32_t off);
25 typedef void (*spi_dw_write_t)(uint8_t size, uint32_t data, mm_reg_t addr, uint32_t off);
26 typedef void (*spi_dw_set_bit_t)(uint8_t bit, mm_reg_t addr, uint32_t off);
27 typedef void (*spi_dw_clear_bit_t)(uint8_t bit, mm_reg_t addr, uint32_t off);
28 typedef int (*spi_dw_test_bit_t)(uint8_t bit, mm_reg_t addr, uint32_t off);
67 static uint32_t aux_reg_read(uint8_t size, mm_reg_t addr, uint32_t off) in aux_reg_read() argument
70 return sys_in32(addr + off/4); in aux_reg_read()
73 static void aux_reg_write(uint8_t size, uint32_t data, mm_reg_t addr, uint32_t off) in aux_reg_write() argument
76 sys_out32(data, addr + off/4); in aux_reg_write()
79 static void aux_reg_set_bit(uint8_t bit, mm_reg_t addr, uint32_t off) in aux_reg_set_bit() argument
81 sys_io_set_bit(addr + off/4, bit); in aux_reg_set_bit()
84 static void aux_reg_clear_bit(uint8_t bit, mm_reg_t addr, uint32_t off) in aux_reg_clear_bit() argument
86 sys_io_clear_bit(addr + off/4, bit); in aux_reg_clear_bit()
89 static int aux_reg_test_bit(uint8_t bit, mm_reg_t addr, uint32_t off) in aux_reg_test_bit() argument
91 return sys_io_test_bit(addr + off/4, bit); in aux_reg_test_bit()
96 static uint32_t reg_read(uint8_t size, mm_reg_t addr, uint32_t off) in reg_read() argument
100 return sys_read8(addr + off); in reg_read()
102 return sys_read16(addr + off); in reg_read()
104 return sys_read32(addr + off); in reg_read()
110 static void reg_write(uint8_t size, uint32_t data, mm_reg_t addr, uint32_t off) in reg_write() argument
114 sys_write8(data, addr + off); break; in reg_write()
116 sys_write16(data, addr + off); break; in reg_write()
118 sys_write32(data, addr + off); break; in reg_write()
124 static void reg_set_bit(uint8_t bit, mm_reg_t addr, uint32_t off) in reg_set_bit() argument
126 sys_set_bit(addr + off, bit); in reg_set_bit()
129 static void reg_clear_bit(uint8_t bit, mm_reg_t addr, uint32_t off) in reg_clear_bit() argument
131 sys_clear_bit(addr + off, bit); in reg_clear_bit()
134 static int reg_test_bit(uint8_t bit, mm_reg_t addr, uint32_t off) in reg_test_bit() argument
136 return sys_test_bit(addr + off, bit); in reg_test_bit()