Lines Matching full:segment

150 	iscsi_tcp_segment_unmap(&tcp_conn->in.segment);  in iscsi_sw_tcp_recv_data()
282 * iscsi_sw_tcp_xmit_segment - transmit segment
284 * @segment: the buffer to transmnit
291 * hash as it goes. When the entire segment has been transmitted,
295 struct iscsi_segment *segment) in iscsi_sw_tcp_xmit_segment() argument
302 while (!iscsi_tcp_segment_done(tcp_conn, segment, 0, r)) { in iscsi_sw_tcp_xmit_segment()
309 offset = segment->copied; in iscsi_sw_tcp_xmit_segment()
310 copy = segment->size - offset; in iscsi_sw_tcp_xmit_segment()
312 if (segment->total_copied + segment->size < segment->total_size) in iscsi_sw_tcp_xmit_segment()
318 if (!segment->data) { in iscsi_sw_tcp_xmit_segment()
321 sg = segment->sg; in iscsi_sw_tcp_xmit_segment()
322 offset += segment->sg_offset + sg->offset; in iscsi_sw_tcp_xmit_segment()
325 bvec_set_virt(&bv, segment->data + offset, copy); in iscsi_sw_tcp_xmit_segment()
331 iscsi_tcp_segment_unmap(segment); in iscsi_sw_tcp_xmit_segment()
347 struct iscsi_segment *segment = &tcp_sw_conn->out.segment; in iscsi_sw_tcp_xmit() local
352 rc = iscsi_sw_tcp_xmit_segment(tcp_conn, segment); in iscsi_sw_tcp_xmit()
368 if (segment->total_copied >= segment->total_size) { in iscsi_sw_tcp_xmit()
369 if (segment->done != NULL) { in iscsi_sw_tcp_xmit()
370 rc = segment->done(tcp_conn, segment); in iscsi_sw_tcp_xmit()
398 struct iscsi_segment *segment = &tcp_sw_conn->out.segment; in iscsi_sw_tcp_xmit_qlen() local
400 return segment->total_copied - segment->total_size; in iscsi_sw_tcp_xmit_qlen()
436 * Simply copy the data_segment to the send segment, and return.
439 struct iscsi_segment *segment) in iscsi_sw_tcp_send_hdr_done() argument
443 tcp_sw_conn->out.segment = tcp_sw_conn->out.data_segment; in iscsi_sw_tcp_send_hdr_done()
445 "Header done. Next segment size %u total_size %u\n", in iscsi_sw_tcp_send_hdr_done()
446 tcp_sw_conn->out.segment.size, in iscsi_sw_tcp_send_hdr_done()
447 tcp_sw_conn->out.segment.total_size); in iscsi_sw_tcp_send_hdr_done()
460 /* Clear the data segment - needs to be filled in by the in iscsi_sw_tcp_send_hdr_prep()
481 iscsi_segment_init_linear(&tcp_sw_conn->out.segment, hdr, hdrlen, in iscsi_sw_tcp_send_hdr_prep()