Home
last modified time | relevance | path

Searched refs:usb_desc (Results 1 – 16 of 16) sorted by relevance

/drivers/usb/gadget/legacy/
Dncm.c162 struct usb_descriptor_header *usb_desc; in gncm_bind() local
164 usb_desc = usb_otg_descriptor_alloc(gadget); in gncm_bind()
165 if (!usb_desc) in gncm_bind()
167 usb_otg_descriptor_init(gadget, usb_desc); in gncm_bind()
168 otg_desc[0] = usb_desc; in gncm_bind()
Dmass_storage.c182 struct usb_descriptor_header *usb_desc; in msg_bind() local
184 usb_desc = usb_otg_descriptor_alloc(cdev->gadget); in msg_bind()
185 if (!usb_desc) in msg_bind()
187 usb_otg_descriptor_init(cdev->gadget, usb_desc); in msg_bind()
188 otg_desc[0] = usb_desc; in msg_bind()
Dprinter.c179 struct usb_descriptor_header *usb_desc; in printer_bind() local
181 usb_desc = usb_otg_descriptor_alloc(cdev->gadget); in printer_bind()
182 if (!usb_desc) { in printer_bind()
186 usb_otg_descriptor_init(cdev->gadget, usb_desc); in printer_bind()
187 otg_desc[0] = usb_desc; in printer_bind()
Dcdc2.c183 struct usb_descriptor_header *usb_desc; in cdc_bind() local
185 usb_desc = usb_otg_descriptor_alloc(gadget); in cdc_bind()
186 if (!usb_desc) in cdc_bind()
188 usb_otg_descriptor_init(gadget, usb_desc); in cdc_bind()
189 otg_desc[0] = usb_desc; in cdc_bind()
Dacm_ms.c207 struct usb_descriptor_header *usb_desc; in acm_ms_bind() local
209 usb_desc = usb_otg_descriptor_alloc(gadget); in acm_ms_bind()
210 if (!usb_desc) in acm_ms_bind()
212 usb_otg_descriptor_init(gadget, usb_desc); in acm_ms_bind()
213 otg_desc[0] = usb_desc; in acm_ms_bind()
Dserial.c181 struct usb_descriptor_header *usb_desc; in gs_bind() local
183 usb_desc = usb_otg_descriptor_alloc(cdev->gadget); in gs_bind()
184 if (!usb_desc) { in gs_bind()
188 usb_otg_descriptor_init(cdev->gadget, usb_desc); in gs_bind()
189 otg_desc[0] = usb_desc; in gs_bind()
Dhid.c175 struct usb_descriptor_header *usb_desc; in hid_bind() local
177 usb_desc = usb_otg_descriptor_alloc(gadget); in hid_bind()
178 if (!usb_desc) in hid_bind()
180 usb_otg_descriptor_init(gadget, usb_desc); in hid_bind()
181 otg_desc[0] = usb_desc; in hid_bind()
Daudio.c303 struct usb_descriptor_header *usb_desc; in audio_bind() local
305 usb_desc = usb_otg_descriptor_alloc(cdev->gadget); in audio_bind()
306 if (!usb_desc) in audio_bind()
308 usb_otg_descriptor_init(cdev->gadget, usb_desc); in audio_bind()
309 otg_desc[0] = usb_desc; in audio_bind()
Dether.c407 struct usb_descriptor_header *usb_desc; in eth_bind() local
409 usb_desc = usb_otg_descriptor_alloc(gadget); in eth_bind()
410 if (!usb_desc) in eth_bind()
412 usb_otg_descriptor_init(gadget, usb_desc); in eth_bind()
413 otg_desc[0] = usb_desc; in eth_bind()
Dzero.c340 struct usb_descriptor_header *usb_desc; in zero_bind() local
342 usb_desc = usb_otg_descriptor_alloc(cdev->gadget); in zero_bind()
343 if (!usb_desc) { in zero_bind()
347 usb_otg_descriptor_init(cdev->gadget, usb_desc); in zero_bind()
348 otg_desc[0] = usb_desc; in zero_bind()
Dmulti.c403 struct usb_descriptor_header *usb_desc; in multi_bind() local
405 usb_desc = usb_otg_descriptor_alloc(gadget); in multi_bind()
406 if (!usb_desc) in multi_bind()
408 usb_otg_descriptor_init(gadget, usb_desc); in multi_bind()
409 otg_desc[0] = usb_desc; in multi_bind()
Dg_ffs.c399 struct usb_descriptor_header *usb_desc; in gfs_bind() local
401 usb_desc = usb_otg_descriptor_alloc(cdev->gadget); in gfs_bind()
402 if (!usb_desc) in gfs_bind()
404 usb_otg_descriptor_init(cdev->gadget, usb_desc); in gfs_bind()
405 gfs_otg_desc[0] = usb_desc; in gfs_bind()
/drivers/power/supply/
Dwm831x_power.c29 struct power_supply_desc usb_desc; member
583 power->usb_desc.name = power->usb_name, in wm831x_power_probe()
584 power->usb_desc.type = POWER_SUPPLY_TYPE_USB; in wm831x_power_probe()
585 power->usb_desc.properties = wm831x_usb_props; in wm831x_power_probe()
586 power->usb_desc.num_properties = ARRAY_SIZE(wm831x_usb_props); in wm831x_power_probe()
587 power->usb_desc.get_property = wm831x_usb_get_prop; in wm831x_power_probe()
588 power->usb = power_supply_register(&pdev->dev, &power->usb_desc, NULL); in wm831x_power_probe()
Dmax8925_power.c358 static const struct power_supply_desc usb_desc = { variable
540 info->usb = power_supply_register(&pdev->dev, &usb_desc, &psy_cfg); in max8925_power_probe()
Dda9150-charger.c502 static const struct power_supply_desc usb_desc = { variable
560 charger->usb = power_supply_register(dev, &usb_desc, NULL); in da9150_charger_probe()
/drivers/usb/gadget/
Dconfigfs.c1342 struct usb_descriptor_header *usb_desc; in configfs_composite_bind() local
1344 usb_desc = usb_otg_descriptor_alloc(gadget); in configfs_composite_bind()
1345 if (!usb_desc) { in configfs_composite_bind()
1349 usb_otg_descriptor_init(gadget, usb_desc); in configfs_composite_bind()
1350 otg_desc[0] = usb_desc; in configfs_composite_bind()