Lines Matching +full:peripheral +full:- +full:controller
1 /* SPDX-License-Identifier: GPL-2.0 */
6 * (for either host or peripheral roles) don't use these calls; they
28 /* bind/unbind the host controller */
31 /* bind/unbind the peripheral controller */
35 /* effective for A-peripheral, ignored for B devices */
38 /* for B devices only: start session with A-Host */
48 * struct usb_otg_caps - describes the otg capabilities of the device
50 * in binary-coded decimal (i.e. 2.0 is 0200H).
68 if (otg && otg->start_hnp) in otg_start_hnp()
69 return otg->start_hnp(otg); in otg_start_hnp()
71 return -ENOTSUPP; in otg_start_hnp()
78 if (otg && otg->set_vbus) in otg_set_vbus()
79 return otg->set_vbus(otg, enabled); in otg_set_vbus()
81 return -ENOTSUPP; in otg_set_vbus()
88 if (otg && otg->set_host) in otg_set_host()
89 return otg->set_host(otg, host); in otg_set_host()
91 return -ENOTSUPP; in otg_set_host()
94 /* for usb peripheral controller drivers */
100 if (otg && otg->set_peripheral) in otg_set_peripheral()
101 return otg->set_peripheral(otg, periph); in otg_set_peripheral()
103 return -ENOTSUPP; in otg_set_peripheral()
109 if (otg && otg->start_srp) in otg_start_srp()
110 return otg->start_srp(otg); in otg_start_srp()
112 return -ENOTSUPP; in otg_start_srp()
115 /* for OTG controller drivers (and maybe other stuff) */
126 * usb_get_dr_mode - Get dual role mode for given device