Home
last modified time | relevance | path

Searched refs:otg_caps (Results 1 – 8 of 8) sorted by relevance

/kernel/linux/linux-5.10/drivers/usb/gadget/
Dconfig.c221 if (gadget->otg_caps && (gadget->otg_caps->otg_rev >= 0x0200)) in usb_otg_descriptor_alloc()
236 struct usb_otg_caps *otg_caps = gadget->otg_caps; in usb_otg_descriptor_init() local
242 if (otg_caps && otg_caps->otg_rev) { in usb_otg_descriptor_init()
243 if (otg_caps->hnp_support) in usb_otg_descriptor_init()
245 if (otg_caps->srp_support) in usb_otg_descriptor_init()
247 if (otg_caps->adp_support && (otg_caps->otg_rev >= 0x0200)) in usb_otg_descriptor_init()
253 if (otg_caps && (otg_caps->otg_rev >= 0x0200)) { in usb_otg_descriptor_init()
258 otg20_desc->bcdOTG = cpu_to_le16(otg_caps->otg_rev); in usb_otg_descriptor_init()
Dcomposite.c1755 if (gadget->otg_caps && in composite_setup()
1756 (gadget->otg_caps->otg_rev >= 0x0200)) in composite_setup()
/kernel/linux/linux-5.10/drivers/usb/common/
Dcommon.c323 struct usb_otg_caps *otg_caps) in of_usb_update_otg_caps() argument
327 if (!otg_caps) in of_usb_update_otg_caps()
337 if (otg_caps->otg_rev) in of_usb_update_otg_caps()
338 otg_caps->otg_rev = min_t(u16, otg_rev, in of_usb_update_otg_caps()
339 otg_caps->otg_rev); in of_usb_update_otg_caps()
341 otg_caps->otg_rev = otg_rev; in of_usb_update_otg_caps()
354 otg_caps->otg_rev = 0; in of_usb_update_otg_caps()
358 otg_caps->hnp_support = false; in of_usb_update_otg_caps()
360 otg_caps->srp_support = false; in of_usb_update_otg_caps()
362 (otg_caps->otg_rev < 0x0200)) in of_usb_update_otg_caps()
[all …]
/kernel/linux/linux-5.10/include/linux/usb/
Dof.h21 struct usb_otg_caps *otg_caps);
38 struct usb_otg_caps *otg_caps) in of_usb_update_otg_caps() argument
Dgadget.h416 struct usb_otg_caps *otg_caps; member
/kernel/linux/linux-5.10/drivers/usb/chipidea/
Dci.h440 struct usb_otg_caps *otg_caps = &ci->platdata->ci_otg_caps; in ci_otg_is_fsm_mode() local
443 ci->roles[CI_ROLE_GADGET] && (otg_caps->srp_support || in ci_otg_is_fsm_mode()
444 otg_caps->hnp_support || otg_caps->adp_support); in ci_otg_is_fsm_mode()
Dudc.c2052 struct usb_otg_caps *otg_caps = &ci->platdata->ci_otg_caps; in udc_start() local
2059 ci->gadget.otg_caps = otg_caps; in udc_start()
2066 if (ci->is_otg && (otg_caps->hnp_support || otg_caps->srp_support || in udc_start()
2067 otg_caps->adp_support)) in udc_start()
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/
D0034_linux_drivers_usb_vfio_wdt_tty_uio.patch4874 + dwc->otg_caps.otg_rev = 0x0300;
4875 + dwc->otg_caps.hnp_support = true;
4876 + dwc->otg_caps.srp_support = true;
4877 + dwc->otg_caps.adp_support = true;
4881 + &dwc->otg_caps);
5060 + * @otg_caps: the OTG capabilities from hardware point
5085 + struct usb_otg_caps otg_caps;
5611 + (dwc->otg_caps.hnp_support ||
5612 + dwc->otg_caps.srp_support ||
5613 + dwc->otg_caps.adp_support);