Lines Matching refs:SCSI_MAX_SG_SEGMENTS
53 #if (SCSI_MAX_SG_SEGMENTS < 32)
54 #error SCSI_MAX_SG_SEGMENTS is too small (must be 32 or greater)
59 #if (SCSI_MAX_SG_SEGMENTS > 32)
61 #if (SCSI_MAX_SG_SEGMENTS > 64)
63 #if (SCSI_MAX_SG_SEGMENTS > 128)
65 #if (SCSI_MAX_SG_SEGMENTS > 256)
66 #error SCSI_MAX_SG_SEGMENTS is too large (256 MAX)
71 SP(SCSI_MAX_SG_SEGMENTS)
559 BUG_ON(nents > SCSI_MAX_SG_SEGMENTS); in scsi_sgtable_index()
587 if (mq && sdb->table.orig_nents <= SCSI_MAX_SG_SEGMENTS) in scsi_free_sgtable()
589 __sg_free_table(&sdb->table, SCSI_MAX_SG_SEGMENTS, mq, scsi_sg_free); in scsi_free_sgtable()
600 if (nents <= SCSI_MAX_SG_SEGMENTS) { in scsi_alloc_sgtable()
608 ret = __sg_alloc_table(&sdb->table, nents, SCSI_MAX_SG_SEGMENTS, in scsi_alloc_sgtable()
1936 shost->sg_tablesize, SCSI_MAX_SG_SEGMENTS) * in scsi_mq_prep_fn()
2191 if (tbl_size > SCSI_MAX_SG_SEGMENTS) in scsi_mq_setup_tags()
2192 tbl_size = SCSI_MAX_SG_SEGMENTS; in scsi_mq_setup_tags()