Lines Matching refs:total_cmds
2713 int scsi_cmds, total_cmds = requested_cmds_max; in iscsi_host_get_max_scsi_cmds() local
2716 if (!total_cmds) in iscsi_host_get_max_scsi_cmds()
2717 total_cmds = ISCSI_DEF_XMIT_CMDS_MAX; in iscsi_host_get_max_scsi_cmds()
2723 if (total_cmds < ISCSI_TOTAL_CMDS_MIN) { in iscsi_host_get_max_scsi_cmds()
2725 total_cmds, ISCSI_TOTAL_CMDS_MIN); in iscsi_host_get_max_scsi_cmds()
2729 if (total_cmds > ISCSI_TOTAL_CMDS_MAX) { in iscsi_host_get_max_scsi_cmds()
2733 total_cmds = ISCSI_TOTAL_CMDS_MAX; in iscsi_host_get_max_scsi_cmds()
2736 if (!is_power_of_2(total_cmds)) { in iscsi_host_get_max_scsi_cmds()
2737 total_cmds = rounddown_pow_of_two(total_cmds); in iscsi_host_get_max_scsi_cmds()
2738 if (total_cmds < ISCSI_TOTAL_CMDS_MIN) { in iscsi_host_get_max_scsi_cmds()
2744 requested_cmds_max, total_cmds); in iscsi_host_get_max_scsi_cmds()
2747 scsi_cmds = total_cmds - ISCSI_MGMT_CMDS_MAX; in iscsi_host_get_max_scsi_cmds()
2749 total_cmds = shost->can_queue; in iscsi_host_get_max_scsi_cmds()