Searched refs:otg_desc (Results 1 – 14 of 14) sorted by relevance
72 static const struct usb_descriptor_header *otg_desc[2]; variable104 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()
83 static const struct usb_descriptor_header *otg_desc[2]; variable128 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()
63 static const struct usb_descriptor_header *otg_desc[2]; variable98 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()
61 static const struct usb_descriptor_header *otg_desc[2]; variable116 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()
67 static const struct usb_descriptor_header *otg_desc[2]; variable125 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()
81 static const struct usb_descriptor_header *otg_desc[2]; variable180 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()
70 static const struct usb_descriptor_header *otg_desc[2]; variable100 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()
152 static const struct usb_descriptor_header *otg_desc[2]; variable163 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()
174 static const struct usb_descriptor_header *otg_desc[2]; variable219 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()
124 static const struct usb_descriptor_header *otg_desc[2]; variable327 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()
81 static const struct usb_descriptor_header *otg_desc[2]; variable143 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()
203 struct usb_descriptor_header *otg_desc; in usb_otg_descriptor_alloc() local211 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() argument224 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()
44 static const struct usb_descriptor_header *otg_desc[2]; variable1309 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()
1196 struct usb_descriptor_header *otg_desc);