Home
last modified time | relevance | path

Searched refs:vbus_pin (Results 1 – 5 of 5) sorted by relevance

/Linux-v6.1/drivers/usb/host/
Dohci-at91.c44 struct gpio_desc *vbus_pin[AT91_MAX_USBH_PORTS]; member
292 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()
/Linux-v6.1/drivers/usb/gadget/udc/
Datmel_usba_udc.c383 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 …]
Dat91_udc.c1525 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 …]
Dat91_udc.h112 struct gpio_desc *vbus_pin; /* high == host powering us */ member
Datmel_usba_udc.h338 struct gpio_desc *vbus_pin; member