Searched refs:strings (Results 1 - 25 of 33) sorted by relevance

12

/u-boot/cmd/
H A Dstrings.c2 * cmd_strings.c - just like `strings` command
42 strings, 3, 1, do_strings,
43 "display strings",
45 " - display strings at <addr> for at least [byte count] or first double NUL"
H A Dnet.c700 u8 *strings; local
719 strings = kcalloc(nstats, ETH_GSTRING_LEN, GFP_KERNEL);
720 if (!strings)
727 eth_get_ops(dev)->get_strings(dev, strings);
732 printf(" %s: %llu\n", &strings[off], values[i]);
739 kfree(strings);
/u-boot/drivers/usb/emul/
H A Dusb-emul-uclass.c31 static int usb_emul_get_string(struct usb_string *strings, int index, argument
42 } else if (strings) {
45 for (ptr = strings; ptr->s; ptr++) {
89 return usb_emul_get_string(plat->strings, index, buffer,
263 int usb_emul_setup_device(struct udevice *dev, struct usb_string *strings, argument
271 plat->strings = strings;
/u-boot/include/linux/usb/
H A Dcomposite.h89 * @strings: tables of strings, keyed by identifiers assigned during bind()
145 struct usb_gadget_strings **strings; member in struct:usb_function
211 * @strings: Tables of strings, keyed by identifiers assigned during @bind()
253 struct usb_gadget_strings **strings; member in struct:usb_configuration
294 * @strings: tables of strings, keyed by identifiers assigned during bind()
314 * normally to bind the appropriate host side driver, and the three strings
316 * meaningful device identifiers. (The strings wil
323 struct usb_gadget_strings **strings; member in struct:usb_composite_driver
[all...]
H A Dgadget.h906 * struct usb_gadget_strings - a set of USB strings in a given language
907 * @language:identifies the strings' language (0x0409 for en-us)
908 * @strings:array of strings with their ids
911 * strings for a given language.
915 struct usb_string *strings; member in struct:usb_gadget_strings
/u-boot/drivers/usb/gadget/
H A Df_dfu.c35 struct usb_string *strings; member in struct:f_dfu
90 * static strings, in UTF-8
101 .strings = strings_dfu_generic,
115 * .strings
228 f_dfu->usb_function.strings = dfu_strings;
236 f_dfu->usb_function.strings = NULL;
653 f_dfu->strings = calloc(sizeof(struct usb_string), n + 1);
654 if (!f_dfu->strings)
659 f_dfu->strings[i].s = de->name;
662 f_dfu->strings[
[all...]
H A Dusbstring.c17 * @table: of c strings encoded using UTF-8
27 * using this routine after choosing which set of UTF-8 strings to use.
30 * characters (which are also widely used in C strings).
49 for (s = table->strings; s && s->s; s++)
H A Dg_dnl.c73 * static strings, in UTF-8
74 * IDs for those strings are assigned dynamically at g_dnl_bind()
85 .strings = g_dnl_string_defs,
288 .strings = g_dnl_composite_strings,
H A Dcomposite.c561 * We support strings in multiple languages ... string descriptor zero
628 sp = composite->strings;
633 sp = c->strings;
638 sp = f->strings;
668 if (composite->strings) {
669 len = lookup_string(composite->strings, buf, language, id);
674 if (c->strings) {
675 len = lookup_string(c->strings, buf, language, id);
680 if (!f->strings)
682 len = lookup_string(f->strings, bu
[all...]
H A Df_fastboot.c178 * static strings, in UTF-8
189 .strings = fastboot_string_defs,
390 f_fb->usb_function.strings = fastboot_strings;
H A Df_acm.c469 /* static strings, in UTF-8 */
479 .strings = acm_string_defs,
542 f_acm->usb_function.strings = acm_strings;
/u-boot/lib/libavb/
H A Davb_util.c236 const char* avb_strv_find_str(const char* const* strings, argument
240 for (n = 0; strings[n] != NULL; n++) {
241 if (avb_strlen(strings[n]) == str_size &&
242 avb_memcmp(strings[n], str, str_size) == 0) {
243 return strings[n];
325 /* We only support a limited amount of strings in avb_strdupv(). */
330 const char* strings[AVB_STRDUPV_MAX_NUM_STRINGS]; local
341 strings[num_strings] = str;
349 avb_fatal("Too many strings passed.\n");
363 avb_memcpy(dest, strings[
[all...]
H A Davb_util.h208 /* Duplicates a NULL-terminated array of NUL-terminated strings by
216 * where both strings are NUL-terminated strings. The terminating NUL
226 * array |strings|. Each element in |strings| must be
230 * Returns NULL if not found, otherwise points into |strings| for the
233 const char* avb_strv_find_str(const char* const* strings,
/u-boot/lib/efi_loader/
H A Defi_hii.c79 * string id starts at 1 so value is stbl->strings[id-1],
80 * and strings[] is a array of stbl->nstrings elements
82 struct efi_string_info *strings; member in struct:efi_string_table
106 free(stbl->strings[i].string);
107 free(stbl->strings);
173 stbl->strings = calloc(sizeof(stbl->strings[0]), nstrings);
174 if (!stbl->strings) {
198 stbl->strings[idx].string =
200 if (!stbl->strings[id
[all...]
H A Dboothart.c101 * strcomp() - compare to strings
105 * Return: 0 if both strings are the same
131 const char *strings; local
147 strings = fdt + f2h(header->off_dt_strings);
165 const char *label = &strings[f2h(prop->nameoff)];
/u-boot/test/py/tests/
H A Dvboot_forge.py139 raise TypeError('only strings and integers are accepted')
180 def parse_strings(strings):
184 strings = strings.split(b'\x00')
185 return StringsBlock(strings)
232 strings = fp.read(header.size_dt_strings)
233 strblock = parse_strings(strings)
315 strings = compose_strings(strblock)
317 header.size_dt_strings = len(strings)
318 fp.write(strings)
[all...]
/u-boot/lib/efi_selftest/
H A Defi_selftest_fdt.c62 const char *strings; local
78 strings = fdt + f2h(header->off_dt_strings);
96 const char *label = &strings[f2h(prop->nameoff)];
/u-boot/boot/
H A Dimage-fit-sig.c271 const uint32_t *strings; local
296 /* Count the number of strings in the property */
318 /* Create a list of node names from those strings */
363 /* Add the strings */
364 strings = fdt_getprop(fit, noffset, "hashed-strings", NULL);
365 if (strings) {
367 * The strings region offset must be a static 0x0.
371 fdt_regions[count].size = fdt32_to_cpu(strings[1]);
H A Dexpo_build.c141 * read_strings() - Read in the list of strings
143 * Read the strings into an ID-indexed list, so they can be used for building
144 * an expo. The strings are in a /strings node and each has its own subnode
161 ofnode strings, node; local
163 strings = ofnode_find_subnode(root, "strings");
164 if (!ofnode_valid(strings))
167 ofnode_for_each_subnode(node, strings) {
201 * list_strings() - List the available strings wit
[all...]
/u-boot/cmd/x86/
H A Dcbsysinfo.c60 static void print_idx(const char *name, uint idx, const u8 *strings) argument
65 ptr = (char *)strings + idx;
292 print_idx(">vendor", mb->vendor_idx, mb->strings);
293 print_idx(">part_number", mb->part_number_idx, mb->strings);
/u-boot/tools/
H A Dimage-host.c156 ret = fdt_setprop(fit, noffset, "hashed-strings",
698 char **strings; member in struct:strlist
711 free(list->strings[i]);
712 free(list->strings);
720 list->strings = realloc(list->strings,
724 list->strings[list->count++] = dup;
978 count = fdt_find_regions(fit, node_inc.strings, node_inc.count,
1004 debug(" %s\n", node_inc.strings[i]);
1005 len += strlen(node_inc.strings[
[all...]
/u-boot/tools/dtoc/
H A Dfdt.py73 strings = data.split(b'\0')
75 count = len(strings) - 1
76 if count > 0 and not len(strings[-1]):
77 for string in strings[:-1]:
89 return Type.STRING, strings[0].decode()
91 return Type.STRING, [s.decode() for s in strings[:-1]]
113 value: Property value as a string of bytes, or a list of strings of
529 val (list of str): List of strings to add
/u-boot/arch/x86/include/asm/
H A Dcoreboot_tables.h170 u8 strings[0]; member in struct:cb_mainboard
507 (((unsigned char *) ((_mb)->strings)) + (_mb)->vendor_idx)
510 (((unsigned char *) ((_mb)->strings)) + (_mb)->part_number_idx)
/u-boot/scripts/kconfig/
H A Dzconf.l217 "%s:%d:warning: multi-line strings not supported\n",
/u-boot/include/
H A Dusb.h138 int string_langid; /* language ID for strings */
634 * @strings: List of descriptor strings (for sandbox emulation purposes)
650 struct usb_string *strings; member in struct:usb_dev_plat
1018 * @strings: List of USB string descriptors, terminated by a NULL
1025 int usb_emul_setup_device(struct udevice *dev, struct usb_string *strings,

Completed in 184 milliseconds

12