Home
last modified time | relevance | path

Searched refs:seg_cnt (Results 1 – 7 of 7) sorted by relevance

/drivers/scsi/
Dqla1280.c2797 int seg_cnt; in qla1280_64bit_start_scsi() local
2804 seg_cnt = scsi_dma_map(cmd); in qla1280_64bit_start_scsi()
2805 if (seg_cnt > 0) { in qla1280_64bit_start_scsi()
2806 if (seg_cnt > 2) { in qla1280_64bit_start_scsi()
2807 req_cnt += (seg_cnt - 2) / 5; in qla1280_64bit_start_scsi()
2808 if ((seg_cnt - 2) % 5) in qla1280_64bit_start_scsi()
2811 } else if (seg_cnt < 0) { in qla1280_64bit_start_scsi()
2827 ha->req_q_cnt, seg_cnt); in qla1280_64bit_start_scsi()
2895 pkt->dseg_count = cpu_to_le16(seg_cnt); in qla1280_64bit_start_scsi()
2900 if (seg_cnt) { /* If data transfer. */ in qla1280_64bit_start_scsi()
[all …]
/drivers/scsi/lpfc/
Dlpfc_scsi.c1193 psb->seg_cnt = 0; in lpfc_release_scsi_buf_s3()
1219 psb->seg_cnt = 0; in lpfc_release_scsi_buf_s4()
1303 lpfc_cmd->seg_cnt = nseg; in lpfc_scsi_prep_dma_buf_s3()
1304 if (lpfc_cmd->seg_cnt > phba->cfg_sg_seg_cnt) { in lpfc_scsi_prep_dma_buf_s3()
1309 lpfc_cmd->seg_cnt); in lpfc_scsi_prep_dma_buf_s3()
1310 lpfc_cmd->seg_cnt = 0; in lpfc_scsi_prep_dma_buf_s3()
2858 lpfc_cmd->seg_cnt = datasegcnt; in lpfc_bg_scsi_prep_dma_buf_s3()
2861 if (lpfc_cmd->seg_cnt > phba->cfg_sg_seg_cnt) in lpfc_bg_scsi_prep_dma_buf_s3()
2870 if ((lpfc_cmd->seg_cnt + 2) > phba->cfg_total_seg_cnt) in lpfc_bg_scsi_prep_dma_buf_s3()
2915 lpfc_cmd->seg_cnt = 0; in lpfc_bg_scsi_prep_dma_buf_s3()
[all …]
Dlpfc_scsi.h141 uint32_t seg_cnt; /* Number of scatter-gather segments returned by member
/drivers/net/ethernet/qlogic/
Dqla3xxx.c2318 int seg_cnt, seg = 0; in ql_send_map() local
2321 seg_cnt = tx_cb->seg_count; in ql_send_map()
2343 if (seg_cnt == 1) { in ql_send_map()
2359 if ((seg == 2 && seg_cnt > 3) || in ql_send_map()
2360 (seg == 7 && seg_cnt > 8) || in ql_send_map()
2361 (seg == 12 && seg_cnt > 13) || in ql_send_map()
2362 (seg == 17 && seg_cnt > 18)) { in ql_send_map()
2425 if ((seg == 2 && seg_cnt > 3) || in ql_send_map()
2426 (seg == 7 && seg_cnt > 8) || in ql_send_map()
2427 (seg == 12 && seg_cnt > 13) || in ql_send_map()
[all …]
/drivers/scsi/qla2xxx/
Dqla_target.c1611 prm->seg_cnt = pci_map_sg(prm->tgt->ha->pdev, cmd->sg, in qlt_pci_map_calc_cnt()
1613 if (unlikely(prm->seg_cnt == 0)) in qlt_pci_map_calc_cnt()
1623 if (prm->seg_cnt > prm->tgt->datasegs_per_cmd) in qlt_pci_map_calc_cnt()
1624 prm->req_cnt += DIV_ROUND_UP(prm->seg_cnt - in qlt_pci_map_calc_cnt()
1631 prm->seg_cnt = DIV_ROUND_UP(cmd->bufflen, cmd->blk_sz); in qlt_pci_map_calc_cnt()
1632 prm->tot_dsds = prm->seg_cnt; in qlt_pci_map_calc_cnt()
1634 prm->tot_dsds = prm->seg_cnt; in qlt_pci_map_calc_cnt()
1814 while (prm->seg_cnt > 0) { in qlt_load_cont_data_segments()
1843 cnt < prm->tgt->datasegs_per_cont && prm->seg_cnt; in qlt_load_cont_data_segments()
1844 cnt++, prm->seg_cnt--) { in qlt_load_cont_data_segments()
[all …]
Dqla_target.h1035 int seg_cnt; member
/drivers/net/wireless/brcm80211/brcmfmac/
Dmsgbuf.c105 u8 seg_cnt; member
743 tx_msghdr->seg_cnt = 1; in brcmf_msgbuf_txflow()