Lines Matching refs:par

102 static void auok1901_init(struct auok190xfb_par *par)  in auok1901_init()  argument
104 struct device *dev = par->info->device; in auok1901_init()
105 struct auok190x_board *board = par->board; in auok1901_init()
112 init_param |= AUOK1901_INIT_RESOLUTION(par->resolution); in auok1901_init()
115 auok190x_send_cmdargs(par, AUOK190X_CMD_INIT, 1, &init_param); in auok1901_init()
118 board->wait_for_rdy(par); in auok1901_init()
124 static void auok1901_update_region(struct auok190xfb_par *par, int mode, in auok1901_update_region() argument
127 struct device *dev = par->info->device; in auok1901_update_region()
128 unsigned char *buf = (unsigned char *)par->info->screen_base; in auok1901_update_region()
129 int xres = par->info->var.xres; in auok1901_update_region()
130 int line_length = par->info->fix.line_length; in auok1901_update_region()
135 mutex_lock(&(par->io_lock)); in auok1901_update_region()
145 args[0] = AUOK1901_DMA_ROTATE90(par->rotation) | 1; in auok1901_update_region()
150 auok190x_send_cmdargs_pixels_nowait(par, AUOK1901_CMD_DMA_START, 4, in auok1901_update_region()
153 auok190x_send_command_nowait(par, AUOK190X_CMD_DATA_STOP); in auok1901_update_region()
156 args[0] = mode | AUOK1901_DDMA_ROTATE180(par->rotation); in auok1901_update_region()
161 auok190x_send_cmdargs_nowait(par, AUOK1901_CMD_DDMA_START, 5, args); in auok1901_update_region()
163 par->update_cnt++; in auok1901_update_region()
165 mutex_unlock(&(par->io_lock)); in auok1901_update_region()
171 static void auok1901fb_dpy_update_pages(struct auok190xfb_par *par, in auok1901fb_dpy_update_pages() argument
176 if (par->update_mode < 0) { in auok1901fb_dpy_update_pages()
178 par->last_mode = -1; in auok1901fb_dpy_update_pages()
180 mode = AUOK190X_UPDATE_MODE(par->update_mode); in auok1901fb_dpy_update_pages()
181 par->last_mode = par->update_mode; in auok1901fb_dpy_update_pages()
184 if (par->flash) in auok1901fb_dpy_update_pages()
187 auok1901_update_region(par, mode, y1, y2); in auok1901fb_dpy_update_pages()
190 static void auok1901fb_dpy_update(struct auok190xfb_par *par) in auok1901fb_dpy_update() argument
197 par->board->wait_for_rdy(par); in auok1901fb_dpy_update()
199 if (par->update_mode < 0) { in auok1901fb_dpy_update()
201 par->last_mode = -1; in auok1901fb_dpy_update()
203 mode = AUOK190X_UPDATE_MODE(par->update_mode); in auok1901fb_dpy_update()
204 par->last_mode = par->update_mode; in auok1901fb_dpy_update()
207 if (par->flash) in auok1901fb_dpy_update()
210 auok1901_update_region(par, mode, 0, par->info->var.yres); in auok1901fb_dpy_update()
211 par->update_cnt = 0; in auok1901fb_dpy_update()
214 static bool auok1901fb_need_refresh(struct auok190xfb_par *par) in auok1901fb_need_refresh() argument
216 return (par->update_cnt > 10); in auok1901fb_need_refresh()