Lines Matching refs:lx_krn
184 struct leo_lx_krn __iomem *lx_krn; member
198 static void leo_wait(struct leo_lx_krn __iomem *lx_krn) in leo_wait() argument
203 (sbus_readl(&lx_krn->krn_csr) & LEO_KRN_CSR_PROGRESS) && in leo_wait()
278 struct leo_lx_krn __iomem *lx_krn = par->lx_krn; in leo_setcolreg() local
294 leo_wait(lx_krn); in leo_setcolreg()
296 sbus_writel(LEO_KRN_TYPE_CLUTDATA, &lx_krn->krn_type); in leo_setcolreg()
298 sbus_writel(par->clut_data[i], &lx_krn->krn_value); in leo_setcolreg()
299 sbus_writel(LEO_KRN_TYPE_CLUT0, &lx_krn->krn_type); in leo_setcolreg()
301 val = sbus_readl(&lx_krn->krn_csr); in leo_setcolreg()
303 sbus_writel(val, &lx_krn->krn_csr); in leo_setcolreg()
318 struct leo_lx_krn __iomem *lx_krn = par->lx_krn; in leo_blank() local
326 val = sbus_readl(&lx_krn->krn_csr); in leo_blank()
328 sbus_writel(val, &lx_krn->krn_csr); in leo_blank()
336 val = sbus_readl(&lx_krn->krn_csr); in leo_blank()
338 sbus_writel(val, &lx_krn->krn_csr); in leo_blank()
452 struct leo_lx_krn __iomem *lx_krn = par->lx_krn; in leo_wid_put() local
460 leo_wait(lx_krn); in leo_wid_put()
475 sbus_writel(0x5800 + j, &lx_krn->krn_type); in leo_wid_put()
476 sbus_writel(wi->wi_values[0], &lx_krn->krn_value); in leo_wid_put()
478 sbus_writel(LEO_KRN_TYPE_WID, &lx_krn->krn_type); in leo_wid_put()
480 val = sbus_readl(&lx_krn->krn_csr); in leo_wid_put()
482 sbus_writel(val, &lx_krn->krn_csr); in leo_wid_put()
543 if (par->lx_krn) in leo_unmap_regs()
544 of_iounmap(&op->resource[0], par->lx_krn, 0x1000); in leo_unmap_regs()
587 par->lx_krn = in leo_probe()
599 !par->lx_krn || in leo_probe()