Lines Matching refs:vbus
3 * gpio-vbus.c - simple GPIO VBUS sensing driver for B peripheral devices
39 int vbus;
96 int status, vbus;
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 = 0; /* start with disconnected */
220 /* draw max 0 mA from vbus in suspend mode; or the previously
251 gpio_vbus->phy.label = "gpio-vbus";
261 gpio_vbus->vbus_gpiod = devm_gpiod_get(dev, "vbus", GPIOD_IN);
264 dev_err(&pdev->dev, "can't request vbus gpio, err: %d\n", err);
367 MODULE_ALIAS("platform:gpio-vbus");
371 .name = "gpio-vbus",