Lines Matching refs:send_size
139 u32 send_size; member
663 int left = sctx->send_max_size - sctx->send_size; in tlv_put()
671 hdr = (struct btrfs_tlv_header *) (sctx->send_buf + sctx->send_size); in tlv_put()
675 sctx->send_size += total_len; in tlv_put()
780 if (unlikely(sctx->send_size != 0)) { in begin_cmd()
787 sctx->send_size += sizeof(*hdr); in begin_cmd()
801 put_unaligned_le32(sctx->send_size - sizeof(*hdr), &hdr->len); in send_cmd()
804 crc = crc32c(0, (unsigned char *)sctx->send_buf, sctx->send_size); in send_cmd()
807 ret = write_buf(sctx->send_filp, sctx->send_buf, sctx->send_size, in send_cmd()
810 sctx->send_size = 0; in send_cmd()
5256 if (sctx->send_max_size - sctx->send_size < sizeof(__le16) + len) in put_data_header()
5258 put_unaligned_le16(BTRFS_SEND_A_DATA, sctx->send_buf + sctx->send_size); in put_data_header()
5259 sctx->send_size += sizeof(__le16); in put_data_header()
5263 if (sctx->send_max_size - sctx->send_size < sizeof(*hdr) + len) in put_data_header()
5265 hdr = (struct btrfs_tlv_header *)(sctx->send_buf + sctx->send_size); in put_data_header()
5268 sctx->send_size += sizeof(*hdr); in put_data_header()
5328 memcpy_from_folio(sctx->send_buf + sctx->send_size, folio, in put_file_data()
5335 sctx->send_size += cur_len; in put_file_data()
5526 memset(sctx->send_buf + sctx->send_size, 0, len); in send_hole()
5527 sctx->send_size += len; in send_hole()
5592 read_extent_buffer(leaf, sctx->send_buf + sctx->send_size, in send_encoded_inline_extent()
5594 sctx->send_size += inline_size; in send_encoded_inline_extent()
5669 data_offset = PAGE_ALIGN(sctx->send_size); in send_encoded_extent()
5688 hdr->len = cpu_to_le32(sctx->send_size + disk_num_bytes - sizeof(*hdr)); in send_encoded_extent()
5690 crc = crc32c(0, sctx->send_buf, sctx->send_size); in send_encoded_extent()
5694 ret = write_buf(sctx->send_filp, sctx->send_buf, sctx->send_size, in send_encoded_extent()
5700 sctx->send_size = 0; in send_encoded_extent()