Lines Matching refs:csr_base
551 static void sds_wr(void __iomem *csr_base, u32 indirect_cmd_reg, in sds_wr() argument
560 writel(data, csr_base + indirect_data_reg); in sds_wr()
561 readl(csr_base + indirect_data_reg); /* Force a barrier */ in sds_wr()
562 writel(cmd, csr_base + indirect_cmd_reg); in sds_wr()
563 readl(csr_base + indirect_cmd_reg); /* Force a barrier */ in sds_wr()
565 val = readl(csr_base + indirect_cmd_reg); in sds_wr()
570 csr_base + indirect_cmd_reg, addr, data); in sds_wr()
573 static void sds_rd(void __iomem *csr_base, u32 indirect_cmd_reg, in sds_rd() argument
582 writel(cmd, csr_base + indirect_cmd_reg); in sds_rd()
583 readl(csr_base + indirect_cmd_reg); /* Force a barrier */ in sds_rd()
585 val = readl(csr_base + indirect_cmd_reg); in sds_rd()
588 *data = readl(csr_base + indirect_data_reg); in sds_rd()
591 csr_base + indirect_cmd_reg, addr, *data); in sds_rd()