Lines Matching refs:SCSI_MAX_SG_SEGMENTS
52 #if (SCSI_MAX_SG_SEGMENTS < 32)
53 #error SCSI_MAX_SG_SEGMENTS is too small (must be 32 or greater)
58 #if (SCSI_MAX_SG_SEGMENTS > 32)
60 #if (SCSI_MAX_SG_SEGMENTS > 64)
62 #if (SCSI_MAX_SG_SEGMENTS > 128)
64 #if (SCSI_MAX_SG_SEGMENTS > 256)
65 #error SCSI_MAX_SG_SEGMENTS is too large (256 MAX)
70 SP(SCSI_MAX_SG_SEGMENTS)
558 BUG_ON(nents > SCSI_MAX_SG_SEGMENTS); in scsi_sgtable_index()
586 if (mq && sdb->table.orig_nents <= SCSI_MAX_SG_SEGMENTS) in scsi_free_sgtable()
588 __sg_free_table(&sdb->table, SCSI_MAX_SG_SEGMENTS, mq, scsi_sg_free); in scsi_free_sgtable()
599 if (nents <= SCSI_MAX_SG_SEGMENTS) { in scsi_alloc_sgtable()
607 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()