/linux-master/fs/xfs/libxfs/ |
H A D | xfs_attr_sf.h | 25 static inline int xfs_attr_sf_entsize_byname(uint8_t nlen, uint8_t vlen) argument 27 return sizeof(struct xfs_attr_sf_entry) + nlen + vlen;
|
H A D | xfs_da_format.h | 774 static inline int xfs_attr_leaf_entsize_remote(int nlen) argument 791 * nearest multiple of 4 (NAME_ALIGN). IOWs, round_up(11 + nlen, 4). 800 return round_up(remotesize + nlen, XFS_ATTR_LEAF_NAME_ALIGN); 803 static inline int xfs_attr_leaf_entsize_local(int nlen, int vlen) argument 821 * round_up(3 + nlen + vlen, 4). This is encoded in the ondisk format, 830 return round_up(localsize + nlen + vlen, XFS_ATTR_LEAF_NAME_ALIGN);
|
/linux-master/fs/unicode/ |
H A D | utf8-core.c | 103 size_t nlen = 0; local 108 for (nlen = 0; nlen < dlen; nlen++) { 111 dest[nlen] = c; 113 return nlen; 145 ssize_t nlen = 0; local 150 for (nlen = 0; nlen < dlen; nlen [all...] |
H A D | utf8-selftest.c | 180 int nlen = strlen(nfdi_test_data[i].dec); local 184 test((utf8len(um, UTF8_NFDI, nfdi_test_data[i].str) == nlen)); 186 nlen)); 198 test((j == nlen)); 209 int nlen = strlen(nfdicf_test_data[i].ncf); local 214 nlen)); 216 nlen)); 229 test((j == nlen));
|
/linux-master/arch/sparc/kernel/ |
H A D | sys_sparc_32.c | 200 int nlen, err; local 208 nlen = strlen(utsname()->domainname) + 1; 210 if (nlen > len) 212 memcpy(tmp, utsname()->domainname, nlen); 216 if (copy_to_user(name, tmp, nlen))
|
H A D | sys_sparc_64.c | 526 int nlen, err; local 534 nlen = strlen(utsname()->domainname) + 1; 536 if (nlen > len) 538 memcpy(tmp, utsname()->domainname, nlen); 542 if (copy_to_user(name, tmp, nlen))
|
/linux-master/fs/cachefiles/ |
H A D | key.c | 86 unsigned int nlen = min(nbe, nle) + 1; local 87 name = kmalloc(nlen, GFP_KERNEL); 100 len += snprintf(name + len, nlen - len, "%x", x);
|
/linux-master/lib/zlib_inflate/ |
H A D | inflate.h | 105 unsigned nlen; /* number of length code lengths */ member in struct:inflate_state
|
H A D | inflate.c | 468 state->nlen = BITS(5) + 257; 475 if (state->nlen > 286 || state->ndist > 30) { 506 while (state->have < state->nlen + state->ndist) { 544 if (state->have + copy > state->nlen + state->ndist) { 561 ret = zlib_inflate_table(LENS, state->lens, state->nlen, &(state->next), 570 ret = zlib_inflate_table(DISTS, state->lens + state->nlen, state->ndist,
|
/linux-master/fs/ubifs/ |
H A D | replay.c | 424 * @nlen: directory entry name length 435 const char *name, int nlen, unsigned long long sqnum, 449 nbuf = kmalloc(nlen + 1, GFP_KERNEL); 464 fname_len(&r->nm) = nlen; 465 memcpy(nbuf, name, nlen); 466 nbuf[nlen] = '\0'; 485 int nlen = le16_to_cpu(dent->nlen); local 487 if (le32_to_cpu(dent->ch.len) != nlen + UBIFS_DENT_NODE_SZ + 1 || 489 nlen > UBIFS_MAX_NLE 433 insert_dent(struct ubifs_info *c, int lnum, int offs, int len, const u8 *hash, union ubifs_key *key, const char *name, int nlen, unsigned long long sqnum, int deletion, int *used) argument [all...] |
H A D | debug.c | 283 le16_to_cpu(dent->nlen)); 286 fname_len(&nm) = le16_to_cpu(dent->nlen); 475 int nlen = le16_to_cpu(dent->nlen); local 483 pr_err("\tnlen %d\n", nlen); 486 if (nlen > UBIFS_MAX_NLEN || 487 nlen > safe_len - UBIFS_DENT_NODE_SZ) 490 for (i = 0; i < nlen && dent->name[i]; i++) 1152 fname_len(&nm) = le16_to_cpu(dent->nlen); 1252 nlen1 = le16_to_cpu(dent1->nlen); 2085 int nlen; local [all...] |
H A D | tnc.c | 572 int nlen, err; local 591 nlen = le16_to_cpu(dent->nlen); 592 err = memcmp(dent->name, fname_name(nm), min_t(int, nlen, fname_len(nm))); 594 if (nlen == fname_len(nm)) 596 else if (nlen < fname_len(nm)) 860 int nlen, err; local 884 nlen = le16_to_cpu(dent->nlen); 885 err = memcmp(dent->name, fname_name(nm), min_t(int, nlen, fname_le [all...] |
H A D | journal.c | 730 dent->nlen = cpu_to_le16(fname_len(nm)); 1030 fname_len(&nm) = le16_to_cpu(xent->nlen); 1226 dent1->nlen = cpu_to_le16(fname_len(snd_nm)); 1242 dent2->nlen = cpu_to_le16(fname_len(fst_nm)); 1417 dent->nlen = cpu_to_le16(fname_len(new_nm)); 1439 dent2->nlen = cpu_to_le16(fname_len(old_nm)); 1887 xent->nlen = cpu_to_le16(fname_len(nm));
|
H A D | xattr.c | 434 fname_len(&nm) = le16_to_cpu(xent->nlen); 527 fname_len(&nm) = le16_to_cpu(xent->nlen);
|
H A D | ubifs-media.h | 548 * @nlen: name length 562 __le16 nlen; member in struct:ubifs_dent_node
|
/linux-master/net/ipv6/ |
H A D | ip6_offload.c | 227 unsigned int nlen; local 262 nlen = skb_network_header_len(skb); 276 * already so we don't need to compare nlen 277 * (nlen != (sizeof(*iph2) + ipv6_exthdrs_len(iph2, &ops))) 288 if (unlikely(nlen > sizeof(struct ipv6hdr))) { 290 nlen - sizeof(struct ipv6hdr))) 308 skb_gro_postpull_rcsum(skb, iph, nlen);
|
/linux-master/fs/smb/client/ |
H A D | reparse.c | 450 u8 nlen; local 458 nlen = ea->ea_name_length; 461 if (!strncmp(name, SMB2_WSL_XATTR_UID, nlen)) 463 else if (!strncmp(name, SMB2_WSL_XATTR_GID, nlen)) 465 else if (!strncmp(name, SMB2_WSL_XATTR_MODE, nlen)) 467 else if (!strncmp(name, SMB2_WSL_XATTR_DEV, nlen))
|
H A D | smb2inode.c | 110 u8 nlen; local 125 nlen = ea->ea_name_length; 127 if (nlen != SMB2_WSL_XATTR_NAME_LEN || 128 (u8 *)ea + nlen + 1 + vlen > end) 133 if (strncmp(ea->ea_data, SMB2_WSL_XATTR_UID, nlen) && 134 strncmp(ea->ea_data, SMB2_WSL_XATTR_GID, nlen) && 135 strncmp(ea->ea_data, SMB2_WSL_XATTR_MODE, nlen)) 139 if (strncmp(ea->ea_data, SMB2_WSL_XATTR_DEV, nlen)) 143 if (!strncmp(ea->ea_data, SMB2_WSL_XATTR_UID, nlen) || 144 !strncmp(ea->ea_data, SMB2_WSL_XATTR_GID, nlen) || [all...] |
/linux-master/drivers/net/slip/ |
H A D | slhc.c | 235 int nlen, hlen; local 263 nlen = ip->ihl * 4; 264 if (isize < nlen + sizeof(*th)) 267 th = (struct tcphdr *)(icp + nlen); 270 hlen = nlen + th->doff * 4;
|
/linux-master/fs/afs/ |
H A D | dir.c | 27 static bool afs_lookup_one_filldir(struct dir_context *ctx, const char *name, int nlen, 29 static bool afs_lookup_filldir(struct dir_context *ctx, const char *name, int nlen, 406 size_t nlen; local 432 nlen = strnlen(dire->u.name, 435 if (nlen > AFSNAMEMAX - 1) { 438 offset, nlen); 445 nlen, dire->u.name); 447 nr_slots = afs_dir_calc_slots(nlen); 454 offset, next, nlen); 478 if (!dir_emit(ctx, dire->u.name, nlen, 576 afs_lookup_one_filldir(struct dir_context *ctx, const char *name, int nlen, loff_t fpos, u64 ino, unsigned dtype) argument 644 afs_lookup_filldir(struct dir_context *ctx, const char *name, int nlen, loff_t fpos, u64 ino, unsigned dtype) argument [all...] |
/linux-master/fs/romfs/ |
H A D | super.c | 284 unsigned long nlen; local 306 nlen = romfs_dev_strnlen(sb, pos + ROMFH_SIZE, ROMFS_MAXFN); 307 if (IS_ERR_VALUE(nlen)) 320 inode->i_metasize = (ROMFH_SIZE + nlen + 1 + ROMFH_PAD) & ROMFH_MASK;
|
/linux-master/init/ |
H A D | initramfs.c | 147 size_t nlen = strlen(name) + 1; local 150 de = kmalloc(sizeof(struct dir_entry) + nlen, GFP_KERNEL); 154 strscpy(de->name, name, nlen);
|
/linux-master/include/uapi/linux/ |
H A D | virtio_gpu.h | 286 __le32 nlen; member in struct:virtio_gpu_ctx_create
|
H A D | sysctl.h | 32 the largest acceptable value for the nlen 37 int nlen; member in struct:__sysctl_args
|
/linux-master/drivers/media/dvb-core/ |
H A D | dvb_ca_en50221.c | 204 * @nlen: Number of bytes in needle. 207 static char *findstr(char *haystack, int hlen, char *needle, int nlen) argument 211 if (hlen < nlen) 214 for (i = 0; i <= hlen - nlen; i++) { 215 if (!strncmp(haystack + i, needle, nlen))
|