Lines Matching refs:regs

74 static inline void bt431_select_reg(struct bt431_regs *regs, int ir)  in bt431_select_reg()  argument
80 volatile u16 *lo = &(regs->addr_lo); in bt431_select_reg()
81 volatile u16 *hi = &(regs->addr_hi); in bt431_select_reg()
90 static inline u8 bt431_read_reg_inc(struct bt431_regs *regs) in bt431_read_reg_inc() argument
96 volatile u16 *r = &(regs->addr_reg); in bt431_read_reg_inc()
102 static inline void bt431_write_reg_inc(struct bt431_regs *regs, u8 value) in bt431_write_reg_inc() argument
108 volatile u16 *r = &(regs->addr_reg); in bt431_write_reg_inc()
114 static inline u8 bt431_read_reg(struct bt431_regs *regs, int ir) in bt431_read_reg() argument
116 bt431_select_reg(regs, ir); in bt431_read_reg()
117 return bt431_read_reg_inc(regs); in bt431_read_reg()
120 static inline void bt431_write_reg(struct bt431_regs *regs, int ir, u8 value) in bt431_write_reg() argument
122 bt431_select_reg(regs, ir); in bt431_write_reg()
123 bt431_write_reg_inc(regs, value); in bt431_write_reg()
127 static inline u16 bt431_read_cmap_inc(struct bt431_regs *regs) in bt431_read_cmap_inc() argument
133 volatile u16 *r = &(regs->addr_cmap); in bt431_read_cmap_inc()
139 static inline void bt431_write_cmap_inc(struct bt431_regs *regs, u16 value) in bt431_write_cmap_inc() argument
145 volatile u16 *r = &(regs->addr_cmap); in bt431_write_cmap_inc()
151 static inline u16 bt431_read_cmap(struct bt431_regs *regs, int cr) in bt431_read_cmap() argument
153 bt431_select_reg(regs, cr); in bt431_read_cmap()
154 return bt431_read_cmap_inc(regs); in bt431_read_cmap()
157 static inline void bt431_write_cmap(struct bt431_regs *regs, int cr, u16 value) in bt431_write_cmap() argument
159 bt431_select_reg(regs, cr); in bt431_write_cmap()
160 bt431_write_cmap_inc(regs, value); in bt431_write_cmap()
163 static inline void bt431_enable_cursor(struct bt431_regs *regs) in bt431_enable_cursor() argument
165 bt431_write_reg(regs, BT431_REG_CMD, in bt431_enable_cursor()
170 static inline void bt431_erase_cursor(struct bt431_regs *regs) in bt431_erase_cursor() argument
172 bt431_write_reg(regs, BT431_REG_CMD, BT431_CMD_4_1_MUX); in bt431_erase_cursor()
175 static inline void bt431_position_cursor(struct bt431_regs *regs, u16 x, u16 y) in bt431_position_cursor() argument
193 bt431_select_reg(regs, BT431_REG_CXLO); in bt431_position_cursor()
194 bt431_write_reg_inc(regs, x & 0xff); /* BT431_REG_CXLO */ in bt431_position_cursor()
195 bt431_write_reg_inc(regs, (x >> 8) & 0x0f); /* BT431_REG_CXHI */ in bt431_position_cursor()
196 bt431_write_reg_inc(regs, y & 0xff); /* BT431_REG_CYLO */ in bt431_position_cursor()
197 bt431_write_reg_inc(regs, (y >> 8) & 0x0f); /* BT431_REG_CYHI */ in bt431_position_cursor()
200 static inline void bt431_set_font(struct bt431_regs *regs, u8 fgc, in bt431_set_font() argument
207 bt431_select_reg(regs, BT431_REG_CRAM_BASE); in bt431_set_font()
220 bt431_write_cmap_inc(regs, value); in bt431_set_font()
224 static inline void bt431_init_cursor(struct bt431_regs *regs) in bt431_init_cursor() argument
227 bt431_select_reg(regs, BT431_REG_WXLO); in bt431_init_cursor()
228 bt431_write_reg_inc(regs, 0x00); /* BT431_REG_WXLO */ in bt431_init_cursor()
229 bt431_write_reg_inc(regs, 0x00); /* BT431_REG_WXHI */ in bt431_init_cursor()
230 bt431_write_reg_inc(regs, 0x00); /* BT431_REG_WYLO */ in bt431_init_cursor()
231 bt431_write_reg_inc(regs, 0x00); /* BT431_REG_WYHI */ in bt431_init_cursor()
232 bt431_write_reg_inc(regs, 0x00); /* BT431_REG_WWLO */ in bt431_init_cursor()
233 bt431_write_reg_inc(regs, 0x00); /* BT431_REG_WWHI */ in bt431_init_cursor()
234 bt431_write_reg_inc(regs, 0x00); /* BT431_REG_WHLO */ in bt431_init_cursor()
235 bt431_write_reg_inc(regs, 0x00); /* BT431_REG_WHHI */ in bt431_init_cursor()