Lines Matching refs:send_size
89 u32 send_size; member
547 int left = sctx->send_max_size - sctx->send_size; in tlv_put()
552 hdr = (struct btrfs_tlv_header *) (sctx->send_buf + sctx->send_size); in tlv_put()
556 sctx->send_size += total_len; in tlv_put()
660 BUG_ON(sctx->send_size); in begin_cmd()
662 sctx->send_size += sizeof(*hdr); in begin_cmd()
676 hdr->len = cpu_to_le32(sctx->send_size - sizeof(*hdr)); in send_cmd()
679 crc = btrfs_crc32c(0, (unsigned char *)sctx->send_buf, sctx->send_size); in send_cmd()
682 ret = write_buf(sctx->send_filp, sctx->send_buf, sctx->send_size, in send_cmd()
685 sctx->total_send_size += sctx->send_size; in send_cmd()
686 sctx->cmd_send_size[le16_to_cpu(hdr->cmd)] += sctx->send_size; in send_cmd()
687 sctx->send_size = 0; in send_cmd()