Lines Matching refs:nr_segments
96 printk("nr_segments is %x\n", req->nr_segments); in dump_stats()
116 if( req->nr_segments != __count_segments(req, _CLUSTER, _DMA, NULL) ) \
298 req->nr_segments = __count_segments(req, in recount_segments()
320 if (req->nr_segments >= max_segments || in scsi_new_mergeable()
321 req->nr_segments >= SHpnt->sg_tablesize) in scsi_new_mergeable()
323 req->nr_segments++; in scsi_new_mergeable()
338 req->nr_segments >= SHpnt->sg_tablesize) in scsi_new_segment()
341 req->nr_segments++; in scsi_new_segment()
350 if (req->nr_segments < SHpnt->sg_tablesize && in scsi_new_segment()
351 req->nr_segments < max_segments) { in scsi_new_segment()
356 req->nr_segments++; in scsi_new_segment()
497 if( count != req->nr_segments ) { in __scsi_front_merge_fn()
621 if (req->nr_segments + next->nr_segments - 1 > max_segments || in __scsi_merge_requests_fn()
622 req->nr_segments + next->nr_segments - 1 > SHpnt->sg_tablesize) { in __scsi_merge_requests_fn()
634 if (req->nr_segments + next->nr_segments - 1 > SHpnt->sg_tablesize) { in __scsi_merge_requests_fn()
671 if( count != req->nr_segments + next->nr_segments ) { in __scsi_merge_requests_fn()
680 req->nr_segments += next->nr_segments - 1; in __scsi_merge_requests_fn()
689 if (req->nr_segments + next->nr_segments > max_segments || in __scsi_merge_requests_fn()
690 req->nr_segments + next->nr_segments > SHpnt->sg_tablesize) { in __scsi_merge_requests_fn()
704 req->nr_segments += next->nr_segments; in __scsi_merge_requests_fn()
712 if (req->nr_segments + next->nr_segments > max_segments || in __scsi_merge_requests_fn()
713 req->nr_segments + next->nr_segments > SHpnt->sg_tablesize) { in __scsi_merge_requests_fn()
720 req->nr_segments += next->nr_segments; in __scsi_merge_requests_fn()
816 count = req->nr_segments; in __init_io()