Home
last modified time | relevance | path

Searched refs:otg_desc (Results 1 – 14 of 14) sorted by relevance

/linux/drivers/usb/gadget/legacy/
A Dncm.c68 static const struct usb_descriptor_header *otg_desc[2]; variable
100 c->descriptors = otg_desc; in ncm_do_config()
155 if (gadget_is_otg(gadget) && !otg_desc[0]) { in gncm_bind()
164 otg_desc[0] = usb_desc; in gncm_bind()
165 otg_desc[1] = NULL; in gncm_bind()
179 kfree(otg_desc[0]); in gncm_bind()
180 otg_desc[0] = NULL; in gncm_bind()
192 kfree(otg_desc[0]); in gncm_unbind()
193 otg_desc[0] = NULL; in gncm_unbind()
A Dmass_storage.c63 static const struct usb_descriptor_header *otg_desc[2]; variable
111 c->descriptors = otg_desc; in msg_do_config()
174 if (gadget_is_otg(cdev->gadget) && !otg_desc[0]) { in msg_bind()
183 otg_desc[0] = usb_desc; in msg_bind()
184 otg_desc[1] = NULL; in msg_bind()
197 kfree(otg_desc[0]); in msg_bind()
198 otg_desc[0] = NULL; in msg_bind()
216 kfree(otg_desc[0]); in msg_unbind()
217 otg_desc[0] = NULL; in msg_unbind()
A Dprinter.c79 static const struct usb_descriptor_header *otg_desc[2]; variable
124 printer_cfg_driver.descriptors = otg_desc; in printer_do_config()
174 if (gadget_is_otg(cdev->gadget) && !otg_desc[0]) { in printer_bind()
183 otg_desc[0] = usb_desc; in printer_bind()
184 otg_desc[1] = NULL; in printer_bind()
195 kfree(otg_desc[0]); in printer_bind()
196 otg_desc[0] = NULL; in printer_bind()
207 kfree(otg_desc[0]); in printer_unbind()
208 otg_desc[0] = NULL; in printer_unbind()
A Dcdc2.c59 static const struct usb_descriptor_header *otg_desc[2]; variable
94 c->descriptors = otg_desc; in cdc_do_config()
178 if (gadget_is_otg(gadget) && !otg_desc[0]) { in cdc_bind()
187 otg_desc[0] = usb_desc; in cdc_bind()
188 otg_desc[1] = NULL; in cdc_bind()
203 kfree(otg_desc[0]); in cdc_bind()
204 otg_desc[0] = NULL; in cdc_bind()
220 kfree(otg_desc[0]); in cdc_unbind()
221 otg_desc[0] = NULL; in cdc_unbind()
A Dacm_ms.c57 static const struct usb_descriptor_header *otg_desc[2]; variable
111 c->descriptors = otg_desc; in acm_ms_do_config()
199 if (gadget_is_otg(gadget) && !otg_desc[0]) { in acm_ms_bind()
208 otg_desc[0] = usb_desc; in acm_ms_bind()
209 otg_desc[1] = NULL; in acm_ms_bind()
224 kfree(otg_desc[0]); in acm_ms_bind()
225 otg_desc[0] = NULL; in acm_ms_bind()
243 kfree(otg_desc[0]); in acm_ms_unbind()
244 otg_desc[0] = NULL; in acm_ms_unbind()
A Dhid.c66 static const struct usb_descriptor_header *otg_desc[2]; variable
96 c->descriptors = otg_desc; in do_config()
172 if (gadget_is_otg(gadget) && !otg_desc[0]) { in hid_bind()
181 otg_desc[0] = usb_desc; in hid_bind()
182 otg_desc[1] = NULL; in hid_bind()
196 kfree(otg_desc[0]); in hid_bind()
197 otg_desc[0] = NULL; in hid_bind()
216 kfree(otg_desc[0]); in hid_unbind()
217 otg_desc[0] = NULL; in hid_unbind()
A Dserial.c78 static const struct usb_descriptor_header *otg_desc[2]; variable
207 if (!otg_desc[0]) { in gs_bind()
216 otg_desc[0] = usb_desc; in gs_bind()
217 otg_desc[1] = NULL; in gs_bind()
219 serial_config_driver.descriptors = otg_desc; in gs_bind()
243 kfree(otg_desc[0]); in gs_bind()
244 otg_desc[0] = NULL; in gs_bind()
258 kfree(otg_desc[0]); in gs_unbind()
259 otg_desc[0] = NULL; in gs_unbind()
A Dether.c170 static const struct usb_descriptor_header *otg_desc[2]; variable
215 c->descriptors = otg_desc; in rndis_do_config()
257 c->descriptors = otg_desc; in eth_do_config()
402 if (gadget_is_otg(gadget) && !otg_desc[0]) { in eth_bind()
411 otg_desc[0] = usb_desc; in eth_bind()
412 otg_desc[1] = NULL; in eth_bind()
434 kfree(otg_desc[0]); in eth_bind()
435 otg_desc[0] = NULL; in eth_bind()
465 kfree(otg_desc[0]); in eth_unbind()
466 otg_desc[0] = NULL; in eth_unbind()
A Daudio.c183 static const struct usb_descriptor_header *otg_desc[2]; variable
194 c->descriptors = otg_desc; in audio_do_config()
299 if (gadget_is_otg(cdev->gadget) && !otg_desc[0]) { in audio_bind()
308 otg_desc[0] = usb_desc; in audio_bind()
309 otg_desc[1] = NULL; in audio_bind()
321 kfree(otg_desc[0]); in audio_bind()
322 otg_desc[0] = NULL; in audio_bind()
345 kfree(otg_desc[0]); in audio_unbind()
346 otg_desc[0] = NULL; in audio_unbind()
A Dzero.c122 static const struct usb_descriptor_header *otg_desc[2]; variable
337 if (!otg_desc[0]) { in zero_bind()
346 otg_desc[0] = usb_desc; in zero_bind()
347 otg_desc[1] = NULL; in zero_bind()
349 sourcesink_driver.descriptors = otg_desc; in zero_bind()
351 loopback_driver.descriptors = otg_desc; in zero_bind()
382 kfree(otg_desc[0]); in zero_bind()
383 otg_desc[0] = NULL; in zero_bind()
408 kfree(otg_desc[0]); in zero_unbind()
409 otg_desc[0] = NULL; in zero_unbind()
A Dmulti.c77 static const struct usb_descriptor_header *otg_desc[2]; variable
139 c->descriptors = otg_desc; in rndis_do_config()
221 c->descriptors = otg_desc; in cdc_do_config()
398 if (gadget_is_otg(gadget) && !otg_desc[0]) { in multi_bind()
407 otg_desc[0] = usb_desc; in multi_bind()
408 otg_desc[1] = NULL; in multi_bind()
428 kfree(otg_desc[0]); in multi_bind()
429 otg_desc[0] = NULL; in multi_bind()
473 kfree(otg_desc[0]); in multi_unbind()
474 otg_desc[0] = NULL; in multi_unbind()
/linux/drivers/usb/gadget/
A Dconfig.c218 struct usb_descriptor_header *otg_desc; in usb_otg_descriptor_alloc() local
226 otg_desc = kzalloc(length, GFP_KERNEL); in usb_otg_descriptor_alloc()
227 return otg_desc; in usb_otg_descriptor_alloc()
232 struct usb_descriptor_header *otg_desc) in usb_otg_descriptor_init() argument
239 if (!otg_desc) in usb_otg_descriptor_init()
254 otg20_desc = (struct usb_otg20_descriptor *)otg_desc; in usb_otg_descriptor_init()
260 otg1x_desc = (struct usb_otg_descriptor *)otg_desc; in usb_otg_descriptor_init()
A Dconfigfs.c33 static const struct usb_descriptor_header *otg_desc[2]; variable
1366 if (gadget_is_otg(gadget) && !otg_desc[0]) { in configfs_composite_bind()
1375 otg_desc[0] = usb_desc; in configfs_composite_bind()
1376 otg_desc[1] = NULL; in configfs_composite_bind()
1387 c->descriptors = otg_desc; in configfs_composite_bind()
1451 kfree(otg_desc[0]); in configfs_composite_unbind()
1452 otg_desc[0] = NULL; in configfs_composite_unbind()
/linux/include/linux/usb/
A Dgadget.h852 struct usb_descriptor_header *otg_desc);

Completed in 22 milliseconds