Home
last modified time | relevance | path

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

/linux-6.15/drivers/usb/gadget/
H A Dconfig.c219 if (gadget->otg_caps && (gadget->otg_caps->otg_rev >= 0x0200)) in usb_otg_descriptor_alloc()
234 struct usb_otg_caps *otg_caps = gadget->otg_caps; in usb_otg_descriptor_init() local
240 if (otg_caps && otg_caps->otg_rev) { in usb_otg_descriptor_init()
241 if (otg_caps->hnp_support) in usb_otg_descriptor_init()
243 if (otg_caps->srp_support) in usb_otg_descriptor_init()
245 if (otg_caps->adp_support && (otg_caps->otg_rev >= 0x0200)) in usb_otg_descriptor_init()
251 if (otg_caps && (otg_caps->otg_rev >= 0x0200)) { in usb_otg_descriptor_init()
256 otg20_desc->bcdOTG = cpu_to_le16(otg_caps->otg_rev); in usb_otg_descriptor_init()
H A Dcomposite.c1896 if (gadget->otg_caps && in composite_setup()
1897 (gadget->otg_caps->otg_rev >= 0x0200)) in composite_setup()
/linux-6.15/drivers/usb/dwc2/
H A Dparams.c32 p->otg_caps.hnp_support = false; in dwc2_set_his_params()
33 p->otg_caps.srp_support = false; in dwc2_set_his_params()
55 p->otg_caps.hnp_support = false; in dwc2_set_jz4775_params()
75 p->otg_caps.hnp_support = false; in dwc2_set_x1600_params()
88 p->otg_caps.hnp_support = false; in dwc2_set_x2000_params()
121 p->otg_caps.hnp_support = false; in dwc2_set_rk_params()
122 p->otg_caps.srp_support = false; in dwc2_set_rk_params()
140 p->otg_caps.hnp_support = false; in dwc2_set_ltq_danube_params()
271 p->otg_caps.otg_rev = 0x200; in dwc2_set_stm32mp15_fsotg_params()
293 p->otg_caps.otg_rev = 0x200; in dwc2_set_stm32mp15_hsotg_params()
[all …]
H A Ddebugfs.c673 print_param(seq, p, otg_caps.hnp_support); in params_show()
674 print_param(seq, p, otg_caps.srp_support); in params_show()
675 print_param(seq, p, otg_caps.otg_rev); in params_show()
H A Dcore.h438 struct usb_otg_caps otg_caps; member
H A Dhcd.c112 if (hsotg->params.otg_caps.hnp_support && in dwc2_gusbcfg_init()
113 hsotg->params.otg_caps.srp_support) in dwc2_gusbcfg_init()
120 if (hsotg->params.otg_caps.srp_support) in dwc2_gusbcfg_init()
H A Dgadget.c5004 hsotg->gadget.otg_caps = &hsotg->params.otg_caps; in dwc2_gadget_init()
/linux-6.15/drivers/usb/common/
H A Dcommon.c356 struct usb_otg_caps *otg_caps) in of_usb_update_otg_caps() argument
360 if (!otg_caps) in of_usb_update_otg_caps()
370 if (otg_caps->otg_rev) in of_usb_update_otg_caps()
371 otg_caps->otg_rev = min_t(u16, otg_rev, in of_usb_update_otg_caps()
372 otg_caps->otg_rev); in of_usb_update_otg_caps()
374 otg_caps->otg_rev = otg_rev; in of_usb_update_otg_caps()
387 otg_caps->otg_rev = 0; in of_usb_update_otg_caps()
391 otg_caps->hnp_support = false; in of_usb_update_otg_caps()
393 otg_caps->srp_support = false; in of_usb_update_otg_caps()
395 (otg_caps->otg_rev < 0x0200)) in of_usb_update_otg_caps()
[all …]
/linux-6.15/include/linux/usb/
H A Dof.h20 struct usb_otg_caps *otg_caps);
38 struct usb_otg_caps *otg_caps) in of_usb_update_otg_caps() argument
H A Dgadget.h435 struct usb_otg_caps *otg_caps; member
/linux-6.15/drivers/usb/chipidea/
H A Dci.h464 struct usb_otg_caps *otg_caps = &ci->platdata->ci_otg_caps; in ci_otg_is_fsm_mode() local
467 ci->roles[CI_ROLE_GADGET] && (otg_caps->srp_support || in ci_otg_is_fsm_mode()
468 otg_caps->hnp_support || otg_caps->adp_support); in ci_otg_is_fsm_mode()
H A Dudc.c2263 struct usb_otg_caps *otg_caps = &ci->platdata->ci_otg_caps; in udc_start() local
2270 ci->gadget.otg_caps = otg_caps; in udc_start()
2277 if (ci->is_otg && (otg_caps->hnp_support || otg_caps->srp_support || in udc_start()
2278 otg_caps->adp_support)) in udc_start()