Home
last modified time | relevance | path

Searched refs:vbus (Results 101 - 125 of 131) sorted by relevance

123456

/kernel/linux/linux-6.6/drivers/usb/gadget/udc/
H A Dcore.c37 * @vbus: for udcs who care about vbus status, this value is real vbus status;
38 * for udcs who do not care about vbus status, this value is always true
58 bool vbus; member
1131 if (udc->vbus)
1147 * usb_udc_vbus_handler - updates the udc core vbus status, and try to
1149 * @gadget: The gadget which vbus change occurs
1150 * @status: The vbus status
1153 * according to vbus statu
[all...]
H A Dmv_u3d_core.c1452 dev_dbg(u3d->dev, "vbus invalid\n"); in mv_u3d_irq_process_link_change()
1455 /* if external vbus detect is not supported, in mv_u3d_irq_process_link_change()
1458 if (!u3d->vbus) { in mv_u3d_irq_process_link_change()
1697 /* write vbus valid bit of bridge setting to clear */ in mv_u3d_irq()
1700 dev_dbg(u3d->dev, "vbus valid\n"); in mv_u3d_irq()
1704 /* if external vbus detect is not supported, in mv_u3d_irq()
1707 if (!u3d->vbus) { in mv_u3d_irq()
1713 dev_err(u3d->dev, "vbus bit is not set\n"); in mv_u3d_irq()
1805 u3d->vbus = pdata->vbus; in mv_u3d_probe()
[all...]
H A Datmel_usba_udc.c1943 int vbus; in usba_vbus_irq_thread() local
1950 vbus = vbus_is_present(udc); in usba_vbus_irq_thread()
1951 if (vbus != udc->vbus_prev) { in usba_vbus_irq_thread()
1952 if (vbus) { in usba_vbus_irq_thread()
1961 udc->vbus_prev = vbus; in usba_vbus_irq_thread()
2166 udc->vbus_pin = devm_gpiod_get_optional(&pdev->dev, "atmel,vbus", in atmel_udc_of_init()
2353 "failed to request vbus irq; " in usba_udc_probe()
2404 * to request vbus irq, assuming always on. in usba_udc_suspend()
H A Dpxa25x_udc.c1147 int is_active = udc->vbus && udc->pullup && !udc->suspended; in pullup()
1180 udc->vbus = is_active; in pxa25x_udc_vbus_session()
1181 DMSG("vbus %s\n", is_active ? "supplied" : "inactive"); in pxa25x_udc_vbus_session()
1203 * the 500uA suspend ceiling means that exclusively vbus-powered PXA designs
2370 dev->vbus = 0; in pxa25x_udc_probe()
/kernel/linux/linux-5.10/drivers/usb/typec/tcpm/
H A Dfusb302.c79 struct regulator *vbus; member
764 fusb302_log(chip, "vbus is already %s", on ? "On" : "Off"); in tcpm_set_vbus()
767 ret = regulator_enable(chip->vbus); in tcpm_set_vbus()
769 ret = regulator_disable(chip->vbus); in tcpm_set_vbus()
771 fusb302_log(chip, "cannot %s vbus regulator, ret=%d", in tcpm_set_vbus()
776 fusb302_log(chip, "vbus := %s", on ? "On" : "Off"); in tcpm_set_vbus()
1526 fusb302_log(chip, "IRQ: VBUS_OK, vbus=%s", in fusb302_irq_work()
1708 chip->vbus = devm_regulator_get(chip->dev, "vbus"); in fusb302_probe()
1709 if (IS_ERR(chip->vbus)) in fusb302_probe()
[all...]
/kernel/linux/linux-6.6/drivers/usb/typec/tcpm/
H A Dfusb302.c79 struct regulator *vbus; member
764 fusb302_log(chip, "vbus is already %s", on ? "On" : "Off"); in tcpm_set_vbus()
767 ret = regulator_enable(chip->vbus); in tcpm_set_vbus()
769 ret = regulator_disable(chip->vbus); in tcpm_set_vbus()
771 fusb302_log(chip, "cannot %s vbus regulator, ret=%d", in tcpm_set_vbus()
776 fusb302_log(chip, "vbus := %s", on ? "On" : "Off"); in tcpm_set_vbus()
1533 fusb302_log(chip, "IRQ: VBUS_OK, vbus=%s", in fusb302_irq_work()
1714 chip->vbus = devm_regulator_get(chip->dev, "vbus"); in fusb302_probe()
1715 if (IS_ERR(chip->vbus)) in fusb302_probe()
[all...]
/kernel/linux/linux-5.10/drivers/usb/musb/
H A Dmusb_core.c765 * and peripheral capacitance combined with vbus draw. in musb_handle_intr_vbuserr()
767 * vbus doesn't act like a power supply.) in musb_handle_intr_vbuserr()
1214 * (b) vbus present/connect IRQ, peripheral mode; in musb_start()
1924 int vbus; in vbus_show() local
1930 vbus = musb_platform_get_vbus_status(musb); in vbus_show()
1931 if (vbus < 0) { in vbus_show()
1936 vbus = 1; in vbus_show()
1938 vbus = 0; in vbus_show()
1944 vbus ? "on" : "off", val); in vbus_show()
1946 static DEVICE_ATTR_RW(vbus);
[all...]
/kernel/linux/linux-6.6/drivers/usb/musb/
H A Dmusb_core.c762 * and peripheral capacitance combined with vbus draw. in musb_handle_intr_vbuserr()
764 * vbus doesn't act like a power supply.) in musb_handle_intr_vbuserr()
1210 * (b) vbus present/connect IRQ, peripheral mode; in musb_start()
1920 int vbus; in vbus_show() local
1926 vbus = musb_platform_get_vbus_status(musb); in vbus_show()
1927 if (vbus < 0) { in vbus_show()
1932 vbus = 1; in vbus_show()
1934 vbus = 0; in vbus_show()
1940 vbus ? "on" : "off", val); in vbus_show()
1942 static DEVICE_ATTR_RW(vbus);
[all...]
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/
H A Dmv_u3d_core.c1451 dev_dbg(u3d->dev, "vbus invalid\n"); in mv_u3d_irq_process_link_change()
1454 /* if external vbus detect is not supported, in mv_u3d_irq_process_link_change()
1457 if (!u3d->vbus) { in mv_u3d_irq_process_link_change()
1696 /* write vbus valid bit of bridge setting to clear */ in mv_u3d_irq()
1699 dev_dbg(u3d->dev, "vbus valid\n"); in mv_u3d_irq()
1703 /* if external vbus detect is not supported, in mv_u3d_irq()
1706 if (!u3d->vbus) { in mv_u3d_irq()
1712 dev_err(u3d->dev, "vbus bit is not set\n"); in mv_u3d_irq()
1806 u3d->vbus = pdata->vbus; in mv_u3d_probe()
[all...]
H A Datmel_usba_udc.c1940 int vbus; in usba_vbus_irq_thread() local
1947 vbus = vbus_is_present(udc); in usba_vbus_irq_thread()
1948 if (vbus != udc->vbus_prev) { in usba_vbus_irq_thread()
1949 if (vbus) { in usba_vbus_irq_thread()
1958 udc->vbus_prev = vbus; in usba_vbus_irq_thread()
2163 udc->vbus_pin = devm_gpiod_get_optional(&pdev->dev, "atmel,vbus", in atmel_udc_of_init()
2350 "failed to request vbus irq; " in usba_udc_probe()
2403 * to request vbus irq, assuming always on. in usba_udc_suspend()
H A Ds3c2410_udc.c1447 udc->vbus = (is_active != 0); in s3c2410_udc_vbus_session()
1473 if (value != dev->vbus) in s3c2410_udc_vbus_irq()
1805 retval = gpio_request(udc_info->vbus_pin, "udc vbus"); in s3c2410_udc_probe()
1807 dev_err(dev, "cannot claim vbus pin\n"); in s3c2410_udc_probe()
1813 dev_err(dev, "no irq for gpio vbus pin\n"); in s3c2410_udc_probe()
1824 dev_err(dev, "can't get vbus irq %d, err %d\n", in s3c2410_udc_probe()
1832 udc->vbus = 1; in s3c2410_udc_probe()
/kernel/linux/linux-5.10/drivers/usb/mtu3/
H A Dmtu3.h193 * @vbus: vbus 5V used by host mode
194 * @edev: external connector used to detect vbus and iddig changes
195 * @vbus_nb: notifier for vbus detection
196 * @vbus_work : work of vbus detection notifier, used to avoid sleep in
198 * @vbus_event : event of vbus detecion notifier
210 struct regulator *vbus; member
H A Dmtu3_debugfs.c480 seq_printf(sf, "vbus state: %s\n(echo on/off)\n", in ssusb_vbus_show()
481 regulator_is_enabled(otg_sx->vbus) ? "on" : "off"); in ssusb_vbus_show()
526 debugfs_create_file("vbus", 0644, root, ssusb, &ssusb_vbus_fops); in ssusb_dr_debugfs_init()
/kernel/linux/linux-5.10/drivers/usb/host/
H A Dehci-mv.c42 int (*set_vbus)(unsigned int vbus);
/kernel/linux/linux-5.10/drivers/regulator/
H A Dbcm590xx-regulator.c191 BCM590XX_REG_TABLE(vbus, ldo_vbus),
/kernel/linux/linux-6.6/drivers/usb/host/
H A Dehci-mv.c42 int (*set_vbus)(unsigned int vbus);
/kernel/linux/linux-6.6/drivers/regulator/
H A Dbcm590xx-regulator.c191 BCM590XX_REG_TABLE(vbus, ldo_vbus),
/kernel/linux/linux-6.6/drivers/usb/mtu3/
H A Dmtu3.h198 * @vbus: vbus 5V used by host mode
199 * @edev: external connector used to detect vbus and iddig changes
212 struct regulator *vbus; member
/kernel/linux/linux-5.10/drivers/usb/phy/
H A Dphy-twl6030-usb.c82 /* for vbus reporting with irqs disabled */
90 /* used to set vbus, in atomic path */
182 ret = snprintf(buf, PAGE_SIZE, "vbus\n"); in vbus_show()
197 static DEVICE_ATTR_RO(vbus);
242 sysfs_notify(&twl->dev->kobj, NULL, "vbus"); in twl6030_usb_irq()
H A Dphy-tahvo.c68 static DEVICE_ATTR_RO(vbus);
401 "tahvo-vbus", tu); in tahvo_usb_probe()
403 dev_err(&pdev->dev, "could not register tahvo-vbus irq: %d\n", in tahvo_usb_probe()
/kernel/linux/linux-6.6/drivers/usb/phy/
H A Dphy-twl6030-usb.c82 /* for vbus reporting with irqs disabled */
90 /* used to set vbus, in atomic path */
182 ret = snprintf(buf, PAGE_SIZE, "vbus\n"); in vbus_show()
197 static DEVICE_ATTR_RO(vbus);
242 sysfs_notify(&twl->dev->kobj, NULL, "vbus"); in twl6030_usb_irq()
H A Dphy-tahvo.c68 static DEVICE_ATTR_RO(vbus);
397 "tahvo-vbus", tu); in tahvo_usb_probe()
399 dev_err(&pdev->dev, "could not register tahvo-vbus irq: %d\n", in tahvo_usb_probe()
/kernel/linux/linux-5.10/drivers/scsi/aacraid/
H A Dcommsup.c2290 u32 vbus, vid; in aac_send_wellness_command() local
2303 vbus = (u32)le16_to_cpu(dev->supplement_adapter_info.virt_device_bus); in aac_send_wellness_command()
2309 srbcmd->channel = cpu_to_le32(vbus); in aac_send_wellness_command()
/kernel/linux/linux-6.6/drivers/scsi/aacraid/
H A Dcommsup.c2291 u32 vbus, vid; in aac_send_wellness_command() local
2304 vbus = (u32)le16_to_cpu(dev->supplement_adapter_info.virt_device_bus); in aac_send_wellness_command()
2310 srbcmd->channel = cpu_to_le32(vbus); in aac_send_wellness_command()
/kernel/linux/linux-5.10/drivers/phy/ti/
H A Dphy-twl4030-usb.c154 /* for vbus reporting with irqs disabled */
560 static DEVICE_ATTR(vbus, 0444, twl4030_usb_vbus_show, NULL);
603 sysfs_notify(&twl->dev->kobj, NULL, "vbus"); in twl4030_usb_irq()

Completed in 39 milliseconds

123456