Home
last modified time | relevance | path

Searched refs:d (Results 1 – 25 of 101) sorted by relevance

12345

/fs/nfs/
Dpnfs_dev.c81 struct nfs4_deviceid_node *d; in _lookup_deviceid() local
83 hlist_for_each_entry_rcu(d, &nfs4_deviceid_cache[hash], node) in _lookup_deviceid()
84 if (d->ld == ld && d->nfs_client == clp && in _lookup_deviceid()
85 !memcmp(&d->deviceid, id, sizeof(*id))) { in _lookup_deviceid()
86 if (atomic_read(&d->ref)) in _lookup_deviceid()
87 return d; in _lookup_deviceid()
99 struct nfs4_deviceid_node *d = NULL; in nfs4_get_device_info() local
149 d = server->pnfs_curr_ld->alloc_deviceid_node(server, pdev, in nfs4_get_device_info()
151 if (d && pdev->nocache) in nfs4_get_device_info()
152 set_bit(NFS_DEVICEID_NOCACHE, &d->flags); in nfs4_get_device_info()
[all …]
/fs/quota/
Dquota_v2.c222 struct v2r0_disk_dqblk *d = dp, empty; in v2r0_disk2memdqb() local
225 m->dqb_ihardlimit = le32_to_cpu(d->dqb_ihardlimit); in v2r0_disk2memdqb()
226 m->dqb_isoftlimit = le32_to_cpu(d->dqb_isoftlimit); in v2r0_disk2memdqb()
227 m->dqb_curinodes = le32_to_cpu(d->dqb_curinodes); in v2r0_disk2memdqb()
228 m->dqb_itime = le64_to_cpu(d->dqb_itime); in v2r0_disk2memdqb()
229 m->dqb_bhardlimit = v2_qbtos(le32_to_cpu(d->dqb_bhardlimit)); in v2r0_disk2memdqb()
230 m->dqb_bsoftlimit = v2_qbtos(le32_to_cpu(d->dqb_bsoftlimit)); in v2r0_disk2memdqb()
231 m->dqb_curspace = le64_to_cpu(d->dqb_curspace); in v2r0_disk2memdqb()
232 m->dqb_btime = le64_to_cpu(d->dqb_btime); in v2r0_disk2memdqb()
242 struct v2r0_disk_dqblk *d = dp; in v2r0_mem2diskdqb() local
[all …]
Dquota_v1.c32 static void v1_disk2mem_dqblk(struct mem_dqblk *m, struct v1_disk_dqblk *d) in v1_disk2mem_dqblk() argument
34 m->dqb_ihardlimit = d->dqb_ihardlimit; in v1_disk2mem_dqblk()
35 m->dqb_isoftlimit = d->dqb_isoftlimit; in v1_disk2mem_dqblk()
36 m->dqb_curinodes = d->dqb_curinodes; in v1_disk2mem_dqblk()
37 m->dqb_bhardlimit = v1_qbtos(d->dqb_bhardlimit); in v1_disk2mem_dqblk()
38 m->dqb_bsoftlimit = v1_qbtos(d->dqb_bsoftlimit); in v1_disk2mem_dqblk()
39 m->dqb_curspace = v1_qbtos(d->dqb_curblocks); in v1_disk2mem_dqblk()
40 m->dqb_itime = d->dqb_itime; in v1_disk2mem_dqblk()
41 m->dqb_btime = d->dqb_btime; in v1_disk2mem_dqblk()
44 static void v1_mem2disk_dqblk(struct v1_disk_dqblk *d, struct mem_dqblk *m) in v1_mem2disk_dqblk() argument
[all …]
/fs/nfs/blocklayout/
Ddev.c43 bl_free_deviceid_node(struct nfs4_deviceid_node *d) in bl_free_deviceid_node() argument
46 container_of(d, struct pnfs_block_dev, node); in bl_free_deviceid_node()
230 bl_parse_deviceid(struct nfs_server *server, struct pnfs_block_dev *d,
235 bl_parse_simple(struct nfs_server *server, struct pnfs_block_dev *d, in bl_parse_simple() argument
252 d->bdev = bdev; in bl_parse_simple()
255 d->len = i_size_read(d->bdev->bd_inode); in bl_parse_simple()
256 d->map = bl_map_simple; in bl_parse_simple()
259 d->bdev->bd_disk->disk_name); in bl_parse_simple()
352 bl_parse_scsi(struct nfs_server *server, struct pnfs_block_dev *d, in bl_parse_scsi() argument
368 d->bdev = bdev; in bl_parse_scsi()
[all …]
/fs/overlayfs/
Dnamei.c28 static int ovl_check_redirect(struct dentry *dentry, struct ovl_lookup_data *d, in ovl_check_redirect() argument
33 struct ovl_fs *ofs = OVL_FS(d->sb); in ovl_check_redirect()
48 d->stop = false; in ovl_check_redirect()
52 memcpy(buf, d->name.name, prelen); in ovl_check_redirect()
56 kfree(d->redirect); in ovl_check_redirect()
57 d->redirect = buf; in ovl_check_redirect()
58 d->name.name = d->redirect; in ovl_check_redirect()
59 d->name.len = strlen(d->redirect); in ovl_check_redirect()
217 static int ovl_lookup_single(struct dentry *base, struct ovl_lookup_data *d, in ovl_lookup_single() argument
241 d->stop = d->opaque = true; in ovl_lookup_single()
[all …]
/fs/ext4/
Dhash.c20 __u32 a = in[0], b = in[1], c = in[2], d = in[3]; in TEA_transform() local
26 b1 += ((b0 << 4)+c) ^ (b0+sum) ^ ((b0 >> 5)+d); in TEA_transform()
44 #define ROUND(f, a, b, c, d, x, s) \ argument
45 (a += f(b, c, d) + x, a = rol32(a, s))
55 __u32 a = buf[0], b = buf[1], c = buf[2], d = buf[3]; in half_md4_transform() local
58 ROUND(F, a, b, c, d, in[0] + K1, 3); in half_md4_transform()
59 ROUND(F, d, a, b, c, in[1] + K1, 7); in half_md4_transform()
60 ROUND(F, c, d, a, b, in[2] + K1, 11); in half_md4_transform()
61 ROUND(F, b, c, d, a, in[3] + K1, 19); in half_md4_transform()
62 ROUND(F, a, b, c, d, in[4] + K1, 3); in half_md4_transform()
[all …]
/fs/hpfs/
Ddnode.c12 static loff_t get_pos(struct dnode *d, struct hpfs_dirent *fde) in get_pos() argument
15 struct hpfs_dirent *de_end = dnode_end_de(d); in get_pos()
17 for (de = dnode_first_de(d); de < de_end; de = de_next_de(de)) { in get_pos()
18 if (de == fde) return ((loff_t) le32_to_cpu(d->self) << 4) | (loff_t)i; in get_pos()
22 return ((loff_t)le32_to_cpu(d->self) << 4) | (loff_t)1; in get_pos()
96 static void hpfs_pos_ins(loff_t *p, loff_t d, loff_t c) in hpfs_pos_ins() argument
98 if ((*p & ~0x3f) == (d & ~0x3f) && (*p & 0x3f) >= (d & 0x3f)) { in hpfs_pos_ins()
108 static void hpfs_pos_del(loff_t *p, loff_t d, loff_t c) in hpfs_pos_del() argument
110 if ((*p & ~0x3f) == (d & ~0x3f) && (*p & 0x3f) >= (d & 0x3f)) { in hpfs_pos_del()
120 static struct hpfs_dirent *dnode_pre_last_de(struct dnode *d) in dnode_pre_last_de() argument
[all …]
Dmap.c123 __le32 *d = hpfs_map_sector(s, bmp+i, &bh, n - i - 1); in hpfs_load_bitmap_directory() local
124 if (!d) { in hpfs_load_bitmap_directory()
128 memcpy((char *)b + 512 * i, d, 512); in hpfs_load_bitmap_directory()
270 unsigned char *d = (unsigned char *)dnode; in hpfs_map_dnode() local
284 for (p = 20; p < le32_to_cpu(dnode->first_free); p += d[p] + (d[p+1] << 8)) { in hpfs_map_dnode()
308 if (d[pp + 30] != 1 || d[pp + 31] != 255) { in hpfs_map_dnode()
/fs/ufs/
Dswab.h63 fs32_add(struct super_block *sbp, __fs32 *n, int d) in fs32_add() argument
66 le32_add_cpu((__le32 *)n, d); in fs32_add()
68 be32_add_cpu((__be32 *)n, d); in fs32_add()
72 fs32_sub(struct super_block *sbp, __fs32 *n, int d) in fs32_sub() argument
75 le32_add_cpu((__le32 *)n, -d); in fs32_sub()
77 be32_add_cpu((__be32 *)n, -d); in fs32_sub()
99 fs16_add(struct super_block *sbp, __fs16 *n, int d) in fs16_add() argument
102 le16_add_cpu((__le16 *)n, d); in fs16_add()
104 be16_add_cpu((__be16 *)n, d); in fs16_add()
108 fs16_sub(struct super_block *sbp, __fs16 *n, int d) in fs16_sub() argument
[all …]
/fs/verity/
Dsignature.c67 struct fsverity_formatted_digest *d; in __fsverity_verify_signature() local
100 d = kzalloc(sizeof(*d) + hash_alg->digest_size, GFP_KERNEL); in __fsverity_verify_signature()
101 if (!d) in __fsverity_verify_signature()
103 memcpy(d->magic, "FSVerity", 8); in __fsverity_verify_signature()
104 d->digest_algorithm = cpu_to_le16(hash_alg - fsverity_hash_algs); in __fsverity_verify_signature()
105 d->digest_size = cpu_to_le16(hash_alg->digest_size); in __fsverity_verify_signature()
106 memcpy(d->digest, file_digest, hash_alg->digest_size); in __fsverity_verify_signature()
108 err = verify_pkcs7_signature(d, sizeof(*d) + hash_alg->digest_size, in __fsverity_verify_signature()
112 kfree(d); in __fsverity_verify_signature()
/fs/f2fs/
Dinline.c358 struct f2fs_dentry_ptr d; in f2fs_find_in_inline_dir() local
370 make_dentry_ptr_inline(dir, &d, inline_dentry); in f2fs_find_in_inline_dir()
371 de = f2fs_find_target_dentry(&d, fname, NULL); in f2fs_find_in_inline_dir()
388 struct f2fs_dentry_ptr d; in f2fs_make_empty_inline_dir() local
393 make_dentry_ptr_inline(inode, &d, inline_dentry); in f2fs_make_empty_inline_dir()
394 f2fs_do_make_empty_dir(inode, parent, &d); in f2fs_make_empty_inline_dir()
483 struct f2fs_dentry_ptr d; in f2fs_add_inline_entries() local
487 make_dentry_ptr_inline(dir, &d, inline_dentry); in f2fs_add_inline_entries()
489 while (bit_pos < d.max) { in f2fs_add_inline_entries()
495 if (!test_bit_le(bit_pos, d.bitmap)) { in f2fs_add_inline_entries()
[all …]
Ddir.c204 struct f2fs_dentry_ptr d; in find_in_block() local
208 make_dentry_ptr_block(dir, &d, dentry_blk); in find_in_block()
209 return f2fs_find_target_dentry(&d, fname, max_slots); in find_in_block()
285 struct f2fs_dir_entry *f2fs_find_target_dentry(const struct f2fs_dentry_ptr *d, in f2fs_find_target_dentry() argument
295 while (bit_pos < d->max) { in f2fs_find_target_dentry()
296 if (!test_bit_le(bit_pos, d->bitmap)) { in f2fs_find_target_dentry()
302 de = &d->dentry[bit_pos]; in f2fs_find_target_dentry()
310 res = f2fs_match_name(d->inode, fname, in f2fs_find_target_dentry()
311 d->filename[bit_pos], in f2fs_find_target_dentry()
531 struct f2fs_dentry_ptr *d) in f2fs_do_make_empty_dir() argument
[all …]
/fs/cifs/
Dsmb2transport.c480 struct derivation *d; in generate_smb30signingkey() local
482 d = &triplet.signing; in generate_smb30signingkey()
483 d->label.iov_base = "SMB2AESCMAC"; in generate_smb30signingkey()
484 d->label.iov_len = 12; in generate_smb30signingkey()
485 d->context.iov_base = "SmbSign"; in generate_smb30signingkey()
486 d->context.iov_len = 8; in generate_smb30signingkey()
488 d = &triplet.encryption; in generate_smb30signingkey()
489 d->label.iov_base = "SMB2AESCCM"; in generate_smb30signingkey()
490 d->label.iov_len = 11; in generate_smb30signingkey()
491 d->context.iov_base = "ServerIn "; in generate_smb30signingkey()
[all …]
/fs/
Ddcookies.c98 struct dentry *d; in alloc_dcookie() local
102 d = path->dentry; in alloc_dcookie()
103 spin_lock(&d->d_lock); in alloc_dcookie()
104 d->d_flags |= DCACHE_COOKIE; in alloc_dcookie()
105 spin_unlock(&d->d_lock); in alloc_dcookie()
225 struct list_head * d; in dcookie_init() local
261 d = dcookie_hashtable; in dcookie_init()
264 INIT_LIST_HEAD(d); in dcookie_init()
265 d++; in dcookie_init()
279 struct dentry *d = dcs->path.dentry; in free_dcookie() local
[all …]
/fs/ubifs/
Ddebug.c970 struct ubifs_debug_info *d = c->dbg; in dbg_save_space_info() local
974 memcpy(&d->saved_lst, &c->lst, sizeof(struct ubifs_lp_stats)); in dbg_save_space_info()
975 memcpy(&d->saved_bi, &c->bi, sizeof(struct ubifs_budg_info)); in dbg_save_space_info()
976 d->saved_idx_gc_cnt = c->idx_gc_cnt; in dbg_save_space_info()
1004 d->saved_free = ubifs_get_free_space_nolock(c); in dbg_save_space_info()
1020 struct ubifs_debug_info *d = c->dbg; in dbg_check_space_info() local
1032 if (free != d->saved_free) { in dbg_check_space_info()
1034 d->saved_free, free); in dbg_check_space_info()
1042 ubifs_dump_lstats(&d->saved_lst); in dbg_check_space_info()
1044 ubifs_dump_budg(c, &d->saved_bi); in dbg_check_space_info()
[all …]
Dlpt_commit.c1746 struct ubifs_debug_info *d = c->dbg; in dbg_chk_lpt_sz() local
1755 d->chk_lpt_sz = 0; in dbg_chk_lpt_sz()
1756 d->chk_lpt_sz2 = 0; in dbg_chk_lpt_sz()
1757 d->chk_lpt_lebs = 0; in dbg_chk_lpt_sz()
1758 d->chk_lpt_wastage = 0; in dbg_chk_lpt_sz()
1771 d->chk_lpt_sz += len; in dbg_chk_lpt_sz()
1774 d->chk_lpt_sz += len; in dbg_chk_lpt_sz()
1775 d->chk_lpt_wastage += len; in dbg_chk_lpt_sz()
1776 d->chk_lpt_lebs += 1; in dbg_chk_lpt_sz()
1780 chk_lpt_sz *= d->chk_lpt_lebs; in dbg_chk_lpt_sz()
[all …]
Dcommit.c518 struct ubifs_debug_info *d = c->dbg; in dbg_old_index_check_init() local
520 d->old_zroot = *zroot; in dbg_old_index_check_init()
521 lnum = d->old_zroot.lnum; in dbg_old_index_check_init()
522 offs = d->old_zroot.offs; in dbg_old_index_check_init()
523 len = d->old_zroot.len; in dbg_old_index_check_init()
533 d->old_zroot_level = le16_to_cpu(idx->level); in dbg_old_index_check_init()
534 d->old_zroot_sqnum = le64_to_cpu(idx->ch.sqnum); in dbg_old_index_check_init()
557 struct ubifs_debug_info *d = c->dbg; in dbg_check_old_index() local
574 lnum = d->old_zroot.lnum; in dbg_check_old_index()
575 offs = d->old_zroot.offs; in dbg_check_old_index()
[all …]
/fs/reiserfs/
Dhashes.c37 b1 += ((b0 << 4)+c) ^ (b0+sum) ^ ((b0 >> 5)+d); \
49 u32 a, b, c, d; in keyed_hash() local
66 d = (u32) msg[12] | in keyed_hash()
85 d = pad; in keyed_hash()
87 d <<= 8; in keyed_hash()
88 d |= msg[i]; in keyed_hash()
96 c = d = pad; in keyed_hash()
105 b = c = d = pad; in keyed_hash()
111 a = b = c = d = pad; in keyed_hash()
/fs/jffs2/
Dsummary.c79 s->sum_size += JFFS2_SUMMARY_DIRENT_SIZE(item->d.nsize); in jffs2_sum_add_mem()
82 je32_to_cpu(item->d.ino)); in jffs2_sum_add_mem()
283 kmalloc(sizeof(struct jffs2_sum_dirent_mem) + node->d.nsize, GFP_KERNEL); in jffs2_sum_add_kvec()
288 temp->nodetype = node->d.nodetype; in jffs2_sum_add_kvec()
289 temp->totlen = node->d.totlen; in jffs2_sum_add_kvec()
291 temp->pino = node->d.pino; in jffs2_sum_add_kvec()
292 temp->version = node->d.version; in jffs2_sum_add_kvec()
293 temp->ino = node->d.ino; in jffs2_sum_add_kvec()
294 temp->nsize = node->d.nsize; in jffs2_sum_add_kvec()
295 temp->type = node->d.type; in jffs2_sum_add_kvec()
[all …]
/fs/ocfs2/
Dquota_global.c73 struct ocfs2_global_disk_dqblk *d = dp; in ocfs2_global_disk2memdqb() local
78 m->dqb_ihardlimit = le64_to_cpu(d->dqb_ihardlimit); in ocfs2_global_disk2memdqb()
79 m->dqb_isoftlimit = le64_to_cpu(d->dqb_isoftlimit); in ocfs2_global_disk2memdqb()
82 m->dqb_curinodes = le64_to_cpu(d->dqb_curinodes); in ocfs2_global_disk2memdqb()
84 m->dqb_bhardlimit = le64_to_cpu(d->dqb_bhardlimit); in ocfs2_global_disk2memdqb()
85 m->dqb_bsoftlimit = le64_to_cpu(d->dqb_bsoftlimit); in ocfs2_global_disk2memdqb()
88 m->dqb_curspace = le64_to_cpu(d->dqb_curspace); in ocfs2_global_disk2memdqb()
90 m->dqb_btime = le64_to_cpu(d->dqb_btime); in ocfs2_global_disk2memdqb()
92 m->dqb_itime = le64_to_cpu(d->dqb_itime); in ocfs2_global_disk2memdqb()
93 OCFS2_DQUOT(dquot)->dq_use_count = le32_to_cpu(d->dqb_use_count); in ocfs2_global_disk2memdqb()
[all …]
Dblockcheck.c99 u32 ocfs2_hamming_encode(u32 parity, void *data, unsigned int d, unsigned int nr) in ocfs2_hamming_encode() argument
103 BUG_ON(!d); in ocfs2_hamming_encode()
114 for (i = 0; (i = ocfs2_find_next_bit(data, d, i)) < d; i++) in ocfs2_hamming_encode()
158 void ocfs2_hamming_fix(void *data, unsigned int d, unsigned int nr, in ocfs2_hamming_fix() argument
163 BUG_ON(!d); in ocfs2_hamming_fix()
176 if (fix >= calc_code_bit(nr + d, NULL)) in ocfs2_hamming_fix()
189 for (i = 0; i < d; i++, b++) in ocfs2_hamming_fix()
/fs/xfs/
Dxfs_trans.h169 #define xfs_trans_agblocks_delta(tp, d) ((tp)->t_ag_freeblks_delta += (int64_t)d) argument
170 #define xfs_trans_agflist_delta(tp, d) ((tp)->t_ag_flist_delta += (int64_t)d) argument
171 #define xfs_trans_agbtree_delta(tp, d) ((tp)->t_ag_btree_delta += (int64_t)d) argument
173 #define xfs_trans_agblocks_delta(tp, d) argument
174 #define xfs_trans_agflist_delta(tp, d) argument
175 #define xfs_trans_agbtree_delta(tp, d) argument
/fs/exfat/
Dmisc.c81 u16 d = le16_to_cpu(date); in exfat_get_entry_time() local
83 ts->tv_sec = mktime64(1980 + (d >> 9), d >> 5 & 0x000F, d & 0x001F, in exfat_get_entry_time()
107 u16 t, d; in exfat_set_entry_time() local
111 d = ((tm.tm_year - 80) << 9) | ((tm.tm_mon + 1) << 5) | tm.tm_mday; in exfat_set_entry_time()
114 *date = cpu_to_le16(d); in exfat_set_entry_time()
/fs/sysv/
Dsysv.h208 static inline __fs32 fs32_add(struct sysv_sb_info *sbi, __fs32 *n, int d) in fs32_add() argument
211 *(__u32*)n = PDP_swab(PDP_swab(*(__u32*)n)+d); in fs32_add()
213 le32_add_cpu((__le32 *)n, d); in fs32_add()
215 be32_add_cpu((__be32 *)n, d); in fs32_add()
235 static inline __fs16 fs16_add(struct sysv_sb_info *sbi, __fs16 *n, int d) in fs16_add() argument
238 le16_add_cpu((__le16 *)n, d); in fs16_add()
240 be16_add_cpu((__be16 *)n, d); in fs16_add()
/fs/nfsd/
Dblocklayout.c228 u8 *buf, *d, type, assoc; in nfsd4_scsi_identify_device() local
278 d = buf + 4; in nfsd4_scsi_identify_device()
279 for (d = buf + 4; d < buf + len; d += id_len + 4) { in nfsd4_scsi_identify_device()
280 id_len = d[3]; in nfsd4_scsi_identify_device()
281 type = d[1] & 0xf; in nfsd4_scsi_identify_device()
282 assoc = (d[1] >> 4) & 0x3; in nfsd4_scsi_identify_device()
299 memcpy(b->scsi.designator, d + 4, id_len); in nfsd4_scsi_identify_device()

12345