Lines Matching refs:cmd
402 static bool proto_cmd_ok(const struct send_ctx *sctx, int cmd) in proto_cmd_ok() argument
405 case 1: return cmd <= BTRFS_SEND_C_MAX_V1; in proto_cmd_ok()
406 case 2: return cmd <= BTRFS_SEND_C_MAX_V2; in proto_cmd_ok()
407 case 3: return cmd <= BTRFS_SEND_C_MAX_V3; in proto_cmd_ok()
773 static int begin_cmd(struct send_ctx *sctx, int cmd) in begin_cmd() argument
783 cmd, sctx->send_off); in begin_cmd()
789 put_unaligned_le16(cmd, &hdr->cmd); in begin_cmd()
2853 int cmd; in send_create_inode() local
2879 cmd = BTRFS_SEND_C_MKFILE; in send_create_inode()
2881 cmd = BTRFS_SEND_C_MKDIR; in send_create_inode()
2883 cmd = BTRFS_SEND_C_SYMLINK; in send_create_inode()
2885 cmd = BTRFS_SEND_C_MKNOD; in send_create_inode()
2887 cmd = BTRFS_SEND_C_MKFIFO; in send_create_inode()
2889 cmd = BTRFS_SEND_C_MKSOCK; in send_create_inode()
2897 ret = begin_cmd(sctx, cmd); in send_create_inode()
4824 enum btrfs_compare_tree_result cmd) in process_all_refs() argument
4839 if (cmd == BTRFS_COMPARE_TREE_NEW) { in process_all_refs()
4842 } else if (cmd == BTRFS_COMPARE_TREE_DELETED) { in process_all_refs()
4847 "Wrong command %d in process_all_refs", cmd); in process_all_refs()