Lines Matching refs:seg_cnt
2744 int seg_cnt; in qla1280_64bit_start_scsi() local
2751 seg_cnt = scsi_dma_map(cmd); in qla1280_64bit_start_scsi()
2752 if (seg_cnt > 0) { in qla1280_64bit_start_scsi()
2753 if (seg_cnt > 2) { in qla1280_64bit_start_scsi()
2754 req_cnt += (seg_cnt - 2) / 5; in qla1280_64bit_start_scsi()
2755 if ((seg_cnt - 2) % 5) in qla1280_64bit_start_scsi()
2758 } else if (seg_cnt < 0) { in qla1280_64bit_start_scsi()
2774 ha->req_q_cnt, seg_cnt); in qla1280_64bit_start_scsi()
2842 pkt->dseg_count = cpu_to_le16(seg_cnt); in qla1280_64bit_start_scsi()
2847 if (seg_cnt) { /* If data transfer. */ in qla1280_64bit_start_scsi()
2849 int remseg = seg_cnt; in qla1280_64bit_start_scsi()
2857 for_each_sg(sg, s, seg_cnt, cnt) { in qla1280_64bit_start_scsi()
2884 "remains\n", seg_cnt); in qla1280_64bit_start_scsi()
2997 int seg_cnt; in qla1280_32bit_start_scsi() local
3007 seg_cnt = scsi_dma_map(cmd); in qla1280_32bit_start_scsi()
3008 if (seg_cnt) { in qla1280_32bit_start_scsi()
3013 if (seg_cnt > 4) { in qla1280_32bit_start_scsi()
3014 req_cnt += (seg_cnt - 4) / 7; in qla1280_32bit_start_scsi()
3015 if ((seg_cnt - 4) % 7) in qla1280_32bit_start_scsi()
3019 cmd, seg_cnt, req_cnt); in qla1280_32bit_start_scsi()
3020 } else if (seg_cnt < 0) { in qla1280_32bit_start_scsi()
3036 ha->req_q_cnt, seg_cnt); in qla1280_32bit_start_scsi()
3097 pkt->dseg_count = cpu_to_le16(seg_cnt); in qla1280_32bit_start_scsi()
3102 if (seg_cnt) { in qla1280_32bit_start_scsi()
3104 int remseg = seg_cnt; in qla1280_32bit_start_scsi()
3115 for_each_sg(sg, s, seg_cnt, cnt) { in qla1280_32bit_start_scsi()
3130 "...seg_cnt=0x%x remains\n", seg_cnt); in qla1280_32bit_start_scsi()