• Home
  • Raw
  • Download

Lines Matching refs:regs

76 static inline void bt431_select_reg(struct bt431_regs *regs, int ir)  in bt431_select_reg()  argument
82 volatile u16 *lo = &(regs->addr_lo); in bt431_select_reg()
83 volatile u16 *hi = &(regs->addr_hi); in bt431_select_reg()
92 static inline u8 bt431_read_reg_inc(struct bt431_regs *regs) in bt431_read_reg_inc() argument
98 volatile u16 *r = &(regs->addr_reg); in bt431_read_reg_inc()
104 static inline void bt431_write_reg_inc(struct bt431_regs *regs, u8 value) in bt431_write_reg_inc() argument
110 volatile u16 *r = &(regs->addr_reg); in bt431_write_reg_inc()
116 static inline u8 bt431_read_reg(struct bt431_regs *regs, int ir) in bt431_read_reg() argument
118 bt431_select_reg(regs, ir); in bt431_read_reg()
119 return bt431_read_reg_inc(regs); in bt431_read_reg()
122 static inline void bt431_write_reg(struct bt431_regs *regs, int ir, u8 value) in bt431_write_reg() argument
124 bt431_select_reg(regs, ir); in bt431_write_reg()
125 bt431_write_reg_inc(regs, value); in bt431_write_reg()
129 static inline u16 bt431_read_cmap_inc(struct bt431_regs *regs) in bt431_read_cmap_inc() argument
135 volatile u16 *r = &(regs->addr_cmap); in bt431_read_cmap_inc()
141 static inline void bt431_write_cmap_inc(struct bt431_regs *regs, u16 value) in bt431_write_cmap_inc() argument
147 volatile u16 *r = &(regs->addr_cmap); in bt431_write_cmap_inc()
153 static inline u16 bt431_read_cmap(struct bt431_regs *regs, int cr) in bt431_read_cmap() argument
155 bt431_select_reg(regs, cr); in bt431_read_cmap()
156 return bt431_read_cmap_inc(regs); in bt431_read_cmap()
159 static inline void bt431_write_cmap(struct bt431_regs *regs, int cr, u16 value) in bt431_write_cmap() argument
161 bt431_select_reg(regs, cr); in bt431_write_cmap()
162 bt431_write_cmap_inc(regs, value); in bt431_write_cmap()
165 static inline void bt431_enable_cursor(struct bt431_regs *regs) in bt431_enable_cursor() argument
167 bt431_write_reg(regs, BT431_REG_CMD, in bt431_enable_cursor()
172 static inline void bt431_erase_cursor(struct bt431_regs *regs) in bt431_erase_cursor() argument
174 bt431_write_reg(regs, BT431_REG_CMD, BT431_CMD_4_1_MUX); in bt431_erase_cursor()
177 static inline void bt431_position_cursor(struct bt431_regs *regs, u16 x, u16 y) in bt431_position_cursor() argument
195 bt431_select_reg(regs, BT431_REG_CXLO); in bt431_position_cursor()
196 bt431_write_reg_inc(regs, x & 0xff); /* BT431_REG_CXLO */ in bt431_position_cursor()
197 bt431_write_reg_inc(regs, (x >> 8) & 0x0f); /* BT431_REG_CXHI */ in bt431_position_cursor()
198 bt431_write_reg_inc(regs, y & 0xff); /* BT431_REG_CYLO */ in bt431_position_cursor()
199 bt431_write_reg_inc(regs, (y >> 8) & 0x0f); /* BT431_REG_CYHI */ in bt431_position_cursor()
202 static inline void bt431_set_cursor(struct bt431_regs *regs, in bt431_set_cursor() argument
211 bt431_select_reg(regs, BT431_REG_CRAM_BASE); in bt431_set_cursor()
224 bt431_write_cmap_inc(regs, val); in bt431_set_cursor()
228 static inline void bt431_init_cursor(struct bt431_regs *regs) in bt431_init_cursor() argument
231 bt431_select_reg(regs, BT431_REG_WXLO); in bt431_init_cursor()
232 bt431_write_reg_inc(regs, 0x00); /* BT431_REG_WXLO */ in bt431_init_cursor()
233 bt431_write_reg_inc(regs, 0x00); /* BT431_REG_WXHI */ in bt431_init_cursor()
234 bt431_write_reg_inc(regs, 0x00); /* BT431_REG_WYLO */ in bt431_init_cursor()
235 bt431_write_reg_inc(regs, 0x00); /* BT431_REG_WYHI */ in bt431_init_cursor()
236 bt431_write_reg_inc(regs, 0x00); /* BT431_REG_WWLO */ in bt431_init_cursor()
237 bt431_write_reg_inc(regs, 0x00); /* BT431_REG_WWHI */ in bt431_init_cursor()
238 bt431_write_reg_inc(regs, 0x00); /* BT431_REG_WHLO */ in bt431_init_cursor()
239 bt431_write_reg_inc(regs, 0x00); /* BT431_REG_WHHI */ in bt431_init_cursor()