Lines Matching refs:bt
119 struct bt_regs *bt = fb->s.tcx.bt; in tcx_loadcmap() local
124 sbus_writel(index << 24, &bt->addr); in tcx_loadcmap()
126 sbus_writel(fb->color_map CM(i,0) << 24, &bt->color_map); in tcx_loadcmap()
127 sbus_writel(fb->color_map CM(i,1) << 24, &bt->color_map); in tcx_loadcmap()
128 sbus_writel(fb->color_map CM(i,2) << 24, &bt->color_map); in tcx_loadcmap()
130 sbus_writel(0, &bt->addr); in tcx_loadcmap()
136 struct bt_regs *bt = fb->s.tcx.bt; in tcx_restore_palette() local
140 sbus_writel(0, &bt->addr); in tcx_restore_palette()
141 sbus_writel(0xffffffff, &bt->color_map); in tcx_restore_palette()
142 sbus_writel(0xffffffff, &bt->color_map); in tcx_restore_palette()
143 sbus_writel(0xffffffff, &bt->color_map); in tcx_restore_palette()
149 struct bt_regs *bt = fb->s.tcx.bt; in tcx_setcursormap() local
155 sbus_writel(2 << 24, &bt->addr); in tcx_setcursormap()
156 sbus_writel(red[0] << 24, &bt->cursor); in tcx_setcursormap()
157 sbus_writel(green[0] << 24, &bt->cursor); in tcx_setcursormap()
158 sbus_writel(blue[0] << 24, &bt->cursor); in tcx_setcursormap()
159 sbus_writel(3 << 24, &bt->addr); in tcx_setcursormap()
160 sbus_writel(red[1] << 24, &bt->cursor); in tcx_setcursormap()
161 sbus_writel(green[1] << 24, &bt->cursor); in tcx_setcursormap()
162 sbus_writel(blue[1] << 24, &bt->cursor); in tcx_setcursormap()
163 sbus_writel(0, &bt->addr); in tcx_setcursormap()
245 sbus_writel(0x06 << 24, &fb->s.tcx.bt->addr); in tcx_reset()
246 tmp = sbus_readl(&fb->s.tcx.bt->control); in tcx_reset()
248 sbus_writel(tmp, &fb->s.tcx.bt->control); in tcx_reset()
297 fb->s.tcx.bt = (struct bt_regs *) in tcxfb_init()
344 sbus_writel(0x04 << 24, &fb->s.tcx.bt->addr); /* color planes */ in tcxfb_init()
345 sbus_writel(0xff << 24, &fb->s.tcx.bt->control); in tcxfb_init()
346 sbus_writel(0x05 << 24, &fb->s.tcx.bt->addr); in tcxfb_init()
347 sbus_writel(0x00 << 24, &fb->s.tcx.bt->control); in tcxfb_init()
348 sbus_writel(0x06 << 24, &fb->s.tcx.bt->addr); /* overlay plane */ in tcxfb_init()
349 sbus_writel(0x73 << 24, &fb->s.tcx.bt->control); in tcxfb_init()
350 sbus_writel(0x07 << 24, &fb->s.tcx.bt->addr); in tcxfb_init()
351 sbus_writel(0x00 << 24, &fb->s.tcx.bt->control); in tcxfb_init()