Home
last modified time | relevance | path

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

/linux-4.4.14/kernel/
Dsysctl_binary.c1223 static const struct bin_table *get_sysctl(const int *name, int nlen, char *path) in get_sysctl() argument
1236 if (!nlen) in get_sysctl()
1240 nlen--; in get_sysctl()
1278 static char *sysctl_getname(const int *name, int nlen, const struct bin_table **tablep) in sysctl_getname() argument
1285 const struct bin_table *table = get_sysctl(name, nlen, tmp); in sysctl_getname()
1296 static ssize_t binary_sysctl(const int *name, int nlen, in binary_sysctl() argument
1306 pathname = sysctl_getname(name, nlen, &table); in binary_sysctl()
1341 static ssize_t binary_sysctl(const int *name, int nlen, in binary_sysctl() argument
1350 static void deprecated_sysctl_warning(const int *name, int nlen) in deprecated_sysctl_warning() argument
1365 for (i = 0; i < nlen; i++) in deprecated_sysctl_warning()
[all …]
/linux-4.4.14/fs/ubifs/
Dreplay.c405 union ubifs_key *key, const char *name, int nlen, in insert_dent() argument
419 nbuf = kmalloc(nlen + 1, GFP_KERNEL); in insert_dent()
433 r->nm.len = nlen; in insert_dent()
434 memcpy(nbuf, name, nlen); in insert_dent()
435 nbuf[nlen] = '\0'; in insert_dent()
454 int nlen = le16_to_cpu(dent->nlen); in ubifs_validate_entry() local
456 if (le32_to_cpu(dent->ch.len) != nlen + UBIFS_DENT_NODE_SZ + 1 || in ubifs_validate_entry()
458 nlen > UBIFS_MAX_NLEN || dent->name[nlen] != 0 || in ubifs_validate_entry()
459 strnlen(dent->name, nlen) != nlen || in ubifs_validate_entry()
635 le16_to_cpu(dent->nlen), snod->sqnum, in replay_bud()
Dtnc.c525 int nlen, err; in matches_name() local
544 nlen = le16_to_cpu(dent->nlen); in matches_name()
545 err = memcmp(dent->name, nm->name, min_t(int, nlen, nm->len)); in matches_name()
547 if (nlen == nm->len) in matches_name()
549 else if (nlen < nm->len) in matches_name()
813 int nlen, err; in fallible_matches_name() local
837 nlen = le16_to_cpu(dent->nlen); in fallible_matches_name()
838 err = memcmp(dent->name, nm->name, min_t(int, nlen, nm->len)); in fallible_matches_name()
840 if (nlen == nm->len) in fallible_matches_name()
842 else if (nlen < nm->len) in fallible_matches_name()
[all …]
Ddebug.c293 nm.len = le16_to_cpu(dent->nlen); in ubifs_dump_inode()
452 int nlen = le16_to_cpu(dent->nlen); in ubifs_dump_node() local
460 pr_err("\tnlen %d\n", nlen); in ubifs_dump_node()
463 if (nlen > UBIFS_MAX_NLEN) in ubifs_dump_node()
466 for (i = 0; i < nlen && dent->name[i]; i++) in ubifs_dump_node()
1132 nm.len = le16_to_cpu(dent->nlen); in dbg_check_dir()
1232 nlen1 = le16_to_cpu(dent1->nlen); in dbg_check_key_order()
1233 nlen2 = le16_to_cpu(dent2->nlen); in dbg_check_key_order()
2061 int nlen; in check_leaf() local
2096 nlen = le16_to_cpu(dent->nlen); in check_leaf()
[all …]
Djournal.c599 dent->nlen = cpu_to_le16(nm->len); in ubifs_jnl_update()
977 dent->nlen = cpu_to_le16(new_dentry->d_name.len); in ubifs_jnl_rename()
990 dent2->nlen = cpu_to_le16(old_dentry->d_name.len); in ubifs_jnl_rename()
1327 xent->nlen = cpu_to_le16(nm->len); in ubifs_jnl_delete_xattr()
Dubifs-media.h536 __le16 nlen; member
Ddir.c177 if (le16_to_cpu(dent->nlen) != nm->len) in dbg_check_name()
430 nm.len = le16_to_cpu(dent->nlen); in ubifs_readdir()
Dxattr.c473 nm.len = le16_to_cpu(xent->nlen); in ubifs_listxattr()
/linux-4.4.14/arch/sparc/kernel/
Dsys_sparc_32.c204 int nlen, err; in sys_getdomainname() local
211 nlen = strlen(utsname()->domainname) + 1; in sys_getdomainname()
213 if (nlen > len) in sys_getdomainname()
217 if (!copy_to_user(name, utsname()->domainname, nlen)) in sys_getdomainname()
Dsys_sparc_64.c527 int nlen, err; in SYSCALL_DEFINE2() local
534 nlen = strlen(utsname()->domainname) + 1; in SYSCALL_DEFINE2()
536 if (nlen > len) in SYSCALL_DEFINE2()
540 if (!copy_to_user(name, utsname()->domainname, nlen)) in SYSCALL_DEFINE2()
/linux-4.4.14/drivers/isdn/hisax/
Dl3dss1.c131 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 …]
Dl3ni1.c130 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-4.4.14/fs/xfs/libxfs/
Dxfs_attr_sf.h58 #define XFS_ATTR_SF_ENTSIZE_BYNAME(nlen,vlen) /* space name/value uses */ \ argument
59 (((int)sizeof(xfs_attr_sf_entry_t)-1 + (nlen)+(vlen)))
Dxfs_da_format.h832 static inline int xfs_attr_leaf_entsize_remote(int nlen) in xfs_attr_leaf_entsize_remote() argument
834 return ((uint)sizeof(xfs_attr_leaf_name_remote_t) - 1 + (nlen) + \ in xfs_attr_leaf_entsize_remote()
838 static inline int xfs_attr_leaf_entsize_local(int nlen, int vlen) in xfs_attr_leaf_entsize_local() argument
840 return ((uint)sizeof(xfs_attr_leaf_name_local_t) - 1 + (nlen) + (vlen) + in xfs_attr_leaf_entsize_local()
Dxfs_alloc.c1601 xfs_extlen_t nlen; /* new length of freespace */ in xfs_free_ag_extent() local
1725 nlen = len + ltlen + gtlen; in xfs_free_ag_extent()
1726 if ((error = xfs_alloc_update(bno_cur, nbno, nlen))) in xfs_free_ag_extent()
1751 nlen = len + ltlen; in xfs_free_ag_extent()
1752 if ((error = xfs_alloc_update(bno_cur, nbno, nlen))) in xfs_free_ag_extent()
1774 nlen = len + gtlen; in xfs_free_ag_extent()
1775 if ((error = xfs_alloc_update(bno_cur, nbno, nlen))) in xfs_free_ag_extent()
1784 nlen = len; in xfs_free_ag_extent()
1794 if ((error = xfs_alloc_lookup_eq(cnt_cur, nbno, nlen, &i))) in xfs_free_ag_extent()
/linux-4.4.14/fs/afs/
Ddir.c29 static int afs_lookup_filldir(struct dir_context *ctx, const char *name, int nlen,
237 size_t nlen; in afs_dir_iterate_block() local
264 nlen = strnlen(dire->u.name, in afs_dir_iterate_block()
271 nlen, dire->u.name); in afs_dir_iterate_block()
274 for (tmp = nlen; tmp > 15; tmp -= sizeof(union afs_dirent)) { in afs_dir_iterate_block()
280 offset, next, tmp, nlen); in afs_dir_iterate_block()
288 offset, next, tmp, nlen); in afs_dir_iterate_block()
294 next, tmp, nlen); in afs_dir_iterate_block()
303 if (!dir_emit(ctx, dire->u.name, nlen, in afs_dir_iterate_block()
395 int nlen, loff_t fpos, u64 ino, unsigned dtype) in afs_lookup_filldir() argument
[all …]
/linux-4.4.14/net/ipv6/
Dip6_offload.c173 unsigned int nlen; in ipv6_gro_receive() local
214 nlen = skb_network_header_len(skb); in ipv6_gro_receive()
234 nlen - offsetof(struct ipv6hdr, nexthdr))) { in ipv6_gro_receive()
248 skb_gro_postpull_rcsum(skb, iph, nlen); in ipv6_gro_receive()
/linux-4.4.14/fs/nfs/
Dpnfs_nfs.c722 int nlen, rlen; in nfs4_decode_mp_ds_addr() local
735 nlen = be32_to_cpup(p++); in nfs4_decode_mp_ds_addr()
737 p = xdr_inline_decode(xdr, nlen); in nfs4_decode_mp_ds_addr()
741 netid = kmalloc(nlen+1, gfp_flags); in nfs4_decode_mp_ds_addr()
745 netid[nlen] = '\0'; in nfs4_decode_mp_ds_addr()
746 memcpy(netid, p, nlen); in nfs4_decode_mp_ds_addr()
829 if (nlen != match_netid_len || strncmp(netid, match_netid, nlen)) { in nfs4_decode_mp_ds_addr()
/linux-4.4.14/lib/zlib_inflate/
Dinflate.c449 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()
Dinflate.h103 unsigned nlen; /* number of length code lengths */ member
/linux-4.4.14/fs/romfs/
Dsuper.c300 unsigned long nlen; in romfs_iget() local
322 nlen = romfs_dev_strnlen(sb, pos + ROMFH_SIZE, ROMFS_MAXFN); in romfs_iget()
323 if (IS_ERR_VALUE(nlen)) in romfs_iget()
336 inode->i_metasize = (ROMFH_SIZE + nlen + 1 + ROMFH_PAD) & ROMFH_MASK; in romfs_iget()
/linux-4.4.14/drivers/gpu/drm/virtio/
Dvirtgpu_kms.c76 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()
Dvirtgpu_vq.c732 uint32_t nlen, const char *name) in virtio_gpu_cmd_context_create() argument
742 cmd_p->nlen = cpu_to_le32(nlen); in virtio_gpu_cmd_context_create()
Dvirtgpu_drv.h295 uint32_t nlen, const char *name);
/linux-4.4.14/fs/cachefiles/
Dnamei.c469 int ret, nlen; in cachefiles_walk_to_object() local
493 nlen = strlen(key); in cachefiles_walk_to_object()
496 key = key + nlen + 1; in cachefiles_walk_to_object()
507 next = lookup_one_len(name, dir, nlen); in cachefiles_walk_to_object()
/linux-4.4.14/include/uapi/linux/
Dvirtio_gpu.h238 __le32 nlen; member
Dsysctl.h38 int nlen; member
/linux-4.4.14/arch/tile/include/asm/
Dcompat.h77 int nlen; member
/linux-4.4.14/drivers/media/dvb-core/
Ddvb_ca_en50221.c178 static char *findstr(char * haystack, int hlen, char * needle, int nlen) in findstr() argument
182 if (hlen < nlen) in findstr()
185 for (i = 0; i <= hlen - nlen; i++) { in findstr()
186 if (!strncmp(haystack + i, needle, nlen)) in findstr()
/linux-4.4.14/fs/ext4/
Ddir.c614 int nlen, rlen; in ext4_check_all_de() local
624 nlen = EXT4_DIR_REC_LEN(de->name_len); in ext4_check_all_de()
Dnamei.c1800 int nlen, rlen; in ext4_find_dest_de() local
1821 nlen = EXT4_DIR_REC_LEN(de->name_len); in ext4_find_dest_de()
1823 if ((de->inode ? rlen - nlen : rlen) >= reclen) in ext4_find_dest_de()
1846 int nlen, rlen; in ext4_insert_dentry() local
1848 nlen = EXT4_DIR_REC_LEN(de->name_len); in ext4_insert_dentry()
1852 (struct ext4_dir_entry_2 *)((char *)de + nlen); in ext4_insert_dentry()
1853 de1->rec_len = ext4_rec_len_to_disk(rlen - nlen, buf_size); in ext4_insert_dentry()
1854 de->rec_len = ext4_rec_len_to_disk(nlen, buf_size); in ext4_insert_dentry()
/linux-4.4.14/net/netlink/
Dgenetlink.c191 size_t nlen = new_longs * sizeof(unsigned long); in genl_allocate_reserve_groups() local
194 new_groups = kzalloc(nlen, GFP_KERNEL); in genl_allocate_reserve_groups()
200 new_groups = krealloc(mc_groups, nlen, in genl_allocate_reserve_groups()
/linux-4.4.14/net/ipv4/
Dtcp_output.c1141 int nlen; in tcp_fragment() local
1161 nlen = skb->len - len - nsize; in tcp_fragment()
1162 buff->truesize += nlen; in tcp_fragment()
1163 skb->truesize -= nlen; in tcp_fragment()
1706 int nlen = skb->len - len; in tso_fragment() local
1719 buff->truesize += nlen; in tso_fragment()
1720 skb->truesize -= nlen; in tso_fragment()
/linux-4.4.14/security/selinux/ss/
Dservices.c759 u32 olen, nlen, tlen; in security_validtrans_handle_fail() local
763 if (context_struct_to_string(ncontext, &n, &nlen)) in security_validtrans_handle_fail()
1520 u32 slen, tlen, nlen; in compute_sid_handle_invalid_context() local
1526 if (context_struct_to_string(newcontext, &n, &nlen)) in compute_sid_handle_invalid_context()
/linux-4.4.14/fs/dlm/
Dlock.c438 static int rsb_cmp(struct dlm_rsb *r, const char *name, int nlen) in rsb_cmp() argument
443 memcpy(maxname, name, nlen); in rsb_cmp()