Lines Matching refs:send_size
82 u32 send_size; member
575 int left = sctx->send_max_size - sctx->send_size; in tlv_put()
580 hdr = (struct btrfs_tlv_header *) (sctx->send_buf + sctx->send_size); in tlv_put()
584 sctx->send_size += total_len; in tlv_put()
688 BUG_ON(sctx->send_size); in begin_cmd()
690 sctx->send_size += sizeof(*hdr); in begin_cmd()
704 put_unaligned_le32(sctx->send_size - sizeof(*hdr), &hdr->len); in send_cmd()
707 crc = btrfs_crc32c(0, (unsigned char *)sctx->send_buf, sctx->send_size); in send_cmd()
710 ret = write_buf(sctx->send_filp, sctx->send_buf, sctx->send_size, in send_cmd()
713 sctx->total_send_size += sctx->send_size; in send_cmd()
714 sctx->cmd_send_size[get_unaligned_le16(&hdr->cmd)] += sctx->send_size; in send_cmd()
715 sctx->send_size = 0; in send_cmd()
4947 if (sctx->send_max_size - sctx->send_size < sizeof(*hdr) + len) in put_data_header()
4949 hdr = (struct btrfs_tlv_header *)(sctx->send_buf + sctx->send_size); in put_data_header()
4952 sctx->send_size += sizeof(*hdr); in put_data_header()
5020 memcpy(sctx->send_buf + sctx->send_size, addr + pg_offset, in put_file_data()
5028 sctx->send_size += cur_len; in put_file_data()
5220 memset(sctx->send_buf + sctx->send_size, 0, len); in send_hole()
5221 sctx->send_size += len; in send_hole()