/Linux-v4.19/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 | 522 int nlen, err; in SYSCALL_DEFINE2() local 530 nlen = strlen(utsname()->domainname) + 1; in SYSCALL_DEFINE2() 532 if (nlen > len) in SYSCALL_DEFINE2() 534 memcpy(tmp, utsname()->domainname, nlen); in SYSCALL_DEFINE2() 538 if (copy_to_user(name, tmp, nlen)) in SYSCALL_DEFINE2()
|
/Linux-v4.19/kernel/ |
D | sysctl_binary.c | 1204 static const struct bin_table *get_sysctl(const int *name, int nlen, char *path) in get_sysctl() argument 1217 if (!nlen) in get_sysctl() 1221 nlen--; in get_sysctl() 1259 static char *sysctl_getname(const int *name, int nlen, const struct bin_table **tablep) in sysctl_getname() argument 1266 const struct bin_table *table = get_sysctl(name, nlen, tmp); in sysctl_getname() 1277 static ssize_t binary_sysctl(const int *name, int nlen, in binary_sysctl() argument 1287 pathname = sysctl_getname(name, nlen, &table); in binary_sysctl() 1322 static ssize_t binary_sysctl(const int *name, int nlen, in binary_sysctl() argument 1331 static void deprecated_sysctl_warning(const int *name, int nlen) in deprecated_sysctl_warning() argument 1339 if (nlen >= 2 && name[0] == CTL_KERN && name[1] == KERN_VERSION) in deprecated_sysctl_warning() [all …]
|
/Linux-v4.19/fs/ubifs/ |
D | replay.c | 403 union ubifs_key *key, const char *name, int nlen, in insert_dent() argument 417 nbuf = kmalloc(nlen + 1, GFP_KERNEL); in insert_dent() 431 fname_len(&r->nm) = nlen; in insert_dent() 432 memcpy(nbuf, name, nlen); in insert_dent() 433 nbuf[nlen] = '\0'; in insert_dent() 452 int nlen = le16_to_cpu(dent->nlen); in ubifs_validate_entry() local 454 if (le32_to_cpu(dent->ch.len) != nlen + UBIFS_DENT_NODE_SZ + 1 || in ubifs_validate_entry() 456 nlen > UBIFS_MAX_NLEN || dent->name[nlen] != 0 || in ubifs_validate_entry() 457 (key_type == UBIFS_XENT_KEY && strnlen(dent->name, nlen) != nlen) || in ubifs_validate_entry() 633 le16_to_cpu(dent->nlen), snod->sqnum, in replay_bud()
|
D | debug.c | 293 le16_to_cpu(dent->nlen)); in ubifs_dump_inode() 296 fname_len(&nm) = le16_to_cpu(dent->nlen); in ubifs_dump_inode() 455 int nlen = le16_to_cpu(dent->nlen); in ubifs_dump_node() local 463 pr_err("\tnlen %d\n", nlen); in ubifs_dump_node() 466 if (nlen > UBIFS_MAX_NLEN) in ubifs_dump_node() 469 for (i = 0; i < nlen && dent->name[i]; i++) in ubifs_dump_node() 1136 fname_len(&nm) = le16_to_cpu(dent->nlen); in dbg_check_dir() 1236 nlen1 = le16_to_cpu(dent1->nlen); in dbg_check_key_order() 1237 nlen2 = le16_to_cpu(dent2->nlen); in dbg_check_key_order() 2065 int nlen; in check_leaf() local [all …]
|
D | tnc.c | 542 int nlen, err; in matches_name() local 561 nlen = le16_to_cpu(dent->nlen); in matches_name() 562 err = memcmp(dent->name, fname_name(nm), min_t(int, nlen, fname_len(nm))); in matches_name() 564 if (nlen == fname_len(nm)) in matches_name() 566 else if (nlen < fname_len(nm)) in matches_name() 830 int nlen, err; in fallible_matches_name() local 854 nlen = le16_to_cpu(dent->nlen); in fallible_matches_name() 855 err = memcmp(dent->name, fname_name(nm), min_t(int, nlen, fname_len(nm))); in fallible_matches_name() 857 if (nlen == fname_len(nm)) in fallible_matches_name() 859 else if (nlen < fname_len(nm)) in fallible_matches_name() [all …]
|
D | journal.c | 598 dent->nlen = cpu_to_le16(fname_len(nm)); in ubifs_jnl_update() 990 dent1->nlen = cpu_to_le16(fname_len(snd_nm)); in ubifs_jnl_xrename() 1003 dent2->nlen = cpu_to_le16(fname_len(fst_nm)); in ubifs_jnl_xrename() 1140 dent->nlen = cpu_to_le16(fname_len(new_nm)); in ubifs_jnl_rename() 1159 dent2->nlen = cpu_to_le16(fname_len(old_nm)); in ubifs_jnl_rename() 1533 xent->nlen = cpu_to_le16(fname_len(nm)); in ubifs_jnl_delete_xattr()
|
D | ubifs-media.h | 553 __le16 nlen; member
|
/Linux-v4.19/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 | 1717 xfs_extlen_t nlen; /* new length of freespace */ in xfs_free_ag_extent() local 1848 nlen = len + ltlen + gtlen; in xfs_free_ag_extent() 1849 if ((error = xfs_alloc_update(bno_cur, nbno, nlen))) in xfs_free_ag_extent() 1874 nlen = len + ltlen; in xfs_free_ag_extent() 1875 if ((error = xfs_alloc_update(bno_cur, nbno, nlen))) in xfs_free_ag_extent() 1897 nlen = len + gtlen; in xfs_free_ag_extent() 1898 if ((error = xfs_alloc_update(bno_cur, nbno, nlen))) in xfs_free_ag_extent() 1907 nlen = len; in xfs_free_ag_extent() 1917 if ((error = xfs_alloc_lookup_eq(cnt_cur, nbno, nlen, &i))) in xfs_free_ag_extent()
|
/Linux-v4.19/drivers/isdn/hisax/ |
D | l3dss1.c | 131 l3dss1_dummy_return_result(struct PStack *st, int id, u_char *p, u_char nlen) in l3dss1_dummy_return_result() argument 147 ic.parm.dss1_io.datalen = nlen; in l3dss1_dummy_return_result() 156 l3_debug(st, "dummy return result id=0x%x result len=%d", id, nlen); in l3dss1_dummy_return_result() 198 int ident, u_char *p, u_char nlen) in l3dss1_dummy_invoke() argument 203 (cr == -1) ? "local" : "broadcast", id, ident, nlen); in l3dss1_dummy_invoke() 214 ic.parm.dss1_io.datalen = nlen; in l3dss1_dummy_invoke() 225 unsigned char nlen = 0, ilen, cp_tag; in l3dss1_parse_facility() local 269 nlen = *p++ & 0x7F; /* number of len bytes or indefinite */ in l3dss1_parse_facility() 270 if ((qd_len-- < ((!nlen) ? 3 : (1 + nlen))) || in l3dss1_parse_facility() 271 (nlen > 1)) in l3dss1_parse_facility() [all …]
|
D | l3ni1.c | 130 l3ni1_dummy_return_result(struct PStack *st, int id, u_char *p, u_char nlen) in l3ni1_dummy_return_result() argument 146 ic.parm.ni1_io.datalen = nlen; in l3ni1_dummy_return_result() 155 l3_debug(st, "dummy return result id=0x%x result len=%d", id, nlen); in l3ni1_dummy_return_result() 197 int ident, u_char *p, u_char nlen) in l3ni1_dummy_invoke() argument 202 (cr == -1) ? "local" : "broadcast", id, ident, nlen); in l3ni1_dummy_invoke() 213 ic.parm.ni1_io.datalen = nlen; in l3ni1_dummy_invoke() 224 unsigned char nlen = 0, ilen, cp_tag; in l3ni1_parse_facility() local 268 nlen = *p++ & 0x7F; /* number of len bytes or indefinite */ in l3ni1_parse_facility() 269 if ((qd_len-- < ((!nlen) ? 3 : (1 + nlen))) || in l3ni1_parse_facility() 270 (nlen > 1)) in l3ni1_parse_facility() [all …]
|
/Linux-v4.19/fs/afs/ |
D | dir.c | 29 static int afs_lookup_one_filldir(struct dir_context *ctx, const char *name, int nlen, 31 static int afs_lookup_filldir(struct dir_context *ctx, const char *name, int nlen, 324 size_t nlen; in afs_dir_iterate_block() local 351 nlen = strnlen(dire->u.name, in afs_dir_iterate_block() 358 nlen, dire->u.name); in afs_dir_iterate_block() 361 for (tmp = nlen; tmp > 15; tmp -= sizeof(union afs_xdr_dirent)) { in afs_dir_iterate_block() 367 offset, next, tmp, nlen); in afs_dir_iterate_block() 375 offset, next, tmp, nlen); in afs_dir_iterate_block() 381 next, tmp, nlen); in afs_dir_iterate_block() 390 if (!dir_emit(ctx, dire->u.name, nlen, in afs_dir_iterate_block() [all …]
|
/Linux-v4.19/net/ipv6/ |
D | ip6_offload.c | 174 unsigned int nlen; in ipv6_gro_receive() local 216 nlen = skb_network_header_len(skb); in ipv6_gro_receive() 236 nlen - offsetof(struct ipv6hdr, nexthdr))) { in ipv6_gro_receive() 254 skb_gro_postpull_rcsum(skb, iph, nlen); in ipv6_gro_receive()
|
/Linux-v4.19/fs/nfs/ |
D | pnfs_nfs.c | 782 int nlen, rlen; in nfs4_decode_mp_ds_addr() local 795 nlen = be32_to_cpup(p++); in nfs4_decode_mp_ds_addr() 797 p = xdr_inline_decode(xdr, nlen); in nfs4_decode_mp_ds_addr() 801 netid = kmalloc(nlen+1, gfp_flags); in nfs4_decode_mp_ds_addr() 805 netid[nlen] = '\0'; in nfs4_decode_mp_ds_addr() 806 memcpy(netid, p, nlen); in nfs4_decode_mp_ds_addr() 889 if (nlen != match_netid_len || strncmp(netid, match_netid, nlen)) { in nfs4_decode_mp_ds_addr()
|
/Linux-v4.19/lib/zlib_inflate/ |
D | inflate.c | 449 state->nlen = BITS(5) + 257; in zlib_inflate() 456 if (state->nlen > 286 || state->ndist > 30) { in zlib_inflate() 485 while (state->have < state->nlen + state->ndist) { in zlib_inflate() 523 if (state->have + copy > state->nlen + state->ndist) { in zlib_inflate() 540 ret = zlib_inflate_table(LENS, state->lens, state->nlen, &(state->next), in zlib_inflate() 549 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-v4.19/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-v4.19/drivers/gpu/drm/virtio/ |
D | virtgpu_kms.c | 76 uint32_t nlen, const char *name, in virtio_gpu_context_create() argument 80 virtio_gpu_cmd_context_create(vgdev, *ctx_id, nlen, name); in virtio_gpu_context_create()
|
D | virtgpu_vq.c | 701 uint32_t nlen, const char *name) in virtio_gpu_cmd_context_create() argument 711 cmd_p->nlen = cpu_to_le32(nlen); in virtio_gpu_cmd_context_create()
|
/Linux-v4.19/fs/cachefiles/ |
D | namei.c | 496 int ret, nlen; in cachefiles_walk_to_object() local 520 nlen = strlen(key); in cachefiles_walk_to_object() 523 key = key + nlen + 1; in cachefiles_walk_to_object() 534 next = lookup_one_len(name, dir, nlen); in cachefiles_walk_to_object()
|
/Linux-v4.19/include/uapi/linux/ |
D | virtio_gpu.h | 238 __le32 nlen; member
|
/Linux-v4.19/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-v4.19/drivers/media/dvb-core/ |
D | dvb_ca_en50221.c | 212 static char *findstr(char *haystack, int hlen, char *needle, int nlen) in findstr() argument 216 if (hlen < nlen) in findstr() 219 for (i = 0; i <= hlen - nlen; i++) { in findstr() 220 if (!strncmp(haystack + i, needle, nlen)) in findstr()
|