Home
last modified time | relevance | path

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

/linux/drivers/usb/host/
H A Dohci-at91.c44 struct gpio_desc *vbus_pin[AT91_MAX_USBH_PORTS]; member
289 gpiod_set_value(pdata->vbus_pin[port], enable); in ohci_at91_usb_set_power()
297 return gpiod_get_value(pdata->vbus_pin[port]); in ohci_at91_usb_get_power()
561 pdata->vbus_pin[i] = in ohci_hcd_at91_drv_probe()
564 if (IS_ERR(pdata->vbus_pin[i])) { in ohci_hcd_at91_drv_probe()
565 err = PTR_ERR(pdata->vbus_pin[i]); in ohci_hcd_at91_drv_probe()
/linux/drivers/usb/gadget/udc/
H A 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()
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()
[all …]
H A Dat91_udc.h112 struct gpio_desc *vbus_pin; /* high == host powering us */ member
H A Datmel_usba_udc.h338 struct gpio_desc *vbus_pin; member