Home
last modified time | relevance | path

Searched refs:str_count (Results 1 – 7 of 7) sorted by relevance

/third_party/NuttX/drivers/usbdev/gadget/fconfig/src/
Dusbd_config.c427 size = sizeof(struct usbd_string) * (str_data->str_count + 1); in fconfig_fill_strings()
436 size = sizeof(*strings) * str_data->str_count; in fconfig_fill_strings()
449 for (i = 0; i < str_data->str_count; i++) in fconfig_fill_strings()
494 if (!gi->str_count) in fconfig_write_strings()
496 gi->str_count = str_data.str_count + 1; in fconfig_write_strings()
498 else if (gi->str_count != (str_data.str_count + 1)) in fconfig_write_strings()
501 __FUNCTION__, str_data.str_count, gi->str_count); in fconfig_write_strings()
Df_config.c159 if (id < gi->str_count) in fconfig_mkstrdesc()
191 if (id >= (devinfo->strbase + gi->str_count) && in fconfig_mkstrdesc()
192 id < (devinfo->strbase + devinfo->nstrings + gi->str_count)) in fconfig_mkstrdesc()
195 … ret = com_dev->device[i].compdesc.mkstrdesc(id - devinfo->strbase - gi->str_count, buf); in fconfig_mkstrdesc()
252 *string_num = gi->str_count; in fconfig_find_cfg()
Dusbd_generic_ep0.c354 uint32_t str_count, str_count_all, lang_count; in generic_got_strings() local
364 bytes = offsetof(struct generic_strings_head, str_count); in generic_got_strings()
365 str_count = get_unaligned_le32((uint32_t *)(data + bytes)); in generic_got_strings()
368 if ((!str_count != !lang_count) || (str_count == 0)) in generic_got_strings()
371 __FUNCTION__, str_count, lang_count); in generic_got_strings()
381 bytes = sizeof(struct usbd_string) * (str_count + 1); in generic_got_strings()
408 str_count_all = str_count; in generic_got_strings()
409 while (str_count--) in generic_got_strings()
/third_party/libsnd/tests/
Dstring_test.c52 static int str_count (const char * haystack, const char * needle) ;
283 if (str_count (cptr, "libsndfile") != 1) in string_start_end_test()
450 if (cptr && str_count (cptr, "libsndfile") != 1) in string_start_test()
598 count = str_count (buffer, new_title) ; in string_multi_set_test()
602 count = str_count (buffer, software) ; in string_multi_set_test()
606 count = str_count (buffer, new_artist) ; in string_multi_set_test()
610 count = str_count (buffer, new_copyright) ; in string_multi_set_test()
732 str_count (const char * haystack, const char * needle) in str_count() function
/third_party/libsnd/src/
Dsd2.c69 int str_index, str_count ; member
264 rsrc.str_count = ARRAY_LEN (str_rsrc) ; in sd2_write_rsrc_fork()
265 rsrc.string_offset = rsrc.item_offset + (rsrc.str_count + 1) * 12 - rsrc.map_offset ; in sd2_write_rsrc_fork()
269 rsrc.str_count = 3 ; in sd2_write_rsrc_fork()
270 …f (psf, "Eom22", BHWo (rsrc.type_offset), BHWm (STR_MARKER), BHW2 (rsrc.str_count - 1), BHW2 (0x12… in sd2_write_rsrc_fork()
490 rsrc.str_count = read_rsrc_short (&rsrc, rsrc.type_offset + k * 8 + 4) + 1 ; in sd2_parse_rsrc_fork()
/third_party/NuttX/drivers/usbdev/gadget/fconfig/include/
Dusbd_config.h90 uint32_t str_count; member
156 uint32_t str_count; member
Dusbd_generic_ep0.h69 uint32_t str_count; member