Lines Matching full: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()
189 keypad->reg_base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); in nspire_keypad_probe()
190 if (IS_ERR(keypad->reg_base)) in nspire_keypad_probe()
191 return PTR_ERR(keypad->reg_base); in nspire_keypad_probe()
206 writel(0, keypad->reg_base + KEYPAD_INTMSK); in nspire_keypad_probe()
208 writel(~0, keypad->reg_base + KEYPAD_INT); in nspire_keypad_probe()
212 writel(0, keypad->reg_base + KEYPAD_UNKNOWN_INT); in nspire_keypad_probe()
214 writel(~0, keypad->reg_base + KEYPAD_UNKNOWN_INT_STS); in nspire_keypad_probe()