Lines Matching refs:opcode

441 static bool osd_req_opcode_valid(u16 opcode)  in osd_req_opcode_valid()  argument
443 switch (opcode) { in osd_req_opcode_valid()
444 #define GENERATE_CASE(op, opcode, str) case CEPH_OSD_OP_##op: return true; in osd_req_opcode_valid() argument
459 u16 opcode, u32 flags) in _osd_req_op_init() argument
464 BUG_ON(!osd_req_opcode_valid(opcode)); in _osd_req_op_init()
468 op->op = opcode; in _osd_req_op_init()
475 unsigned int which, u16 opcode, u32 flags) in osd_req_op_init() argument
477 (void)_osd_req_op_init(osd_req, which, opcode, flags); in osd_req_op_init()
482 unsigned int which, u16 opcode, in osd_req_op_extent_init() argument
487 opcode, 0); in osd_req_op_extent_init()
490 BUG_ON(opcode != CEPH_OSD_OP_READ && opcode != CEPH_OSD_OP_WRITE && in osd_req_op_extent_init()
491 opcode != CEPH_OSD_OP_WRITEFULL && opcode != CEPH_OSD_OP_ZERO && in osd_req_op_extent_init()
492 opcode != CEPH_OSD_OP_TRUNCATE); in osd_req_op_extent_init()
498 if (opcode == CEPH_OSD_OP_WRITE || opcode == CEPH_OSD_OP_WRITEFULL) in osd_req_op_extent_init()
525 u16 opcode, const char *class, const char *method) in osd_req_op_cls_init() argument
528 opcode, 0); in osd_req_op_cls_init()
533 BUG_ON(opcode != CEPH_OSD_OP_CALL); in osd_req_op_cls_init()
562 u16 opcode, const char *name, const void *value, in osd_req_op_xattr_init() argument
566 opcode, 0); in osd_req_op_xattr_init()
570 BUG_ON(opcode != CEPH_OSD_OP_SETXATTR && opcode != CEPH_OSD_OP_CMPXATTR); in osd_req_op_xattr_init()
596 unsigned int which, u16 opcode, in osd_req_op_watch_init() argument
600 opcode, 0); in osd_req_op_watch_init()
602 BUG_ON(opcode != CEPH_OSD_OP_NOTIFY_ACK && opcode != CEPH_OSD_OP_WATCH); in osd_req_op_watch_init()
606 if (opcode == CEPH_OSD_OP_WATCH && flag) in osd_req_op_watch_init()
774 int opcode, int flags, in ceph_osdc_new_request() argument
786 BUG_ON(opcode != CEPH_OSD_OP_READ && opcode != CEPH_OSD_OP_WRITE && in ceph_osdc_new_request()
787 opcode != CEPH_OSD_OP_ZERO && opcode != CEPH_OSD_OP_TRUNCATE && in ceph_osdc_new_request()
788 opcode != CEPH_OSD_OP_CREATE && opcode != CEPH_OSD_OP_DELETE); in ceph_osdc_new_request()
804 if (opcode == CEPH_OSD_OP_CREATE || opcode == CEPH_OSD_OP_DELETE) { in ceph_osdc_new_request()
805 osd_req_op_init(req, which, opcode, 0); in ceph_osdc_new_request()
818 osd_req_op_extent_init(req, which, opcode, objoff, objlen, in ceph_osdc_new_request()
2335 u8 opcode = event_work->opcode; in do_event_work() local
2338 event->cb(ver, notify_id, opcode, event->data); in do_event_work()
2354 u8 opcode; in handle_watch_notify() local
2362 ceph_decode_8_safe(&p, end, opcode, bad); in handle_watch_notify()
2387 event_work->opcode = opcode; in handle_watch_notify()