Lines Matching defs:which
182 osd_req_op_raw_data_in(struct ceph_osd_request *osd_req, unsigned int which)
184 BUG_ON(which >= osd_req->r_num_ops);
186 return &osd_req->r_ops[which].raw_data_in;
191 unsigned int which)
193 return osd_req_op_data(osd_req, which, extent, osd_data);
198 unsigned int which, struct page **pages,
204 osd_data = osd_req_op_raw_data_in(osd_req, which);
211 unsigned int which, struct page **pages,
217 osd_data = osd_req_op_data(osd_req, which, extent, osd_data);
224 unsigned int which, struct ceph_pagelist *pagelist)
228 osd_data = osd_req_op_data(osd_req, which, extent, osd_data);
235 unsigned int which,
241 osd_data = osd_req_op_data(osd_req, which, extent, osd_data);
248 unsigned int which,
258 osd_data = osd_req_op_data(osd_req, which, extent, osd_data);
264 unsigned int which,
269 osd_data = osd_req_op_data(osd_req, which, extent, osd_data);
277 * @which: Index of the operation in which to set the iter
281 unsigned int which, struct iov_iter *iter)
285 osd_data = osd_req_op_data(osd_req, which, extent, osd_data);
292 unsigned int which, struct ceph_pagelist *pagelist)
296 osd_data = osd_req_op_data(osd_req, which, cls, request_info);
302 unsigned int which, struct ceph_pagelist *pagelist)
306 osd_data = osd_req_op_data(osd_req, which, cls, request_data);
308 osd_req->r_ops[which].cls.indata_len += pagelist->length;
309 osd_req->r_ops[which].indata_len += pagelist->length;
314 unsigned int which, struct page **pages, u64 length,
319 osd_data = osd_req_op_data(osd_req, which, cls, request_data);
322 osd_req->r_ops[which].cls.indata_len += length;
323 osd_req->r_ops[which].indata_len += length;
328 unsigned int which,
338 osd_data = osd_req_op_data(osd_req, which, cls, request_data);
340 osd_req->r_ops[which].cls.indata_len += bytes;
341 osd_req->r_ops[which].indata_len += bytes;
346 unsigned int which, struct page **pages, u64 length,
351 osd_data = osd_req_op_data(osd_req, which, cls, response_data);
395 unsigned int which)
399 BUG_ON(which >= osd_req->r_num_ops);
400 op = &osd_req->r_ops[which];
510 unsigned int which;
521 for (which = 0; which < req->r_num_ops; which++)
522 osd_req_op_data_release(req, which);
741 osd_req_op_init(struct ceph_osd_request *osd_req, unsigned int which,
746 BUG_ON(which >= osd_req->r_num_ops);
749 op = &osd_req->r_ops[which];
759 unsigned int which, u16 opcode,
763 struct ceph_osd_req_op *op = osd_req_op_init(osd_req, which,
783 unsigned int which, u64 length)
788 BUG_ON(which >= osd_req->r_num_ops);
789 op = &osd_req->r_ops[which];
803 unsigned int which, u64 offset_inc)
807 BUG_ON(which + 1 >= osd_req->r_num_ops);
809 prev_op = &osd_req->r_ops[which];
810 op = osd_req_op_init(osd_req, which + 1, prev_op->op, prev_op->flags);
824 int osd_req_op_cls_init(struct ceph_osd_request *osd_req, unsigned int which,
833 op = osd_req_op_init(osd_req, which, CEPH_OSD_OP_CALL, 0);
857 osd_req_op_cls_request_info_pagelist(osd_req, which, pagelist);
867 int osd_req_op_xattr_init(struct ceph_osd_request *osd_req, unsigned int which,
871 struct ceph_osd_req_op *op = osd_req_op_init(osd_req, which,
911 static void osd_req_op_watch_init(struct ceph_osd_request *req, int which,
916 op = osd_req_op_init(req, which, CEPH_OSD_OP_WATCH, 0);
926 static void osd_req_op_notify_init(struct ceph_osd_request *req, int which,
931 op = osd_req_op_init(req, which, CEPH_OSD_OP_NOTIFY, 0);
942 unsigned int which,
949 op = osd_req_op_init(osd_req, which, CEPH_OSD_OP_SETALLOCHINT, 0);
1082 unsigned int which, int num_ops,
1113 osd_req_op_init(req, which, opcode, 0);
1126 osd_req_op_extent_init(req, which, opcode, objoff, objlen,
2707 * We sent a request earlier, which means that
4686 * handle_reply(), in which case r_result would already be set and
4858 static int osd_req_op_notify_ack_init(struct ceph_osd_request *req, int which,
4866 op = osd_req_op_init(req, which, CEPH_OSD_OP_NOTIFY_ACK, 0);