Lines Matching refs:opcode

641 static bool osd_req_opcode_valid(u16 opcode)  in osd_req_opcode_valid()  argument
643 switch (opcode) { in osd_req_opcode_valid()
644 #define GENERATE_CASE(op, opcode, str) case CEPH_OSD_OP_##op: return true; in osd_req_opcode_valid() argument
719 u16 opcode, u32 flags) in osd_req_op_init() argument
724 BUG_ON(!osd_req_opcode_valid(opcode)); in osd_req_op_init()
728 op->op = opcode; in osd_req_op_init()
736 unsigned int which, u16 opcode, in osd_req_op_extent_init() argument
741 opcode, 0); in osd_req_op_extent_init()
744 BUG_ON(opcode != CEPH_OSD_OP_READ && opcode != CEPH_OSD_OP_WRITE && in osd_req_op_extent_init()
745 opcode != CEPH_OSD_OP_WRITEFULL && opcode != CEPH_OSD_OP_ZERO && in osd_req_op_extent_init()
746 opcode != CEPH_OSD_OP_TRUNCATE && opcode != CEPH_OSD_OP_SPARSE_READ); in osd_req_op_extent_init()
752 if (opcode == CEPH_OSD_OP_WRITE || opcode == CEPH_OSD_OP_WRITEFULL) in osd_req_op_extent_init()
845 u16 opcode, const char *name, const void *value, in osd_req_op_xattr_init() argument
849 opcode, 0); in osd_req_op_xattr_init()
854 BUG_ON(opcode != CEPH_OSD_OP_SETXATTR && opcode != CEPH_OSD_OP_CMPXATTR); in osd_req_op_xattr_init()
1060 int opcode, int flags, in ceph_osdc_new_request() argument
1072 BUG_ON(opcode != CEPH_OSD_OP_READ && opcode != CEPH_OSD_OP_WRITE && in ceph_osdc_new_request()
1073 opcode != CEPH_OSD_OP_ZERO && opcode != CEPH_OSD_OP_TRUNCATE && in ceph_osdc_new_request()
1074 opcode != CEPH_OSD_OP_CREATE && opcode != CEPH_OSD_OP_DELETE && in ceph_osdc_new_request()
1075 opcode != CEPH_OSD_OP_SPARSE_READ); in ceph_osdc_new_request()
1089 if (opcode == CEPH_OSD_OP_CREATE || opcode == CEPH_OSD_OP_DELETE) { in ceph_osdc_new_request()
1090 osd_req_op_init(req, which, opcode, 0); in ceph_osdc_new_request()
1103 osd_req_op_extent_init(req, which, opcode, objoff, objlen, in ceph_osdc_new_request()
4559 u8 proto_ver, opcode; in handle_watch_notify() local
4567 ceph_decode_8_safe(&p, end, opcode, bad); in handle_watch_notify()
4588 dout("%s opcode %d cookie %llu dne\n", __func__, opcode, in handle_watch_notify()
4595 opcode, cookie, lreq, lreq->is_watch); in handle_watch_notify()
4596 if (opcode == CEPH_WATCH_EVENT_DISCONNECT) { in handle_watch_notify()