Searched refs:vbus_state (Results 1 – 3 of 3) sorted by relevance
/kernel/linux/linux-5.10/drivers/usb/musb/ |
D | davinci.c | 39 bool vbus_state; member 146 gpiod_set_value_cansleep(glue->vbus, glue->vbus_state); in evm_deferred_drvvbus() 147 glue->vbus_state = !glue->vbus_state; in evm_deferred_drvvbus() 162 if (glue->vbus_state == is_on) in davinci_musb_source_power() 165 glue->vbus_state = !is_on; in davinci_musb_source_power() 169 gpiod_set_value_cansleep(glue->vbus, glue->vbus_state); in davinci_musb_source_power() 174 glue->vbus_state = is_on; in davinci_musb_source_power() 532 glue->vbus_state = -1; in davinci_probe()
|
/kernel/linux/linux-5.10/drivers/usb/phy/ |
D | phy-tahvo.c | 47 int vbus_state; member 66 return sprintf(buf, "%s\n", tu->vbus_state ? "on" : "off"); in vbus_show() 113 prev_state = tu->vbus_state; in check_vbus_state() 114 tu->vbus_state = reg & TAHVO_STAT_VBUS; in check_vbus_state() 115 if (prev_state != tu->vbus_state) { in check_vbus_state() 116 extcon_set_state_sync(tu->extcon, EXTCON_USB, tu->vbus_state); in check_vbus_state() 355 tu->vbus_state = retu_read(rdev, TAHVO_REG_IDSR) & TAHVO_STAT_VBUS; in tahvo_usb_probe() 374 extcon_set_state_sync(tu->extcon, EXTCON_USB, tu->vbus_state); in tahvo_usb_probe()
|
D | phy-twl6030-usb.c | 209 u8 vbus_state, hw_state; in twl6030_usb_irq() local 214 vbus_state = twl6030_readb(twl, TWL_MODULE_MAIN_CHARGE, in twl6030_usb_irq() 217 if (vbus_state & VBUS_DET) { in twl6030_usb_irq()
|