Lines Matching refs:seg_cnt
2437 prm->seg_cnt = dma_map_sg(&cmd->qpair->pdev->dev, cmd->sg, in qlt_pci_map_calc_cnt()
2439 if (unlikely(prm->seg_cnt == 0)) in qlt_pci_map_calc_cnt()
2449 if (prm->seg_cnt > QLA_TGT_DATASEGS_PER_CMD_24XX) in qlt_pci_map_calc_cnt()
2450 prm->req_cnt += DIV_ROUND_UP(prm->seg_cnt - in qlt_pci_map_calc_cnt()
2457 prm->seg_cnt = DIV_ROUND_UP(cmd->bufflen, cmd->blk_sz); in qlt_pci_map_calc_cnt()
2458 prm->tot_dsds = prm->seg_cnt; in qlt_pci_map_calc_cnt()
2460 prm->tot_dsds = prm->seg_cnt; in qlt_pci_map_calc_cnt()
2656 while (prm->seg_cnt > 0) { in qlt_load_cont_data_segments()
2678 cnt < QLA_TGT_DATASEGS_PER_CONT_24XX && prm->seg_cnt; in qlt_load_cont_data_segments()
2679 cnt++, prm->seg_cnt--) { in qlt_load_cont_data_segments()
2702 if (prm->seg_cnt) in qlt_load_data_segments()
2703 pkt24->dseg_count = cpu_to_le16(prm->seg_cnt); in qlt_load_data_segments()
2705 if (prm->seg_cnt == 0) { in qlt_load_data_segments()
2716 (cnt < QLA_TGT_DATASEGS_PER_CMD_24XX) && prm->seg_cnt; in qlt_load_data_segments()
2717 cnt++, prm->seg_cnt--) { in qlt_load_data_segments()
2791 prm->seg_cnt = -1; in qlt_pre_xmit_response()