Home
last modified time | relevance | path

Searched refs:dlen (Results 1 – 22 of 22) sorted by relevance

/fs/isofs/
Dnamei.c19 isofs_cmp(struct dentry *dentry, const char *compare, int dlen) in isofs_cmp() argument
23 qstr.len = dlen; in isofs_cmp()
25 return dentry->d_name.len != dlen || memcmp(dentry->d_name.name, compare, dlen); in isofs_cmp()
55 int de_len, match, i, dlen; in isofs_find_entry() local
98 dlen = de->name_len[0]; in isofs_find_entry()
101 if (de_len < dlen + sizeof(struct iso_directory_record)) { in isofs_find_entry()
110 dlen = i; /* possibly -1 */ in isofs_find_entry()
114 dlen = get_joliet_filename(de, tmpname, dir); in isofs_find_entry()
118 dlen = get_acorn_filename(de, tmpname, dir); in isofs_find_entry()
121 dlen = isofs_name_translate(de, tmpname, dir); in isofs_find_entry()
[all …]
/fs/ubifs/
Djournal.c542 int err, dlen, ilen, len, lnum, ino_offs, dent_offs; in ubifs_jnl_update() local
556 dlen = UBIFS_DENT_NODE_SZ + fname_len(nm) + 1; in ubifs_jnl_update()
570 aligned_dlen = ALIGN(dlen, 8); in ubifs_jnl_update()
609 ubifs_prep_grp_node(c, dent, dlen, 0); in ubifs_jnl_update()
655 err = ubifs_add_dirt(c, lnum, dlen); in ubifs_jnl_update()
657 err = ubifs_tnc_add_nm(c, &dent_key, lnum, dent_offs, dlen, in ubifs_jnl_update()
727 int dlen = COMPRESSED_DATA_NODE_BUF_SZ, allocated = 1; in ubifs_jnl_write_data() local
738 dlen += UBIFS_CIPHER_BLOCK_SIZE; in ubifs_jnl_write_data()
742 data = kmalloc(dlen + auth_len, GFP_NOFS | __GFP_NOWARN); in ubifs_jnl_write_data()
766 out_len = compr_len = dlen - UBIFS_DATA_NODE_SZ; in ubifs_jnl_write_data()
[all …]
Dcrypto.c59 unsigned int dlen = *out_len; in ubifs_decrypt() local
61 if (clen <= 0 || clen > UBIFS_BLOCK_SIZE || clen > dlen) { in ubifs_decrypt()
66 ubifs_assert(c, dlen <= UBIFS_BLOCK_SIZE); in ubifs_decrypt()
68 dlen, offset_in_page(&dn->data), in ubifs_decrypt()
Dfile.c51 unsigned int dlen; in read_block() local
68 dlen = le32_to_cpu(dn->ch.len) - UBIFS_DATA_NODE_SZ; in read_block()
71 err = ubifs_decrypt(inode, dn, &dlen, block); in read_block()
77 err = ubifs_decompress(c, &dn->data, dlen, addr, &out_len, in read_block()
146 int dlen = le32_to_cpu(dn->size); in do_readpage() local
149 if (ilen && ilen < dlen) in do_readpage()
150 memset(addr + ilen, 0, dlen - ilen); in do_readpage()
630 int err, len, out_len, dlen; in populate_page() local
647 dlen = le32_to_cpu(dn->ch.len) - UBIFS_DATA_NODE_SZ; in populate_page()
651 err = ubifs_decrypt(inode, dn, &dlen, page_block); in populate_page()
[all …]
Drecovery.c462 int skip, dlen = le32_to_cpu(ch->len); in no_more_nodes() local
477 skip = ALIGN(offs + dlen, c->max_write_size) - offs; in no_more_nodes()
Ddebug.c470 int dlen = le32_to_cpu(ch->len) - UBIFS_DATA_NODE_SZ; in ubifs_dump_node() local
478 pr_err("\tdata size %d\n", dlen); in ubifs_dump_node()
481 (void *)&dn->data, dlen, 0); in ubifs_dump_node()
/fs/xfs/
Dxfs_discard.c68 xfs_extlen_t dlen; in xfs_trim_extents() local
82 dlen = XFS_FSB_TO_BB(mp, flen); in xfs_trim_extents()
87 if (dlen < minlen) { in xfs_trim_extents()
97 if (dbno + dlen < start || dbno > end) { in xfs_trim_extents()
112 error = blkdev_issue_discard(bdev, dbno, dlen, GFP_NOFS, 0); in xfs_trim_extents()
/fs/f2fs/
Dhash.c114 int r, dlen; in f2fs_dentry_hash() local
125 dlen = utf8_casefold(um, name_info, buff, PATH_MAX); in f2fs_dentry_hash()
126 if (dlen < 0) { in f2fs_dentry_hash()
131 folded.len = dlen; in f2fs_dentry_hash()
/fs/unicode/
Dutf8-core.c105 unsigned char *dest, size_t dlen) in utf8_casefold() argument
114 for (nlen = 0; nlen < dlen; nlen++) { in utf8_casefold()
129 unsigned char *dest, size_t dlen) in utf8_normalize() argument
138 for (nlen = 0; nlen < dlen; nlen++) { in utf8_normalize()
/fs/btrfs/
Dlzo.c120 __le32 dlen; in write_compress_length() local
122 dlen = cpu_to_le32(len); in write_compress_length()
123 memcpy(buf, &dlen, LZO_LEN); in write_compress_length()
128 __le32 dlen; in read_compress_length() local
130 memcpy(&dlen, buf, LZO_LEN); in read_compress_length()
131 return le32_to_cpu(dlen); in read_compress_length()
/fs/udf/
Dunicode.c380 uint8_t *dname, int dlen) in udf_get_filename() argument
387 if (dlen <= 0) in udf_get_filename()
390 ret = udf_name_from_CS0(sb, dname, dlen, sname, slen, 1); in udf_get_filename()
398 uint8_t *dname, int dlen) in udf_put_filename() argument
400 return udf_name_to_CS0(sb, dname, dlen, sname, slen); in udf_put_filename()
/fs/cachefiles/
Dxattr.c244 unsigned int dlen; in cachefiles_check_object_xattr() local
246 dlen = auxbuf->len - 1; in cachefiles_check_object_xattr()
249 object->fscache.cookie->def->name, dlen); in cachefiles_check_object_xattr()
252 &auxbuf->data, dlen, in cachefiles_check_object_xattr()
/fs/
Dd_path.c41 u32 dlen = READ_ONCE(name->len); in prepend_name() local
44 *buflen -= dlen + 1; in prepend_name()
47 p = *buffer -= dlen + 1; in prepend_name()
49 while (dlen--) { in prepend_name()
/fs/ext4/
Dhash.c279 int r, dlen; in ext4fs_dirhash() local
288 dlen = utf8_casefold(um, &qstr, buff, PATH_MAX); in ext4fs_dirhash()
289 if (dlen < 0) { in ext4fs_dirhash()
294 r = __ext4fs_dirhash(buff, dlen, hinfo); in ext4fs_dirhash()
Dext4.h2023 ext4_rec_len_from_disk(__le16 dlen, unsigned blocksize) in ext4_rec_len_from_disk() argument
2025 unsigned len = le16_to_cpu(dlen); in ext4_rec_len_from_disk()
/fs/cifs/
Dcifsencrypt.c354 unsigned int dlen; in build_avpair_blob() local
366 dlen = strlen(ses->domainName); in build_avpair_blob()
374 ses->auth_key.len = size + 2 * dlen; in build_avpair_blob()
389 attrptr->length = cpu_to_le16(2 * dlen); in build_avpair_blob()
391 cifs_strtoUTF16((__le16 *)blobptr, ses->domainName, dlen, nls_cp); in build_avpair_blob()
Dsmb2pdu.c3111 u32 *dlen) in query_info() argument
3162 if (dlen) { in query_info()
3163 *dlen = le32_to_cpu(rsp->OutputBufferLength); in query_info()
3165 *data = kmalloc(*dlen, GFP_KERNEL); in query_info()
3170 *dlen = 0; in query_info()
3184 *dlen = 0; in query_info()
/fs/nfsd/
Dnfs3xdr.c400 unsigned int len, hdr, dlen; in nfs3svc_decode_writeargs() local
426 dlen = head->iov_len + rqstp->rq_arg.page_len + tail->iov_len - hdr; in nfs3svc_decode_writeargs()
435 if (dlen < XDR_QUADLEN(len)*4) in nfs3svc_decode_writeargs()
491 size_t dlen; in nfs3svc_decode_symlinkargs() local
504 dlen = args->first.iov_len + rqstp->rq_arg.page_len + in nfs3svc_decode_symlinkargs()
506 if (dlen < XDR_QUADLEN(args->tlen) << 2) in nfs3svc_decode_symlinkargs()
Dnfsxdr.c273 unsigned int len, hdr, dlen; in nfssvc_decode_writeargs() local
297 dlen = head->iov_len + rqstp->rq_arg.page_len - hdr; in nfssvc_decode_writeargs()
307 if (dlen < XDR_QUADLEN(len)*4) in nfssvc_decode_writeargs()
/fs/ceph/
Dcache.c108 void *cookie_netfs_data, const void *data, uint16_t dlen, in ceph_fscache_inode_check_aux() argument
115 if (dlen != sizeof(aux) || in ceph_fscache_inode_check_aux()
/fs/nilfs2/
Ddir.c36 static inline unsigned int nilfs_rec_len_from_disk(__le16 dlen) in nilfs_rec_len_from_disk() argument
38 unsigned int len = le16_to_cpu(dlen); in nilfs_rec_len_from_disk()
/fs/ext2/
Ddir.c38 static inline unsigned ext2_rec_len_from_disk(__le16 dlen) in ext2_rec_len_from_disk() argument
40 unsigned len = le16_to_cpu(dlen); in ext2_rec_len_from_disk()