/linux/fs/ubifs/ |
H A D | replay.c | 436 const char *name, int nlen, unsigned long long sqnum, in insert_dent() argument 450 nbuf = kmalloc(nlen + 1, GFP_KERNEL); in insert_dent() 465 fname_len(&r->nm) = nlen; in insert_dent() 466 memcpy(nbuf, name, nlen); in insert_dent() 467 nbuf[nlen] = '\0'; in insert_dent() 486 int nlen = le16_to_cpu(dent->nlen); in ubifs_validate_entry() local 488 if (le32_to_cpu(dent->ch.len) != nlen + UBIFS_DENT_NODE_SZ + 1 || in ubifs_validate_entry() 490 nlen > UBIFS_MAX_NLEN || dent->name[nlen] != 0 || in ubifs_validate_entry() 491 (key_type == UBIFS_XENT_KEY && strnlen(dent->name, nlen) != nlen) || in ubifs_validate_entry() 775 le16_to_cpu(dent->nlen), snod->sqnum, in replay_bud()
|
H A 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() 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() 490 for (i = 0; i < nlen && dent->name[i]; i++) in ubifs_dump_node() 1152 fname_len(&nm) = le16_to_cpu(dent->nlen); in dbg_check_dir() 1252 nlen1 = le16_to_cpu(dent1->nlen); in dbg_check_key_order() 1253 nlen2 = le16_to_cpu(dent2->nlen); in dbg_check_key_order() [all …]
|
H A D | tnc.c | 572 int nlen, err; in matches_name() local 591 nlen = le16_to_cpu(dent->nlen); in matches_name() 592 err = memcmp(dent->name, fname_name(nm), min_t(int, nlen, fname_len(nm))); in matches_name() 594 if (nlen == fname_len(nm)) in matches_name() 596 else if (nlen < fname_len(nm)) in matches_name() 860 int nlen, err; in fallible_matches_name() local 884 nlen = le16_to_cpu(dent->nlen); in fallible_matches_name() 885 err = memcmp(dent->name, fname_name(nm), min_t(int, nlen, fname_len(nm))); in fallible_matches_name() 887 if (nlen == fname_len(nm)) in fallible_matches_name() 889 else if (nlen < fname_len(nm)) in fallible_matches_name() [all …]
|
H A D | journal.c | 731 dent->nlen = cpu_to_le16(fname_len(nm)); in ubifs_jnl_update() 1035 fname_len(&nm) = le16_to_cpu(xent->nlen); in ubifs_jnl_write_inode() 1231 dent1->nlen = cpu_to_le16(fname_len(snd_nm)); in ubifs_jnl_xrename() 1247 dent2->nlen = cpu_to_le16(fname_len(fst_nm)); in ubifs_jnl_xrename() 1423 dent->nlen = cpu_to_le16(fname_len(new_nm)); in ubifs_jnl_rename() 1445 dent2->nlen = cpu_to_le16(fname_len(old_nm)); in ubifs_jnl_rename() 1896 xent->nlen = cpu_to_le16(fname_len(nm)); in ubifs_jnl_delete_xattr()
|
H A D | xattr.c | 421 fname_len(&nm) = le16_to_cpu(xent->nlen); in ubifs_listxattr() 514 fname_len(&nm) = le16_to_cpu(xent->nlen); in ubifs_purge_xattrs()
|
H A D | ubifs-media.h | 562 __le16 nlen; member
|
/linux/fs/cachefiles/ |
H A D | key.c | 86 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/net/ipv6/ |
H A D | ip6_offload.c | 227 unsigned int nlen; in ipv6_gro_receive() local 262 nlen = skb_gro_offset(skb) - off; in ipv6_gro_receive() 276 * already so we don't need to compare nlen in ipv6_gro_receive() 277 * (nlen != (sizeof(*iph2) + ipv6_exthdrs_len(iph2, &ops))) in ipv6_gro_receive() 288 if (unlikely(nlen > sizeof(struct ipv6hdr))) { in ipv6_gro_receive() 290 nlen - sizeof(struct ipv6hdr))) in ipv6_gro_receive() 297 skb_gro_postpull_rcsum(skb, iph, nlen); in ipv6_gro_receive()
|
/linux/fs/afs/ |
H A D | dir.c | 28 static bool afs_lookup_one_filldir(struct dir_context *ctx, const char *name, int nlen, 30 static bool afs_lookup_filldir(struct dir_context *ctx, const char *name, int nlen, 407 size_t nlen; in afs_dir_iterate_block() local 433 nlen = strnlen(dire->u.name, in afs_dir_iterate_block() 436 if (nlen > AFSNAMEMAX - 1) { in afs_dir_iterate_block() 439 offset, nlen); in afs_dir_iterate_block() 446 nlen, dire->u.name); in afs_dir_iterate_block() 448 nr_slots = afs_dir_calc_slots(nlen); in afs_dir_iterate_block() 455 offset, next, nlen); in afs_dir_iterate_block() 479 if (!dir_emit(ctx, dire->u.name, nlen, in afs_dir_iterate_block() [all …]
|
/linux/fs/smb/client/ |
H A D | smb2inode.c | 110 u8 nlen; in check_wsl_eas() local 125 nlen = ea->ea_name_length; in check_wsl_eas() 127 if (nlen != SMB2_WSL_XATTR_NAME_LEN || in check_wsl_eas() 128 (u8 *)ea + nlen + 1 + vlen > end) in check_wsl_eas() 133 if (strncmp(ea->ea_data, SMB2_WSL_XATTR_UID, nlen) && in check_wsl_eas() 134 strncmp(ea->ea_data, SMB2_WSL_XATTR_GID, nlen) && in check_wsl_eas() 135 strncmp(ea->ea_data, SMB2_WSL_XATTR_MODE, nlen)) in check_wsl_eas() 139 if (strncmp(ea->ea_data, SMB2_WSL_XATTR_DEV, nlen)) in check_wsl_eas() 143 if (!strncmp(ea->ea_data, SMB2_WSL_XATTR_UID, nlen) || in check_wsl_eas() 144 !strncmp(ea->ea_data, SMB2_WSL_XATTR_GID, nlen) || in check_wsl_eas() [all …]
|
/linux/lib/zlib_inflate/ |
H A D | inflate.c | 468 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()
|
H A D | inflate.h | 105 unsigned nlen; /* number of length code lengths */ member
|
/linux/drivers/net/slip/ |
H A D | slhc.c | 235 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/fs/romfs/ |
H A D | super.c | 274 unsigned long nlen; in romfs_iget() local 296 nlen = romfs_dev_strnlen(sb, pos + ROMFH_SIZE, ROMFS_MAXFN); in romfs_iget() 297 if (IS_ERR_VALUE(nlen)) in romfs_iget() 310 inode->i_metasize = (ROMFH_SIZE + nlen + 1 + ROMFH_PAD) & ROMFH_MASK; in romfs_iget()
|
/linux/init/ |
H A D | initramfs.c | 148 size_t nlen = strlen(name) + 1; in dir_add() local 151 de = kmalloc(sizeof(struct dir_entry) + nlen, GFP_KERNEL); in dir_add() 155 strscpy(de->name, name, nlen); in dir_add()
|
/linux/net/ipv4/ |
H A D | tcp_output.c | 1608 int nlen; in tcp_fragment() local 1642 nlen = skb->len - len; in tcp_fragment() 1643 buff->truesize += nlen; in tcp_fragment() 1644 skb->truesize -= nlen; in tcp_fragment() 2162 int nlen = skb->len - len; in tso_fragment() local 2177 buff->truesize += nlen; in tso_fragment() 2178 skb->truesize -= nlen; in tso_fragment() 2699 unsigned int nlen; in tcp_grow_skb() local 2707 nlen = min_t(u32, amount, next_skb->len); in tcp_grow_skb() 2708 if (!nlen || !skb_shift(skb, next_skb, nlen)) in tcp_grow_skb() [all …]
|
/linux/include/uapi/linux/ |
H A D | virtio_gpu.h | 286 __le32 nlen; member
|
H A D | sysctl.h | 37 int nlen; member
|
/linux/drivers/media/dvb-core/ |
H A D | dvb_ca_en50221.c | 207 static char *findstr(char *haystack, int hlen, char *needle, int nlen) in findstr() argument 211 if (hlen < nlen) in findstr() 214 for (i = 0; i <= hlen - nlen; i++) { in findstr() 215 if (!strncmp(haystack + i, needle, nlen)) in findstr()
|
/linux/fs/xfs/libxfs/ |
H A D | xfs_alloc.c | 2057 xfs_extlen_t nlen; /* new length of freespace */ in xfs_free_ag_extent() local 2237 nlen = len + ltlen + gtlen; in xfs_free_ag_extent() 2238 if ((error = xfs_alloc_update(bno_cur, nbno, nlen))) in xfs_free_ag_extent() 2275 nlen = len + ltlen; in xfs_free_ag_extent() 2276 if ((error = xfs_alloc_update(bno_cur, nbno, nlen))) in xfs_free_ag_extent() 2306 nlen = len + gtlen; in xfs_free_ag_extent() 2307 if ((error = xfs_alloc_update(bno_cur, nbno, nlen))) in xfs_free_ag_extent() 2316 nlen = len; in xfs_free_ag_extent() 2335 if ((error = xfs_alloc_lookup_eq(cnt_cur, nbno, nlen, &i))) in xfs_free_ag_extent()
|
/linux/fs/nfs/ |
H A D | pnfs_nfs.c | 1046 ssize_t nlen, rlen; in nfs4_decode_mp_ds_addr() local 1055 nlen = xdr_stream_decode_string_dup(xdr, &netid, XDR_MAX_NETOBJ, in nfs4_decode_mp_ds_addr() 1057 if (unlikely(nlen < 0)) in nfs4_decode_mp_ds_addr()
|
/linux/fs/ext4/ |
H A D | namei.c | 2071 int nlen, rlen; in ext4_find_dest_de() local 2083 nlen = ext4_dir_rec_len(de->name_len, dir); in ext4_find_dest_de() 2085 if ((de->inode ? rlen - nlen : rlen) >= reclen) in ext4_find_dest_de() 2104 int nlen, rlen; in ext4_insert_dentry() local 2106 nlen = ext4_dir_rec_len(de->name_len, dir); in ext4_insert_dentry() 2110 (struct ext4_dir_entry_2 *)((char *)de + nlen); in ext4_insert_dentry() 2111 de1->rec_len = ext4_rec_len_to_disk(rlen - nlen, buf_size); in ext4_insert_dentry() 2112 de->rec_len = ext4_rec_len_to_disk(nlen, buf_size); in ext4_insert_dentry()
|
/linux/drivers/gpu/drm/virtio/ |
H A D | virtgpu_vq.c | 913 uint32_t context_init, uint32_t nlen, in virtio_gpu_cmd_context_create() argument 924 cmd_p->nlen = cpu_to_le32(nlen); in virtio_gpu_cmd_context_create()
|
H A D | virtgpu_drv.h | 361 uint32_t context_init, uint32_t nlen,
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/ |
H A D | r535.c | 1150 const size_t nlen = strnlen(key, REGISTRY_MAX_KEY_LENGTH) + 1; in add_registry() local 1153 if (nlen > REGISTRY_MAX_KEY_LENGTH) in add_registry() 1177 memcpy(reg->key, key, nlen); in add_registry() 1178 reg->klen = nlen; in add_registry() 1183 gsp->registry_rpc_size += sizeof(PACKED_REGISTRY_ENTRY) + nlen + alloc_size; in add_registry()
|