/Linux-v5.4/fs/unicode/ |
D | utf8-core.c | 109 size_t nlen = 0; in utf8_casefold() local 114 for (nlen = 0; nlen < dlen; nlen++) { in utf8_casefold() 117 dest[nlen] = c; in utf8_casefold() 119 return nlen; in utf8_casefold() 133 ssize_t nlen = 0; in utf8_normalize() local 138 for (nlen = 0; nlen < dlen; nlen++) { in utf8_normalize() 141 dest[nlen] = c; in utf8_normalize() 143 return nlen; in utf8_normalize()
|
D | utf8-selftest.c | 178 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()
|
/Linux-v5.4/arch/sparc/kernel/ |
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()
|
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()
|
/Linux-v5.4/kernel/ |
D | sysctl_binary.c | 1205 static const struct bin_table *get_sysctl(const int *name, int nlen, char *path) in get_sysctl() argument 1218 if (!nlen) in get_sysctl() 1222 nlen--; in get_sysctl() 1260 static char *sysctl_getname(const int *name, int nlen, const struct bin_table **tablep) in sysctl_getname() argument 1267 const struct bin_table *table = get_sysctl(name, nlen, tmp); in sysctl_getname() 1278 static ssize_t binary_sysctl(const int *name, int nlen, in binary_sysctl() argument 1288 pathname = sysctl_getname(name, nlen, &table); in binary_sysctl() 1323 static ssize_t binary_sysctl(const int *name, int nlen, in binary_sysctl() argument 1332 static void deprecated_sysctl_warning(const int *name, int nlen) in deprecated_sysctl_warning() argument 1340 if (nlen >= 2 && name[0] == CTL_KERN && name[1] == KERN_VERSION) in deprecated_sysctl_warning() [all …]
|
/Linux-v5.4/fs/xfs/libxfs/ |
D | xfs_attr_sf.h | 30 #define XFS_ATTR_SF_ENTSIZE_BYNAME(nlen,vlen) /* space name/value uses */ \ argument 31 (((int)sizeof(xfs_attr_sf_entry_t)-1 + (nlen)+(vlen)))
|
D | xfs_da_format.h | 818 static inline int xfs_attr_leaf_entsize_remote(int nlen) in xfs_attr_leaf_entsize_remote() argument 820 return ((uint)sizeof(xfs_attr_leaf_name_remote_t) - 1 + (nlen) + \ in xfs_attr_leaf_entsize_remote() 824 static inline int xfs_attr_leaf_entsize_local(int nlen, int vlen) in xfs_attr_leaf_entsize_local() argument 826 return ((uint)sizeof(xfs_attr_leaf_name_local_t) - 1 + (nlen) + (vlen) + in xfs_attr_leaf_entsize_local()
|
D | xfs_alloc.c | 1704 xfs_extlen_t nlen; /* new length of freespace */ in xfs_free_ag_extent() local 1838 nlen = len + ltlen + gtlen; in xfs_free_ag_extent() 1839 if ((error = xfs_alloc_update(bno_cur, nbno, nlen))) in xfs_free_ag_extent() 1864 nlen = len + ltlen; in xfs_free_ag_extent() 1865 if ((error = xfs_alloc_update(bno_cur, nbno, nlen))) in xfs_free_ag_extent() 1887 nlen = len + gtlen; in xfs_free_ag_extent() 1888 if ((error = xfs_alloc_update(bno_cur, nbno, nlen))) in xfs_free_ag_extent() 1897 nlen = len; in xfs_free_ag_extent() 1907 if ((error = xfs_alloc_lookup_eq(cnt_cur, nbno, nlen, &i))) in xfs_free_ag_extent()
|
/Linux-v5.4/fs/ubifs/ |
D | replay.c | 433 const char *name, int nlen, unsigned long long sqnum, in insert_dent() argument 447 nbuf = kmalloc(nlen + 1, GFP_KERNEL); in insert_dent() 462 fname_len(&r->nm) = nlen; in insert_dent() 463 memcpy(nbuf, name, nlen); in insert_dent() 464 nbuf[nlen] = '\0'; in insert_dent() 483 int nlen = le16_to_cpu(dent->nlen); in ubifs_validate_entry() local 485 if (le32_to_cpu(dent->ch.len) != nlen + UBIFS_DENT_NODE_SZ + 1 || in ubifs_validate_entry() 487 nlen > UBIFS_MAX_NLEN || dent->name[nlen] != 0 || in ubifs_validate_entry() 488 (key_type == UBIFS_XENT_KEY && strnlen(dent->name, nlen) != nlen) || in ubifs_validate_entry() 787 le16_to_cpu(dent->nlen), snod->sqnum, in replay_bud()
|
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() 445 int nlen = le16_to_cpu(dent->nlen); in ubifs_dump_node() local 453 pr_err("\tnlen %d\n", nlen); in ubifs_dump_node() 456 if (nlen > UBIFS_MAX_NLEN) in ubifs_dump_node() 459 for (i = 0; i < nlen && dent->name[i]; i++) in ubifs_dump_node() 1130 fname_len(&nm) = le16_to_cpu(dent->nlen); in dbg_check_dir() 1230 nlen1 = le16_to_cpu(dent1->nlen); in dbg_check_key_order() 1231 nlen2 = le16_to_cpu(dent2->nlen); in dbg_check_key_order() 2058 int nlen; in check_leaf() local [all …]
|
D | tnc.c | 535 int nlen, err; in matches_name() local 554 nlen = le16_to_cpu(dent->nlen); in matches_name() 555 err = memcmp(dent->name, fname_name(nm), min_t(int, nlen, fname_len(nm))); in matches_name() 557 if (nlen == fname_len(nm)) in matches_name() 559 else if (nlen < fname_len(nm)) in matches_name() 823 int nlen, err; in fallible_matches_name() local 847 nlen = le16_to_cpu(dent->nlen); in fallible_matches_name() 848 err = memcmp(dent->name, fname_name(nm), min_t(int, nlen, fname_len(nm))); in fallible_matches_name() 850 if (nlen == fname_len(nm)) in fallible_matches_name() 852 else if (nlen < fname_len(nm)) in fallible_matches_name() [all …]
|
D | journal.c | 603 dent->nlen = cpu_to_le16(fname_len(nm)); in ubifs_jnl_update() 900 fname_len(&nm) = le16_to_cpu(xent->nlen); in ubifs_jnl_write_inode() 1094 dent1->nlen = cpu_to_le16(fname_len(snd_nm)); in ubifs_jnl_xrename() 1110 dent2->nlen = cpu_to_le16(fname_len(fst_nm)); in ubifs_jnl_xrename() 1269 dent->nlen = cpu_to_le16(fname_len(new_nm)); in ubifs_jnl_rename() 1291 dent2->nlen = cpu_to_le16(fname_len(old_nm)); in ubifs_jnl_rename() 1706 xent->nlen = cpu_to_le16(fname_len(nm)); in ubifs_jnl_delete_xattr()
|
D | xattr.c | 429 fname_len(&nm) = le16_to_cpu(xent->nlen); in ubifs_listxattr() 516 fname_len(&nm) = le16_to_cpu(xent->nlen); in ubifs_purge_xattrs()
|
D | ubifs-media.h | 562 __le16 nlen; member
|
/Linux-v5.4/net/ipv6/ |
D | ip6_offload.c | 191 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() 278 skb_gro_postpull_rcsum(skb, iph, nlen); in ipv6_gro_receive()
|
/Linux-v5.4/fs/afs/ |
D | dir.c | 27 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, 357 size_t nlen; in afs_dir_iterate_block() local 384 nlen = strnlen(dire->u.name, in afs_dir_iterate_block() 391 nlen, dire->u.name); in afs_dir_iterate_block() 394 for (tmp = nlen; tmp > 15; tmp -= sizeof(union afs_xdr_dirent)) { in afs_dir_iterate_block() 400 offset, next, tmp, nlen); in afs_dir_iterate_block() 408 offset, next, tmp, nlen); in afs_dir_iterate_block() 414 next, tmp, nlen); in afs_dir_iterate_block() 423 if (!dir_emit(ctx, dire->u.name, nlen, in afs_dir_iterate_block() [all …]
|
/Linux-v5.4/fs/nfs/ |
D | pnfs_nfs.c | 788 int nlen, rlen; in nfs4_decode_mp_ds_addr() local 801 nlen = be32_to_cpup(p++); in nfs4_decode_mp_ds_addr() 803 p = xdr_inline_decode(xdr, nlen); in nfs4_decode_mp_ds_addr() 807 netid = kmalloc(nlen+1, gfp_flags); in nfs4_decode_mp_ds_addr() 811 netid[nlen] = '\0'; in nfs4_decode_mp_ds_addr() 812 memcpy(netid, p, nlen); in nfs4_decode_mp_ds_addr() 895 if (nlen != match_netid_len || strncmp(netid, match_netid, nlen)) { in nfs4_decode_mp_ds_addr()
|
/Linux-v5.4/lib/zlib_inflate/ |
D | inflate.c | 453 state->nlen = BITS(5) + 257; in zlib_inflate() 460 if (state->nlen > 286 || state->ndist > 30) { in zlib_inflate() 491 while (state->have < state->nlen + state->ndist) { in zlib_inflate() 529 if (state->have + copy > state->nlen + state->ndist) { in zlib_inflate() 546 ret = zlib_inflate_table(LENS, state->lens, state->nlen, &(state->next), in zlib_inflate() 555 ret = zlib_inflate_table(DISTS, state->lens + state->nlen, state->ndist, in zlib_inflate()
|
D | inflate.h | 103 unsigned nlen; /* number of length code lengths */ member
|
/Linux-v5.4/fs/romfs/ |
D | super.c | 283 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()
|
/Linux-v5.4/drivers/gpu/drm/virtio/ |
D | virtgpu_kms.c | 55 uint32_t nlen, const char *name) in virtio_gpu_context_create() argument 62 virtio_gpu_cmd_context_create(vgdev, handle, nlen, name); in virtio_gpu_context_create()
|
/Linux-v5.4/fs/cachefiles/ |
D | namei.c | 493 int ret, nlen; in cachefiles_walk_to_object() local 517 nlen = strlen(key); in cachefiles_walk_to_object() 520 key = key + nlen + 1; in cachefiles_walk_to_object() 531 next = lookup_one_len(name, dir, nlen); in cachefiles_walk_to_object()
|
/Linux-v5.4/include/uapi/linux/ |
D | virtio_gpu.h | 249 __le32 nlen; member
|
/Linux-v5.4/net/netlink/ |
D | genetlink.c | 155 size_t nlen = new_longs * sizeof(unsigned long); in genl_allocate_reserve_groups() local 158 new_groups = kzalloc(nlen, GFP_KERNEL); in genl_allocate_reserve_groups() 164 new_groups = krealloc(mc_groups, nlen, in genl_allocate_reserve_groups()
|
/Linux-v5.4/drivers/media/dvb-core/ |
D | dvb_ca_en50221.c | 201 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()
|