Lines Matching refs:state
46 int state)
52 if (state) {
57 if (state) {
62 input_event(input, type, button->code, state);
71 int state;
73 state = gpiod_get_value_cansleep(bdata->gpiod);
74 if (state < 0) {
76 "failed to get gpio state: %d\n", state);
78 gpio_keys_button_event(input, button, state);
80 if (state != bdata->last_state) {
82 bdata->last_state = state;
369 /* report initial state of the buttons */