Lines Matching refs:bdata
69 struct gpio_keys_button_data *bdata) in gpio_keys_polled_check_state() argument
73 state = gpiod_get_value_cansleep(bdata->gpiod); in gpio_keys_polled_check_state()
80 if (state != bdata->last_state) { in gpio_keys_polled_check_state()
81 bdata->count = 0; in gpio_keys_polled_check_state()
82 bdata->last_state = state; in gpio_keys_polled_check_state()
97 struct gpio_keys_button_data *bdata = &bdev->data[i]; in gpio_keys_polled_poll() local
99 if (bdata->count < bdata->threshold) { in gpio_keys_polled_poll()
100 bdata->count++; in gpio_keys_polled_poll()
102 bdata->last_state); in gpio_keys_polled_poll()
105 bdata); in gpio_keys_polled_poll()
281 struct gpio_keys_button_data *bdata = &bdev->data[i]; in gpio_keys_polled_probe() local
298 bdata->gpiod = devm_fwnode_gpiod_get(dev, child, in gpio_keys_polled_probe()
301 if (IS_ERR(bdata->gpiod)) { in gpio_keys_polled_probe()
302 error = PTR_ERR(bdata->gpiod); in gpio_keys_polled_probe()
329 bdata->gpiod = gpio_to_desc(button->gpio); in gpio_keys_polled_probe()
330 if (!bdata->gpiod) { in gpio_keys_polled_probe()
338 bdata->last_state = -1; in gpio_keys_polled_probe()
339 bdata->threshold = DIV_ROUND_UP(button->debounce_interval, in gpio_keys_polled_probe()