Lines Matching refs:cafe_readl
101 #define cafe_readl(cafe, addr) readl((cafe)->mmio + CAFE_##addr)
107 int result = !!(cafe_readl(cafe, NAND_STATUS) | 0x40000000);
108 uint32_t irqs = cafe_readl(cafe, NAND_IRQ);
113 result?"":" not", irqs, cafe_readl(cafe, NAND_IRQ),
114 cafe_readl(cafe, GLOBAL_IRQ), cafe_readl(cafe, GLOBAL_IRQ_MASK));
246 cafe->datalen, ctl1, cafe_readl(cafe, NAND_CTRL2));
282 irqs = cafe_readl(cafe, NAND_IRQ);
292 command, 500000-c, irqs, cafe_readl(cafe, NAND_IRQ));
338 uint32_t irqs = cafe_readl(cafe, NAND_IRQ);
343 cafe_dev_dbg(&cafe->pdev->dev, "irq, bits %x (%x)\n", irqs, cafe_readl(cafe, NAND_IRQ));
388 cafe_readl(cafe, NAND_ECC_RESULT),
389 cafe_readl(cafe, NAND_ECC_SYN01));
394 if (checkecc && cafe_readl(cafe, NAND_ECC_RESULT) & (1<<18)) {
401 uint32_t tmp = cafe_readl(cafe, NAND_ECC_SYN01 + (i*2));
445 cafe_readl(cafe, NAND_ADDR2) * 2048);
706 timing[0] = cafe_readl(cafe, NAND_TIMING1);
707 timing[1] = cafe_readl(cafe, NAND_TIMING2);
708 timing[2] = cafe_readl(cafe, NAND_TIMING3);
736 ctrl = cafe_readl(cafe, GLOBAL_CTRL);
755 cafe_readl(cafe, NAND_DMA_ADDR0), cafe->dmabuf);
760 cafe_readl(cafe, GLOBAL_CTRL), cafe_readl(cafe, GLOBAL_IRQ_MASK));
822 cafe_writel(cafe, ~1 & cafe_readl(cafe, GLOBAL_IRQ_MASK), GLOBAL_IRQ_MASK);
841 cafe_writel(cafe, ~1 & cafe_readl(cafe, GLOBAL_IRQ_MASK), GLOBAL_IRQ_MASK);
875 ctrl = cafe_readl(cafe, GLOBAL_CTRL);