Lines Matching refs:qmgr_regs

16 static struct qmgr_regs __iomem *qmgr_regs;  variable
36 __raw_writel(val, &qmgr_regs->acc[queue][0]); in qmgr_put_entry()
42 val = __raw_readl(&qmgr_regs->acc[queue][0]); in qmgr_get_entry()
54 return (__raw_readl(&qmgr_regs->stat1[queue >> 3]) in __qmgr_get_stat1()
61 return (__raw_readl(&qmgr_regs->stat2[queue >> 4]) in __qmgr_get_stat2()
86 return (__raw_readl(&qmgr_regs->statne_h) >> in qmgr_stat_below_low_watermark()
100 return (__raw_readl(&qmgr_regs->statf_h) >> in qmgr_stat_full()
126 reg = &qmgr_regs->irqsrc[queue >> 3]; /* 8 queues per u32 */ in qmgr_set_irq()
146 __raw_writel(0xFFFFFFFF, &qmgr_regs->irqstat[0]); in qmgr_irq1_a0()
148 en_bitmap = qmgr_regs->irqen[0]; in qmgr_irq1_a0()
152 src = qmgr_regs->irqsrc[i >> 3]; in qmgr_irq1_a0()
153 stat = qmgr_regs->stat1[i >> 3]; in qmgr_irq1_a0()
171 __raw_writel(0xFFFFFFFF, &qmgr_regs->irqstat[1]); in qmgr_irq2_a0()
173 req_bitmap = qmgr_regs->irqen[1] & qmgr_regs->statne_h; in qmgr_irq2_a0()
187 u32 req_bitmap = __raw_readl(&qmgr_regs->irqstat[half]); in qmgr_irq()
191 __raw_writel(req_bitmap, &qmgr_regs->irqstat[half]); /* ACK */ in qmgr_irq()
210 __raw_writel(__raw_readl(&qmgr_regs->irqen[half]) | mask, in qmgr_enable_irq()
211 &qmgr_regs->irqen[half]); in qmgr_enable_irq()
222 __raw_writel(__raw_readl(&qmgr_regs->irqen[half]) & ~mask, in qmgr_disable_irq()
223 &qmgr_regs->irqen[half]); in qmgr_disable_irq()
224 __raw_writel(mask, &qmgr_regs->irqstat[half]); /* clear */ in qmgr_disable_irq()
285 if (__raw_readl(&qmgr_regs->sram[queue])) { in qmgr_request_queue()
299 if (addr + len > ARRAY_SIZE(qmgr_regs->sram)) { in qmgr_request_queue()
311 __raw_writel(cfg | (addr << 14), &qmgr_regs->sram[queue]); in qmgr_request_queue()
334 cfg = __raw_readl(&qmgr_regs->sram[queue]); in qmgr_release_queue()
361 __raw_writel(0, &qmgr_regs->sram[queue]); in qmgr_release_queue()
384 qmgr_regs = devm_ioremap_resource(dev, res); in ixp4xx_qmgr_probe()
385 if (IS_ERR(qmgr_regs)) in ixp4xx_qmgr_probe()
386 return PTR_ERR(qmgr_regs); in ixp4xx_qmgr_probe()
399 __raw_writel(0x33333333, &qmgr_regs->stat1[i]); in ixp4xx_qmgr_probe()
400 __raw_writel(0, &qmgr_regs->irqsrc[i]); in ixp4xx_qmgr_probe()
403 __raw_writel(0, &qmgr_regs->stat2[i]); in ixp4xx_qmgr_probe()
404 __raw_writel(0xFFFFFFFF, &qmgr_regs->irqstat[i]); /* clear */ in ixp4xx_qmgr_probe()
405 __raw_writel(0, &qmgr_regs->irqen[i]); in ixp4xx_qmgr_probe()
408 __raw_writel(0xFFFFFFFF, &qmgr_regs->statne_h); in ixp4xx_qmgr_probe()
409 __raw_writel(0, &qmgr_regs->statf_h); in ixp4xx_qmgr_probe()
412 __raw_writel(0, &qmgr_regs->sram[i]); in ixp4xx_qmgr_probe()