Home
last modified time | relevance | path

Searched refs:pill (Results 1 – 8 of 8) sorted by relevance

/drivers/staging/lustre/lustre/ptlrpc/
Dlayout.c1682 static void req_capsule_init_area(struct req_capsule *pill) in req_capsule_init_area() argument
1686 for (i = 0; i < ARRAY_SIZE(pill->rc_area[RCL_CLIENT]); i++) { in req_capsule_init_area()
1687 pill->rc_area[RCL_CLIENT][i] = -1; in req_capsule_init_area()
1688 pill->rc_area[RCL_SERVER][i] = -1; in req_capsule_init_area()
1698 void req_capsule_init(struct req_capsule *pill, in req_capsule_init() argument
1715 if (req != NULL && pill == &req->rq_pill && req->rq_pill_init) in req_capsule_init()
1718 memset(pill, 0, sizeof(*pill)); in req_capsule_init()
1719 pill->rc_req = req; in req_capsule_init()
1720 pill->rc_loc = location; in req_capsule_init()
1721 req_capsule_init_area(pill); in req_capsule_init()
[all …]
/drivers/staging/lustre/lustre/include/
Dlustre_req_layout.h78 void req_capsule_init(struct req_capsule *pill, struct ptlrpc_request *req,
80 void req_capsule_fini(struct req_capsule *pill);
82 void req_capsule_set(struct req_capsule *pill, const struct req_format *fmt);
83 int req_capsule_filled_sizes(struct req_capsule *pill, enum req_location loc);
84 int req_capsule_server_pack(struct req_capsule *pill);
86 void *req_capsule_client_get(struct req_capsule *pill,
88 void *req_capsule_client_swab_get(struct req_capsule *pill,
91 void *req_capsule_client_sized_get(struct req_capsule *pill,
94 void *req_capsule_server_get(struct req_capsule *pill,
96 void *req_capsule_server_sized_get(struct req_capsule *pill,
[all …]
/drivers/staging/lustre/lustre/mdc/
Dmdc_locks.c554 struct req_capsule *pill = &req->rq_pill; in mdc_finish_enqueue() local
566 lockreq = req_capsule_client_get(pill, &RMF_DLM_REQ); in mdc_finish_enqueue()
588 lockrep = req_capsule_server_get(pill, &RMF_DLM_REP); in mdc_finish_enqueue()
620 body = req_capsule_server_get(pill, &RMF_MDT_BODY); in mdc_finish_enqueue()
646 eadata = req_capsule_server_sized_get(pill, &RMF_MDT_MD, in mdc_finish_enqueue()
668 if (req_capsule_get_size(pill, &RMF_EADATA, in mdc_finish_enqueue()
673 req_capsule_shrink(pill, &RMF_EADATA, in mdc_finish_enqueue()
677 req_capsule_set_size(pill, &RMF_EADATA, in mdc_finish_enqueue()
681 lmm = req_capsule_client_get(pill, &RMF_EADATA); in mdc_finish_enqueue()
691 perm = req_capsule_server_swab_get(pill, &RMF_ACL, in mdc_finish_enqueue()
[all …]
Dmdc_request.c126 struct req_capsule *pill = &req->rq_pill; in mdc_getattr_common() local
137 body = req_capsule_server_get(pill, &RMF_MDT_BODY); in mdc_getattr_common()
146 eadata = req_capsule_server_sized_get(pill, &RMF_MDT_MD, in mdc_getattr_common()
156 perm = req_capsule_server_swab_get(pill, &RMF_ACL, in mdc_getattr_common()
412 struct req_capsule *pill = &req->rq_pill; in mdc_unpack_acl() local
421 buf = req_capsule_server_sized_get(pill, &RMF_ACL, body->aclsize); in mdc_unpack_acl()
454 struct req_capsule *pill = &req->rq_pill; in mdc_get_lustre_md() local
460 md->body = req_capsule_server_get(pill, &RMF_MDT_BODY); in mdc_get_lustre_md()
481 lmm = req_capsule_server_sized_get(pill, &RMF_MDT_MD, lmmsize); in mdc_get_lustre_md()
517 lmv = req_capsule_server_sized_get(pill, &RMF_MDT_MD, in mdc_get_lustre_md()
[all …]
/drivers/staging/lustre/lustre/ldlm/
Dldlm_lock.c1359 int ldlm_fill_lvb(struct ldlm_lock *lock, struct req_capsule *pill, in ldlm_fill_lvb() argument
1371 lvb = req_capsule_client_swab_get(pill, in ldlm_fill_lvb()
1375 lvb = req_capsule_server_swab_get(pill, in ldlm_fill_lvb()
1388 lvb = req_capsule_client_swab_get(pill, in ldlm_fill_lvb()
1392 lvb = req_capsule_server_sized_swab_get(pill, in ldlm_fill_lvb()
1413 lvb = req_capsule_client_swab_get(pill, in ldlm_fill_lvb()
1417 lvb = req_capsule_server_swab_get(pill, in ldlm_fill_lvb()
1438 lvb = req_capsule_client_get(pill, &RMF_DLM_LVB); in ldlm_fill_lvb()
1440 lvb = req_capsule_server_get(pill, &RMF_DLM_LVB); in ldlm_fill_lvb()
Dldlm_request.c545 static inline int ldlm_capsule_handles_avail(struct req_capsule *pill, in ldlm_capsule_handles_avail() argument
549 int size = req_capsule_msg_size(pill, loc); in ldlm_capsule_handles_avail()
576 struct req_capsule *pill = &req->rq_pill; in ldlm_prep_elc_req() local
586 req_capsule_filled_sizes(pill, RCL_CLIENT); in ldlm_prep_elc_req()
587 avail = ldlm_capsule_handles_avail(pill, RCL_CLIENT, canceloff); in ldlm_prep_elc_req()
604 req_capsule_set_size(pill, &RMF_DLM_REQ, RCL_CLIENT, in ldlm_prep_elc_req()
616 dlm = req_capsule_client_get(pill, &RMF_DLM_REQ); in ldlm_prep_elc_req()
Dldlm_internal.h132 int ldlm_fill_lvb(struct ldlm_lock *lock, struct req_capsule *pill,
/drivers/staging/lustre/lustre/osc/
Dosc_request.c1229 struct req_capsule *pill; in osc_brw_prep_request() local
1254 pill = &req->rq_pill; in osc_brw_prep_request()
1255 req_capsule_set_size(pill, &RMF_OBD_IOOBJ, RCL_CLIENT, in osc_brw_prep_request()
1257 req_capsule_set_size(pill, &RMF_NIOBUF_REMOTE, RCL_CLIENT, in osc_brw_prep_request()
1282 body = req_capsule_client_get(pill, &RMF_OST_BODY); in osc_brw_prep_request()
1283 ioobj = req_capsule_client_get(pill, &RMF_OBD_IOOBJ); in osc_brw_prep_request()
1284 niobuf = req_capsule_client_get(pill, &RMF_NIOBUF_REMOTE); in osc_brw_prep_request()
1382 req_capsule_set_size(pill, &RMF_RCS, RCL_SERVER, in osc_brw_prep_request()