Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/usb/gadget/legacy/
Dncm.c72 static const struct usb_descriptor_header *otg_desc[2]; variable
104 c->descriptors = otg_desc; in ncm_do_config()
161 if (gadget_is_otg(gadget) && !otg_desc[0]) { in gncm_bind()
168 otg_desc[0] = usb_desc; in gncm_bind()
169 otg_desc[1] = NULL; in gncm_bind()
183 kfree(otg_desc[0]); in gncm_bind()
184 otg_desc[0] = NULL; in gncm_bind()
196 kfree(otg_desc[0]); in gncm_unbind()
197 otg_desc[0] = NULL; in gncm_unbind()
Dprinter.c83 static const struct usb_descriptor_header *otg_desc[2]; variable
128 printer_cfg_driver.descriptors = otg_desc; in printer_do_config()
172 if (gadget_is_otg(cdev->gadget) && !otg_desc[0]) { in printer_bind()
181 otg_desc[0] = usb_desc; in printer_bind()
182 otg_desc[1] = NULL; in printer_bind()
193 kfree(otg_desc[0]); in printer_bind()
194 otg_desc[0] = NULL; in printer_bind()
205 kfree(otg_desc[0]); in printer_unbind()
206 otg_desc[0] = NULL; in printer_unbind()
Dcdc2.c63 static const struct usb_descriptor_header *otg_desc[2]; variable
98 c->descriptors = otg_desc; in cdc_do_config()
182 if (gadget_is_otg(gadget) && !otg_desc[0]) { in cdc_bind()
189 otg_desc[0] = usb_desc; in cdc_bind()
190 otg_desc[1] = NULL; in cdc_bind()
205 kfree(otg_desc[0]); in cdc_bind()
206 otg_desc[0] = NULL; in cdc_bind()
222 kfree(otg_desc[0]); in cdc_unbind()
223 otg_desc[0] = NULL; in cdc_unbind()
Dacm_ms.c61 static const struct usb_descriptor_header *otg_desc[2]; variable
116 c->descriptors = otg_desc; in acm_ms_do_config()
206 if (gadget_is_otg(gadget) && !otg_desc[0]) { in acm_ms_bind()
213 otg_desc[0] = usb_desc; in acm_ms_bind()
214 otg_desc[1] = NULL; in acm_ms_bind()
229 kfree(otg_desc[0]); in acm_ms_bind()
230 otg_desc[0] = NULL; in acm_ms_bind()
248 kfree(otg_desc[0]); in acm_ms_unbind()
249 otg_desc[0] = NULL; in acm_ms_unbind()
Dmass_storage.c67 static const struct usb_descriptor_header *otg_desc[2]; variable
125 c->descriptors = otg_desc; in msg_do_config()
195 if (gadget_is_otg(cdev->gadget) && !otg_desc[0]) { in msg_bind()
202 otg_desc[0] = usb_desc; in msg_bind()
203 otg_desc[1] = NULL; in msg_bind()
217 kfree(otg_desc[0]); in msg_bind()
218 otg_desc[0] = NULL; in msg_bind()
236 kfree(otg_desc[0]); in msg_unbind()
237 otg_desc[0] = NULL; in msg_unbind()
Dserial.c81 static const struct usb_descriptor_header *otg_desc[2]; variable
180 if (!otg_desc[0]) { in gs_bind()
189 otg_desc[0] = usb_desc; in gs_bind()
190 otg_desc[1] = NULL; in gs_bind()
192 serial_config_driver.descriptors = otg_desc; in gs_bind()
216 kfree(otg_desc[0]); in gs_bind()
217 otg_desc[0] = NULL; in gs_bind()
231 kfree(otg_desc[0]); in gs_unbind()
232 otg_desc[0] = NULL; in gs_unbind()
Dhid.c70 static const struct usb_descriptor_header *otg_desc[2]; variable
100 c->descriptors = otg_desc; in do_config()
174 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()
Daudio.c152 static const struct usb_descriptor_header *otg_desc[2]; variable
163 c->descriptors = otg_desc; in audio_do_config()
248 if (gadget_is_otg(cdev->gadget) && !otg_desc[0]) { in audio_bind()
255 otg_desc[0] = usb_desc; in audio_bind()
256 otg_desc[1] = NULL; in audio_bind()
268 kfree(otg_desc[0]); in audio_bind()
269 otg_desc[0] = NULL; in audio_bind()
292 kfree(otg_desc[0]); in audio_unbind()
293 otg_desc[0] = NULL; in audio_unbind()
Dether.c174 static const struct usb_descriptor_header *otg_desc[2]; variable
219 c->descriptors = otg_desc; in rndis_do_config()
261 c->descriptors = otg_desc; in eth_do_config()
406 if (gadget_is_otg(gadget) && !otg_desc[0]) { in eth_bind()
413 otg_desc[0] = usb_desc; in eth_bind()
414 otg_desc[1] = NULL; in eth_bind()
436 kfree(otg_desc[0]); in eth_bind()
437 otg_desc[0] = NULL; in eth_bind()
467 kfree(otg_desc[0]); in eth_unbind()
468 otg_desc[0] = NULL; in eth_unbind()
Dzero.c124 static const struct usb_descriptor_header *otg_desc[2]; variable
327 if (!otg_desc[0]) { in zero_bind()
336 otg_desc[0] = usb_desc; in zero_bind()
337 otg_desc[1] = NULL; in zero_bind()
339 sourcesink_driver.descriptors = otg_desc; in zero_bind()
341 loopback_driver.descriptors = otg_desc; in zero_bind()
372 kfree(otg_desc[0]); in zero_bind()
373 otg_desc[0] = NULL; in zero_bind()
398 kfree(otg_desc[0]); in zero_unbind()
399 otg_desc[0] = NULL; in zero_unbind()
Dmulti.c81 static const struct usb_descriptor_header *otg_desc[2]; variable
143 c->descriptors = otg_desc; in rndis_do_config()
225 c->descriptors = otg_desc; in cdc_do_config()
402 if (gadget_is_otg(gadget) && !otg_desc[0]) { in multi_bind()
409 otg_desc[0] = usb_desc; in multi_bind()
410 otg_desc[1] = NULL; in multi_bind()
430 kfree(otg_desc[0]); in multi_bind()
431 otg_desc[0] = NULL; in multi_bind()
475 kfree(otg_desc[0]); in multi_unbind()
476 otg_desc[0] = NULL; in multi_unbind()
/linux-4.4.14/drivers/usb/gadget/
Dconfig.c203 struct usb_descriptor_header *otg_desc; in usb_otg_descriptor_alloc() local
211 otg_desc = kzalloc(length, GFP_KERNEL); in usb_otg_descriptor_alloc()
212 return otg_desc; in usb_otg_descriptor_alloc()
217 struct usb_descriptor_header *otg_desc) in usb_otg_descriptor_init() argument
224 if (!otg_desc) in usb_otg_descriptor_init()
239 otg20_desc = (struct usb_otg20_descriptor *)otg_desc; in usb_otg_descriptor_init()
245 otg1x_desc = (struct usb_otg_descriptor *)otg_desc; in usb_otg_descriptor_init()
Dconfigfs.c44 static const struct usb_descriptor_header *otg_desc[2]; variable
1309 if (gadget_is_otg(gadget) && !otg_desc[0]) { in configfs_composite_bind()
1318 otg_desc[0] = usb_desc; in configfs_composite_bind()
1319 otg_desc[1] = NULL; in configfs_composite_bind()
1330 c->descriptors = otg_desc; in configfs_composite_bind()
1386 kfree(otg_desc[0]); in configfs_composite_unbind()
1387 otg_desc[0] = NULL; in configfs_composite_unbind()
/linux-4.4.14/include/linux/usb/
Dgadget.h1196 struct usb_descriptor_header *otg_desc);