/kernel/linux/linux-5.10/drivers/usb/gadget/ |
H A D | config.c | 221 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 in usb_otg_descriptor_init() [all...] |
H A D | composite.c | 1755 if (gadget->otg_caps && in composite_setup() 1756 (gadget->otg_caps->otg_rev >= 0x0200)) in composite_setup()
|
/kernel/linux/linux-6.6/drivers/usb/gadget/ |
H A D | config.c | 219 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 in usb_otg_descriptor_init() [all...] |
H A D | composite.c | 1895 if (gadget->otg_caps && in composite_setup() 1896 (gadget->otg_caps->otg_rev >= 0x0200)) in composite_setup()
|
/kernel/linux/linux-5.10/drivers/usb/common/ |
H A D | common.c | 318 * @otg_caps: Pointer to the target usb_otg_caps to be set 323 struct usb_otg_caps *otg_caps) in of_usb_update_otg_caps() 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 in of_usb_update_otg_caps() 322 of_usb_update_otg_caps(struct device_node *np, struct usb_otg_caps *otg_caps) of_usb_update_otg_caps() argument [all...] |
/kernel/linux/linux-6.6/drivers/usb/common/ |
H A D | common.c | 339 * @otg_caps: Pointer to the target usb_otg_caps to be set 344 struct usb_otg_caps *otg_caps) in of_usb_update_otg_caps() 348 if (!otg_caps) in of_usb_update_otg_caps() 358 if (otg_caps->otg_rev) in of_usb_update_otg_caps() 359 otg_caps->otg_rev = min_t(u16, otg_rev, in of_usb_update_otg_caps() 360 otg_caps->otg_rev); in of_usb_update_otg_caps() 362 otg_caps->otg_rev = otg_rev; in of_usb_update_otg_caps() 375 otg_caps->otg_rev = 0; in of_usb_update_otg_caps() 379 otg_caps->hnp_support = false; in of_usb_update_otg_caps() 381 otg_caps in of_usb_update_otg_caps() 343 of_usb_update_otg_caps(struct device_node *np, struct usb_otg_caps *otg_caps) of_usb_update_otg_caps() argument [all...] |
/kernel/linux/linux-6.6/drivers/usb/dwc2/ |
H A D | params.c | 32 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() 139 p->otg_caps.hnp_support = false; in dwc2_set_ltq_params() 140 p->otg_caps.srp_support = false; in dwc2_set_ltq_params() 154 p->otg_caps in dwc2_set_amlogic_params() [all...] |
H A D | debugfs.c | 673 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 D | core.h | 211 * @otg_caps: Specifies the OTG capabilities. OTG caps from the platform parameters, 433 struct usb_otg_caps otg_caps; member
|
H A D | hcd.c | 112 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 D | gadget.c | 4990 hsotg->gadget.otg_caps = &hsotg->params.otg_caps; in dwc2_gadget_init()
|
/kernel/linux/linux-5.10/include/linux/usb/ |
H A D | of.h | 21 struct usb_otg_caps *otg_caps); 38 struct usb_otg_caps *otg_caps) in of_usb_update_otg_caps() 37 of_usb_update_otg_caps(struct device_node *np, struct usb_otg_caps *otg_caps) of_usb_update_otg_caps() argument
|
H A D | gadget.h | 351 * @otg_caps: OTG capabilities of this gadget. 417 struct usb_otg_caps *otg_caps; member
|
/kernel/linux/linux-6.6/include/linux/usb/ |
H A D | of.h | 19 struct usb_otg_caps *otg_caps); 36 struct usb_otg_caps *otg_caps) in of_usb_update_otg_caps() 35 of_usb_update_otg_caps(struct device_node *np, struct usb_otg_caps *otg_caps) of_usb_update_otg_caps() argument
|
H A D | gadget.h | 359 * @otg_caps: OTG capabilities of this gadget. 433 struct usb_otg_caps *otg_caps; member
|
/kernel/linux/linux-5.10/drivers/usb/chipidea/ |
H A D | ci.h | 442 struct usb_otg_caps *otg_caps = &ci->platdata->ci_otg_caps; in ci_otg_is_fsm_mode() local 445 ci->roles[CI_ROLE_GADGET] && (otg_caps->srp_support || in ci_otg_is_fsm_mode() 446 otg_caps->hnp_support || otg_caps->adp_support); in ci_otg_is_fsm_mode()
|
H A D | udc.c | 2052 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/linux-6.6/drivers/usb/chipidea/ |
H A D | ci.h | 462 struct usb_otg_caps *otg_caps = &ci->platdata->ci_otg_caps; in ci_otg_is_fsm_mode() local 465 ci->roles[CI_ROLE_GADGET] && (otg_caps->srp_support || in ci_otg_is_fsm_mode() 466 otg_caps->hnp_support || otg_caps->adp_support); in ci_otg_is_fsm_mode()
|
H A D | udc.c | 2090 struct usb_otg_caps *otg_caps = &ci->platdata->ci_otg_caps; in udc_start() local 2097 ci->gadget.otg_caps = otg_caps; in udc_start() 2104 if (ci->is_otg && (otg_caps->hnp_support || otg_caps->srp_support || in udc_start() 2105 otg_caps->adp_support)) in udc_start()
|