/openbmc/u-boot/cmd/ |
H A D | setexpr.c | 86 int nlen) /* length of new string */ in substitute() argument 94 (long)(p - string), olen, nlen); in substitute() 97 if (*slen + nlen - olen > ssize) { in substitute() 103 if (olen != nlen) { in substitute() 106 len = (olen > nlen) ? olen : nlen; in substitute() 112 memmove(p + nlen, p + olen, tail); in substitute() 116 memcpy(p, new, nlen); in substitute() 118 *slen += nlen - olen; in substitute() 120 return p + nlen; in substitute() 136 int res, len, nlen, loop; in regex_sub() local [all …]
|
/openbmc/linux/fs/unicode/ |
H A D | utf8-core.c | 103 size_t nlen = 0; in utf8_casefold() local 108 for (nlen = 0; nlen < dlen; nlen++) { in utf8_casefold() 111 dest[nlen] = c; in utf8_casefold() 113 return nlen; in utf8_casefold() 145 ssize_t nlen = 0; in utf8_normalize() local 150 for (nlen = 0; nlen < dlen; nlen++) { in utf8_normalize() 153 dest[nlen] = c; in utf8_normalize() 155 return nlen; in utf8_normalize()
|
H A D | utf8-selftest.c | 180 int nlen = strlen(nfdi_test_data[i].dec); in check_utf8_nfdi() local 184 test((utf8len(um, UTF8_NFDI, nfdi_test_data[i].str) == nlen)); in check_utf8_nfdi() 186 nlen)); in check_utf8_nfdi() 198 test((j == nlen)); in check_utf8_nfdi() 209 int nlen = strlen(nfdicf_test_data[i].ncf); in check_utf8_nfdicf() local 214 nlen)); in check_utf8_nfdicf() 216 nlen)); in check_utf8_nfdicf() 229 test((j == nlen)); in check_utf8_nfdicf()
|
/openbmc/linux/arch/sparc/kernel/ |
H A D | sys_sparc_32.c | 200 int nlen, err; in SYSCALL_DEFINE2() local 208 nlen = strlen(utsname()->domainname) + 1; in SYSCALL_DEFINE2() 210 if (nlen > len) in SYSCALL_DEFINE2() 212 memcpy(tmp, utsname()->domainname, nlen); in SYSCALL_DEFINE2() 216 if (copy_to_user(name, tmp, nlen)) in SYSCALL_DEFINE2()
|
H A D | sys_sparc_64.c | 526 int nlen, err; in SYSCALL_DEFINE2() local 534 nlen = strlen(utsname()->domainname) + 1; in SYSCALL_DEFINE2() 536 if (nlen > len) in SYSCALL_DEFINE2() 538 memcpy(tmp, utsname()->domainname, nlen); in SYSCALL_DEFINE2() 542 if (copy_to_user(name, tmp, nlen)) in SYSCALL_DEFINE2()
|
/openbmc/u-boot/fs/ubifs/ |
H A D | replay.c | 398 union ubifs_key *key, const char *name, int nlen, in insert_dent() argument 412 nbuf = kmalloc(nlen + 1, GFP_KERNEL); in insert_dent() 426 r->nm.len = nlen; in insert_dent() 427 memcpy(nbuf, name, nlen); in insert_dent() 428 nbuf[nlen] = '\0'; in insert_dent() 447 int nlen = le16_to_cpu(dent->nlen); in ubifs_validate_entry() local 449 if (le32_to_cpu(dent->ch.len) != nlen + UBIFS_DENT_NODE_SZ + 1 || in ubifs_validate_entry() 451 nlen > UBIFS_MAX_NLEN || dent->name[nlen] != 0 || in ubifs_validate_entry() 452 strnlen(dent->name, nlen) != nlen || in ubifs_validate_entry() 628 le16_to_cpu(dent->nlen), snod->sqnum, in replay_bud()
|
H A D | tnc.c | 520 int nlen, err; in matches_name() local 539 nlen = le16_to_cpu(dent->nlen); in matches_name() 540 err = memcmp(dent->name, nm->name, min_t(int, nlen, nm->len)); in matches_name() 542 if (nlen == nm->len) in matches_name() 544 else if (nlen < nm->len) in matches_name() 808 int nlen, err; in fallible_matches_name() local 832 nlen = le16_to_cpu(dent->nlen); in fallible_matches_name() 833 err = memcmp(dent->name, nm->name, min_t(int, nlen, nm->len)); in fallible_matches_name() 835 if (nlen == nm->len) in fallible_matches_name() 837 else if (nlen < nm->len) in fallible_matches_name() [all …]
|
H A D | debug.c | 293 nm.len = le16_to_cpu(dent->nlen); in ubifs_dump_inode() 453 int nlen = le16_to_cpu(dent->nlen); in ubifs_dump_node() local 461 pr_err("\tnlen %d\n", nlen); in ubifs_dump_node() 464 if (nlen > UBIFS_MAX_NLEN) in ubifs_dump_node() 467 for (i = 0; i < nlen && dent->name[i]; i++) in ubifs_dump_node() 1140 nm.len = le16_to_cpu(dent->nlen); in dbg_check_dir() 1240 nlen1 = le16_to_cpu(dent1->nlen); in dbg_check_key_order() 1241 nlen2 = le16_to_cpu(dent2->nlen); in dbg_check_key_order() 2105 int nlen; in check_leaf() local 2140 nlen = le16_to_cpu(dent->nlen); in check_leaf() [all …]
|
/openbmc/linux/fs/xfs/libxfs/ |
H A D | xfs_attr_sf.h | 33 static inline int xfs_attr_sf_entsize_byname(uint8_t nlen, uint8_t vlen) in xfs_attr_sf_entsize_byname() argument 35 return sizeof(struct xfs_attr_sf_entry) + nlen + vlen; in xfs_attr_sf_entsize_byname()
|
H A D | xfs_da_format.h | 763 static inline int xfs_attr_leaf_entsize_remote(int nlen) in xfs_attr_leaf_entsize_remote() argument 789 return round_up(remotesize + nlen, XFS_ATTR_LEAF_NAME_ALIGN); in xfs_attr_leaf_entsize_remote() 792 static inline int xfs_attr_leaf_entsize_local(int nlen, int vlen) in xfs_attr_leaf_entsize_local() argument 819 return round_up(localsize + nlen + vlen, XFS_ATTR_LEAF_NAME_ALIGN); in xfs_attr_leaf_entsize_local()
|
/openbmc/linux/fs/cachefiles/ |
H A D | key.c | 86 unsigned int nlen = min(nbe, nle) + 1; in cachefiles_cook_key() local 87 name = kmalloc(nlen, GFP_KERNEL); in cachefiles_cook_key() 100 len += snprintf(name + len, nlen - len, "%x", x); in cachefiles_cook_key()
|
/openbmc/linux/fs/ubifs/ |
H A D | replay.c | 434 const char *name, int nlen, unsigned long long sqnum, in insert_dent() argument 448 nbuf = kmalloc(nlen + 1, GFP_KERNEL); in insert_dent() 463 fname_len(&r->nm) = nlen; in insert_dent() 464 memcpy(nbuf, name, nlen); in insert_dent() 465 nbuf[nlen] = '\0'; in insert_dent() 484 int nlen = le16_to_cpu(dent->nlen); in ubifs_validate_entry() local 486 if (le32_to_cpu(dent->ch.len) != nlen + UBIFS_DENT_NODE_SZ + 1 || in ubifs_validate_entry() 488 nlen > UBIFS_MAX_NLEN || dent->name[nlen] != 0 || in ubifs_validate_entry() 489 (key_type == UBIFS_XENT_KEY && strnlen(dent->name, nlen) != nlen) || in ubifs_validate_entry() 773 le16_to_cpu(dent->nlen), snod->sqnum, in replay_bud()
|
H A D | debug.c | 283 le16_to_cpu(dent->nlen)); in ubifs_dump_inode() 286 fname_len(&nm) = le16_to_cpu(dent->nlen); in ubifs_dump_inode() 475 int nlen = le16_to_cpu(dent->nlen); in ubifs_dump_node() local 483 pr_err("\tnlen %d\n", nlen); in ubifs_dump_node() 486 if (nlen > UBIFS_MAX_NLEN || in ubifs_dump_node() 487 nlen > safe_len - UBIFS_DENT_NODE_SZ) in ubifs_dump_node() 490 for (i = 0; i < nlen && dent->name[i]; i++) in ubifs_dump_node() 1156 fname_len(&nm) = le16_to_cpu(dent->nlen); in dbg_check_dir() 1256 nlen1 = le16_to_cpu(dent1->nlen); in dbg_check_key_order() 1257 nlen2 = le16_to_cpu(dent2->nlen); in dbg_check_key_order() [all …]
|
H A D | tnc.c | 572 int nlen, err; in matches_name() local 591 nlen = le16_to_cpu(dent->nlen); in matches_name() 592 err = memcmp(dent->name, fname_name(nm), min_t(int, nlen, fname_len(nm))); in matches_name() 594 if (nlen == fname_len(nm)) in matches_name() 596 else if (nlen < fname_len(nm)) in matches_name() 860 int nlen, err; in fallible_matches_name() local 884 nlen = le16_to_cpu(dent->nlen); in fallible_matches_name() 885 err = memcmp(dent->name, fname_name(nm), min_t(int, nlen, fname_len(nm))); in fallible_matches_name() 887 if (nlen == fname_len(nm)) in fallible_matches_name() 889 else if (nlen < fname_len(nm)) in fallible_matches_name() [all …]
|
/openbmc/qemu/tests/tcg/multiarch/ |
H A D | test-mmap.c | 144 int nlen; in check_aligned_anonymous_unfixed_colliding_mmaps() local 161 nlen = pagesize * 8; in check_aligned_anonymous_unfixed_colliding_mmaps() 162 p3 = mmap(NULL, nlen, PROT_READ, in check_aligned_anonymous_unfixed_colliding_mmaps() 168 && (p3 + nlen) > p2) { in check_aligned_anonymous_unfixed_colliding_mmaps() 181 munmap(p3, nlen); in check_aligned_anonymous_unfixed_colliding_mmaps()
|
/openbmc/linux/fs/afs/ |
H A D | dir.c | 28 static bool afs_lookup_one_filldir(struct dir_context *ctx, const char *name, int nlen, 30 static bool afs_lookup_filldir(struct dir_context *ctx, const char *name, int nlen, 407 size_t nlen; in afs_dir_iterate_block() local 433 nlen = strnlen(dire->u.name, in afs_dir_iterate_block() 436 if (nlen > AFSNAMEMAX - 1) { in afs_dir_iterate_block() 439 offset, nlen); in afs_dir_iterate_block() 446 nlen, dire->u.name); in afs_dir_iterate_block() 448 nr_slots = afs_dir_calc_slots(nlen); in afs_dir_iterate_block() 455 offset, next, nlen); in afs_dir_iterate_block() 479 if (!dir_emit(ctx, dire->u.name, nlen, in afs_dir_iterate_block() [all …]
|
/openbmc/linux/net/ipv6/ |
H A D | ip6_offload.c | 230 unsigned int nlen; in ipv6_gro_receive() local 266 nlen = skb_network_header_len(skb); in ipv6_gro_receive() 292 if (unlikely(nlen > sizeof(struct ipv6hdr))) { in ipv6_gro_receive() 294 nlen - sizeof(struct ipv6hdr))) in ipv6_gro_receive() 312 skb_gro_postpull_rcsum(skb, iph, nlen); in ipv6_gro_receive()
|
/openbmc/linux/fs/smb/client/ |
H A D | smb2inode.c | 110 u8 nlen; in check_wsl_eas() local 125 nlen = ea->ea_name_length; in check_wsl_eas() 127 if (nlen != SMB2_WSL_XATTR_NAME_LEN || in check_wsl_eas() 128 (u8 *)ea + nlen + 1 + vlen > end) in check_wsl_eas() 133 if (strncmp(ea->ea_data, SMB2_WSL_XATTR_UID, nlen) && in check_wsl_eas() 134 strncmp(ea->ea_data, SMB2_WSL_XATTR_GID, nlen) && in check_wsl_eas() 135 strncmp(ea->ea_data, SMB2_WSL_XATTR_MODE, nlen)) in check_wsl_eas() 139 if (strncmp(ea->ea_data, SMB2_WSL_XATTR_DEV, nlen)) in check_wsl_eas() 143 if (!strncmp(ea->ea_data, SMB2_WSL_XATTR_UID, nlen) || in check_wsl_eas() 144 !strncmp(ea->ea_data, SMB2_WSL_XATTR_GID, nlen) || in check_wsl_eas() [all …]
|
H A D | reparse.c | 710 u8 nlen; in wsl_to_fattr() local 718 nlen = ea->ea_name_length; in wsl_to_fattr() 721 if (!strncmp(name, SMB2_WSL_XATTR_UID, nlen)) in wsl_to_fattr() 723 else if (!strncmp(name, SMB2_WSL_XATTR_GID, nlen)) in wsl_to_fattr() 725 else if (!strncmp(name, SMB2_WSL_XATTR_MODE, nlen)) { in wsl_to_fattr() 730 } else if (!strncmp(name, SMB2_WSL_XATTR_DEV, nlen)) { in wsl_to_fattr()
|
/openbmc/linux/lib/zlib_inflate/ |
H A D | inflate.c | 468 state->nlen = BITS(5) + 257; in zlib_inflate() 475 if (state->nlen > 286 || state->ndist > 30) { in zlib_inflate() 506 while (state->have < state->nlen + state->ndist) { in zlib_inflate() 544 if (state->have + copy > state->nlen + state->ndist) { in zlib_inflate() 561 ret = zlib_inflate_table(LENS, state->lens, state->nlen, &(state->next), in zlib_inflate() 570 ret = zlib_inflate_table(DISTS, state->lens + state->nlen, state->ndist, in zlib_inflate()
|
H A D | inflate.h | 105 unsigned nlen; /* number of length code lengths */ member
|
/openbmc/linux/drivers/net/slip/ |
H A D | slhc.c | 235 int nlen, hlen; in slhc_compress() local 263 nlen = ip->ihl * 4; in slhc_compress() 264 if (isize < nlen + sizeof(*th)) in slhc_compress() 267 th = (struct tcphdr *)(icp + nlen); in slhc_compress() 270 hlen = nlen + th->doff * 4; in slhc_compress()
|
/openbmc/linux/fs/romfs/ |
H A D | super.c | 284 unsigned long nlen; in romfs_iget() local 306 nlen = romfs_dev_strnlen(sb, pos + ROMFH_SIZE, ROMFS_MAXFN); in romfs_iget() 307 if (IS_ERR_VALUE(nlen)) in romfs_iget() 320 inode->i_metasize = (ROMFH_SIZE + nlen + 1 + ROMFH_PAD) & ROMFH_MASK; in romfs_iget()
|
/openbmc/u-boot/lib/zlib/ |
H A D | inflate.h | 108 unsigned nlen; /* number of length code lengths */ member
|
H A D | inflate.c | 612 state->nlen = BITS(5) + 257; in inflate() 619 if (state->nlen > 286 || state->ndist > 30) { in inflate() 650 while (state->have < state->nlen + state->ndist) { in inflate() 688 if (state->have + copy > state->nlen + state->ndist) { in inflate() 705 ret = inflate_table(LENS, state->lens, state->nlen, &(state->next), in inflate() 714 ret = inflate_table(DISTS, state->lens + state->nlen, state->ndist, in inflate()
|