/linux-master/include/linux/platform_data/ |
H A D | mv_usb.h | 26 struct mv_usb_addon_irq *vbus; /* valid for OTG/UDC. VBUS change*/ member in struct:mv_usb_platform_data 38 int (*set_vbus)(unsigned int vbus);
|
/linux-master/drivers/usb/common/ |
H A D | usb-conn-gpio.c | 34 struct regulator *vbus; member in struct:usb_conn_info 69 int id, vbus, ret; local 77 vbus = info->vbus_gpiod ? 82 else if (vbus) 87 dev_dbg(info->dev, "role %s -> %s, gpios: id %d, vbus %d\n", 88 usb_role_string(info->last_role), usb_role_string(role), id, vbus); 97 if (info->last_role == USB_ROLE_HOST && info->vbus) 98 regulator_disable(info->vbus); 104 if (role == USB_ROLE_HOST && info->vbus) { 105 ret = regulator_enable(info->vbus); [all...] |
/linux-master/drivers/phy/samsung/ |
H A D | phy-samsung-usb2.c | 27 if (drv->vbus) { 28 ret = regulator_enable(drv->vbus); 54 if (drv->vbus) 55 regulator_disable(drv->vbus); 77 if (drv->vbus) 78 ret = regulator_disable(drv->vbus); 212 drv->vbus = devm_regulator_get(dev, "vbus"); 213 if (IS_ERR(drv->vbus)) { 214 ret = PTR_ERR(drv->vbus); [all...] |
H A D | phy-samsung-usb2.h | 38 struct regulator *vbus; member in struct:samsung_usb2_phy_driver
|
/linux-master/drivers/phy/socionext/ |
H A D | phy-uniphier-usb2.c | 42 struct regulator *vbus; member in struct:uniphier_u2phy_priv 52 if (priv->vbus) 53 ret = regulator_enable(priv->vbus); 62 if (priv->vbus) 63 regulator_disable(priv->vbus); 140 priv->vbus = devm_regulator_get_optional(dev, "vbus"); 141 if (IS_ERR(priv->vbus)) { 142 if (PTR_ERR(priv->vbus) == -EPROBE_DEFER) { 143 ret = PTR_ERR(priv->vbus); [all...] |
H A D | phy-uniphier-usb3ss.c | 59 struct regulator *vbus; member in struct:uniphier_u3ssphy_priv 124 if (priv->vbus) { 125 ret = regulator_enable(priv->vbus); 146 if (priv->vbus) 147 regulator_disable(priv->vbus); 267 priv->vbus = devm_regulator_get_optional(dev, "vbus"); 268 if (IS_ERR(priv->vbus)) { 269 if (PTR_ERR(priv->vbus) == -EPROBE_DEFER) 270 return PTR_ERR(priv->vbus); [all...] |
H A D | phy-uniphier-usb3hs.c | 73 struct regulator *vbus; member in struct:uniphier_u3hsphy_priv 220 if (priv->vbus) { 221 ret = regulator_enable(priv->vbus); 242 if (priv->vbus) 243 regulator_disable(priv->vbus); 376 priv->vbus = devm_regulator_get_optional(dev, "vbus"); 377 if (IS_ERR(priv->vbus)) { 378 if (PTR_ERR(priv->vbus) == -EPROBE_DEFER) 379 return PTR_ERR(priv->vbus); [all...] |
/linux-master/drivers/usb/phy/ |
H A D | phy-omap-otg.c | 24 bool vbus; member in struct:otg_device 52 if (!otg_dev->id && otg_dev->vbus) 55 else if (otg_dev->vbus) 80 otg_dev->vbus = event; 125 otg_dev->vbus = extcon_get_state(extcon, EXTCON_USB); 131 "OMAP USB OTG controller rev %d.%d (%s, id=%d, vbus=%d)\n", 133 otg_dev->vbus);
|
H A D | phy-generic.h | 19 unsigned int vbus; member in struct:usb_phy_generic
|
H A D | phy-gpio-vbus-usb.c | 3 * gpio-vbus.c - simple GPIO VBUS sensing driver for B peripheral devices 39 int vbus; member in struct:gpio_vbus_data 96 int status, vbus; local 101 vbus = is_vbus_powered(gpio_vbus); 102 if ((vbus ^ gpio_vbus->vbus) == 0) 104 gpio_vbus->vbus = vbus; 112 if (vbus) { 196 gpio_vbus->vbus [all...] |
H A D | phy-generic.c | 105 int vbus, status; local 107 vbus = gpiod_get_value(nop->gpiod_vbus); 108 if ((vbus ^ nop->vbus) == 0) 110 nop->vbus = vbus; 112 if (vbus) { 222 "vbus-detect", 259 nop->vbus_draw = devm_regulator_get_exclusive(dev, "vbus"); 264 "could not get vbus regulato [all...] |
H A D | Makefile | 19 obj-$(CONFIG_USB_GPIO_VBUS) += phy-gpio-vbus-usb.o
|
/linux-master/drivers/usb/typec/tcpm/ |
H A D | tcpci_mt6370.c | 30 struct regulator *vbus; member in struct:mt6370_priv 86 ret = regulator_is_enabled(priv->vbus); 91 return regulator_disable(priv->vbus); 94 return regulator_enable(priv->vbus); 157 priv->vbus = devm_regulator_get_optional(dev, "vbus"); 158 if (!IS_ERR(priv->vbus))
|
H A D | tcpci_rt1711h.c | 65 struct regulator *vbus; member in struct:rt1711h_chip 163 ret = regulator_enable(chip->vbus); 165 ret = regulator_disable(chip->vbus); 368 chip->vbus = devm_regulator_get(&client->dev, "vbus"); 369 if (IS_ERR(chip->vbus)) 370 return PTR_ERR(chip->vbus);
|
/linux-master/drivers/phy/rockchip/ |
H A D | phy-rockchip-usb.c | 76 struct regulator *vbus; member in struct:rockchip_usb_phy 99 if (phy->vbus) 100 regulator_disable(phy->vbus); 157 if (phy->vbus) { 160 ret = regulator_enable(phy->vbus); 290 rk_phy->vbus = devm_regulator_get_optional(&rk_phy->phy->dev, "vbus"); 291 if (IS_ERR(rk_phy->vbus)) { 292 if (PTR_ERR(rk_phy->vbus) == -EPROBE_DEFER) 293 return PTR_ERR(rk_phy->vbus); [all...] |
/linux-master/drivers/phy/motorola/ |
H A D | phy-cpcap-usb.c | 123 struct iio_channel *vbus; member in struct:cpcap_phy_ddata 135 error = iio_read_channel_processed(ddata->vbus, &value); 219 bool vbus = false; local 228 vbus = cpcap_usb_vbus_valid(ddata); 246 if (vbus && s.id_ground && ddata->docked) { 255 if (vbus && s.id_ground && !ddata->vbus_provider) { 304 vbus = cpcap_usb_vbus_valid(ddata); 307 if (vbus) { 566 ddata->vbus = devm_iio_channel_get(ddata->dev, "vbus"); [all...] |
/linux-master/drivers/phy/renesas/ |
H A D | phy-rcar-gen3-usb2.c | 113 struct regulator *vbus; member in struct:rcar_gen3_chan 182 static void rcar_gen3_enable_vbus_ctrl(struct rcar_gen3_chan *ch, int vbus) argument 189 dev_vdbg(ch->dev, "%s: %08x, %d\n", __func__, val, vbus); 196 if (vbus) 505 if (channel->vbus) { 506 ret = regulator_enable(channel->vbus); 537 if (channel->vbus) 538 ret = regulator_disable(channel->vbus); 721 channel->vbus = devm_regulator_get_optional(dev, "vbus"); [all...] |
/linux-master/drivers/usb/mtu3/ |
H A D | mtu3_dr.c | 105 struct regulator *vbus = otg_sx->vbus; local 108 /* vbus is optional */ 109 if (!vbus) 115 ret = regulator_enable(vbus); 117 dev_err(ssusb->dev, "vbus regulator enable failed\n"); 121 regulator_disable(vbus);
|
/linux-master/drivers/phy/ |
H A D | phy-lgm-usb.c | 42 struct regulator *vbus; member in struct:tca_apb 127 ret = regulator_enable(ta->vbus); 129 ret = regulator_disable(ta->vbus); 134 dev_dbg(ta->phy.dev, "set vbus: %d\n", on); 216 ta->vbus = devm_regulator_get(dev, "vbus"); 217 if (IS_ERR(ta->vbus)) 218 return PTR_ERR(ta->vbus);
|
/linux-master/drivers/usb/dwc3/ |
H A D | dwc3-meson-g12a.c | 260 struct regulator *vbus; member in struct:dwc3_meson_g12a 495 if (priv->vbus) { 497 ret = regulator_disable(priv->vbus); 499 ret = regulator_enable(priv->vbus); 716 priv->vbus = devm_regulator_get_optional(dev, "vbus"); 717 if (IS_ERR(priv->vbus)) { 718 if (PTR_ERR(priv->vbus) == -EPROBE_DEFER) 719 return PTR_ERR(priv->vbus); 720 priv->vbus [all...] |
/linux-master/drivers/extcon/ |
H A D | extcon-usb-gpio.c | 62 int id, vbus; local 70 vbus = info->vbus_gpiod ? 76 if (!vbus) 82 if (vbus) 113 info->vbus_gpiod = devm_gpiod_get_optional(&pdev->dev, "vbus",
|
/linux-master/include/linux/usb/ |
H A D | tegra_usb_phy.h | 67 struct regulator *vbus; member in struct:tegra_usb_phy
|
/linux-master/drivers/usb/host/ |
H A D | ohci-pxa27x.c | 121 struct regulator *vbus[3]; member in struct:pxa27x_ohci 172 struct regulator *vbus = pxa_ohci->vbus[port]; local 175 if (IS_ERR_OR_NULL(vbus)) 179 ret = regulator_enable(vbus); 181 ret = regulator_disable(vbus); 456 sprintf(name, "vbus%u", i + 1); 457 pxa_ohci->vbus[i] = devm_regulator_get(&pdev->dev, name);
|
/linux-master/drivers/phy/freescale/ |
H A D | phy-fsl-imx8mq-usb.c | 57 struct regulator *vbus; member in struct:imx8mq_usb_phy 326 ret = regulator_enable(imx_phy->vbus); 338 regulator_disable(imx_phy->vbus); 395 imx_phy->vbus = devm_regulator_get(dev, "vbus"); 396 if (IS_ERR(imx_phy->vbus)) 397 return dev_err_probe(dev, PTR_ERR(imx_phy->vbus), "failed to get vbus\n");
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/ |
H A D | base.c | 54 int vbus = nv_rd16i2cr(i2c, addr, bus_reg); local 56 if (vshunt < 0 || vbus < 0) 60 vbus >>= bus_shift; 62 return vbus * vshunt * lsb / shunt;
|