Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/usb/gadget/legacy/
Dncm.c156 struct usb_descriptor_header *usb_desc; in gncm_bind() local
158 usb_desc = usb_otg_descriptor_alloc(gadget); in gncm_bind()
159 if (!usb_desc) in gncm_bind()
161 usb_otg_descriptor_init(gadget, usb_desc); in gncm_bind()
162 otg_desc[0] = usb_desc; in gncm_bind()
Dmass_storage.c178 struct usb_descriptor_header *usb_desc; in msg_bind() local
180 usb_desc = usb_otg_descriptor_alloc(cdev->gadget); in msg_bind()
181 if (!usb_desc) in msg_bind()
183 usb_otg_descriptor_init(cdev->gadget, usb_desc); in msg_bind()
184 otg_desc[0] = usb_desc; in msg_bind()
Dprinter.c175 struct usb_descriptor_header *usb_desc; in printer_bind() local
177 usb_desc = usb_otg_descriptor_alloc(cdev->gadget); in printer_bind()
178 if (!usb_desc) { in printer_bind()
182 usb_otg_descriptor_init(cdev->gadget, usb_desc); in printer_bind()
183 otg_desc[0] = usb_desc; in printer_bind()
Dcdc2.c179 struct usb_descriptor_header *usb_desc; in cdc_bind() local
181 usb_desc = usb_otg_descriptor_alloc(gadget); in cdc_bind()
182 if (!usb_desc) in cdc_bind()
184 usb_otg_descriptor_init(gadget, usb_desc); in cdc_bind()
185 otg_desc[0] = usb_desc; in cdc_bind()
Dacm_ms.c203 struct usb_descriptor_header *usb_desc; in acm_ms_bind() local
205 usb_desc = usb_otg_descriptor_alloc(gadget); in acm_ms_bind()
206 if (!usb_desc) in acm_ms_bind()
208 usb_otg_descriptor_init(gadget, usb_desc); in acm_ms_bind()
209 otg_desc[0] = usb_desc; in acm_ms_bind()
Dserial.c178 struct usb_descriptor_header *usb_desc; in gs_bind() local
180 usb_desc = usb_otg_descriptor_alloc(cdev->gadget); in gs_bind()
181 if (!usb_desc) { in gs_bind()
185 usb_otg_descriptor_init(cdev->gadget, usb_desc); in gs_bind()
186 otg_desc[0] = usb_desc; in gs_bind()
Dhid.c171 struct usb_descriptor_header *usb_desc; in hid_bind() local
173 usb_desc = usb_otg_descriptor_alloc(gadget); in hid_bind()
174 if (!usb_desc) in hid_bind()
176 usb_otg_descriptor_init(gadget, usb_desc); in hid_bind()
177 otg_desc[0] = usb_desc; in hid_bind()
Daudio.c300 struct usb_descriptor_header *usb_desc; in audio_bind() local
302 usb_desc = usb_otg_descriptor_alloc(cdev->gadget); in audio_bind()
303 if (!usb_desc) in audio_bind()
305 usb_otg_descriptor_init(cdev->gadget, usb_desc); in audio_bind()
306 otg_desc[0] = usb_desc; in audio_bind()
Dether.c403 struct usb_descriptor_header *usb_desc; in eth_bind() local
405 usb_desc = usb_otg_descriptor_alloc(gadget); in eth_bind()
406 if (!usb_desc) in eth_bind()
408 usb_otg_descriptor_init(gadget, usb_desc); in eth_bind()
409 otg_desc[0] = usb_desc; in eth_bind()
Dmulti.c399 struct usb_descriptor_header *usb_desc; in multi_bind() local
401 usb_desc = usb_otg_descriptor_alloc(gadget); in multi_bind()
402 if (!usb_desc) in multi_bind()
404 usb_otg_descriptor_init(gadget, usb_desc); in multi_bind()
405 otg_desc[0] = usb_desc; in multi_bind()
Dzero.c338 struct usb_descriptor_header *usb_desc; in zero_bind() local
340 usb_desc = usb_otg_descriptor_alloc(cdev->gadget); in zero_bind()
341 if (!usb_desc) { in zero_bind()
345 usb_otg_descriptor_init(cdev->gadget, usb_desc); in zero_bind()
346 otg_desc[0] = usb_desc; in zero_bind()
Dg_ffs.c395 struct usb_descriptor_header *usb_desc; in gfs_bind() local
397 usb_desc = usb_otg_descriptor_alloc(cdev->gadget); in gfs_bind()
398 if (!usb_desc) in gfs_bind()
400 usb_otg_descriptor_init(cdev->gadget, usb_desc); in gfs_bind()
401 gfs_otg_desc[0] = usb_desc; in gfs_bind()
/Linux-v4.19/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()
/Linux-v4.19/drivers/usb/gadget/
Dconfigfs.c1309 struct usb_descriptor_header *usb_desc; in configfs_composite_bind() local
1311 usb_desc = usb_otg_descriptor_alloc(gadget); in configfs_composite_bind()
1312 if (!usb_desc) { in configfs_composite_bind()
1316 usb_otg_descriptor_init(gadget, usb_desc); in configfs_composite_bind()
1317 otg_desc[0] = usb_desc; in configfs_composite_bind()