Lines Matching refs:in
36 static void clear_phantom_key(struct gpio_kp *kp, int out, int in) in clear_phantom_key() argument
39 int key_index = out * mi->ninputs + in; in clear_phantom_key()
47 "cleared\n", keycode, out, in, in clear_phantom_key()
48 mi->output_gpios[out], mi->input_gpios[in]); in clear_phantom_key()
53 "not cleared\n", keycode, out, in, in clear_phantom_key()
54 mi->output_gpios[out], mi->input_gpios[in]); in clear_phantom_key()
58 static int restore_keys_for_input(struct gpio_kp *kp, int out, int in) in restore_keys_for_input() argument
63 key_index = out * kp->keypad_info->ninputs + in; in restore_keys_for_input()
67 clear_phantom_key(kp, out, in); in restore_keys_for_input()
77 int out, in, inp; in remove_phantom_keys() local
86 for (in = 0; in < kp->keypad_info->ninputs; in++, key_index++) { in remove_phantom_keys()
89 inp = in; in remove_phantom_keys()
99 restore_keys_for_input(kp, out, in); in remove_phantom_keys()
105 static void report_key(struct gpio_kp *kp, int key_index, int out, int in) in report_key() argument
118 out, in, mi->output_gpios[out], in report_key()
119 mi->input_gpios[in], pressed); in report_key()
124 out, in, mi->output_gpios[out], in report_key()
125 mi->input_gpios[in], pressed); in report_key()
133 int out, in; in gpio_keypad_timer_func() local
149 for (in = 0; in < mi->ninputs; in++, key_index++) { in gpio_keypad_timer_func()
150 gpio = mi->input_gpios[in]; in gpio_keypad_timer_func()
190 for (in = 0; in < mi->ninputs; in++, key_index++) in gpio_keypad_timer_func()
191 report_key(kp, key_index, out, in); in gpio_keypad_timer_func()
205 for (in = 0; in < mi->ninputs; in++) in gpio_keypad_timer_func()
206 enable_irq(gpio_to_irq(mi->input_gpios[in])); in gpio_keypad_timer_func()