Lines Matching defs:which
175 osd_req_op_raw_data_in(struct ceph_osd_request *osd_req, unsigned int which)
177 BUG_ON(which >= osd_req->r_num_ops);
179 return &osd_req->r_ops[which].raw_data_in;
184 unsigned int which)
186 return osd_req_op_data(osd_req, which, extent, osd_data);
191 unsigned int which, struct page **pages,
197 osd_data = osd_req_op_raw_data_in(osd_req, which);
204 unsigned int which, struct page **pages,
210 osd_data = osd_req_op_data(osd_req, which, extent, osd_data);
217 unsigned int which, struct ceph_pagelist *pagelist)
221 osd_data = osd_req_op_data(osd_req, which, extent, osd_data);
228 unsigned int which,
234 osd_data = osd_req_op_data(osd_req, which, extent, osd_data);
241 unsigned int which,
251 osd_data = osd_req_op_data(osd_req, which, extent, osd_data);
257 unsigned int which,
262 osd_data = osd_req_op_data(osd_req, which, extent, osd_data);
269 unsigned int which, struct ceph_pagelist *pagelist)
273 osd_data = osd_req_op_data(osd_req, which, cls, request_info);
279 unsigned int which, struct ceph_pagelist *pagelist)
283 osd_data = osd_req_op_data(osd_req, which, cls, request_data);
285 osd_req->r_ops[which].cls.indata_len += pagelist->length;
286 osd_req->r_ops[which].indata_len += pagelist->length;
291 unsigned int which, struct page **pages, u64 length,
296 osd_data = osd_req_op_data(osd_req, which, cls, request_data);
299 osd_req->r_ops[which].cls.indata_len += length;
300 osd_req->r_ops[which].indata_len += length;
305 unsigned int which,
315 osd_data = osd_req_op_data(osd_req, which, cls, request_data);
317 osd_req->r_ops[which].cls.indata_len += bytes;
318 osd_req->r_ops[which].indata_len += bytes;
323 unsigned int which, struct page **pages, u64 length,
328 osd_data = osd_req_op_data(osd_req, which, cls, response_data);
370 unsigned int which)
374 BUG_ON(which >= osd_req->r_num_ops);
375 op = &osd_req->r_ops[which];
483 unsigned int which;
494 for (which = 0; which < req->r_num_ops; which++)
495 osd_req_op_data_release(req, which);
713 osd_req_op_init(struct ceph_osd_request *osd_req, unsigned int which,
718 BUG_ON(which >= osd_req->r_num_ops);
721 op = &osd_req->r_ops[which];
731 unsigned int which, u16 opcode,
735 struct ceph_osd_req_op *op = osd_req_op_init(osd_req, which,
755 unsigned int which, u64 length)
760 BUG_ON(which >= osd_req->r_num_ops);
761 op = &osd_req->r_ops[which];
775 unsigned int which, u64 offset_inc)
779 BUG_ON(which + 1 >= osd_req->r_num_ops);
781 prev_op = &osd_req->r_ops[which];
782 op = osd_req_op_init(osd_req, which + 1, prev_op->op, prev_op->flags);
796 int osd_req_op_cls_init(struct ceph_osd_request *osd_req, unsigned int which,
805 op = osd_req_op_init(osd_req, which, CEPH_OSD_OP_CALL, 0);
829 osd_req_op_cls_request_info_pagelist(osd_req, which, pagelist);
839 int osd_req_op_xattr_init(struct ceph_osd_request *osd_req, unsigned int which,
843 struct ceph_osd_req_op *op = osd_req_op_init(osd_req, which,
883 static void osd_req_op_watch_init(struct ceph_osd_request *req, int which,
888 op = osd_req_op_init(req, which, CEPH_OSD_OP_WATCH, 0);
898 static void osd_req_op_notify_init(struct ceph_osd_request *req, int which,
903 op = osd_req_op_init(req, which, CEPH_OSD_OP_NOTIFY, 0);
914 unsigned int which,
921 op = osd_req_op_init(osd_req, which, CEPH_OSD_OP_SETALLOCHINT, 0);
1047 unsigned int which, int num_ops,
1077 osd_req_op_init(req, which, opcode, 0);
1090 osd_req_op_extent_init(req, which, opcode, objoff, objlen,
2620 * We sent a request earlier, which means that
4766 static int osd_req_op_notify_ack_init(struct ceph_osd_request *req, int which,
4774 op = osd_req_op_init(req, which, CEPH_OSD_OP_NOTIFY_ACK, 0);