Home
last modified time | relevance | path

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

/drivers/usb/gadget/
Dconfig.c213 if (gadget->otg_caps && (gadget->otg_caps->otg_rev >= 0x0200)) in usb_otg_descriptor_alloc()
228 struct usb_otg_caps *otg_caps = gadget->otg_caps; in usb_otg_descriptor_init() local
234 if (otg_caps && otg_caps->otg_rev) { in usb_otg_descriptor_init()
235 if (otg_caps->hnp_support) in usb_otg_descriptor_init()
237 if (otg_caps->srp_support) in usb_otg_descriptor_init()
239 if (otg_caps->adp_support && (otg_caps->otg_rev >= 0x0200)) in usb_otg_descriptor_init()
245 if (otg_caps && (otg_caps->otg_rev >= 0x0200)) { in usb_otg_descriptor_init()
250 otg20_desc->bcdOTG = cpu_to_le16(otg_caps->otg_rev); in usb_otg_descriptor_init()
Dcomposite.c1659 if (gadget->otg_caps && in composite_setup()
1660 (gadget->otg_caps->otg_rev >= 0x0200)) in composite_setup()
/drivers/usb/common/
Dcommon.c209 struct usb_otg_caps *otg_caps) in of_usb_update_otg_caps() argument
213 if (!otg_caps) in of_usb_update_otg_caps()
223 if (otg_caps->otg_rev) in of_usb_update_otg_caps()
224 otg_caps->otg_rev = min_t(u16, otg_rev, in of_usb_update_otg_caps()
225 otg_caps->otg_rev); in of_usb_update_otg_caps()
227 otg_caps->otg_rev = otg_rev; in of_usb_update_otg_caps()
240 otg_caps->otg_rev = 0; in of_usb_update_otg_caps()
244 otg_caps->hnp_support = false; in of_usb_update_otg_caps()
246 otg_caps->srp_support = false; in of_usb_update_otg_caps()
248 (otg_caps->otg_rev < 0x0200)) in of_usb_update_otg_caps()
[all …]
/drivers/usb/chipidea/
Dci.h411 struct usb_otg_caps *otg_caps = &ci->platdata->ci_otg_caps; in ci_otg_is_fsm_mode() local
414 ci->roles[CI_ROLE_GADGET] && (otg_caps->srp_support || in ci_otg_is_fsm_mode()
415 otg_caps->hnp_support || otg_caps->adp_support); in ci_otg_is_fsm_mode()
Dudc.c1889 struct usb_otg_caps *otg_caps = &ci->platdata->ci_otg_caps; in udc_start() local
1896 ci->gadget.otg_caps = otg_caps; in udc_start()
1898 if (ci->is_otg && (otg_caps->hnp_support || otg_caps->srp_support || in udc_start()
1899 otg_caps->adp_support)) in udc_start()