Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/usb/common/
Dcommon.c152 struct usb_otg_caps *otg_caps) in of_usb_update_otg_caps() argument
156 if (!otg_caps) in of_usb_update_otg_caps()
166 if (otg_caps->otg_rev) in of_usb_update_otg_caps()
167 otg_caps->otg_rev = min_t(u16, otg_rev, in of_usb_update_otg_caps()
168 otg_caps->otg_rev); in of_usb_update_otg_caps()
170 otg_caps->otg_rev = otg_rev; in of_usb_update_otg_caps()
183 otg_caps->otg_rev = 0; in of_usb_update_otg_caps()
187 otg_caps->hnp_support = false; in of_usb_update_otg_caps()
189 otg_caps->srp_support = false; in of_usb_update_otg_caps()
191 (otg_caps->otg_rev < 0x0200)) in of_usb_update_otg_caps()
[all …]
/linux-4.4.14/drivers/usb/gadget/
Dconfig.c206 if (gadget->otg_caps && (gadget->otg_caps->otg_rev >= 0x0200)) in usb_otg_descriptor_alloc()
221 struct usb_otg_caps *otg_caps = gadget->otg_caps; in usb_otg_descriptor_init() local
227 if (otg_caps && otg_caps->otg_rev) { in usb_otg_descriptor_init()
228 if (otg_caps->hnp_support) in usb_otg_descriptor_init()
230 if (otg_caps->srp_support) in usb_otg_descriptor_init()
232 if (otg_caps->adp_support && (otg_caps->otg_rev >= 0x0200)) in usb_otg_descriptor_init()
238 if (otg_caps && (otg_caps->otg_rev >= 0x0200)) { in usb_otg_descriptor_init()
243 otg20_desc->bcdOTG = cpu_to_le16(otg_caps->otg_rev); in usb_otg_descriptor_init()
Dcomposite.c1558 if (gadget->otg_caps && in composite_setup()
1559 (gadget->otg_caps->otg_rev >= 0x0200)) in composite_setup()
/linux-4.4.14/include/linux/usb/
Dof.h17 struct usb_otg_caps *otg_caps);
24 struct usb_otg_caps *otg_caps) in of_usb_update_otg_caps() argument
Dgadget.h634 struct usb_otg_caps *otg_caps; member
/linux-4.4.14/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.c1872 struct usb_otg_caps *otg_caps = &ci->platdata->ci_otg_caps; in udc_start() local
1881 ci->gadget.otg_caps = otg_caps; in udc_start()
1883 if (ci->is_otg && (otg_caps->hnp_support || otg_caps->srp_support || in udc_start()
1884 otg_caps->adp_support)) in udc_start()