• Home
  • Raw
  • Download

Lines Matching refs:reg_base

44 	void __iomem *reg_base;  member
54 void __iomem *reg_base = spifi->reg_base; in gxp_spi_set_mode() local
56 value = readb(reg_base + OFFSET_SPIMCTRL); in gxp_spi_set_mode()
59 writeb(0x55, reg_base + OFFSET_SPICMD); in gxp_spi_set_mode()
60 writeb(0xaa, reg_base + OFFSET_SPICMD); in gxp_spi_set_mode()
65 writeb(value, reg_base + OFFSET_SPIMCTRL); in gxp_spi_set_mode()
72 void __iomem *reg_base = spifi->reg_base; in gxp_spi_read_reg() local
75 value = readl(reg_base + OFFSET_SPIMCFG); in gxp_spi_read_reg()
80 writel(value, reg_base + OFFSET_SPIMCFG); in gxp_spi_read_reg()
82 writel(0, reg_base + OFFSET_SPIADDR); in gxp_spi_read_reg()
84 writeb(op->cmd.opcode, reg_base + OFFSET_SPICMD); in gxp_spi_read_reg()
86 writew(op->data.nbytes, reg_base + OFFSET_SPIDCNT); in gxp_spi_read_reg()
88 value = readb(reg_base + OFFSET_SPIMCTRL); in gxp_spi_read_reg()
92 writeb(value, reg_base + OFFSET_SPIMCTRL); in gxp_spi_read_reg()
94 ret = readb_poll_timeout(reg_base + OFFSET_SPIMCTRL, value, in gxp_spi_read_reg()
110 void __iomem *reg_base = spifi->reg_base; in gxp_spi_write_reg() local
113 value = readl(reg_base + OFFSET_SPIMCFG); in gxp_spi_write_reg()
118 writel(value, reg_base + OFFSET_SPIMCFG); in gxp_spi_write_reg()
120 writel(0, reg_base + OFFSET_SPIADDR); in gxp_spi_write_reg()
122 writeb(op->cmd.opcode, reg_base + OFFSET_SPICMD); in gxp_spi_write_reg()
126 writew(op->data.nbytes, reg_base + OFFSET_SPIDCNT); in gxp_spi_write_reg()
128 value = readb(reg_base + OFFSET_SPIMCTRL); in gxp_spi_write_reg()
132 writeb(value, reg_base + OFFSET_SPIMCTRL); in gxp_spi_write_reg()
134 ret = readb_poll_timeout(reg_base + OFFSET_SPIMCTRL, value, in gxp_spi_write_reg()
159 void __iomem *reg_base = spifi->reg_base; in gxp_spi_write() local
168 value = readl(reg_base + OFFSET_SPIMCFG); in gxp_spi_write()
174 writel(value, reg_base + OFFSET_SPIMCFG); in gxp_spi_write()
176 writel(op->addr.val, reg_base + OFFSET_SPIADDR); in gxp_spi_write()
178 writeb(op->cmd.opcode, reg_base + OFFSET_SPICMD); in gxp_spi_write()
180 writew(write_len, reg_base + OFFSET_SPIDCNT); in gxp_spi_write()
184 value = readb(reg_base + OFFSET_SPIMCTRL); in gxp_spi_write()
188 writeb(value, reg_base + OFFSET_SPIMCTRL); in gxp_spi_write()
190 ret = readb_poll_timeout(reg_base + OFFSET_SPIMCTRL, value, in gxp_spi_write()
271 spifi->reg_base = devm_platform_ioremap_resource(pdev, 0); in gxp_spifi_probe()
272 if (IS_ERR(spifi->reg_base)) in gxp_spifi_probe()
273 return PTR_ERR(spifi->reg_base); in gxp_spifi_probe()