Lines Matching refs:copied
169 segment->copied = 0; in iscsi_tcp_segment_splice_digest()
192 unsigned copied) in iscsi_tcp_segment_done() argument
198 segment->copied, copied, segment->size, in iscsi_tcp_segment_done()
200 if (segment->hash && copied) { in iscsi_tcp_segment_done()
209 sg_set_page(&sg, sg_page(segment->sg), copied, in iscsi_tcp_segment_done()
210 segment->copied + segment->sg_offset + in iscsi_tcp_segment_done()
213 sg_init_one(&sg, segment->data + segment->copied, in iscsi_tcp_segment_done()
214 copied); in iscsi_tcp_segment_done()
215 ahash_request_set_crypt(segment->hash, &sg, NULL, copied); in iscsi_tcp_segment_done()
219 segment->copied += copied; in iscsi_tcp_segment_done()
220 if (segment->copied < segment->size) { in iscsi_tcp_segment_done()
225 segment->total_copied += segment->copied; in iscsi_tcp_segment_done()
226 segment->copied = 0; in iscsi_tcp_segment_done()
296 unsigned int copy = 0, copied = 0; in iscsi_tcp_segment_recv() local
299 if (copied == len) { in iscsi_tcp_segment_recv()
305 copy = min(len - copied, segment->size - segment->copied); in iscsi_tcp_segment_recv()
307 memcpy(segment->data + segment->copied, ptr + copied, copy); in iscsi_tcp_segment_recv()
308 copied += copy; in iscsi_tcp_segment_recv()
310 return copied; in iscsi_tcp_segment_recv()
850 if (segment->copied == sizeof(struct iscsi_hdr) && hdr->hlength) { in iscsi_tcp_hdr_recv_done()
957 BUG_ON(segment->copied >= segment->size); in iscsi_tcp_recv_skb()