Lines Matching refs:vbus_pin
381 if (udc->vbus_pin) in vbus_is_present()
382 return gpiod_get_value(udc->vbus_pin); in vbus_is_present()
1998 if (udc->vbus_pin) in atmel_usba_start()
1999 enable_irq(gpiod_to_irq(udc->vbus_pin)); in atmel_usba_start()
2013 if (udc->vbus_pin) in atmel_usba_start()
2014 disable_irq(gpiod_to_irq(udc->vbus_pin)); in atmel_usba_start()
2029 if (udc->vbus_pin) in atmel_usba_stop()
2030 disable_irq(gpiod_to_irq(udc->vbus_pin)); in atmel_usba_stop()
2164 udc->vbus_pin = devm_gpiod_get_optional(&pdev->dev, "atmel,vbus", in atmel_udc_of_init()
2166 if (IS_ERR(udc->vbus_pin)) in atmel_udc_of_init()
2167 return ERR_CAST(udc->vbus_pin); in atmel_udc_of_init()
2342 if (udc->vbus_pin) { in usba_udc_probe()
2343 irq_set_status_flags(gpiod_to_irq(udc->vbus_pin), IRQ_NOAUTOEN); in usba_udc_probe()
2345 gpiod_to_irq(udc->vbus_pin), NULL, in usba_udc_probe()
2349 udc->vbus_pin = NULL; in usba_udc_probe()
2404 if (udc->vbus_pin) { in usba_udc_suspend()
2407 enable_irq_wake(gpiod_to_irq(udc->vbus_pin)); in usba_udc_suspend()
2426 if (udc->vbus_pin) in usba_udc_resume()
2427 disable_irq_wake(gpiod_to_irq(udc->vbus_pin)); in usba_udc_resume()