• Home
  • Raw
  • Download

Lines Matching refs:opcode

431 static bool osd_req_opcode_valid(u16 opcode)  in osd_req_opcode_valid()  argument
433 switch (opcode) { in osd_req_opcode_valid()
434 #define GENERATE_CASE(op, opcode, str) case CEPH_OSD_OP_##op: return true; in osd_req_opcode_valid() argument
449 u16 opcode) in _osd_req_op_init() argument
454 BUG_ON(!osd_req_opcode_valid(opcode)); in _osd_req_op_init()
458 op->op = opcode; in _osd_req_op_init()
464 unsigned int which, u16 opcode) in osd_req_op_init() argument
466 (void)_osd_req_op_init(osd_req, which, opcode); in osd_req_op_init()
471 unsigned int which, u16 opcode, in osd_req_op_extent_init() argument
475 struct ceph_osd_req_op *op = _osd_req_op_init(osd_req, which, opcode); in osd_req_op_extent_init()
478 BUG_ON(opcode != CEPH_OSD_OP_READ && opcode != CEPH_OSD_OP_WRITE && in osd_req_op_extent_init()
479 opcode != CEPH_OSD_OP_DELETE && opcode != CEPH_OSD_OP_ZERO && in osd_req_op_extent_init()
480 opcode != CEPH_OSD_OP_TRUNCATE); in osd_req_op_extent_init()
486 if (opcode == CEPH_OSD_OP_WRITE) in osd_req_op_extent_init()
513 u16 opcode, const char *class, const char *method) in osd_req_op_cls_init() argument
515 struct ceph_osd_req_op *op = _osd_req_op_init(osd_req, which, opcode); in osd_req_op_cls_init()
520 BUG_ON(opcode != CEPH_OSD_OP_CALL); in osd_req_op_cls_init()
549 unsigned int which, u16 opcode, in osd_req_op_watch_init() argument
552 struct ceph_osd_req_op *op = _osd_req_op_init(osd_req, which, opcode); in osd_req_op_watch_init()
554 BUG_ON(opcode != CEPH_OSD_OP_NOTIFY_ACK && opcode != CEPH_OSD_OP_WATCH); in osd_req_op_watch_init()
558 if (opcode == CEPH_OSD_OP_WATCH && flag) in osd_req_op_watch_init()
709 int opcode, int flags, in ceph_osdc_new_request() argument
723 BUG_ON(opcode != CEPH_OSD_OP_READ && opcode != CEPH_OSD_OP_WRITE && in ceph_osdc_new_request()
724 opcode != CEPH_OSD_OP_DELETE && opcode != CEPH_OSD_OP_ZERO && in ceph_osdc_new_request()
725 opcode != CEPH_OSD_OP_TRUNCATE); in ceph_osdc_new_request()
753 osd_req_op_extent_init(req, 0, opcode, objoff, objlen, in ceph_osdc_new_request()
2278 u8 opcode = event_work->opcode; in do_event_work() local
2281 event->cb(ver, notify_id, opcode, event->data); in do_event_work()
2297 u8 opcode; in handle_watch_notify() local
2305 ceph_decode_8_safe(&p, end, opcode, bad); in handle_watch_notify()
2330 event_work->opcode = opcode; in handle_watch_notify()