/openbmc/linux/drivers/usb/gadget/legacy/ |
H A D | ncm.c | 156 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() 163 usb_otg_descriptor_init(gadget, usb_desc); in gncm_bind() 164 otg_desc[0] = usb_desc; in gncm_bind()
|
H A D | printer.c | 175 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()
|
H A D | mass_storage.c | 175 struct usb_descriptor_header *usb_desc; in msg_bind() local 177 usb_desc = usb_otg_descriptor_alloc(cdev->gadget); in msg_bind() 178 if (!usb_desc) { in msg_bind() 182 usb_otg_descriptor_init(cdev->gadget, usb_desc); in msg_bind() 183 otg_desc[0] = usb_desc; in msg_bind()
|
H A D | cdc2.c | 179 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() 186 usb_otg_descriptor_init(gadget, usb_desc); in cdc_bind() 187 otg_desc[0] = usb_desc; in cdc_bind()
|
H A D | acm_ms.c | 200 struct usb_descriptor_header *usb_desc; in acm_ms_bind() local 202 usb_desc = usb_otg_descriptor_alloc(gadget); in acm_ms_bind() 203 if (!usb_desc) { in acm_ms_bind() 207 usb_otg_descriptor_init(gadget, usb_desc); in acm_ms_bind() 208 otg_desc[0] = usb_desc; in acm_ms_bind()
|
H A D | hid.c | 171 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() 178 usb_otg_descriptor_init(gadget, usb_desc); in hid_bind() 179 otg_desc[0] = usb_desc; in hid_bind()
|
H A D | serial.c | 209 struct usb_descriptor_header *usb_desc; in gs_bind() local 211 usb_desc = usb_otg_descriptor_alloc(cdev->gadget); in gs_bind() 212 if (!usb_desc) { in gs_bind() 216 usb_otg_descriptor_init(cdev->gadget, usb_desc); in gs_bind() 217 otg_desc[0] = usb_desc; in gs_bind()
|
H A D | ether.c | 403 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() 410 usb_otg_descriptor_init(gadget, usb_desc); in eth_bind() 411 otg_desc[0] = usb_desc; in eth_bind()
|
H A D | audio.c | 333 struct usb_descriptor_header *usb_desc; in audio_bind() local 335 usb_desc = usb_otg_descriptor_alloc(cdev->gadget); in audio_bind() 336 if (!usb_desc) { in audio_bind() 340 usb_otg_descriptor_init(cdev->gadget, usb_desc); in audio_bind() 341 otg_desc[0] = usb_desc; in audio_bind()
|
H A D | zero.c | 338 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()
|
H A D | multi.c | 399 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() 406 usb_otg_descriptor_init(gadget, usb_desc); in multi_bind() 407 otg_desc[0] = usb_desc; in multi_bind()
|
H A D | g_ffs.c | 389 struct usb_descriptor_header *usb_desc; in gfs_bind() local 391 usb_desc = usb_otg_descriptor_alloc(cdev->gadget); in gfs_bind() 392 if (!usb_desc) { in gfs_bind() 396 usb_otg_descriptor_init(cdev->gadget, usb_desc); in gfs_bind() 397 gfs_otg_desc[0] = usb_desc; in gfs_bind()
|
/openbmc/linux/drivers/power/supply/ |
H A D | wm831x_power.c | 26 struct power_supply_desc usb_desc; member 580 power->usb_desc.name = power->usb_name, in wm831x_power_probe() 581 power->usb_desc.type = POWER_SUPPLY_TYPE_USB; in wm831x_power_probe() 582 power->usb_desc.properties = wm831x_usb_props; in wm831x_power_probe() 583 power->usb_desc.num_properties = ARRAY_SIZE(wm831x_usb_props); in wm831x_power_probe() 584 power->usb_desc.get_property = wm831x_usb_get_prop; in wm831x_power_probe() 585 power->usb = power_supply_register(&pdev->dev, &power->usb_desc, NULL); in wm831x_power_probe()
|
H A D | max8925_power.c | 356 static const struct power_supply_desc usb_desc = { variable 538 info->usb = power_supply_register(&pdev->dev, &usb_desc, &psy_cfg); in max8925_power_probe()
|
H A D | da9150-charger.c | 491 static const struct power_supply_desc usb_desc = { variable 549 charger->usb = power_supply_register(dev, &usb_desc, NULL); in da9150_charger_probe()
|
/openbmc/qemu/hw/usb/ |
H A D | dev-hid.c | 705 dev->usb_desc = usb1; in usb_hid_initfn() 708 dev->usb_desc = usb2; in usb_hid_initfn() 711 dev->usb_desc = NULL; in usb_hid_initfn() 713 if (!dev->usb_desc) { in usb_hid_initfn()
|
H A D | bus.c | 180 if (dev->usb_desc) { in usb_device_get_usb_desc() 181 return dev->usb_desc; in usb_device_get_usb_desc() 183 return klass->usb_desc; in usb_device_get_usb_desc()
|
H A D | dev-serial.c | 670 uc->usb_desc = &desc_serial; in usb_serial_class_initfn() 691 uc->usb_desc = &desc_braille; in usb_braille_class_initfn()
|
H A D | dev-hub.c | 652 dev->usb_desc = &desc_hub; in usb_hub_realize() 655 dev->usb_desc = &desc_hub_v2; in usb_hub_realize()
|
H A D | u2f.c | 326 uc->usb_desc = &desc_u2f_key; in u2f_key_class_init()
|
H A D | canokey.c | 310 uc->usb_desc = &desc_canokey; in canokey_class_init()
|
H A D | dev-wacom.c | 429 uc->usb_desc = &desc_wacom; in usb_wacom_class_init()
|
H A D | dev-storage.c | 595 uc->usb_desc = &desc; in usb_msd_class_initfn_common()
|
/openbmc/qemu/include/hw/ |
H A D | usb.h | 260 const USBDesc *usb_desc; /* Overrides class usb_desc if not NULL */ member 346 const USBDesc *usb_desc; member
|
/openbmc/linux/drivers/usb/gadget/ |
H A D | configfs.c | 1749 struct usb_descriptor_header *usb_desc; in configfs_composite_bind() local 1751 usb_desc = usb_otg_descriptor_alloc(gadget); in configfs_composite_bind() 1752 if (!usb_desc) { in configfs_composite_bind() 1756 usb_otg_descriptor_init(gadget, usb_desc); in configfs_composite_bind() 1757 otg_desc[0] = usb_desc; in configfs_composite_bind()
|