Searched refs:otg_caps (Results 1 – 7 of 7) sorted by relevance
209 if (gadget->otg_caps && (gadget->otg_caps->otg_rev >= 0x0200)) in usb_otg_descriptor_alloc()224 struct usb_otg_caps *otg_caps = gadget->otg_caps; in usb_otg_descriptor_init() local230 if (otg_caps && otg_caps->otg_rev) { in usb_otg_descriptor_init()231 if (otg_caps->hnp_support) in usb_otg_descriptor_init()233 if (otg_caps->srp_support) in usb_otg_descriptor_init()235 if (otg_caps->adp_support && (otg_caps->otg_rev >= 0x0200)) in usb_otg_descriptor_init()241 if (otg_caps && (otg_caps->otg_rev >= 0x0200)) { in usb_otg_descriptor_init()246 otg20_desc->bcdOTG = cpu_to_le16(otg_caps->otg_rev); in usb_otg_descriptor_init()
1733 if (gadget->otg_caps && in composite_setup()1734 (gadget->otg_caps->otg_rev >= 0x0200)) in composite_setup()
223 struct usb_otg_caps *otg_caps) in of_usb_update_otg_caps() argument227 if (!otg_caps) in of_usb_update_otg_caps()237 if (otg_caps->otg_rev) in of_usb_update_otg_caps()238 otg_caps->otg_rev = min_t(u16, otg_rev, in of_usb_update_otg_caps()239 otg_caps->otg_rev); in of_usb_update_otg_caps()241 otg_caps->otg_rev = otg_rev; in of_usb_update_otg_caps()254 otg_caps->otg_rev = 0; in of_usb_update_otg_caps()258 otg_caps->hnp_support = false; in of_usb_update_otg_caps()260 otg_caps->srp_support = false; in of_usb_update_otg_caps()262 (otg_caps->otg_rev < 0x0200)) in of_usb_update_otg_caps()[all …]
21 struct usb_otg_caps *otg_caps);38 struct usb_otg_caps *otg_caps) in of_usb_update_otg_caps() argument
416 struct usb_otg_caps *otg_caps; member
440 struct usb_otg_caps *otg_caps = &ci->platdata->ci_otg_caps; in ci_otg_is_fsm_mode() local443 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()
2049 struct usb_otg_caps *otg_caps = &ci->platdata->ci_otg_caps; in udc_start() local2056 ci->gadget.otg_caps = otg_caps; in udc_start()2062 if (ci->is_otg && (otg_caps->hnp_support || otg_caps->srp_support || in udc_start()2063 otg_caps->adp_support)) in udc_start()