Searched refs:dev_strings (Results 1 – 5 of 5) sorted by relevance
/third_party/NuttX/drivers/usbdev/gadget/fconfig/src/ |
D | usbd_config.c | 414 struct gadget_strings *dev_strings = NULL; in fconfig_fill_strings() local 419 size = sizeof(*dev_strings); in fconfig_fill_strings() 420 dev_strings = (struct gadget_strings *)usbm_malloc(&gi->obj, size); in fconfig_fill_strings() 421 if (dev_strings == NULL) in fconfig_fill_strings() 426 memset_s(dev_strings, size, 0, size); in fconfig_fill_strings() 428 dev_strings->strings = usbm_malloc(&gi->obj, size); in fconfig_fill_strings() 429 if (dev_strings == NULL) in fconfig_fill_strings() 435 usbobj_init(&dev_strings->obj, "dev_strings", usbobj_default_release); in fconfig_fill_strings() 437 strings = (struct fconfig_usb_string *)usbm_malloc(&dev_strings->obj, size); in fconfig_fill_strings() 451 char *str = fconfig_get_string(&dev_strings->obj, &strings[i].str); in fconfig_fill_strings() [all …]
|
D | f_config.c | 137 struct gadget_strings *dev_strings; in fconfig_mkstrdesc() local 167 dev_strings = container_of(obj, struct gadget_strings, obj); in fconfig_mkstrdesc() 169 for (i = 0; dev_strings->strings[i].s != NULL; i++) in fconfig_mkstrdesc() 171 const char *str = dev_strings->strings[i].s; in fconfig_mkstrdesc() 172 if (dev_strings->strings[i].id == id) in fconfig_mkstrdesc()
|
D | usbd_generic_ep0.c | 355 struct generic_strings *dev_strings, *trav_strings; in generic_got_strings() local 375 dev_strings = usbm_zalloc(&dev->obj, sizeof(struct generic_strings)); in generic_got_strings() 376 if (dev_strings == NULL) in generic_got_strings() 382 dev_strings->strings = usbm_zalloc(&dev->obj, bytes); in generic_got_strings() 383 if (dev_strings == NULL) in generic_got_strings() 389 trav_strings = dev_strings; in generic_got_strings() 442 dev->dev_strings = dev_strings; in generic_got_strings() 447 usbm_free(&dev->obj, dev_strings); in generic_got_strings()
|
D | f_generic.c | 838 for (i = 0; dev->dev_strings->strings[i].s != NULL; i++) in generic_mkstrdesc() 840 const char *str = dev->dev_strings->strings[i].s; in generic_mkstrdesc() 842 if (dev->dev_strings->strings[i].id == id) in generic_mkstrdesc()
|
/third_party/NuttX/drivers/usbdev/gadget/fconfig/include/ |
D | f_generic.h | 205 struct generic_strings *dev_strings; member
|