Lines Matching refs:tot_dsds
188 * @tot_dsds: Total number of segments to transfer
191 uint16_t tot_dsds)
219 scsi_for_each_sg(cmd, sg, tot_dsds, i) {
244 * @tot_dsds: Total number of segments to transfer
247 uint16_t tot_dsds)
275 scsi_for_each_sg(cmd, sg, tot_dsds, i) {
332 uint16_t tot_dsds;
346 tot_dsds = 0;
373 tot_dsds = nseg;
376 req_cnt = ha->isp_ops->calc_req_entries(tot_dsds);
401 cmd_pkt->dseg_count = cpu_to_le16(tot_dsds);
413 ha->isp_ops->build_iocbs(sp, cmd_pkt, tot_dsds);
442 if (tot_dsds)
584 uint16_t tot_dsds)
605 tot_dsds == 0) {
627 while (tot_dsds) {
628 avail_dsds = (tot_dsds > QLA_DSDS_PER_IOCB) ?
629 QLA_DSDS_PER_IOCB : tot_dsds;
630 tot_dsds -= avail_dsds;
695 * @tot_dsds: Total number of segments to transfer
700 uint16_t tot_dsds, struct req_que *req)
740 scsi_for_each_sg(cmd, sg, tot_dsds, i) {
890 struct dsd64 *dsd, uint16_t tot_dsds, struct qla_tc_param *tc)
898 uint16_t used_dsds = tot_dsds;
1004 struct dsd64 *dsd, uint16_t tot_dsds, struct qla_tc_param *tc)
1013 uint16_t used_dsds = tot_dsds;
1027 for_each_sg(sgl, sg, tot_dsds, i) {
1084 struct dsd64 *cur_dsd, uint16_t tot_dsds, struct qla_tgt_cmd *tc)
1092 uint used_dsds = tot_dsds;
1122 for_each_sg(sgl, sg, tot_dsds, i) {
1164 for_each_sg(sgl, sg, tot_dsds, i) {
1323 for_each_sg(sgl, sg, tot_dsds, i) {
1385 * @tot_dsds: Total number of segments to transfer
1391 uint16_t tot_dsds, uint16_t tot_prot_dsds, uint16_t fw_prot_opts)
1538 crc_ctx_pkt->u.bundling.dseg_count = cpu_to_le16(tot_dsds -
1564 cur_dsd, tot_dsds, NULL))
1567 (tot_dsds - tot_prot_dsds), NULL))
1602 uint16_t tot_dsds;
1612 tot_dsds = 0;
1638 tot_dsds = nseg;
1639 req_cnt = qla24xx_calc_iocbs(vha, tot_dsds);
1678 cmd_pkt->dseg_count = cpu_to_le16(tot_dsds);
1699 qla24xx_build_scsi_iocbs(sp, cmd_pkt, tot_dsds, req);
1721 if (tot_dsds)
1745 uint16_t tot_dsds;
1769 tot_dsds = 0;
1815 tot_dsds = nseg;
1837 tot_dsds += nseg;
1840 sp->iores.iocb_cnt = qla24xx_calc_iocbs(vha, tot_dsds);
1887 cmd_pkt->dseg_count = cpu_to_le16(tot_dsds);
1891 req->ring_ptr, tot_dsds, tot_prot_dsds, fw_prot_opts) !=
1945 uint16_t tot_dsds;
1959 tot_dsds = 0;
1984 tot_dsds = nseg;
1985 req_cnt = qla24xx_calc_iocbs(vha, tot_dsds);
2024 cmd_pkt->dseg_count = cpu_to_le16(tot_dsds);
2045 qla24xx_build_scsi_iocbs(sp, cmd_pkt, tot_dsds, req);
2067 if (tot_dsds)
2092 uint16_t tot_dsds;
2131 tot_dsds = 0;
2176 tot_dsds = nseg;
2198 tot_dsds += nseg;
2201 sp->iores.iocb_cnt = qla24xx_calc_iocbs(vha, tot_dsds);
2249 cmd_pkt->dseg_count = cpu_to_le16(tot_dsds);
2253 req->ring_ptr, tot_dsds, tot_prot_dsds, fw_prot_opts) !=
3132 uint16_t tot_dsds;
3166 tot_dsds = bsg_job->reply_payload.sg_cnt;
3168 for_each_sg(bsg_job->reply_payload.sg_list, sg, tot_dsds, index) {
3284 uint16_t tot_dsds;
3302 tot_dsds = 0;
3333 tot_dsds = nseg;
3335 if (tot_dsds > ql2xshiftctondsd) {
3341 more_dsd_lists = qla24xx_calc_dsd_lists(tot_dsds);
3437 cmd_pkt->dseg_count = cpu_to_le16(tot_dsds);
3447 if (qla24xx_build_scsi_type_6_iocbs(sp, cmd_pkt, tot_dsds))
3488 req_cnt = qla24xx_calc_iocbs(vha, tot_dsds);
3508 cmd_pkt->dseg_count = cpu_to_le16(tot_dsds);
3532 qla24xx_build_scsi_iocbs(sp, cmd_pkt, tot_dsds, req);
3585 if (tot_dsds)
3837 struct cmd_bidir *cmd_pkt, uint32_t tot_dsds)
3923 qla2x00_start_bidir(srb_t *sp, struct scsi_qla_host *vha, uint32_t tot_dsds)
3960 req_cnt = qla24xx_calc_iocbs(vha, tot_dsds);
3997 qla25xx_build_bidir_iocb(sp, vha, cmd_pkt, tot_dsds);