Lines Matching refs:send_size
73 u32 send_size; member
572 int left = sctx->send_max_size - sctx->send_size; in tlv_put()
577 hdr = (struct btrfs_tlv_header *) (sctx->send_buf + sctx->send_size); in tlv_put()
581 sctx->send_size += total_len; in tlv_put()
685 BUG_ON(sctx->send_size); in begin_cmd()
687 sctx->send_size += sizeof(*hdr); in begin_cmd()
701 hdr->len = cpu_to_le32(sctx->send_size - sizeof(*hdr)); in send_cmd()
704 crc = btrfs_crc32c(0, (unsigned char *)sctx->send_buf, sctx->send_size); in send_cmd()
707 ret = write_buf(sctx->send_filp, sctx->send_buf, sctx->send_size, in send_cmd()
710 sctx->total_send_size += sctx->send_size; in send_cmd()
711 sctx->cmd_send_size[le16_to_cpu(hdr->cmd)] += sctx->send_size; in send_cmd()
712 sctx->send_size = 0; in send_cmd()