Lines Matching refs:tc3589x

105 	struct tc3589x *tc3589x;  member
117 struct tc3589x *tc3589x = keypad->tc3589x; in tc3589x_keypad_init_key_hardware() local
125 ret = tc3589x_reg_write(tc3589x, TC3589x_KBDSIZE, in tc3589x_keypad_init_key_hardware()
131 ret = tc3589x_reg_write(tc3589x, TC3589x_KBCFG_LSB, DEDICATED_KEY_VAL); in tc3589x_keypad_init_key_hardware()
135 ret = tc3589x_reg_write(tc3589x, TC3589x_KBCFG_MSB, DEDICATED_KEY_VAL); in tc3589x_keypad_init_key_hardware()
140 ret = tc3589x_reg_write(tc3589x, TC3589x_KBDSETTLE_REG, in tc3589x_keypad_init_key_hardware()
146 ret = tc3589x_reg_write(tc3589x, TC3589x_KBDBOUNCE, in tc3589x_keypad_init_key_hardware()
152 ret = tc3589x_set_bits(tc3589x, TC3589x_IOCFG, 0x0, IOCFG_IG); in tc3589x_keypad_init_key_hardware()
157 ret = tc3589x_reg_write(tc3589x, TC3589x_IOPULLCFG0_LSB, in tc3589x_keypad_init_key_hardware()
162 ret = tc3589x_reg_write(tc3589x, TC3589x_IOPULLCFG0_MSB, in tc3589x_keypad_init_key_hardware()
168 ret = tc3589x_reg_write(tc3589x, TC3589x_IOPULLCFG1_LSB, in tc3589x_keypad_init_key_hardware()
173 ret = tc3589x_reg_write(tc3589x, TC3589x_IOPULLCFG1_MSB, in tc3589x_keypad_init_key_hardware()
178 ret = tc3589x_reg_write(tc3589x, TC3589x_IOPULLCFG2_LSB, in tc3589x_keypad_init_key_hardware()
192 struct tc3589x *tc3589x = keypad->tc3589x; in tc3589x_keypad_irq() local
197 kbd_code = tc3589x_reg_read(tc3589x, TC3589x_EVTCODE_FIFO); in tc3589x_keypad_irq()
217 tc3589x_set_bits(tc3589x, TC3589x_KBDIC, in tc3589x_keypad_irq()
220 tc3589x_set_bits(tc3589x, TC3589x_KBDMSK, in tc3589x_keypad_irq()
228 struct tc3589x *tc3589x = keypad->tc3589x; in tc3589x_keypad_enable() local
232 ret = tc3589x_set_bits(tc3589x, TC3589x_RSTCTRL, TC3589x_KBDRST, 0x0); in tc3589x_keypad_enable()
237 ret = tc3589x_set_bits(tc3589x, TC3589x_KBDMFS, 0x0, TC3589x_KBDMFS_EN); in tc3589x_keypad_enable()
242 ret = tc3589x_set_bits(tc3589x, TC3589x_CLKEN, 0x0, KPD_CLK_EN); in tc3589x_keypad_enable()
247 ret = tc3589x_set_bits(tc3589x, TC3589x_RSTINTCLR, 0x0, 0x1); in tc3589x_keypad_enable()
252 ret = tc3589x_set_bits(tc3589x, TC3589x_KBDMSK, 0x0, in tc3589x_keypad_enable()
264 struct tc3589x *tc3589x = keypad->tc3589x; in tc3589x_keypad_disable() local
268 ret = tc3589x_set_bits(tc3589x, TC3589x_KBDIC, in tc3589x_keypad_disable()
274 ret = tc3589x_set_bits(tc3589x, TC3589x_KBDMSK, in tc3589x_keypad_disable()
280 ret = tc3589x_set_bits(tc3589x, TC3589x_CLKEN, 0x1, 0x0); in tc3589x_keypad_disable()
285 ret = tc3589x_set_bits(tc3589x, TC3589x_RSTCTRL, TC3589x_KBDRST, 0x1); in tc3589x_keypad_disable()
376 struct tc3589x *tc3589x = dev_get_drvdata(pdev->dev.parent); in tc3589x_keypad_probe() local
405 keypad->tc3589x = tc3589x; in tc3589x_keypad_probe()