Searched refs:vbus_pin (Results 1 – 5 of 5) sorted by relevance
44 struct gpio_desc *vbus_pin[AT91_MAX_USBH_PORTS]; member292 gpiod_set_value(pdata->vbus_pin[port], enable); in ohci_at91_usb_set_power()300 return gpiod_get_value(pdata->vbus_pin[port]); in ohci_at91_usb_get_power()564 pdata->vbus_pin[i] = in ohci_hcd_at91_drv_probe()567 if (IS_ERR(pdata->vbus_pin[i])) { in ohci_hcd_at91_drv_probe()568 err = PTR_ERR(pdata->vbus_pin[i]); in ohci_hcd_at91_drv_probe()
383 if (udc->vbus_pin) in vbus_is_present()384 return gpiod_get_value(udc->vbus_pin); in vbus_is_present()2000 if (udc->vbus_pin) in atmel_usba_start()2001 enable_irq(gpiod_to_irq(udc->vbus_pin)); in atmel_usba_start()2015 if (udc->vbus_pin) in atmel_usba_start()2016 disable_irq(gpiod_to_irq(udc->vbus_pin)); in atmel_usba_start()2031 if (udc->vbus_pin) in atmel_usba_stop()2032 disable_irq(gpiod_to_irq(udc->vbus_pin)); in atmel_usba_stop()2166 udc->vbus_pin = devm_gpiod_get_optional(&pdev->dev, "atmel,vbus", in atmel_udc_of_init()2168 if (IS_ERR(udc->vbus_pin)) in atmel_udc_of_init()[all …]
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()[all …]
112 struct gpio_desc *vbus_pin; /* high == host powering us */ member
338 struct gpio_desc *vbus_pin; member