Home
last modified time | relevance | path

Searched refs:nlen (Results 1 - 25 of 80) sorted by relevance

1234

/kernel/linux/linux-5.10/fs/unicode/
H A Dutf8-core.c110 size_t nlen = 0; in utf8_casefold() local
115 for (nlen = 0; nlen < dlen; nlen++) { in utf8_casefold()
118 dest[nlen] = c; in utf8_casefold()
120 return nlen; in utf8_casefold()
154 ssize_t nlen = 0; in utf8_normalize() local
159 for (nlen = 0; nlen < dlen; nlen in utf8_normalize()
[all...]
H A Dutf8-selftest.c178 int nlen = strlen(nfdi_test_data[i].dec); in check_utf8_nfdi() local
182 test((utf8len(data, nfdi_test_data[i].str) == nlen)); in check_utf8_nfdi()
183 test((utf8nlen(data, nfdi_test_data[i].str, len) == nlen)); in check_utf8_nfdi()
195 test((j == nlen)); in check_utf8_nfdi()
214 int nlen = strlen(nfdicf_test_data[i].ncf); in check_utf8_nfdicf() local
218 test((utf8len(data, nfdicf_test_data[i].str) == nlen)); in check_utf8_nfdicf()
219 test((utf8nlen(data, nfdicf_test_data[i].str, len) == nlen)); in check_utf8_nfdicf()
231 test((j == nlen)); in check_utf8_nfdicf()
/kernel/linux/linux-6.6/fs/unicode/
H A Dutf8-core.c103 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()
[all...]
H A Dutf8-selftest.c180 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()
/kernel/linux/linux-5.10/arch/sparc/kernel/
H A Dsys_sparc_32.c200 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 Dsys_sparc_64.c526 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()
/kernel/linux/linux-6.6/arch/sparc/kernel/
H A Dsys_sparc_32.c200 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 Dsys_sparc_64.c526 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()
/kernel/linux/linux-5.10/fs/ubifs/
H A Dreplay.c423 * @nlen: directory entry name length
434 const char *name, int nlen, unsigned long long sqnum, in insert_dent()
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_NLE in ubifs_validate_entry()
432 insert_dent(struct ubifs_info *c, int lnum, int offs, int len, const u8 *hash, union ubifs_key *key, const char *name, int nlen, unsigned long long sqnum, int deletion, int *used) insert_dent() argument
[all...]
/kernel/linux/linux-6.6/fs/ubifs/
H A Dreplay.c423 * @nlen: directory entry name length
434 const char *name, int nlen, unsigned long long sqnum, in insert_dent()
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_NLE in ubifs_validate_entry()
432 insert_dent(struct ubifs_info *c, int lnum, int offs, int len, const u8 *hash, union ubifs_key *key, const char *name, int nlen, unsigned long long sqnum, int deletion, int *used) insert_dent() argument
[all...]
/kernel/linux/linux-5.10/fs/xfs/libxfs/
H A Dxfs_attr_sf.h33 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 Dxfs_da_format.h747 static inline int xfs_attr_leaf_entsize_remote(int nlen) in xfs_attr_leaf_entsize_remote() argument
750 nlen, XFS_ATTR_LEAF_NAME_ALIGN); in xfs_attr_leaf_entsize_remote()
753 static inline int xfs_attr_leaf_entsize_local(int nlen, int vlen) in xfs_attr_leaf_entsize_local() argument
756 nlen + vlen, XFS_ATTR_LEAF_NAME_ALIGN); in xfs_attr_leaf_entsize_local()
/kernel/linux/linux-6.6/fs/xfs/libxfs/
H A Dxfs_attr_sf.h33 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 Dxfs_da_format.h758 static inline int xfs_attr_leaf_entsize_remote(int nlen) in xfs_attr_leaf_entsize_remote() argument
775 * nearest multiple of 4 (NAME_ALIGN). IOWs, round_up(11 + nlen, 4). in xfs_attr_leaf_entsize_remote()
784 return round_up(remotesize + nlen, XFS_ATTR_LEAF_NAME_ALIGN); in xfs_attr_leaf_entsize_remote()
787 static inline int xfs_attr_leaf_entsize_local(int nlen, int vlen) in xfs_attr_leaf_entsize_local() argument
805 * round_up(3 + nlen + vlen, 4). This is encoded in the ondisk format, in xfs_attr_leaf_entsize_local()
814 return round_up(localsize + nlen + vlen, XFS_ATTR_LEAF_NAME_ALIGN); in xfs_attr_leaf_entsize_local()
/kernel/linux/linux-6.6/fs/cachefiles/
H A Dkey.c86 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()
/kernel/linux/linux-5.10/fs/afs/
H A Ddir.c27 static int afs_lookup_one_filldir(struct dir_context *ctx, const char *name, int nlen,
29 static int afs_lookup_filldir(struct dir_context *ctx, const char *name, int nlen,
353 size_t nlen; in afs_dir_iterate_block() local
380 nlen = strnlen(dire->u.name, in afs_dir_iterate_block()
387 nlen, dire->u.name); in afs_dir_iterate_block()
390 for (tmp = nlen; tmp > 15; tmp -= sizeof(union afs_xdr_dirent)) { in afs_dir_iterate_block()
396 offset, next, tmp, nlen); in afs_dir_iterate_block()
404 offset, next, tmp, nlen); in afs_dir_iterate_block()
410 next, tmp, nlen); in afs_dir_iterate_block()
422 if (nlen > in afs_dir_iterate_block()
536 afs_lookup_one_filldir(struct dir_context *ctx, const char *name, int nlen, loff_t fpos, u64 ino, unsigned dtype) afs_lookup_one_filldir() argument
605 afs_lookup_filldir(struct dir_context *ctx, const char *name, int nlen, loff_t fpos, u64 ino, unsigned dtype) afs_lookup_filldir() argument
[all...]
/kernel/linux/linux-6.6/fs/afs/
H A Ddir.c27 static bool afs_lookup_one_filldir(struct dir_context *ctx, const char *name, int nlen,
29 static bool afs_lookup_filldir(struct dir_context *ctx, const char *name, int nlen,
406 size_t nlen; in afs_dir_iterate_block() local
432 nlen = strnlen(dire->u.name, in afs_dir_iterate_block()
435 if (nlen > AFSNAMEMAX - 1) { in afs_dir_iterate_block()
438 offset, nlen); in afs_dir_iterate_block()
445 nlen, dire->u.name); in afs_dir_iterate_block()
447 nr_slots = afs_dir_calc_slots(nlen); in afs_dir_iterate_block()
454 offset, next, nlen); in afs_dir_iterate_block()
478 if (!dir_emit(ctx, dire->u.name, nlen, in afs_dir_iterate_block()
576 afs_lookup_one_filldir(struct dir_context *ctx, const char *name, int nlen, loff_t fpos, u64 ino, unsigned dtype) afs_lookup_one_filldir() argument
644 afs_lookup_filldir(struct dir_context *ctx, const char *name, int nlen, loff_t fpos, u64 ino, unsigned dtype) afs_lookup_filldir() argument
[all...]
/kernel/linux/linux-5.10/net/ipv6/
H A Dip6_offload.c191 unsigned int nlen; in ipv6_gro_receive() local
233 nlen = skb_network_header_len(skb); in ipv6_gro_receive()
247 * already so we don't need to compare nlen in ipv6_gro_receive()
248 * (nlen != (sizeof(*iph2) + ipv6_exthdrs_len(iph2, &ops))) in ipv6_gro_receive()
259 if (unlikely(nlen > sizeof(struct ipv6hdr))) { in ipv6_gro_receive()
261 nlen - sizeof(struct ipv6hdr))) in ipv6_gro_receive()
278 skb_gro_postpull_rcsum(skb, iph, nlen); in ipv6_gro_receive()
/kernel/linux/linux-6.6/net/ipv6/
H A Dip6_offload.c196 unsigned int nlen; in ipv6_gro_receive() local
234 nlen = skb_network_header_len(skb); in ipv6_gro_receive()
248 * already so we don't need to compare nlen in ipv6_gro_receive()
249 * (nlen != (sizeof(*iph2) + ipv6_exthdrs_len(iph2, &ops))) in ipv6_gro_receive()
260 if (unlikely(nlen > sizeof(struct ipv6hdr))) { in ipv6_gro_receive()
262 nlen - sizeof(struct ipv6hdr))) in ipv6_gro_receive()
280 skb_gro_postpull_rcsum(skb, iph, nlen); in ipv6_gro_receive()
/kernel/linux/linux-5.10/lib/zlib_inflate/
H A Dinflate.c468 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()
/kernel/linux/linux-6.6/lib/zlib_inflate/
H A Dinflate.c468 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()
/kernel/linux/linux-5.10/drivers/net/slip/
H A Dslhc.c235 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()
/kernel/linux/linux-6.6/drivers/net/slip/
H A Dslhc.c235 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()
/kernel/linux/linux-5.10/fs/romfs/
H A Dsuper.c283 unsigned long nlen; in romfs_iget() local
305 nlen = romfs_dev_strnlen(sb, pos + ROMFH_SIZE, ROMFS_MAXFN); in romfs_iget()
306 if (IS_ERR_VALUE(nlen)) in romfs_iget()
319 inode->i_metasize = (ROMFH_SIZE + nlen + 1 + ROMFH_PAD) & ROMFH_MASK; in romfs_iget()
/kernel/linux/linux-6.6/fs/romfs/
H A Dsuper.c284 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()

Completed in 20 milliseconds

1234