Home
last modified time | relevance | path

Searched refs:slen (Results 1 – 10 of 10) sorted by relevance

/u-boot/scripts/basic/
A Dfixdep.c143 static void print_dep(const char *m, int slen, const char *dir) in print_dep() argument
148 for (i = 0; i < slen; i++) { in print_dep()
217 static void use_config(const char *m, int slen) in use_config() argument
219 unsigned int hash = strhash(m, slen); in use_config()
221 if (is_defined_config(m, slen, hash)) in use_config()
224 define_config(m, slen, hash); in use_config()
225 print_dep(m, slen, "include/config"); in use_config()
229 static int str_ends_with(const char *s, int slen, const char *sub) in str_ends_with() argument
233 if (sublen > slen) in str_ends_with()
236 return !memcmp(s + slen - sublen, sub, sublen); in str_ends_with()
/u-boot/cmd/
A Drtc.c57 int slen; in do_rtc_write() local
79 slen = strlen(s); in do_rtc_write()
81 if (slen % 2) { in do_rtc_write()
86 while (slen) { in do_rtc_write()
87 len = min_t(int, slen / 2, sizeof(buf)); in do_rtc_write()
99 slen -= 2 * len; in do_rtc_write()
A Dsetexpr.c142 static char *substitute(char *string, int *slen, int ssize, in substitute() argument
145 char *p = memstr(string, *slen, old, olen); in substitute()
154 if (*slen + nlen - olen > ssize) { in substitute()
175 *slen += nlen - olen; in substitute()
/u-boot/lib/lzo/
A Dlzo1x_decompress.c83 u32 slen, dlen; in lzop_decompress() local
104 slen = get_unaligned_be32(src); in lzop_decompress()
107 if (slen <= 0 || slen > dlen) in lzop_decompress()
117 if (dlen == slen) { in lzop_decompress()
118 memcpy(dst, src, slen); in lzop_decompress()
122 r = lzo1x_decompress_safe((u8 *)src, slen, dst, &tmp); in lzop_decompress()
133 src += slen; in lzop_decompress()
/u-boot/scripts/kconfig/
A Dconfdata.c232 size_t new_size = slen + 1; in add_byte()
244 (*lineptr)[slen] = c; in add_byte()
252 size_t slen = 0; in compat_getline() local
259 if (add_byte(c, &line, slen, n) < 0) in compat_getline()
261 slen++; in compat_getline()
264 if (add_byte('\0', &line, slen, n) < 0) in compat_getline()
267 if (slen == 0) in compat_getline()
269 return slen; in compat_getline()
271 if (add_byte(c, &line, slen, n) < 0) in compat_getline()
273 slen++; in compat_getline()
[all …]
/u-boot/lib/efi_loader/
A Defi_device_path_to_text.c282 int slen = (dp->length - sizeof(*dp)) / 2; in dp_media() local
283 if (slen > MAX_NODE_LEN - 2) in dp_media()
284 slen = MAX_NODE_LEN - 2; in dp_media()
285 s += sprintf(s, "%-.*ls", slen, fp->str); in dp_media()
/u-boot/fs/ubifs/
A Dubifs.c113 const u8 *src, unsigned int slen, u8 *dst, in crypto_comp_decompress() argument
121 memcpy(dst, src, slen); in crypto_comp_decompress()
122 *dlen = slen; in crypto_comp_decompress()
126 err = compr->decompress(src, slen, dst, &tmp_len); in crypto_comp_decompress()
129 "error %d", slen, compr->name, err); in crypto_comp_decompress()
/u-boot/fs/zfs/
A Dzfs.c184 uint32_t slen, uint32_t dlen) in zlib_decompress() argument
186 if (zlib_decompress(s, d, slen, dlen) < 0) in zlib_decompress()
1586 size_t slen; in zfs_nvlist_lookup_string() local
1597 slen = be32_to_cpu(*(uint32_t *) nvpair); in zfs_nvlist_lookup_string()
1598 if (slen > size - 4) in zfs_nvlist_lookup_string()
1599 slen = size - 4; in zfs_nvlist_lookup_string()
1600 ret = malloc(slen + 1); in zfs_nvlist_lookup_string()
1603 memcpy(ret, nvpair + 4, slen); in zfs_nvlist_lookup_string()
1604 ret[slen] = 0; in zfs_nvlist_lookup_string()
/u-boot/scripts/dtc/libfdt/
A Dfdt_ro.c108 int slen; in fdt_string_eq_() local
109 const char *p = fdt_get_string(fdt, stroffset, &slen); in fdt_string_eq_()
111 return p && (slen == len) && (memcmp(p, s, len) == 0); in fdt_string_eq_()
/u-boot/drivers/video/
A Dstb_truetype.h3126 stbtt_int32 slen = ttUSHORT(fc+loc+8); in stbtt__matchpair() local
3130 …_int32 matchlen = stbtt__CompareUTF8toUTF16_bigendian_prefix(name, nlen, fc+stringOffset+off,slen); in stbtt__matchpair()
3134 slen = ttUSHORT(fc+loc+12+8); in stbtt__matchpair()
3136 if (slen == 0) { in stbtt__matchpair()
3141 …reUTF8toUTF16_bigendian((char*) (name+matchlen), nlen-matchlen, (char*)(fc+stringOffset+off),slen)) in stbtt__matchpair()

Completed in 46 milliseconds