Lines Matching refs:lx_krn
400 static int leo_wait (struct leo_lx_krn *lx_krn) in leo_wait() argument
404 for (i = 0; (sbus_readl(&lx_krn->krn_csr) & LEO_KRN_CSR_PROGRESS) && i < 300000; i++) in leo_wait()
413 struct leo_lx_krn *lx_krn = fb->s.leo.lx_krn; in leo_loadcmap() local
419 sbus_writel(LEO_KRN_TYPE_CLUT0, &lx_krn->krn_type); in leo_loadcmap()
420 i = leo_wait (lx_krn); in leo_loadcmap()
423 sbus_writel(LEO_KRN_TYPE_CLUTDATA, &lx_krn->krn_type); in leo_loadcmap()
431 sbus_writel(val, &lx_krn->krn_value); /* Throw colors there :)) */ in leo_loadcmap()
433 sbus_writel(LEO_KRN_TYPE_CLUT0, &lx_krn->krn_type); in leo_loadcmap()
434 tmp = sbus_readl(&lx_krn->krn_csr); in leo_loadcmap()
436 sbus_writel(tmp, &lx_krn->krn_csr); in leo_loadcmap()
544 sbus_writel(LEO_KRN_TYPE_VIDEO, &fb->s.leo.lx_krn->krn_type); in leo_blank()
546 tmp = sbus_readl(&fb->s.leo.lx_krn->krn_csr); in leo_blank()
548 sbus_writel(tmp, &fb->s.leo.lx_krn->krn_csr); in leo_blank()
558 sbus_writel(LEO_KRN_TYPE_VIDEO, &fb->s.leo.lx_krn->krn_type); in leo_unblank()
560 tmp = sbus_readl(&fb->s.leo.lx_krn->krn_csr); in leo_unblank()
563 sbus_writel(tmp, &fb->s.leo.lx_krn->krn_csr); in leo_unblank()
571 struct leo_lx_krn *lx_krn = fb->s.leo.lx_krn; in leo_wid_put() local
575 sbus_writel(LEO_KRN_TYPE_WID, &lx_krn->krn_type); in leo_wid_put()
576 i = leo_wait (lx_krn); in leo_wid_put()
585 sbus_writel(0x5800 + j, &lx_krn->krn_type); in leo_wid_put()
586 sbus_writel(wi->wi_values[0], &lx_krn->krn_value); in leo_wid_put()
588 sbus_writel(LEO_KRN_TYPE_WID, &lx_krn->krn_type); in leo_wid_put()
589 sbus_writel(3, &lx_krn->krn_csr); in leo_wid_put()
692 fb->s.leo.lx_krn = (struct leo_lx_krn *) in leofb_init()