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()
1782 board->vbus_pin = fwnode_gpiod_get_index(of_fwnode_handle(np), in at91udc_of_init()
1785 if (IS_ERR(board->vbus_pin)) in at91udc_of_init()
1786 board->vbus_pin = NULL; in at91udc_of_init()
1882 if (udc->board.vbus_pin) { in at91udc_probe()
1883 gpiod_direction_input(udc->board.vbus_pin); in at91udc_probe()
1889 udc->vbus = gpiod_get_value_cansleep(udc->board.vbus_pin); in at91udc_probe()
1898 gpiod_to_irq(udc->board.vbus_pin), in at91udc_probe()
1902 desc_to_gpio(udc->board.vbus_pin)); in at91udc_probe()
1976 if (udc->board.vbus_pin && !udc->board.vbus_polled && wake) in at91udc_suspend()
1977 enable_irq_wake(gpiod_to_irq(udc->board.vbus_pin)); in at91udc_suspend()
1986 if (udc->board.vbus_pin && !udc->board.vbus_polled && in at91udc_resume()
1988 disable_irq_wake(gpiod_to_irq(udc->board.vbus_pin)); in at91udc_resume()