Lines Matching refs:reg_base
32 void __iomem *reg_base; member
61 int_sts = readl(keypad->reg_base + KEYPAD_INT) & keypad->int_mask; in nspire_keypad_irq()
65 memcpy_fromio(state, keypad->reg_base + KEYPAD_DATA, sizeof(state)); in nspire_keypad_irq()
91 writel(0x3, keypad->reg_base + KEYPAD_INT); in nspire_keypad_irq()
121 writel(val, keypad->reg_base + KEYPAD_SCAN_MODE); in nspire_keypad_open()
124 writel(val, keypad->reg_base + KEYPAD_CNTL); in nspire_keypad_open()
128 writel(keypad->int_mask, keypad->reg_base + KEYPAD_INTMSK); in nspire_keypad_open()
138 writel(0, keypad->reg_base + KEYPAD_INTMSK); in nspire_keypad_close()
140 writel(~0, keypad->reg_base + KEYPAD_INT); in nspire_keypad_close()
190 keypad->reg_base = devm_ioremap_resource(&pdev->dev, res); in nspire_keypad_probe()
191 if (IS_ERR(keypad->reg_base)) in nspire_keypad_probe()
192 return PTR_ERR(keypad->reg_base); in nspire_keypad_probe()
207 writel(0, keypad->reg_base + KEYPAD_INTMSK); in nspire_keypad_probe()
209 writel(~0, keypad->reg_base + KEYPAD_INT); in nspire_keypad_probe()
213 writel(0, keypad->reg_base + KEYPAD_UNKNOWN_INT); in nspire_keypad_probe()
215 writel(~0, keypad->reg_base + KEYPAD_UNKNOWN_INT_STS); in nspire_keypad_probe()