/drivers/staging/lustre/lustre/mdc/ |
D | mdc_lib.c | 70 struct md_op_data *op_data) in mdc_swap_layouts_pack() argument 75 __mdc_pack_body(b, op_data->op_suppgids[0]); in mdc_swap_layouts_pack() 76 b->fid1 = op_data->op_fid1; in mdc_swap_layouts_pack() 77 b->fid2 = op_data->op_fid2; in mdc_swap_layouts_pack() 111 void mdc_create_pack(struct ptlrpc_request *req, struct md_op_data *op_data, in mdc_create_pack() argument 126 rec->cr_fid1 = op_data->op_fid1; in mdc_create_pack() 127 rec->cr_fid2 = op_data->op_fid2; in mdc_create_pack() 130 rec->cr_time = op_data->op_mod_time; in mdc_create_pack() 131 rec->cr_suppgid1 = op_data->op_suppgids[0]; in mdc_create_pack() 132 rec->cr_suppgid2 = op_data->op_suppgids[1]; in mdc_create_pack() [all …]
|
D | mdc_reint.c | 103 int mdc_setattr(struct obd_export *exp, struct md_op_data *op_data, in mdc_setattr() argument 114 LASSERT(op_data != NULL); in mdc_setattr() 117 if (op_data->op_attr.ia_valid & (ATTR_MODE|ATTR_UID|ATTR_GID)) in mdc_setattr() 119 if ((op_data->op_flags & MF_MDC_CANCEL_FID1) && in mdc_setattr() 120 (fid_is_sane(&op_data->op_fid1)) && in mdc_setattr() 122 count = mdc_resource_get_unused(exp, &op_data->op_fid1, in mdc_setattr() 130 if ((op_data->op_flags & (MF_SOM_CHANGE | MF_EPOCH_OPEN)) == 0) in mdc_setattr() 145 if (op_data->op_attr.ia_valid & (ATTR_MTIME | ATTR_CTIME)) in mdc_setattr() 147 LTIME_S(op_data->op_attr.ia_mtime), in mdc_setattr() 148 LTIME_S(op_data->op_attr.ia_ctime)); in mdc_setattr() [all …]
|
D | mdc_internal.h | 51 struct md_op_data *op_data); 56 void mdc_setattr_pack(struct ptlrpc_request *req, struct md_op_data *op_data, 58 void mdc_create_pack(struct ptlrpc_request *req, struct md_op_data *op_data, 61 void mdc_open_pack(struct ptlrpc_request *req, struct md_op_data *op_data, 64 void mdc_unlink_pack(struct ptlrpc_request *req, struct md_op_data *op_data); 65 void mdc_getxattr_pack(struct ptlrpc_request *req, struct md_op_data *op_data); 66 void mdc_link_pack(struct ptlrpc_request *req, struct md_op_data *op_data); 67 void mdc_rename_pack(struct ptlrpc_request *req, struct md_op_data *op_data, 69 void mdc_close_pack(struct ptlrpc_request *req, struct md_op_data *op_data); 90 struct lookup_intent *it, struct md_op_data *op_data, [all …]
|
D | mdc_locks.c | 274 struct md_op_data *op_data, in mdc_intent_open_pack() argument 290 if (fid_is_sane(&op_data->op_fid2)) { in mdc_intent_open_pack() 304 count = mdc_resource_get_unused(exp, &op_data->op_fid2, in mdc_intent_open_pack() 314 count += mdc_resource_get_unused(exp, &op_data->op_fid1, in mdc_intent_open_pack() 326 op_data->op_namelen + 1); in mdc_intent_open_pack() 345 mdc_open_pack(req, op_data, it->it_create_mode, 0, it->it_flags, lmm, in mdc_intent_open_pack() 359 struct md_op_data *op_data) in mdc_intent_getxattr_pack() argument 384 mdc_pack_body(req, &op_data->op_fid1, op_data->op_valid, maxdata, -1, in mdc_intent_getxattr_pack() 403 struct md_op_data *op_data) in mdc_intent_unlink_pack() argument 416 op_data->op_namelen + 1); in mdc_intent_unlink_pack() [all …]
|
D | mdc_request.c | 165 static int mdc_getattr(struct obd_export *exp, struct md_op_data *op_data, in mdc_getattr() argument 172 if (op_data->op_flags & MF_GET_MDT_IDX) { in mdc_getattr() 173 op_data->op_mds = 0; in mdc_getattr() 187 mdc_pack_body(req, &op_data->op_fid1, op_data->op_valid, in mdc_getattr() 188 op_data->op_mode, -1, 0); in mdc_getattr() 191 op_data->op_mode); in mdc_getattr() 192 if (op_data->op_valid & OBD_MD_FLRMTPERM) { in mdc_getattr() 207 static int mdc_getattr_name(struct obd_export *exp, struct md_op_data *op_data, in mdc_getattr_name() argument 220 op_data->op_namelen + 1); in mdc_getattr_name() 228 mdc_pack_body(req, &op_data->op_fid1, op_data->op_valid, in mdc_getattr_name() [all …]
|
/drivers/staging/lustre/lustre/lmv/ |
D | lmv_intent.c | 65 struct md_op_data *op_data; in lmv_intent_remote() local 102 op_data = kzalloc(sizeof(*op_data), GFP_NOFS); in lmv_intent_remote() 103 if (!op_data) { in lmv_intent_remote() 108 op_data->op_fid1 = body->fid1; in lmv_intent_remote() 115 op_data->op_fid2 = *parent_fid; in lmv_intent_remote() 118 op_data->op_fid3 = body->fid1; in lmv_intent_remote() 121 op_data->op_bias = MDS_CROSS_REF; in lmv_intent_remote() 125 rc = md_intent_lock(tgt->ltd_exp, op_data, lmm, lmmsize, it, in lmv_intent_remote() 145 kfree(op_data); in lmv_intent_remote() 159 int lmv_intent_open(struct obd_export *exp, struct md_op_data *op_data, in lmv_intent_open() argument [all …]
|
D | lmv_obd.c | 991 struct md_op_data *op_data = karg; in lmv_iocontrol() local 994 tgt = lmv_find_target(lmv, &op_data->op_fid1); in lmv_iocontrol() 1062 struct md_op_data *op_data = karg; in lmv_iocontrol() local 1065 tgt1 = lmv_find_target(lmv, &op_data->op_fid1); in lmv_iocontrol() 1069 tgt2 = lmv_find_target(lmv, &op_data->op_fid2); in lmv_iocontrol() 1150 static int lmv_choose_mds(struct lmv_obd *lmv, struct md_op_data *op_data, 1156 op_data->op_name, 1157 op_data->op_namelen); 1174 struct md_op_data *op_data, u32 *mds) in lmv_placement_policy() argument 1189 if (op_data->op_cli_flags & CLI_SET_MEA) { in lmv_placement_policy() [all …]
|
D | lmv_internal.h | 53 int lmv_intent_lock(struct obd_export *exp, struct md_op_data *op_data, 59 int lmv_intent_lookup(struct obd_export *exp, struct md_op_data *op_data, 65 int lmv_intent_open(struct obd_export *exp, struct md_op_data *op_data, 76 struct md_op_data *op_data); 144 *lmv_locate_mds(struct lmv_obd *lmv, struct md_op_data *op_data,
|
/drivers/staging/lustre/lustre/llite/ |
D | llite_close.c | 119 void ll_done_writing_attr(struct inode *inode, struct md_op_data *op_data) in ll_done_writing_attr() argument 123 op_data->op_flags |= MF_SOM_CHANGE; in ll_done_writing_attr() 132 op_data->op_attr.ia_valid |= ATTR_MTIME_SET | ATTR_CTIME_SET | in ll_done_writing_attr() 138 void ll_ioepoch_close(struct inode *inode, struct md_op_data *op_data, in ll_ioepoch_close() argument 174 op_data->op_flags |= MF_EPOCH_CLOSE; in ll_ioepoch_close() 200 ll_done_writing_attr(inode, op_data); in ll_ioepoch_close() 210 int ll_som_update(struct inode *inode, struct md_op_data *op_data) in ll_som_update() argument 218 LASSERT(op_data != NULL); in ll_som_update() 230 old_flags = op_data->op_flags; in ll_som_update() 231 op_data->op_flags = MF_SOM_CHANGE; in ll_som_update() [all …]
|
D | llite_lib.c | 153 struct md_op_data *op_data; in client_common_fill_super() local 463 op_data = kzalloc(sizeof(*op_data), GFP_NOFS); in client_common_fill_super() 464 if (!op_data) { in client_common_fill_super() 469 op_data->op_fid1 = sbi->ll_root_fid; in client_common_fill_super() 470 op_data->op_mode = 0; in client_common_fill_super() 471 op_data->op_valid = valid; in client_common_fill_super() 473 err = md_getattr(sbi->ll_md_exp, op_data, &request); in client_common_fill_super() 474 kfree(op_data); in client_common_fill_super() 1097 static int ll_md_setattr(struct dentry *dentry, struct md_op_data *op_data, in ll_md_setattr() argument 1106 op_data = ll_prep_md_op_data(op_data, inode, NULL, NULL, 0, 0, in ll_md_setattr() [all …]
|
D | namei.c | 489 struct md_op_data *op_data; in ll_lookup_it() local 522 op_data = ll_prep_md_op_data(NULL, parent, NULL, dentry->d_name.name, in ll_lookup_it() 525 if (IS_ERR(op_data)) in ll_lookup_it() 526 return (void *)op_data; in ll_lookup_it() 532 rc = md_intent_lock(ll_i2mdexp(parent), op_data, NULL, 0, it, in ll_lookup_it() 534 ll_finish_md_op_data(op_data); in ll_lookup_it() 767 struct md_op_data *op_data; in ll_new_node() local 776 op_data = ll_prep_md_op_data(NULL, dir, NULL, in ll_new_node() 780 if (IS_ERR(op_data)) { in ll_new_node() 781 err = PTR_ERR(op_data); in ll_new_node() [all …]
|
D | llite_nfs.c | 94 struct md_op_data *op_data; in search_inode_for_lustre() local 109 op_data = kzalloc(sizeof(*op_data), GFP_NOFS); in search_inode_for_lustre() 110 if (!op_data) in search_inode_for_lustre() 113 op_data->op_fid1 = *fid; in search_inode_for_lustre() 114 op_data->op_mode = eadatalen; in search_inode_for_lustre() 115 op_data->op_valid = OBD_MD_FLEASIZE; in search_inode_for_lustre() 118 rc = md_getattr(sbi->ll_md_exp, op_data, &req); in search_inode_for_lustre() 119 kfree(op_data); in search_inode_for_lustre() 287 struct md_op_data *op_data; in ll_get_parent() local 302 op_data = ll_prep_md_op_data(NULL, dir, NULL, dotdot, in ll_get_parent() [all …]
|
D | file.c | 80 void ll_pack_inode2opdata(struct inode *inode, struct md_op_data *op_data, in ll_pack_inode2opdata() argument 83 op_data->op_fid1 = ll_i2info(inode)->lli_fid; in ll_pack_inode2opdata() 84 op_data->op_attr.ia_mode = inode->i_mode; in ll_pack_inode2opdata() 85 op_data->op_attr.ia_atime = inode->i_atime; in ll_pack_inode2opdata() 86 op_data->op_attr.ia_mtime = inode->i_mtime; in ll_pack_inode2opdata() 87 op_data->op_attr.ia_ctime = inode->i_ctime; in ll_pack_inode2opdata() 88 op_data->op_attr.ia_size = i_size_read(inode); in ll_pack_inode2opdata() 89 op_data->op_attr_blocks = inode->i_blocks; in ll_pack_inode2opdata() 90 ((struct ll_iattr *)&op_data->op_attr)->ia_attr_flags = in ll_pack_inode2opdata() 92 op_data->op_ioepoch = ll_i2info(inode)->lli_ioepoch; in ll_pack_inode2opdata() [all …]
|
D | dir.c | 150 struct md_op_data *op_data; in ll_dir_filler() local 180 op_data = ll_prep_md_op_data(NULL, inode, NULL, NULL, 0, 0, in ll_dir_filler() 182 op_data->op_npages = npages; in ll_dir_filler() 183 op_data->op_offset = hash; in ll_dir_filler() 184 rc = md_readpage(exp, op_data, page_pool, &request); in ll_dir_filler() 185 ll_finish_md_op_data(op_data); in ll_dir_filler() 362 struct md_op_data *op_data; in ll_get_dir_page() local 364 op_data = ll_prep_md_op_data(NULL, dir, dir, NULL, 0, 0, in ll_get_dir_page() 366 if (IS_ERR(op_data)) in ll_get_dir_page() 367 return (void *)op_data; in ll_get_dir_page() [all …]
|
D | symlink.c | 52 struct md_op_data *op_data; in ll_readlink_internal() local 69 op_data = ll_prep_md_op_data(NULL, inode, NULL, NULL, 0, symlen, in ll_readlink_internal() 71 if (IS_ERR(op_data)) in ll_readlink_internal() 72 return PTR_ERR(op_data); in ll_readlink_internal() 74 op_data->op_valid = OBD_MD_LINKNAME; in ll_readlink_internal() 75 rc = md_getattr(sbi->ll_md_exp, op_data, request); in ll_readlink_internal() 76 ll_finish_md_op_data(op_data); in ll_readlink_internal()
|
D | xattr_cache.c | 273 struct md_op_data *op_data; in ll_xattr_find_get_lock() local 299 op_data = ll_prep_md_op_data(NULL, inode, NULL, NULL, 0, 0, in ll_xattr_find_get_lock() 301 if (IS_ERR(op_data)) { in ll_xattr_find_get_lock() 303 return PTR_ERR(op_data); in ll_xattr_find_get_lock() 306 op_data->op_valid = OBD_MD_FLXATTR | OBD_MD_FLXATTRLS; in ll_xattr_find_get_lock() 308 rc = md_enqueue(exp, &einfo, oit, op_data, &lockh, NULL, 0, NULL, 0); in ll_xattr_find_get_lock() 309 ll_finish_md_op_data(op_data); in ll_xattr_find_get_lock()
|
D | llite_internal.h | 719 void ll_ioepoch_close(struct inode *inode, struct md_op_data *op_data, 721 void ll_done_writing_attr(struct inode *inode, struct md_op_data *op_data); 722 int ll_som_update(struct inode *inode, struct md_op_data *op_data); 725 void ll_pack_inode2opdata(struct inode *inode, struct md_op_data *op_data, 789 struct md_op_data *ll_prep_md_op_data(struct md_op_data *op_data, 793 void ll_finish_md_op_data(struct md_op_data *op_data);
|
D | statahead.c | 802 struct md_op_data *op_data; in sa_args_init() local 814 op_data = ll_prep_md_op_data(&minfo->mi_data, dir, child, qstr->name, in sa_args_init() 816 if (IS_ERR(op_data)) { in sa_args_init() 819 return PTR_ERR(op_data); in sa_args_init()
|
/drivers/staging/lustre/lustre/obdclass/ |
D | obdo.c | 178 void md_from_obdo(struct md_op_data *op_data, struct obdo *oa, u32 valid) in md_from_obdo() argument 180 iattr_from_obdo(&op_data->op_attr, oa, valid); in md_from_obdo() 182 op_data->op_attr_blocks = oa->o_blocks; in md_from_obdo() 183 op_data->op_attr.ia_valid |= ATTR_BLOCKS; in md_from_obdo() 186 ((struct ll_iattr *)&op_data->op_attr)->ia_attr_flags = in md_from_obdo() 188 op_data->op_attr.ia_valid |= ATTR_ATTR_FLAG; in md_from_obdo()
|
/drivers/staging/lustre/lustre/include/ |
D | obd_class.h | 270 void md_from_obdo(struct md_op_data *op_data, struct obdo *oa, u32 valid); 926 struct md_op_data *op_data) in obd_fid_alloc() argument 933 rc = OBP(exp->exp_obd, fid_alloc)(exp, fid, op_data); in obd_fid_alloc() 1383 static inline int md_getattr(struct obd_export *exp, struct md_op_data *op_data, in md_getattr() argument 1390 rc = MDP(exp->exp_obd, getattr)(exp, op_data, request); in md_getattr() 1417 static inline int md_close(struct obd_export *exp, struct md_op_data *op_data, in md_close() argument 1425 rc = MDP(exp->exp_obd, close)(exp, op_data, mod, request); in md_close() 1429 static inline int md_create(struct obd_export *exp, struct md_op_data *op_data, in md_create() argument 1438 rc = MDP(exp->exp_obd, create)(exp, op_data, data, datalen, mode, in md_create() 1444 struct md_op_data *op_data, in md_done_writing() argument [all …]
|
D | obd.h | 913 void *op_data; member 1009 struct md_op_data *op_data);
|
/drivers/net/ethernet/qlogic/qed/ |
D | qed_init_ops.c | 319 u32 data = le32_to_cpu(cmd->op_data); in qed_init_cmd_rd() 328 data = le32_to_cpu(cmd->op_data); in qed_init_cmd_rd() 409 return GET_FIELD(le32_to_cpu(p_cmd->op_data), in qed_init_cmd_mode() 419 u32 op_data = le32_to_cpu(p_cmd->op_data); in qed_init_cmd_phase() local 424 return GET_FIELD(op_data, INIT_IF_PHASE_OP_CMD_OFFSET); in qed_init_cmd_phase() 452 u32 data = le32_to_cpu(cmd->raw.op_data); in qed_init_run()
|
D | qed_hsi.h | 1334 __le32 op_data; member 1353 __le32 op_data; member 1363 __le32 op_data; member 1376 __le32 op_data; member 1404 __le32 op_data; member 1444 __le32 op_data; member
|