Lines Matching refs:vbus_pin
1525 at91_vbus_update(udc, gpiod_get_value(udc->board.vbus_pin)); in at91_vbus_irq()
1535 at91_vbus_update(udc, gpiod_get_value_cansleep(udc->board.vbus_pin)); in at91_vbus_timer_work()
1779 board->vbus_pin = fwnode_gpiod_get_index(of_fwnode_handle(np), in at91udc_of_init()
1782 if (IS_ERR(board->vbus_pin)) in at91udc_of_init()
1783 board->vbus_pin = NULL; in at91udc_of_init()
1879 if (udc->board.vbus_pin) { in at91udc_probe()
1880 gpiod_direction_input(udc->board.vbus_pin); in at91udc_probe()
1886 udc->vbus = gpiod_get_value_cansleep(udc->board.vbus_pin); in at91udc_probe()
1895 gpiod_to_irq(udc->board.vbus_pin), in at91udc_probe()
1899 desc_to_gpio(udc->board.vbus_pin)); in at91udc_probe()
1974 if (udc->board.vbus_pin && !udc->board.vbus_polled && wake) in at91udc_suspend()
1975 enable_irq_wake(gpiod_to_irq(udc->board.vbus_pin)); in at91udc_suspend()
1984 if (udc->board.vbus_pin && !udc->board.vbus_polled && in at91udc_resume()
1986 disable_irq_wake(gpiod_to_irq(udc->board.vbus_pin)); in at91udc_resume()