Home
last modified time | relevance | path

Searched refs:nlen (Results 1 – 25 of 37) sorted by relevance

12

/linux-6.3-rc2/fs/unicode/
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()
153 dest[nlen] = c; in utf8_normalize()
155 return nlen; in utf8_normalize()
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()
/linux-6.3-rc2/arch/sparc/kernel/
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()
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()
/linux-6.3-rc2/fs/xfs/libxfs/
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()
A Dxfs_da_format.h748 static inline int xfs_attr_leaf_entsize_remote(int nlen) in xfs_attr_leaf_entsize_remote() argument
751 nlen, XFS_ATTR_LEAF_NAME_ALIGN); in xfs_attr_leaf_entsize_remote()
754 static inline int xfs_attr_leaf_entsize_local(int nlen, int vlen) in xfs_attr_leaf_entsize_local() argument
757 nlen + vlen, XFS_ATTR_LEAF_NAME_ALIGN); in xfs_attr_leaf_entsize_local()
A Dxfs_alloc.c1828 xfs_extlen_t nlen; /* new length of freespace */ in xfs_free_ag_extent() local
1996 nlen = len + ltlen + gtlen; in xfs_free_ag_extent()
1997 if ((error = xfs_alloc_update(bno_cur, nbno, nlen))) in xfs_free_ag_extent()
2031 nlen = len + ltlen; in xfs_free_ag_extent()
2032 if ((error = xfs_alloc_update(bno_cur, nbno, nlen))) in xfs_free_ag_extent()
2060 nlen = len + gtlen; in xfs_free_ag_extent()
2061 if ((error = xfs_alloc_update(bno_cur, nbno, nlen))) in xfs_free_ag_extent()
2070 nlen = len; in xfs_free_ag_extent()
2083 if ((error = xfs_alloc_lookup_eq(cnt_cur, nbno, nlen, &i))) in xfs_free_ag_extent()
/linux-6.3-rc2/fs/cachefiles/
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()
/linux-6.3-rc2/fs/ubifs/
A Dreplay.c434 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()
A Ddebug.c283 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()
1252 nlen1 = le16_to_cpu(dent1->nlen); in dbg_check_key_order()
1253 nlen2 = le16_to_cpu(dent2->nlen); in dbg_check_key_order()
2080 int nlen; in check_leaf() local
2115 nlen = le16_to_cpu(dent->nlen); in check_leaf()
[all …]
A Dtnc.c541 int nlen, err; in matches_name() local
560 nlen = le16_to_cpu(dent->nlen); in matches_name()
561 err = memcmp(dent->name, fname_name(nm), min_t(int, nlen, fname_len(nm))); in matches_name()
563 if (nlen == fname_len(nm)) in matches_name()
565 else if (nlen < fname_len(nm)) in matches_name()
829 int nlen, err; in fallible_matches_name() local
853 nlen = le16_to_cpu(dent->nlen); in fallible_matches_name()
856 if (nlen == fname_len(nm)) in fallible_matches_name()
858 else if (nlen < fname_len(nm)) in fallible_matches_name()
1877 len = le16_to_cpu(dent->nlen); in ubifs_tnc_lookup_nm()
[all …]
A Djournal.c603 dent->nlen = cpu_to_le16(fname_len(nm)); in ubifs_jnl_update()
903 fname_len(&nm) = le16_to_cpu(xent->nlen); in ubifs_jnl_write_inode()
1099 dent1->nlen = cpu_to_le16(fname_len(snd_nm)); in ubifs_jnl_xrename()
1115 dent2->nlen = cpu_to_le16(fname_len(fst_nm)); in ubifs_jnl_xrename()
1290 dent->nlen = cpu_to_le16(fname_len(new_nm)); in ubifs_jnl_rename()
1312 dent2->nlen = cpu_to_le16(fname_len(old_nm)); in ubifs_jnl_rename()
1759 xent->nlen = cpu_to_le16(fname_len(nm)); in ubifs_jnl_delete_xattr()
A Dxattr.c434 fname_len(&nm) = le16_to_cpu(xent->nlen); in ubifs_listxattr()
527 fname_len(&nm) = le16_to_cpu(xent->nlen); in ubifs_purge_xattrs()
A Dubifs-media.h562 __le16 nlen; member
/linux-6.3-rc2/net/ipv6/
A Dip6_offload.c195 unsigned int nlen; in ipv6_gro_receive() local
233 nlen = skb_network_header_len(skb); in ipv6_gro_receive()
259 if (unlikely(nlen > sizeof(struct ipv6hdr))) { in ipv6_gro_receive()
261 nlen - sizeof(struct ipv6hdr))) in ipv6_gro_receive()
279 skb_gro_postpull_rcsum(skb, iph, nlen); in ipv6_gro_receive()
/linux-6.3-rc2/fs/afs/
A Ddir.c402 size_t nlen; in afs_dir_iterate_block() local
428 nlen = strnlen(dire->u.name, in afs_dir_iterate_block()
431 if (nlen > AFSNAMEMAX - 1) { in afs_dir_iterate_block()
434 offset, nlen); in afs_dir_iterate_block()
441 nlen, dire->u.name); in afs_dir_iterate_block()
443 nr_slots = afs_dir_calc_slots(nlen); in afs_dir_iterate_block()
450 offset, next, nlen); in afs_dir_iterate_block()
474 if (!dir_emit(ctx, dire->u.name, nlen, in afs_dir_iterate_block()
586 if (cookie->name.len != nlen || in afs_lookup_one_filldir()
587 memcmp(cookie->name.name, name, nlen) != 0) { in afs_lookup_one_filldir()
[all …]
/linux-6.3-rc2/lib/zlib_inflate/
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()
A Dinflate.h105 unsigned nlen; /* number of length code lengths */ member
/linux-6.3-rc2/drivers/net/slip/
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()
/linux-6.3-rc2/fs/romfs/
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()
/linux-6.3-rc2/init/
A Dinitramfs.c153 size_t nlen = strlen(name) + 1; in dir_add() local
156 de = kmalloc(sizeof(struct dir_entry) + nlen, GFP_KERNEL); in dir_add()
160 strscpy(de->name, name, nlen); in dir_add()
/linux-6.3-rc2/include/uapi/linux/
A Dvirtio_gpu.h286 __le32 nlen; member
A Dsysctl.h37 int nlen; member
/linux-6.3-rc2/drivers/media/dvb-core/
A Ddvb_ca_en50221.c201 static char *findstr(char *haystack, int hlen, char *needle, int nlen) in findstr() argument
205 if (hlen < nlen) in findstr()
208 for (i = 0; i <= hlen - nlen; i++) { in findstr()
209 if (!strncmp(haystack + i, needle, nlen)) in findstr()
/linux-6.3-rc2/fs/nfs/
A Dpnfs_nfs.c1048 ssize_t nlen, rlen; in nfs4_decode_mp_ds_addr() local
1057 nlen = xdr_stream_decode_string_dup(xdr, &netid, XDR_MAX_NETOBJ, in nfs4_decode_mp_ds_addr()
1059 if (unlikely(nlen < 0)) in nfs4_decode_mp_ds_addr()

Completed in 67 milliseconds

12