Lines Matching refs:tot_dsds
197 uint16_t tot_dsds) in qla2x00_build_scsi_iocbs_32() argument
226 scsi_for_each_sg(cmd, sg, tot_dsds, i) { in qla2x00_build_scsi_iocbs_32()
255 uint16_t tot_dsds) in qla2x00_build_scsi_iocbs_64() argument
284 scsi_for_each_sg(cmd, sg, tot_dsds, i) { in qla2x00_build_scsi_iocbs_64()
326 uint16_t tot_dsds; in qla2x00_start_scsi() local
342 tot_dsds = 0; in qla2x00_start_scsi()
377 tot_dsds = nseg; in qla2x00_start_scsi()
380 req_cnt = ha->isp_ops->calc_req_entries(tot_dsds); in qla2x00_start_scsi()
404 cmd_pkt->dseg_count = cpu_to_le16(tot_dsds); in qla2x00_start_scsi()
435 ha->isp_ops->build_iocbs(sp, cmd_pkt, tot_dsds); in qla2x00_start_scsi()
464 if (tot_dsds) in qla2x00_start_scsi()
600 uint16_t tot_dsds) in qla24xx_build_scsi_type_6_iocbs() argument
644 while (tot_dsds) { in qla24xx_build_scsi_type_6_iocbs()
645 avail_dsds = (tot_dsds > QLA_DSDS_PER_IOCB) ? in qla24xx_build_scsi_type_6_iocbs()
646 QLA_DSDS_PER_IOCB : tot_dsds; in qla24xx_build_scsi_type_6_iocbs()
647 tot_dsds -= avail_dsds; in qla24xx_build_scsi_type_6_iocbs()
721 uint16_t tot_dsds) in qla24xx_build_scsi_iocbs() argument
765 scsi_for_each_sg(cmd, sg, tot_dsds, i) { in qla24xx_build_scsi_iocbs()
943 uint32_t *dsd, uint16_t tot_dsds) in qla24xx_walk_and_build_sglist_no_difb() argument
951 uint16_t used_dsds = tot_dsds; in qla24xx_walk_and_build_sglist_no_difb()
1040 uint16_t tot_dsds) in qla24xx_walk_and_build_sglist() argument
1049 uint16_t used_dsds = tot_dsds; in qla24xx_walk_and_build_sglist()
1055 scsi_for_each_sg(cmd, sg, tot_dsds, i) { in qla24xx_walk_and_build_sglist()
1120 uint16_t tot_dsds) in qla24xx_walk_and_build_prot_sglist() argument
1130 uint16_t used_dsds = tot_dsds; in qla24xx_walk_and_build_prot_sglist()
1135 scsi_for_each_prot_sg(cmd, sg, tot_dsds, i) { in qla24xx_walk_and_build_prot_sglist()
1212 uint16_t tot_dsds, uint16_t tot_prot_dsds, uint16_t fw_prot_opts) in qla24xx_build_scsi_crc_2_iocbs() argument
1379 crc_ctx_pkt->u.bundling.dseg_count = cpu_to_le16(tot_dsds - in qla24xx_build_scsi_crc_2_iocbs()
1406 cur_dsd, tot_dsds)) in qla24xx_build_scsi_crc_2_iocbs()
1409 (tot_dsds - tot_prot_dsds))) in qla24xx_build_scsi_crc_2_iocbs()
1447 uint16_t tot_dsds; in qla24xx_start_scsi() local
1462 tot_dsds = 0; in qla24xx_start_scsi()
1497 tot_dsds = nseg; in qla24xx_start_scsi()
1498 req_cnt = qla24xx_calc_iocbs(vha, tot_dsds); in qla24xx_start_scsi()
1525 cmd_pkt->dseg_count = cpu_to_le16(tot_dsds); in qla24xx_start_scsi()
1561 qla24xx_build_scsi_iocbs(sp, cmd_pkt, tot_dsds); in qla24xx_start_scsi()
1591 if (tot_dsds) in qla24xx_start_scsi()
1616 uint16_t tot_dsds; in qla24xx_dif_start_scsi() local
1641 tot_dsds = 0; in qla24xx_dif_start_scsi()
1696 tot_dsds = nseg; in qla24xx_dif_start_scsi()
1718 tot_dsds += nseg; in qla24xx_dif_start_scsi()
1758 cmd_pkt->dseg_count = cpu_to_le16(tot_dsds); in qla24xx_dif_start_scsi()
1762 req->ring_ptr, tot_dsds, tot_prot_dsds, fw_prot_opts) != in qla24xx_dif_start_scsi()
2079 uint16_t tot_dsds; in qla2x00_ct_iocb() local
2119 tot_dsds = bsg_job->reply_payload.sg_cnt; in qla2x00_ct_iocb()
2121 for_each_sg(bsg_job->reply_payload.sg_list, sg, tot_dsds, index) { in qla2x00_ct_iocb()
2156 uint16_t tot_dsds; in qla24xx_ct_iocb() local
2192 tot_dsds = bsg_job->reply_payload.sg_cnt; in qla24xx_ct_iocb()
2194 for_each_sg(bsg_job->reply_payload.sg_list, sg, tot_dsds, index) { in qla24xx_ct_iocb()
2239 uint16_t tot_dsds; in qla82xx_start_scsi() local
2259 tot_dsds = 0; in qla82xx_start_scsi()
2298 tot_dsds = nseg; in qla82xx_start_scsi()
2300 if (tot_dsds > ql2xshiftctondsd) { in qla82xx_start_scsi()
2306 more_dsd_lists = qla24xx_calc_dsd_lists(tot_dsds); in qla82xx_start_scsi()
2403 cmd_pkt->dseg_count = cpu_to_le16(tot_dsds); in qla82xx_start_scsi()
2413 if (qla24xx_build_scsi_type_6_iocbs(sp, cmd_pkt, tot_dsds)) in qla82xx_start_scsi()
2472 req_cnt = qla24xx_calc_iocbs(vha, tot_dsds); in qla82xx_start_scsi()
2492 cmd_pkt->dseg_count = cpu_to_le16(tot_dsds); in qla82xx_start_scsi()
2530 qla24xx_build_scsi_iocbs(sp, cmd_pkt, tot_dsds); in qla82xx_start_scsi()
2587 if (tot_dsds) in qla82xx_start_scsi()