Lines Matching refs:send_size
88 u32 send_size; member
546 int left = sctx->send_max_size - sctx->send_size; in tlv_put()
551 hdr = (struct btrfs_tlv_header *) (sctx->send_buf + sctx->send_size); in tlv_put()
555 sctx->send_size += total_len; in tlv_put()
659 BUG_ON(sctx->send_size); in begin_cmd()
661 sctx->send_size += sizeof(*hdr); in begin_cmd()
675 hdr->len = cpu_to_le32(sctx->send_size - sizeof(*hdr)); in send_cmd()
678 crc = btrfs_crc32c(0, (unsigned char *)sctx->send_buf, sctx->send_size); in send_cmd()
681 ret = write_buf(sctx->send_filp, sctx->send_buf, sctx->send_size, in send_cmd()
684 sctx->total_send_size += sctx->send_size; in send_cmd()
685 sctx->cmd_send_size[le16_to_cpu(hdr->cmd)] += sctx->send_size; in send_cmd()
686 sctx->send_size = 0; in send_cmd()