Lines Matching defs:par
213 struct tmiofb_par *par = info->par;
214 unsigned int bbisc = tmio_ioread16(par->lcr + LCR_BBISC);
217 tmio_iowrite16(bbisc, par->lcr + LCR_BBISC);
224 if (unlikely(par->use_polling && irq != -1)) {
226 par->use_polling = false;
230 wake_up(&par->wait_acc);
247 struct tmiofb_par *par = info->par;
249 tmio_iowrite16(0, par->ccr + CCR_UGCC);
250 tmio_iowrite16(0, par->lcr + LCR_GM);
252 tmio_iowrite16(0x0010, par->lcr + LCR_LCDCCRC);
264 struct tmiofb_par *par = info->par;
274 tmio_iowrite16(0x003a, par->ccr + CCR_UGCC);
275 tmio_iowrite16(0x003a, par->ccr + CCR_GCC);
276 tmio_iowrite16(0x3f00, par->ccr + CCR_USC);
280 tmio_iowrite16(0x0000, par->ccr + CCR_USC);
281 tmio_iowrite16(base >> 16, par->ccr + CCR_BASEH);
282 tmio_iowrite16(base, par->ccr + CCR_BASEL);
283 tmio_iowrite16(0x0002, par->ccr + CCR_CMD); /* base address enable */
284 tmio_iowrite16(0x40a8, par->ccr + CCR_VRAMRTC); /* VRAMRC, VRAMTC */
285 tmio_iowrite16(0x0018, par->ccr + CCR_VRAMSAC); /* VRAMSTS, VRAMAC */
286 tmio_iowrite16(0x0002, par->ccr + CCR_VRAMBC);
288 tmio_iowrite16(0x000b, par->ccr + CCR_VRAMBC);
291 tmio_iowrite16(base >> 16, par->lcr + LCR_CFSAH);
292 tmio_iowrite16(base, par->lcr + LCR_CFSAL);
293 tmio_iowrite16(TMIOFB_FIFO_SIZE - 1, par->lcr + LCR_CFS);
294 tmio_iowrite16(1, par->lcr + LCR_CFC);
295 tmio_iowrite16(1, par->lcr + LCR_BBIE);
296 tmio_iowrite16(0, par->lcr + LCR_CFWS);
309 struct tmiofb_par *par = info->par;
312 tmio_iowrite16(0, par->lcr + LCR_GM);
314 tmio_iowrite16(0x0010, par->lcr + LCR_LCDCCRC);
318 tmio_iowrite16(info->fix.line_length, par->lcr + LCR_VHPN);
319 tmio_iowrite16(0, par->lcr + LCR_GDSAH);
320 tmio_iowrite16(0, par->lcr + LCR_GDSAL);
321 tmio_iowrite16(info->fix.line_length >> 16, par->lcr + LCR_VHPCH);
322 tmio_iowrite16(info->fix.line_length, par->lcr + LCR_VHPCL);
323 tmio_iowrite16(i = 0, par->lcr + LCR_HSS);
324 tmio_iowrite16(i += mode->hsync_len, par->lcr + LCR_HSE);
325 tmio_iowrite16(i += mode->left_margin, par->lcr + LCR_HDS);
326 tmio_iowrite16(i += mode->xres + mode->right_margin, par->lcr + LCR_HT);
327 tmio_iowrite16(mode->xres, par->lcr + LCR_HNP);
328 tmio_iowrite16(i = 0, par->lcr + LCR_VSS);
329 tmio_iowrite16(i += mode->vsync_len, par->lcr + LCR_VSE);
330 tmio_iowrite16(i += mode->upper_margin, par->lcr + LCR_VDS);
331 tmio_iowrite16(i += mode->yres, par->lcr + LCR_ILN);
332 tmio_iowrite16(i += mode->lower_margin, par->lcr + LCR_VT);
333 tmio_iowrite16(3, par->lcr + LCR_MISC); /* RGB565 mode */
334 tmio_iowrite16(1, par->lcr + LCR_GM); /* VRAM enable */
335 tmio_iowrite16(0x4007, par->lcr + LCR_LCDCC);
336 tmio_iowrite16(3, par->lcr + LCR_SP); /* sync polarity */
338 tmio_iowrite16(0x0010, par->lcr + LCR_LCDCCRC);
340 tmio_iowrite16(0x0014, par->lcr + LCR_LCDCCRC); /* STOP_CKP */
342 tmio_iowrite16(0x0015, par->lcr + LCR_LCDCCRC); /* STOP_CKP|SOFT_RESET*/
343 tmio_iowrite16(0xfffa, par->lcr + LCR_VCS);
352 struct tmiofb_par *par = info->par;
358 if (irqs_disabled() || par->use_polling) {
360 while (tmio_ioread16(par->lcr + LCR_CCS) > ccs) {
371 if (!wait_event_interruptible_timeout(par->wait_acc,
372 tmio_ioread16(par->lcr + LCR_CCS) <= ccs,
388 struct tmiofb_par *par = info->par;
396 tmio_iowrite16(*cmd >> 16, par->lcr + LCR_CMDH);
397 tmio_iowrite16(*cmd, par->lcr + LCR_CMDL);
409 struct tmiofb_par *par = fbi->par;
416 while (tmio_ioread16(par->lcr + LCR_BBES) & 2) { /* blit active */
485 struct tmiofb_par *par = fbi->par;
487 unsigned int vcount = tmio_ioread16(par->lcr + LCR_CDLN);
627 struct tmiofb_par *par = info->par;
629 if (regno < ARRAY_SIZE(par->pseudo_palette)) {
630 par->pseudo_palette[regno] =
679 struct tmiofb_par *par;
699 par = info->par;
702 init_waitqueue_head(&par->wait_acc);
704 par->use_polling = true;
723 info->pseudo_palette = par->pseudo_palette;
725 par->ccr = ioremap(ccr->start, resource_size(ccr));
726 if (!par->ccr) {
731 par->lcr = ioremap(info->fix.mmio_start, info->fix.mmio_len);
732 if (!par->lcr) {
792 iounmap(par->lcr);
794 iounmap(par->ccr);
805 struct tmiofb_par *par;
808 par = info->par;
819 iounmap(par->lcr);
820 iounmap(par->ccr);
832 struct tmiofb_par *par = info->par;
836 tmio_ioread16(par->ccr + CCR_ ## n));
851 tmio_ioread16(par->lcr + LCR_ ## n));
928 struct tmiofb_par *par = info->par;
947 par->use_polling = true;