Lines Matching refs:csr_base
550 static void sds_wr(void __iomem *csr_base, u32 indirect_cmd_reg, in sds_wr() argument
559 writel(data, csr_base + indirect_data_reg); in sds_wr()
560 readl(csr_base + indirect_data_reg); /* Force a barrier */ in sds_wr()
561 writel(cmd, csr_base + indirect_cmd_reg); in sds_wr()
562 readl(csr_base + indirect_cmd_reg); /* Force a barrier */ in sds_wr()
564 val = readl(csr_base + indirect_cmd_reg); in sds_wr()
569 csr_base + indirect_cmd_reg, addr, data); in sds_wr()
572 static void sds_rd(void __iomem *csr_base, u32 indirect_cmd_reg, in sds_rd() argument
581 writel(cmd, csr_base + indirect_cmd_reg); in sds_rd()
582 readl(csr_base + indirect_cmd_reg); /* Force a barrier */ in sds_rd()
584 val = readl(csr_base + indirect_cmd_reg); in sds_rd()
587 *data = readl(csr_base + indirect_data_reg); in sds_rd()
590 csr_base + indirect_cmd_reg, addr, *data); in sds_rd()