Lines Matching refs:wrptr

150 static char *dlfb_set_base16bpp(char *wrptr, u32 base)  in dlfb_set_base16bpp()  argument
153 wrptr = dlfb_set_register(wrptr, 0x20, base >> 16); in dlfb_set_base16bpp()
154 wrptr = dlfb_set_register(wrptr, 0x21, base >> 8); in dlfb_set_base16bpp()
155 return dlfb_set_register(wrptr, 0x22, base); in dlfb_set_base16bpp()
162 static char *dlfb_set_base8bpp(char *wrptr, u32 base) in dlfb_set_base8bpp() argument
164 wrptr = dlfb_set_register(wrptr, 0x26, base >> 16); in dlfb_set_base8bpp()
165 wrptr = dlfb_set_register(wrptr, 0x27, base >> 8); in dlfb_set_base8bpp()
166 return dlfb_set_register(wrptr, 0x28, base); in dlfb_set_base8bpp()
169 static char *dlfb_set_register_16(char *wrptr, u8 reg, u16 value) in dlfb_set_register_16() argument
171 wrptr = dlfb_set_register(wrptr, reg, value >> 8); in dlfb_set_register_16()
172 return dlfb_set_register(wrptr, reg+1, value); in dlfb_set_register_16()
179 static char *dlfb_set_register_16be(char *wrptr, u8 reg, u16 value) in dlfb_set_register_16be() argument
181 wrptr = dlfb_set_register(wrptr, reg, value); in dlfb_set_register_16be()
182 return dlfb_set_register(wrptr, reg+1, value >> 8); in dlfb_set_register_16be()
211 static char *dlfb_set_register_lfsr16(char *wrptr, u8 reg, u16 value) in dlfb_set_register_lfsr16() argument
213 return dlfb_set_register_16(wrptr, reg, dlfb_lfsr16(value)); in dlfb_set_register_lfsr16()
220 static char *dlfb_set_vid_cmds(char *wrptr, struct fb_var_screeninfo *var) in dlfb_set_vid_cmds() argument
228 wrptr = dlfb_set_register_lfsr16(wrptr, 0x01, xds); in dlfb_set_vid_cmds()
231 wrptr = dlfb_set_register_lfsr16(wrptr, 0x03, xde); in dlfb_set_vid_cmds()
235 wrptr = dlfb_set_register_lfsr16(wrptr, 0x05, yds); in dlfb_set_vid_cmds()
238 wrptr = dlfb_set_register_lfsr16(wrptr, 0x07, yde); in dlfb_set_vid_cmds()
241 wrptr = dlfb_set_register_lfsr16(wrptr, 0x09, in dlfb_set_vid_cmds()
245 wrptr = dlfb_set_register_lfsr16(wrptr, 0x0B, 1); in dlfb_set_vid_cmds()
248 wrptr = dlfb_set_register_lfsr16(wrptr, 0x0D, var->hsync_len + 1); in dlfb_set_vid_cmds()
251 wrptr = dlfb_set_register_16(wrptr, 0x0F, var->xres); in dlfb_set_vid_cmds()
256 wrptr = dlfb_set_register_lfsr16(wrptr, 0x11, yec); in dlfb_set_vid_cmds()
259 wrptr = dlfb_set_register_lfsr16(wrptr, 0x13, 0); in dlfb_set_vid_cmds()
262 wrptr = dlfb_set_register_lfsr16(wrptr, 0x15, var->vsync_len); in dlfb_set_vid_cmds()
265 wrptr = dlfb_set_register_16(wrptr, 0x17, var->yres); in dlfb_set_vid_cmds()
268 wrptr = dlfb_set_register_16be(wrptr, 0x1B, in dlfb_set_vid_cmds()
271 return wrptr; in dlfb_set_vid_cmds()
283 char *wrptr; in dlfb_set_video_mode() local
302 wrptr = dlfb_vidreg_lock(buf); in dlfb_set_video_mode()
303 wrptr = dlfb_set_color_depth(wrptr, 0x00); in dlfb_set_video_mode()
305 wrptr = dlfb_set_base16bpp(wrptr, 0); in dlfb_set_video_mode()
307 wrptr = dlfb_set_base8bpp(wrptr, dlfb->info->fix.smem_len); in dlfb_set_video_mode()
309 wrptr = dlfb_set_vid_cmds(wrptr, var); in dlfb_set_video_mode()
310 wrptr = dlfb_blanking(wrptr, FB_BLANK_UNBLANK); in dlfb_set_video_mode()
311 wrptr = dlfb_vidreg_unlock(wrptr); in dlfb_set_video_mode()
313 writesize = wrptr - buf; in dlfb_set_video_mode()