Lines Matching refs:regs
26 static inline void bt455_select_reg(struct bt455_regs *regs, int ir) in bt455_select_reg() argument
29 regs->addr_cmap = ir & 0x0f; in bt455_select_reg()
35 static inline void bt455_read_cmap_entry(struct bt455_regs *regs, int cr, in bt455_read_cmap_entry() argument
38 bt455_select_reg(regs, cr); in bt455_read_cmap_entry()
40 *red = regs->addr_cmap_data & 0x0f; in bt455_read_cmap_entry()
42 *green = regs->addr_cmap_data & 0x0f; in bt455_read_cmap_entry()
44 *blue = regs->addr_cmap_data & 0x0f; in bt455_read_cmap_entry()
47 static inline void bt455_write_cmap_entry(struct bt455_regs *regs, int cr, in bt455_write_cmap_entry() argument
50 bt455_select_reg(regs, cr); in bt455_write_cmap_entry()
52 regs->addr_cmap_data = red & 0x0f; in bt455_write_cmap_entry()
54 regs->addr_cmap_data = green & 0x0f; in bt455_write_cmap_entry()
56 regs->addr_cmap_data = blue & 0x0f; in bt455_write_cmap_entry()
59 static inline void bt455_write_ovly_entry(struct bt455_regs *regs, int cr, in bt455_write_ovly_entry() argument
62 bt455_select_reg(regs, cr); in bt455_write_ovly_entry()
64 regs->addr_ovly = red & 0x0f; in bt455_write_ovly_entry()
66 regs->addr_ovly = green & 0x0f; in bt455_write_ovly_entry()
68 regs->addr_ovly = blue & 0x0f; in bt455_write_ovly_entry()
71 static inline void bt455_set_cursor(struct bt455_regs *regs) in bt455_set_cursor() argument
74 regs->addr_ovly = 0x0f; in bt455_set_cursor()
76 regs->addr_ovly = 0x0f; in bt455_set_cursor()
78 regs->addr_ovly = 0x0f; in bt455_set_cursor()
81 static inline void bt455_erase_cursor(struct bt455_regs *regs) in bt455_erase_cursor() argument
85 bt455_write_ovly_entry(regs, 8, 0x03, 0x03, 0x03); in bt455_erase_cursor()
86 bt455_write_ovly_entry(regs, 9, 0x07, 0x07, 0x07); in bt455_erase_cursor()
89 regs->addr_ovly = 0x09; in bt455_erase_cursor()
91 regs->addr_ovly = 0x09; in bt455_erase_cursor()
93 regs->addr_ovly = 0x09; in bt455_erase_cursor()