/drivers/staging/lustre/lustre/mdc/ |
D | mdc_lib.c | 55 struct md_op_data *op_data) in mdc_swap_layouts_pack() argument 60 __mdc_pack_body(b, op_data->op_suppgids[0]); in mdc_swap_layouts_pack() 61 b->mbo_fid1 = op_data->op_fid1; in mdc_swap_layouts_pack() 62 b->mbo_fid2 = op_data->op_fid2; in mdc_swap_layouts_pack() 126 void mdc_create_pack(struct ptlrpc_request *req, struct md_op_data *op_data, in mdc_create_pack() argument 141 rec->cr_fid1 = op_data->op_fid1; in mdc_create_pack() 142 rec->cr_fid2 = op_data->op_fid2; in mdc_create_pack() 145 rec->cr_time = op_data->op_mod_time; in mdc_create_pack() 146 rec->cr_suppgid1 = op_data->op_suppgids[0]; in mdc_create_pack() 147 rec->cr_suppgid2 = op_data->op_suppgids[1]; in mdc_create_pack() [all …]
|
D | mdc_reint.c | 99 int mdc_setattr(struct obd_export *exp, struct md_op_data *op_data, in mdc_setattr() argument 108 if (op_data->op_attr.ia_valid & (ATTR_MODE | ATTR_UID | ATTR_GID)) in mdc_setattr() 110 if ((op_data->op_flags & MF_MDC_CANCEL_FID1) && in mdc_setattr() 111 (fid_is_sane(&op_data->op_fid1))) in mdc_setattr() 112 count = mdc_resource_get_unused(exp, &op_data->op_fid1, in mdc_setattr() 130 if (op_data->op_attr.ia_valid & (ATTR_MTIME | ATTR_CTIME)) in mdc_setattr() 132 LTIME_S(op_data->op_attr.ia_mtime), in mdc_setattr() 133 LTIME_S(op_data->op_attr.ia_ctime)); in mdc_setattr() 134 mdc_setattr_pack(req, op_data, ea, ealen); in mdc_setattr() 148 int mdc_create(struct obd_export *exp, struct md_op_data *op_data, in mdc_create() argument [all …]
|
D | mdc_internal.h | 43 struct md_op_data *op_data); 48 void mdc_setattr_pack(struct ptlrpc_request *req, struct md_op_data *op_data, 50 void mdc_create_pack(struct ptlrpc_request *req, struct md_op_data *op_data, 53 void mdc_open_pack(struct ptlrpc_request *req, struct md_op_data *op_data, 56 void mdc_unlink_pack(struct ptlrpc_request *req, struct md_op_data *op_data); 57 void mdc_link_pack(struct ptlrpc_request *req, struct md_op_data *op_data); 58 void mdc_rename_pack(struct ptlrpc_request *req, struct md_op_data *op_data, 61 void mdc_close_pack(struct ptlrpc_request *req, struct md_op_data *op_data); 71 struct md_op_data *op_data, 79 struct lookup_intent *it, struct md_op_data *op_data, [all …]
|
D | mdc_locks.c | 234 struct md_op_data *op_data) in mdc_intent_open_pack() argument 239 const void *lmm = op_data->op_data; in mdc_intent_open_pack() 240 u32 lmmsize = op_data->op_data_size; in mdc_intent_open_pack() 250 if (fid_is_sane(&op_data->op_fid2)) { in mdc_intent_open_pack() 264 count = mdc_resource_get_unused(exp, &op_data->op_fid2, in mdc_intent_open_pack() 274 count += mdc_resource_get_unused(exp, &op_data->op_fid1, in mdc_intent_open_pack() 286 op_data->op_namelen + 1); in mdc_intent_open_pack() 305 mdc_open_pack(req, op_data, it->it_create_mode, 0, it->it_flags, lmm, in mdc_intent_open_pack() 318 struct md_op_data *op_data) in mdc_intent_getxattr_pack() argument 344 mdc_pack_body(req, &op_data->op_fid1, op_data->op_valid, maxdata, -1, in mdc_intent_getxattr_pack() [all …]
|
D | mdc_request.c | 158 static int mdc_getattr(struct obd_export *exp, struct md_op_data *op_data, in mdc_getattr() argument 165 if (op_data->op_flags & MF_GET_MDT_IDX) { in mdc_getattr() 166 op_data->op_mds = 0; in mdc_getattr() 180 mdc_pack_body(req, &op_data->op_fid1, op_data->op_valid, in mdc_getattr() 181 op_data->op_mode, -1, 0); in mdc_getattr() 184 op_data->op_mode); in mdc_getattr() 195 static int mdc_getattr_name(struct obd_export *exp, struct md_op_data *op_data, in mdc_getattr_name() argument 208 op_data->op_namelen + 1); in mdc_getattr_name() 216 mdc_pack_body(req, &op_data->op_fid1, op_data->op_valid, in mdc_getattr_name() 217 op_data->op_mode, op_data->op_suppgids[0], 0); in mdc_getattr_name() [all …]
|
/drivers/staging/lustre/lustre/lmv/ |
D | lmv_intent.c | 60 struct md_op_data *op_data; in lmv_intent_remote() local 97 op_data = kzalloc(sizeof(*op_data), GFP_NOFS); in lmv_intent_remote() 98 if (!op_data) { in lmv_intent_remote() 103 op_data->op_fid1 = body->mbo_fid1; in lmv_intent_remote() 111 op_data->op_fid2 = *parent_fid; in lmv_intent_remote() 114 op_data->op_bias = MDS_CROSS_REF; in lmv_intent_remote() 118 rc = md_intent_lock(tgt->ltd_exp, op_data, it, &req, cb_blocking, in lmv_intent_remote() 140 kfree(op_data); in lmv_intent_remote() 159 struct md_op_data *op_data; in lmv_revalidate_slaves() local 166 op_data = kzalloc(sizeof(*op_data), GFP_NOFS); in lmv_revalidate_slaves() [all …]
|
D | lmv_obd.c | 978 struct md_op_data *op_data = karg; in lmv_iocontrol() local 980 tgt = lmv_find_target(lmv, &op_data->op_fid1); in lmv_iocontrol() 1056 struct md_op_data *op_data = karg; in lmv_iocontrol() local 1059 tgt1 = lmv_find_target(lmv, &op_data->op_fid1); in lmv_iocontrol() 1063 tgt2 = lmv_find_target(lmv, &op_data->op_fid2); in lmv_iocontrol() 1122 struct md_op_data *op_data, u32 *mds) in lmv_placement_policy() argument 1133 if (op_data->op_default_stripe_offset != -1) { in lmv_placement_policy() 1134 *mds = op_data->op_default_stripe_offset; in lmv_placement_policy() 1142 if (op_data->op_cli_flags & CLI_SET_MEA && op_data->op_data) { in lmv_placement_policy() 1145 lum = op_data->op_data; in lmv_placement_policy() [all …]
|
D | lmv_internal.h | 45 int lmv_intent_lock(struct obd_export *exp, struct md_op_data *op_data, 53 struct lu_fid *fid, struct md_op_data *op_data); 156 *lmv_locate_mds(struct lmv_obd *lmv, struct md_op_data *op_data,
|
/drivers/staging/lustre/lustre/llite/ |
D | llite_nfs.c | 84 struct md_op_data *op_data; in search_inode_for_lustre() local 100 op_data = kzalloc(sizeof(*op_data), GFP_NOFS); in search_inode_for_lustre() 101 if (!op_data) in search_inode_for_lustre() 104 op_data->op_fid1 = *fid; in search_inode_for_lustre() 105 op_data->op_mode = eadatalen; in search_inode_for_lustre() 106 op_data->op_valid = OBD_MD_FLEASIZE; in search_inode_for_lustre() 109 rc = md_getattr(sbi->ll_md_exp, op_data, &req); in search_inode_for_lustre() 110 kfree(op_data); in search_inode_for_lustre() 248 struct md_op_data *op_data; in ll_get_name() local 261 op_data = ll_prep_md_op_data(NULL, dir, dir, NULL, 0, 0, in ll_get_name() [all …]
|
D | namei.c | 536 struct md_op_data *op_data = NULL; in ll_lookup_it() local 572 op_data = ll_prep_md_op_data(NULL, parent, NULL, dentry->d_name.name, in ll_lookup_it() 574 if (IS_ERR(op_data)) in ll_lookup_it() 575 return (void *)op_data; in ll_lookup_it() 581 rc = md_intent_lock(ll_i2mdexp(parent), op_data, it, &req, in ll_lookup_it() 597 if (op_data->op_suppgids[0] == body->mbo_gid || in ll_lookup_it() 598 op_data->op_suppgids[1] == body->mbo_gid || in ll_lookup_it() 604 fid_zero(&op_data->op_fid2); in ll_lookup_it() 605 op_data->op_suppgids[1] = body->mbo_gid; in ll_lookup_it() 609 rc = md_intent_lock(ll_i2mdexp(parent), op_data, it, &req, in ll_lookup_it() [all …]
|
D | file.c | 82 static void ll_prepare_close(struct inode *inode, struct md_op_data *op_data, in ll_prepare_close() argument 87 ll_prep_md_op_data(op_data, inode, NULL, NULL, in ll_prepare_close() 90 op_data->op_attr.ia_mode = inode->i_mode; in ll_prepare_close() 91 op_data->op_attr.ia_atime = inode->i_atime; in ll_prepare_close() 92 op_data->op_attr.ia_mtime = inode->i_mtime; in ll_prepare_close() 93 op_data->op_attr.ia_ctime = inode->i_ctime; in ll_prepare_close() 94 op_data->op_attr.ia_size = i_size_read(inode); in ll_prepare_close() 95 op_data->op_attr.ia_valid |= ATTR_MODE | ATTR_ATIME | ATTR_ATIME_SET | in ll_prepare_close() 98 op_data->op_attr_blocks = inode->i_blocks; in ll_prepare_close() 99 op_data->op_attr_flags = ll_inode_to_ext_flags(inode->i_flags); in ll_prepare_close() [all …]
|
D | llite_lib.c | 158 struct md_op_data *op_data; in client_common_fill_super() local 448 op_data = kzalloc(sizeof(*op_data), GFP_NOFS); in client_common_fill_super() 449 if (!op_data) { in client_common_fill_super() 454 op_data->op_fid1 = sbi->ll_root_fid; in client_common_fill_super() 455 op_data->op_mode = 0; in client_common_fill_super() 456 op_data->op_valid = valid; in client_common_fill_super() 458 err = md_getattr(sbi->ll_md_exp, op_data, &request); in client_common_fill_super() 459 kfree(op_data); in client_common_fill_super() 1341 static int ll_md_setattr(struct dentry *dentry, struct md_op_data *op_data) in ll_md_setattr() argument 1349 op_data = ll_prep_md_op_data(op_data, inode, NULL, NULL, 0, 0, in ll_md_setattr() [all …]
|
D | dir.c | 138 struct page *ll_get_dir_page(struct inode *dir, struct md_op_data *op_data, in ll_get_dir_page() argument 146 rc = md_read_page(ll_i2mdexp(dir), op_data, &cb_op, offset, &page); in ll_get_dir_page() 198 int ll_dir_read(struct inode *inode, __u64 *ppos, struct md_op_data *op_data, in ll_dir_read() argument 209 page = ll_get_dir_page(inode, op_data, pos); in ll_dir_read() 287 page = ll_get_dir_page(inode, op_data, pos); in ll_dir_read() 303 struct md_op_data *op_data; in ll_readdir() local 318 op_data = ll_prep_md_op_data(NULL, inode, inode, NULL, 0, 0, in ll_readdir() 320 if (IS_ERR(op_data)) { in ll_readdir() 321 rc = PTR_ERR(op_data); in ll_readdir() 325 if (unlikely(op_data->op_mea1)) { in ll_readdir() [all …]
|
D | symlink.c | 47 struct md_op_data *op_data; in ll_readlink_internal() local 65 op_data = ll_prep_md_op_data(NULL, inode, NULL, NULL, 0, symlen, in ll_readlink_internal() 67 if (IS_ERR(op_data)) in ll_readlink_internal() 68 return PTR_ERR(op_data); in ll_readlink_internal() 70 op_data->op_valid = OBD_MD_LINKNAME; in ll_readlink_internal() 71 rc = md_getattr(sbi->ll_md_exp, op_data, request); in ll_readlink_internal() 72 ll_finish_md_op_data(op_data); in ll_readlink_internal()
|
D | xattr_cache.c | 271 struct md_op_data *op_data; in ll_xattr_find_get_lock() local 300 op_data = ll_prep_md_op_data(NULL, inode, NULL, NULL, 0, 0, in ll_xattr_find_get_lock() 302 if (IS_ERR(op_data)) { in ll_xattr_find_get_lock() 304 return PTR_ERR(op_data); in ll_xattr_find_get_lock() 307 op_data->op_valid = OBD_MD_FLXATTR | OBD_MD_FLXATTRLS; in ll_xattr_find_get_lock() 309 rc = md_enqueue(exp, &einfo, NULL, oit, op_data, &lockh, 0); in ll_xattr_find_get_lock() 310 ll_finish_md_op_data(op_data); in ll_xattr_find_get_lock()
|
D | statahead.c | 724 struct md_op_data *op_data; in sa_prep_data() local 730 op_data = ll_prep_md_op_data(&minfo->mi_data, dir, child, NULL, 0, 0, in sa_prep_data() 732 if (IS_ERR(op_data)) { in sa_prep_data() 734 return (struct md_enqueue_info *)op_data; in sa_prep_data() 738 op_data->op_fid2 = entry->se_fid; in sa_prep_data() 969 struct md_op_data *op_data; in ll_statahead_thread() local 979 op_data = ll_prep_md_op_data(NULL, dir, dir, NULL, 0, 0, in ll_statahead_thread() 981 if (IS_ERR(op_data)) { in ll_statahead_thread() 982 rc = PTR_ERR(op_data); in ll_statahead_thread() 986 op_data->op_max_pages = ll_i2sbi(dir)->ll_md_brw_pages; in ll_statahead_thread() [all …]
|
D | xattr.c | 165 struct md_op_data *op_data; in get_hsm_state() local 173 op_data = ll_prep_md_op_data(NULL, inode, NULL, NULL, 0, 0, in get_hsm_state() 175 if (!IS_ERR(op_data)) { in get_hsm_state() 177 sizeof(*op_data), op_data, NULL); in get_hsm_state() 184 ll_finish_md_op_data(op_data); in get_hsm_state() 186 rc = PTR_ERR(op_data); in get_hsm_state()
|
D | llite_internal.h | 707 int ll_dir_read(struct inode *inode, __u64 *ppos, struct md_op_data *op_data, 711 struct page *ll_get_dir_page(struct inode *dir, struct md_op_data *op_data, 829 struct md_op_data *ll_prep_md_op_data(struct md_op_data *op_data, 833 void ll_finish_md_op_data(struct md_op_data *op_data);
|
/drivers/staging/lustre/lustre/include/ |
D | obd_class.h | 807 struct md_op_data *op_data) in obd_fid_alloc() argument 814 rc = OBP(exp->exp_obd, fid_alloc)(env, exp, fid, op_data); in obd_fid_alloc() 1172 static inline int md_getattr(struct obd_export *exp, struct md_op_data *op_data, in md_getattr() argument 1179 rc = MDP(exp->exp_obd, getattr)(exp, op_data, request); in md_getattr() 1194 static inline int md_close(struct obd_export *exp, struct md_op_data *op_data, in md_close() argument 1202 rc = MDP(exp->exp_obd, close)(exp, op_data, mod, request); in md_close() 1206 static inline int md_create(struct obd_export *exp, struct md_op_data *op_data, in md_create() argument 1215 rc = MDP(exp->exp_obd, create)(exp, op_data, data, datalen, mode, in md_create() 1224 struct md_op_data *op_data, in md_enqueue() argument 1232 rc = MDP(exp->exp_obd, enqueue)(exp, einfo, policy, it, op_data, lockh, in md_enqueue() [all …]
|
D | obd.h | 705 void *op_data; member 799 struct lu_fid *fid, struct md_op_data *op_data);
|
/drivers/net/ethernet/qlogic/qed/ |
D | qed_init_ops.c | 374 data = le32_to_cpu(cmd->op_data); in qed_init_cmd_rd() 396 cmd->op_data); in qed_init_cmd_rd() 412 val, le32_to_cpu(cmd->op_data)); in qed_init_cmd_rd() 458 return GET_FIELD(le32_to_cpu(p_cmd->op_data), in qed_init_cmd_mode() 467 u32 op_data = le32_to_cpu(p_cmd->op_data); in qed_init_cmd_phase() local 472 return GET_FIELD(op_data, INIT_IF_PHASE_OP_CMD_OFFSET); in qed_init_cmd_phase() 495 u32 data = le32_to_cpu(cmd->raw.op_data); in qed_init_run()
|
D | qed_hsi.h | 2632 __le32 op_data; member 2643 __le32 op_data; member 2653 __le32 op_data; member 2666 __le32 op_data; member 2694 __le32 op_data; member 2734 __le32 op_data; member
|