Lines Matching refs:rval
101 u32 rval; in sun4i_ps2_interrupt() local
115 rval = PS2_LSTS_TXTDO | PS2_LSTS_STOPERR | PS2_LSTS_ACKERR | in sun4i_ps2_interrupt()
117 writel(rval, drvdata->reg_base + PS2_REG_LSTS); in sun4i_ps2_interrupt()
122 rval = PS2_FSTS_TXUF | PS2_FSTS_TXOF | PS2_FSTS_TXRDY | in sun4i_ps2_interrupt()
124 writel(rval, drvdata->reg_base + PS2_REG_FSTS); in sun4i_ps2_interrupt()
127 rval = (fifo_status >> 16) & 0x3; in sun4i_ps2_interrupt()
128 while (rval--) { in sun4i_ps2_interrupt()
147 u32 rval; in sun4i_ps2_open() local
151 rval = PS2_LCTL_STOPERREN | PS2_LCTL_ACKERREN in sun4i_ps2_open()
153 writel(rval, drvdata->reg_base + PS2_REG_LCTL); in sun4i_ps2_open()
156 rval = PS2_FCTL_TXRST | PS2_FCTL_RXRST | PS2_FCTL_TXUFIEN in sun4i_ps2_open()
160 writel(rval, drvdata->reg_base + PS2_REG_FCTL); in sun4i_ps2_open()
166 rval = (clk_scdf << 8) | clk_pcdf; in sun4i_ps2_open()
167 writel(rval, drvdata->reg_base + PS2_REG_CLKDR); in sun4i_ps2_open()
170 rval = PS2_GCTL_RESET | PS2_GCTL_INTEN | PS2_GCTL_MASTER in sun4i_ps2_open()
174 writel(rval, drvdata->reg_base + PS2_REG_GCTL); in sun4i_ps2_open()
183 u32 rval; in sun4i_ps2_close() local
186 rval = readl(drvdata->reg_base + PS2_REG_GCTL); in sun4i_ps2_close()
187 writel(rval & ~(PS2_GCTL_INTEN), drvdata->reg_base + PS2_REG_GCTL); in sun4i_ps2_close()