Lines Matching refs:SHpnt
291 struct Scsi_Host *SHpnt; in recount_segments() local
295 SHpnt = SCpnt->host; in recount_segments()
299 CLUSTERABLE_DEVICE(SHpnt, SDpnt), in recount_segments()
300 SHpnt->unchecked_isa_dma, NULL); in recount_segments()
310 struct Scsi_Host *SHpnt, in scsi_new_mergeable() argument
321 req->nr_segments >= SHpnt->sg_tablesize) in scsi_new_mergeable()
329 struct Scsi_Host *SHpnt, in scsi_new_segment() argument
337 if (req->nr_hw_segments >= SHpnt->sg_tablesize || in scsi_new_segment()
338 req->nr_segments >= SHpnt->sg_tablesize) in scsi_new_segment()
347 struct Scsi_Host *SHpnt, in scsi_new_segment() argument
350 if (req->nr_segments < SHpnt->sg_tablesize && in scsi_new_segment()
407 struct Scsi_Host *SHpnt = SDpnt->host; in __scsi_back_merge_fn() local
417 if ((req->nr_sectors + (bh->b_size >> 9)) > SHpnt->max_sectors) in __scsi_back_merge_fn()
451 return scsi_new_mergeable(q, req, SHpnt, max_segments); in __scsi_back_merge_fn()
453 return scsi_new_segment(q, req, SHpnt, max_segments); in __scsi_back_merge_fn()
466 struct Scsi_Host *SHpnt = SDpnt->host; in __scsi_front_merge_fn() local
476 if ((req->nr_sectors + (bh->b_size >> 9)) > SHpnt->max_sectors) in __scsi_front_merge_fn()
511 return scsi_new_mergeable(q, req, SHpnt, max_segments); in __scsi_front_merge_fn()
513 return scsi_new_segment(q, req, SHpnt, max_segments); in __scsi_front_merge_fn()
602 struct Scsi_Host *SHpnt = SDpnt->host; in __scsi_merge_requests_fn() local
622 req->nr_segments + next->nr_segments - 1 > SHpnt->sg_tablesize) { in __scsi_merge_requests_fn()
625 if (req->nr_hw_segments + next->nr_hw_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()
639 if ((req->nr_sectors + next->nr_sectors) > SHpnt->max_sectors) in __scsi_merge_requests_fn()
690 req->nr_segments + next->nr_segments > SHpnt->sg_tablesize) { in __scsi_merge_requests_fn()
699 } else if (req->nr_hw_segments + next->nr_hw_segments > SHpnt->sg_tablesize) { in __scsi_merge_requests_fn()
713 req->nr_segments + next->nr_segments > SHpnt->sg_tablesize) { in __scsi_merge_requests_fn()
1156 struct Scsi_Host *SHpnt = SDpnt->host; in initialize_merge_fn() local
1171 if (!CLUSTERABLE_DEVICE(SHpnt, SDpnt) && SHpnt->unchecked_isa_dma == 0) { in initialize_merge_fn()
1176 } else if (!CLUSTERABLE_DEVICE(SHpnt, SDpnt) && SHpnt->unchecked_isa_dma != 0) { in initialize_merge_fn()
1181 } else if (CLUSTERABLE_DEVICE(SHpnt, SDpnt) && SHpnt->unchecked_isa_dma == 0) { in initialize_merge_fn()
1186 } else if (CLUSTERABLE_DEVICE(SHpnt, SDpnt) && SHpnt->unchecked_isa_dma != 0) { in initialize_merge_fn()
1197 if (SHpnt->highmem_io && (SDpnt->type == TYPE_DISK)) { in initialize_merge_fn()
1204 bounce_limit = SHpnt->pci_dev->dma_mask; in initialize_merge_fn()