/kernel/linux/linux-6.6/drivers/usb/phy/ |
H A D | phy-generic.c | 105 int vbus, status; in nop_gpio_vbus_thread() local 107 vbus = gpiod_get_value(nop->gpiod_vbus); in nop_gpio_vbus_thread() 108 if ((vbus ^ nop->vbus) == 0) in nop_gpio_vbus_thread() 110 nop->vbus = vbus; in nop_gpio_vbus_thread() 112 if (vbus) { in nop_gpio_vbus_thread() 227 "vbus-detect", in usb_phy_gen_create_phy() 264 nop->vbus_draw = devm_regulator_get_exclusive(dev, "vbus"); in usb_phy_gen_create_phy() 269 "could not get vbus regulato in usb_phy_gen_create_phy() [all...] |
/kernel/linux/linux-5.10/include/linux/platform_data/ |
H A D | mv_usb.h | 26 struct mv_usb_addon_irq *vbus; /* valid for OTG/UDC. VBUS change*/ member 38 int (*set_vbus)(unsigned int vbus);
|
/kernel/linux/linux-6.6/include/linux/platform_data/ |
H A D | mv_usb.h | 26 struct mv_usb_addon_irq *vbus; /* valid for OTG/UDC. VBUS change*/ member 38 int (*set_vbus)(unsigned int vbus);
|
/kernel/linux/linux-5.10/drivers/phy/ |
H A D | phy-lgm-usb.c | 42 struct regulator *vbus; member 127 ret = regulator_enable(ta->vbus); in phy_set_vbus() 129 ret = regulator_disable(ta->vbus); in phy_set_vbus() 134 dev_dbg(ta->phy.dev, "set vbus: %d\n", on); in phy_set_vbus() 216 ta->vbus = devm_regulator_get(dev, "vbus"); in phy_probe() 217 if (IS_ERR(ta->vbus)) in phy_probe() 218 return PTR_ERR(ta->vbus); in phy_probe()
|
/kernel/linux/linux-6.6/drivers/phy/ |
H A D | phy-lgm-usb.c | 42 struct regulator *vbus; member 127 ret = regulator_enable(ta->vbus); in phy_set_vbus() 129 ret = regulator_disable(ta->vbus); in phy_set_vbus() 134 dev_dbg(ta->phy.dev, "set vbus: %d\n", on); in phy_set_vbus() 216 ta->vbus = devm_regulator_get(dev, "vbus"); in phy_probe() 217 if (IS_ERR(ta->vbus)) in phy_probe() 218 return PTR_ERR(ta->vbus); in phy_probe()
|
/kernel/linux/linux-6.6/drivers/phy/st/ |
H A D | phy-stm32-usbphyc.c | 139 struct regulator *vbus; member 384 if (usbphyc_phy->vbus) in stm32_usbphyc_phy_power_on() 385 return regulator_enable(usbphyc_phy->vbus); in stm32_usbphyc_phy_power_on() 394 if (usbphyc_phy->vbus) in stm32_usbphyc_phy_power_off() 395 return regulator_disable(usbphyc_phy->vbus); in stm32_usbphyc_phy_power_off() 731 usbphyc->phys[port]->vbus = devm_regulator_get_optional(&phy->dev, "vbus"); in stm32_usbphyc_probe() 732 if (IS_ERR(usbphyc->phys[port]->vbus)) { in stm32_usbphyc_probe() 733 ret = PTR_ERR(usbphyc->phys[port]->vbus); in stm32_usbphyc_probe() 736 usbphyc->phys[port]->vbus in stm32_usbphyc_probe() [all...] |
/kernel/linux/linux-5.10/drivers/extcon/ |
H A D | extcon-usb-gpio.c | 63 int id, vbus; in usb_extcon_detect_cable() local 71 vbus = info->vbus_gpiod ? in usb_extcon_detect_cable() 77 if (!vbus) in usb_extcon_detect_cable() 83 if (vbus) in usb_extcon_detect_cable() 114 info->vbus_gpiod = devm_gpiod_get_optional(&pdev->dev, "vbus", in usb_extcon_probe()
|
/kernel/linux/linux-6.6/drivers/extcon/ |
H A D | extcon-usb-gpio.c | 62 int id, vbus; in usb_extcon_detect_cable() local 70 vbus = info->vbus_gpiod ? in usb_extcon_detect_cable() 76 if (!vbus) in usb_extcon_detect_cable() 82 if (vbus) in usb_extcon_detect_cable() 113 info->vbus_gpiod = devm_gpiod_get_optional(&pdev->dev, "vbus", in usb_extcon_probe()
|
/kernel/linux/linux-5.10/drivers/usb/mtu3/ |
H A D | mtu3_dr.c | 126 struct regulator *vbus = otg_sx->vbus; in ssusb_set_vbus() local 129 /* vbus is optional */ in ssusb_set_vbus() 130 if (!vbus) in ssusb_set_vbus() 136 ret = regulator_enable(vbus); in ssusb_set_vbus() 138 dev_err(ssusb->dev, "vbus regulator enable failed\n"); in ssusb_set_vbus() 142 regulator_disable(vbus); in ssusb_set_vbus()
|
/kernel/linux/linux-6.6/drivers/usb/mtu3/ |
H A D | mtu3_dr.c | 105 struct regulator *vbus = otg_sx->vbus; in ssusb_set_vbus() local 108 /* vbus is optional */ in ssusb_set_vbus() 109 if (!vbus) in ssusb_set_vbus() 115 ret = regulator_enable(vbus); in ssusb_set_vbus() 117 dev_err(ssusb->dev, "vbus regulator enable failed\n"); in ssusb_set_vbus() 121 regulator_disable(vbus); in ssusb_set_vbus()
|
/kernel/linux/linux-5.10/drivers/usb/host/ |
H A D | ohci-pxa27x.c | 125 struct regulator *vbus[3]; member 176 struct regulator *vbus = pxa_ohci->vbus[port]; in pxa27x_ohci_set_vbus_power() local 179 if (IS_ERR_OR_NULL(vbus)) in pxa27x_ohci_set_vbus_power() 183 ret = regulator_enable(vbus); in pxa27x_ohci_set_vbus_power() 185 ret = regulator_disable(vbus); in pxa27x_ohci_set_vbus_power() 474 sprintf(name, "vbus%u", i + 1); in ohci_hcd_pxa27x_probe() 475 pxa_ohci->vbus[i] = devm_regulator_get(&pdev->dev, name); in ohci_hcd_pxa27x_probe()
|
/kernel/linux/linux-5.10/drivers/usb/musb/ |
H A D | davinci.c | 40 struct gpio_desc *vbus; member 146 gpiod_set_value_cansleep(glue->vbus, glue->vbus_state); in evm_deferred_drvvbus() 156 if (!glue->vbus) in davinci_musb_source_power() 169 gpiod_set_value_cansleep(glue->vbus, glue->vbus_state); in davinci_musb_source_power() 527 glue->vbus = devm_gpiod_get_optional(&pdev->dev, NULL, GPIOD_OUT_LOW); in davinci_probe() 528 if (IS_ERR(glue->vbus)) { in davinci_probe() 529 ret = PTR_ERR(glue->vbus); in davinci_probe()
|
/kernel/linux/linux-6.6/drivers/usb/host/ |
H A D | ohci-pxa27x.c | 122 struct regulator *vbus[3]; member 173 struct regulator *vbus = pxa_ohci->vbus[port]; in pxa27x_ohci_set_vbus_power() local 176 if (IS_ERR_OR_NULL(vbus)) in pxa27x_ohci_set_vbus_power() 180 ret = regulator_enable(vbus); in pxa27x_ohci_set_vbus_power() 182 ret = regulator_disable(vbus); in pxa27x_ohci_set_vbus_power() 457 sprintf(name, "vbus%u", i + 1); in ohci_hcd_pxa27x_probe() 458 pxa_ohci->vbus[i] = devm_regulator_get(&pdev->dev, name); in ohci_hcd_pxa27x_probe()
|
/kernel/linux/linux-5.10/arch/arm/mach-pxa/ |
H A D | palm27x.h | 38 extern void __init palm27x_udc_init(int vbus, int pullup, 41 static inline void palm27x_udc_init(int vbus, int pullup, int vbus_inverted) {} in palm27x_udc_init() argument
|
/kernel/linux/linux-6.6/drivers/usb/typec/tcpm/ |
H A D | tcpci_rt1711h.c | 58 struct regulator *vbus; member 156 ret = regulator_enable(chip->vbus); in rt1711h_set_vbus() 158 ret = regulator_disable(chip->vbus); in rt1711h_set_vbus() 364 chip->vbus = devm_regulator_get(&client->dev, "vbus"); in rt1711h_probe() 365 if (IS_ERR(chip->vbus)) in rt1711h_probe() 366 return PTR_ERR(chip->vbus); in rt1711h_probe()
|
/kernel/linux/linux-6.6/drivers/phy/freescale/ |
H A D | phy-fsl-imx8mq-usb.c | 57 struct regulator *vbus; member 326 ret = regulator_enable(imx_phy->vbus); in imx8mq_phy_power_on() 338 regulator_disable(imx_phy->vbus); in imx8mq_phy_power_off() 395 imx_phy->vbus = devm_regulator_get(dev, "vbus"); in imx8mq_usb_phy_probe() 396 if (IS_ERR(imx_phy->vbus)) in imx8mq_usb_phy_probe() 397 return dev_err_probe(dev, PTR_ERR(imx_phy->vbus), "failed to get vbus\n"); in imx8mq_usb_phy_probe()
|
/kernel/linux/linux-5.10/drivers/usb/cdns3/ |
H A D | drd.c | 100 int vbus; in cdns3_get_vbus() local 102 vbus = !!(readl(&cdns->otg_regs->sts) & OTGSTS_VBUS_VALID); in cdns3_get_vbus() 103 dev_dbg(cdns->dev, "OTG VBUS: %d", vbus); in cdns3_get_vbus() 105 return vbus; in cdns3_get_vbus()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/ |
H A D | base.c | 54 int vbus = nv_rd16i2cr(i2c, addr, bus_reg); in nvkm_iccsense_poll_lane() local 56 if (vshunt < 0 || vbus < 0) in nvkm_iccsense_poll_lane() 60 vbus >>= bus_shift; in nvkm_iccsense_poll_lane() 62 return vbus * vshunt * lsb / shunt; in nvkm_iccsense_poll_lane()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/ |
H A D | base.c | 54 int vbus = nv_rd16i2cr(i2c, addr, bus_reg); in nvkm_iccsense_poll_lane() local 56 if (vshunt < 0 || vbus < 0) in nvkm_iccsense_poll_lane() 60 vbus >>= bus_shift; in nvkm_iccsense_poll_lane() 62 return vbus * vshunt * lsb / shunt; in nvkm_iccsense_poll_lane()
|
/kernel/linux/linux-5.10/drivers/phy/samsung/ |
H A D | phy-exynos5-usbdrd.c | 190 * @vbus: VBUS regulator for phy 210 struct regulator *vbus; member 503 if (phy_drd->vbus) { in exynos5_usbdrd_phy_power_on() 504 ret = regulator_enable(phy_drd->vbus); in exynos5_usbdrd_phy_power_on() 542 if (phy_drd->vbus) in exynos5_usbdrd_phy_power_off() 543 regulator_disable(phy_drd->vbus); in exynos5_usbdrd_phy_power_off() 890 phy_drd->vbus = devm_regulator_get(dev, "vbus"); in exynos5_usbdrd_phy_probe() 891 if (IS_ERR(phy_drd->vbus)) { in exynos5_usbdrd_phy_probe() 892 ret = PTR_ERR(phy_drd->vbus); in exynos5_usbdrd_phy_probe() [all...] |
/kernel/linux/linux-5.10/drivers/phy/allwinner/ |
H A D | phy-sun4i-usb.c | 60 /* sunxi has the phy id/vbus pins not connected, so we use the force bits */ 133 struct regulator *vbus; member 394 /* Fallback: report vbus as high */ in sun4i_usb_phy0_get_vbus_det() 411 * generate vbus change interrupts when the board is driving in sun4i_usb_phy0_poll() 412 * vbus using the N_VBUSEN pin on the pmic, so we must poll in sun4i_usb_phy0_poll() 413 * when using the pmic for vbus-det _and_ we're driving vbus. in sun4i_usb_phy0_poll() 429 if (!phy->vbus || phy->regulator_on) in sun4i_usb_phy_power_on() 435 dev_warn(&_phy->dev, "External vbus detected, not enabling our own vbus\ in sun4i_usb_phy_power_on() [all...] |
/kernel/linux/linux-6.6/drivers/phy/allwinner/ |
H A D | phy-sun4i-usb.c | 58 /* sunxi has the phy id/vbus pins not connected, so we use the force bits */ 122 struct regulator *vbus; member 434 /* Fallback: report vbus as high */ in sun4i_usb_phy0_get_vbus_det() 451 * generate vbus change interrupts when the board is driving in sun4i_usb_phy0_poll() 452 * vbus using the N_VBUSEN pin on the pmic, so we must poll in sun4i_usb_phy0_poll() 453 * when using the pmic for vbus-det _and_ we're driving vbus. in sun4i_usb_phy0_poll() 468 if (!phy->vbus || phy->regulator_on) in sun4i_usb_phy_power_on() 474 dev_warn(&_phy->dev, "External vbus detected, not enabling our own vbus\ in sun4i_usb_phy_power_on() [all...] |
/kernel/linux/linux-6.6/drivers/phy/samsung/ |
H A D | phy-exynos5-usbdrd.c | 218 * @vbus: VBUS regulator for phy 238 struct regulator *vbus; member 534 if (phy_drd->vbus) { in exynos5_usbdrd_phy_power_on() 535 ret = regulator_enable(phy_drd->vbus); in exynos5_usbdrd_phy_power_on() 573 if (phy_drd->vbus) in exynos5_usbdrd_phy_power_off() 574 regulator_disable(phy_drd->vbus); in exynos5_usbdrd_phy_power_off() 1064 phy_drd->vbus = devm_regulator_get(dev, "vbus"); in exynos5_usbdrd_phy_probe() 1065 if (IS_ERR(phy_drd->vbus)) { in exynos5_usbdrd_phy_probe() 1066 ret = PTR_ERR(phy_drd->vbus); in exynos5_usbdrd_phy_probe() [all...] |
/kernel/linux/linux-5.10/drivers/phy/broadcom/ |
H A D | phy-bcm-ns2-usbdrd.c | 241 int vbus; in extcon_work() local 248 vbus = gpiod_get_value_cansleep(driver->vbus_gpiod); in extcon_work() 250 if (!id && vbus) { /* Host connected */ in extcon_work() 255 } else if (id && !vbus) { /* Disconnected */ in extcon_work() 259 } else if (id && vbus) { /* Device connected */ in extcon_work() 336 driver->vbus_gpiod = devm_gpiod_get(&pdev->dev, "vbus", GPIOD_IN); in ns2_drd_phy_probe()
|
/kernel/linux/linux-6.6/drivers/phy/broadcom/ |
H A D | phy-bcm-ns2-usbdrd.c | 231 int vbus; in extcon_work() local 238 vbus = gpiod_get_value_cansleep(driver->vbus_gpiod); in extcon_work() 240 if (!id && vbus) { /* Host connected */ in extcon_work() 245 } else if (id && !vbus) { /* Disconnected */ in extcon_work() 249 } else if (id && vbus) { /* Device connected */ in extcon_work() 321 driver->vbus_gpiod = devm_gpiod_get(&pdev->dev, "vbus", GPIOD_IN); in ns2_drd_phy_probe()
|