Lines Matching refs:gpiod
36 struct gpio_desc *gpiod; member
132 if (!bdata->gpiod) in gpio_keys_quiesce_key()
374 gpiod_get_value(bdata->gpiod) : in gpio_keys_gpio_report_event()
375 gpiod_get_value_cansleep(bdata->gpiod); in gpio_keys_gpio_report_event()
522 bdata->gpiod = devm_fwnode_gpiod_get(dev, child, in gpio_keys_setup_key()
524 if (IS_ERR(bdata->gpiod)) { in gpio_keys_setup_key()
525 error = PTR_ERR(bdata->gpiod); in gpio_keys_setup_key()
531 bdata->gpiod = NULL; in gpio_keys_setup_key()
556 bdata->gpiod = gpio_to_desc(button->gpio); in gpio_keys_setup_key()
557 if (!bdata->gpiod) in gpio_keys_setup_key()
561 if (bdata->gpiod) { in gpio_keys_setup_key()
562 bool active_low = gpiod_is_active_low(bdata->gpiod); in gpio_keys_setup_key()
565 error = gpiod_set_debounce(bdata->gpiod, in gpio_keys_setup_key()
578 !gpiod_cansleep(bdata->gpiod); in gpio_keys_setup_key()
584 irq = gpiod_to_irq(bdata->gpiod); in gpio_keys_setup_key()
688 if (bdata->gpiod) in gpio_keys_report_state()