seg_cnt 2316 drivers/net/ethernet/qlogic/qla3xxx.c int seg_cnt, seg = 0; seg_cnt 2319 drivers/net/ethernet/qlogic/qla3xxx.c seg_cnt = tx_cb->seg_count; seg_cnt 2341 drivers/net/ethernet/qlogic/qla3xxx.c if (seg_cnt == 1) { seg_cnt 2357 drivers/net/ethernet/qlogic/qla3xxx.c if ((seg == 2 && seg_cnt > 3) || seg_cnt 2358 drivers/net/ethernet/qlogic/qla3xxx.c (seg == 7 && seg_cnt > 8) || seg_cnt 2359 drivers/net/ethernet/qlogic/qla3xxx.c (seg == 12 && seg_cnt > 13) || seg_cnt 2360 drivers/net/ethernet/qlogic/qla3xxx.c (seg == 17 && seg_cnt > 18)) { seg_cnt 2423 drivers/net/ethernet/qlogic/qla3xxx.c if ((seg == 2 && seg_cnt > 3) || seg_cnt 2424 drivers/net/ethernet/qlogic/qla3xxx.c (seg == 7 && seg_cnt > 8) || seg_cnt 2425 drivers/net/ethernet/qlogic/qla3xxx.c (seg == 12 && seg_cnt > 13) || seg_cnt 2426 drivers/net/ethernet/qlogic/qla3xxx.c (seg == 17 && seg_cnt > 18)) { seg_cnt 97 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c u8 seg_cnt; seg_cnt 745 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c tx_msghdr->seg_cnt = 1; seg_cnt 1340 drivers/scsi/lpfc/lpfc_nvme.c lpfc_ncmd->seg_cnt = nCmd->sg_cnt; seg_cnt 1341 drivers/scsi/lpfc/lpfc_nvme.c if (lpfc_ncmd->seg_cnt > lpfc_nvme_template.max_sgl_segments) { seg_cnt 1347 drivers/scsi/lpfc/lpfc_nvme.c lpfc_ncmd->seg_cnt); seg_cnt 1348 drivers/scsi/lpfc/lpfc_nvme.c lpfc_ncmd->seg_cnt = 0; seg_cnt 1368 drivers/scsi/lpfc/lpfc_nvme.c lpfc_ncmd->seg_cnt = 0; seg_cnt 1392 drivers/scsi/lpfc/lpfc_nvme.c lpfc_ncmd->seg_cnt = 0; seg_cnt 1460 drivers/scsi/lpfc/lpfc_nvme.c lpfc_ncmd->seg_cnt = 0; seg_cnt 664 drivers/scsi/lpfc/lpfc_scsi.c lpfc_cmd->seg_cnt = 0; seg_cnt 761 drivers/scsi/lpfc/lpfc_scsi.c psb->seg_cnt = 0; seg_cnt 787 drivers/scsi/lpfc/lpfc_scsi.c psb->seg_cnt = 0; seg_cnt 868 drivers/scsi/lpfc/lpfc_scsi.c lpfc_cmd->seg_cnt = nseg; seg_cnt 869 drivers/scsi/lpfc/lpfc_scsi.c if (lpfc_cmd->seg_cnt > phba->cfg_sg_seg_cnt) { seg_cnt 874 drivers/scsi/lpfc/lpfc_scsi.c lpfc_cmd->seg_cnt); seg_cnt 875 drivers/scsi/lpfc/lpfc_scsi.c WARN_ON_ONCE(lpfc_cmd->seg_cnt > phba->cfg_sg_seg_cnt); seg_cnt 876 drivers/scsi/lpfc/lpfc_scsi.c lpfc_cmd->seg_cnt = 0; seg_cnt 2039 drivers/scsi/lpfc/lpfc_scsi.c lpfc_cmd->seg_cnt = 0; seg_cnt 2550 drivers/scsi/lpfc/lpfc_scsi.c lpfc_cmd->seg_cnt = datasegcnt; seg_cnt 2553 drivers/scsi/lpfc/lpfc_scsi.c if (lpfc_cmd->seg_cnt > phba->cfg_sg_seg_cnt) { seg_cnt 2554 drivers/scsi/lpfc/lpfc_scsi.c WARN_ON_ONCE(lpfc_cmd->seg_cnt > phba->cfg_sg_seg_cnt); seg_cnt 2565 drivers/scsi/lpfc/lpfc_scsi.c if ((lpfc_cmd->seg_cnt + 2) > phba->cfg_total_seg_cnt) { seg_cnt 2618 drivers/scsi/lpfc/lpfc_scsi.c lpfc_cmd->seg_cnt = 0; seg_cnt 2657 drivers/scsi/lpfc/lpfc_scsi.c if (lpfc_cmd->seg_cnt) seg_cnt 2667 drivers/scsi/lpfc/lpfc_scsi.c lpfc_cmd->seg_cnt, lpfc_cmd->prot_seg_cnt, seg_cnt 2671 drivers/scsi/lpfc/lpfc_scsi.c lpfc_cmd->seg_cnt = 0; seg_cnt 3085 drivers/scsi/lpfc/lpfc_scsi.c lpfc_cmd->seg_cnt = nseg; seg_cnt 3087 drivers/scsi/lpfc/lpfc_scsi.c lpfc_cmd->seg_cnt > phba->cfg_sg_seg_cnt) { seg_cnt 3092 drivers/scsi/lpfc/lpfc_scsi.c lpfc_cmd->seg_cnt); seg_cnt 3093 drivers/scsi/lpfc/lpfc_scsi.c WARN_ON_ONCE(lpfc_cmd->seg_cnt > phba->cfg_sg_seg_cnt); seg_cnt 3094 drivers/scsi/lpfc/lpfc_scsi.c lpfc_cmd->seg_cnt = 0; seg_cnt 3133 drivers/scsi/lpfc/lpfc_scsi.c lpfc_cmd->seg_cnt = 0; seg_cnt 3294 drivers/scsi/lpfc/lpfc_scsi.c lpfc_cmd->seg_cnt = datasegcnt; seg_cnt 3297 drivers/scsi/lpfc/lpfc_scsi.c if (lpfc_cmd->seg_cnt > phba->cfg_sg_seg_cnt && seg_cnt 3299 drivers/scsi/lpfc/lpfc_scsi.c WARN_ON_ONCE(lpfc_cmd->seg_cnt > phba->cfg_sg_seg_cnt); seg_cnt 3309 drivers/scsi/lpfc/lpfc_scsi.c if (((lpfc_cmd->seg_cnt + 1) > seg_cnt 3367 drivers/scsi/lpfc/lpfc_scsi.c lpfc_cmd->seg_cnt = 0; seg_cnt 3418 drivers/scsi/lpfc/lpfc_scsi.c if (lpfc_cmd->seg_cnt) seg_cnt 3428 drivers/scsi/lpfc/lpfc_scsi.c lpfc_cmd->seg_cnt, lpfc_cmd->prot_seg_cnt, seg_cnt 3432 drivers/scsi/lpfc/lpfc_scsi.c lpfc_cmd->seg_cnt = 0; seg_cnt 3586 drivers/scsi/lpfc/lpfc_scsi.c if (psb->seg_cnt > 0) seg_cnt 397 drivers/scsi/lpfc/lpfc_sli.h uint32_t seg_cnt; /* Number of scatter-gather segments returned by seg_cnt 2748 drivers/scsi/qla1280.c int seg_cnt; seg_cnt 2755 drivers/scsi/qla1280.c seg_cnt = scsi_dma_map(cmd); seg_cnt 2756 drivers/scsi/qla1280.c if (seg_cnt > 0) { seg_cnt 2757 drivers/scsi/qla1280.c if (seg_cnt > 2) { seg_cnt 2758 drivers/scsi/qla1280.c req_cnt += (seg_cnt - 2) / 5; seg_cnt 2759 drivers/scsi/qla1280.c if ((seg_cnt - 2) % 5) seg_cnt 2762 drivers/scsi/qla1280.c } else if (seg_cnt < 0) { seg_cnt 2778 drivers/scsi/qla1280.c ha->req_q_cnt, seg_cnt); seg_cnt 2846 drivers/scsi/qla1280.c pkt->dseg_count = cpu_to_le16(seg_cnt); seg_cnt 2851 drivers/scsi/qla1280.c if (seg_cnt) { /* If data transfer. */ seg_cnt 2853 drivers/scsi/qla1280.c int remseg = seg_cnt; seg_cnt 2861 drivers/scsi/qla1280.c for_each_sg(sg, s, seg_cnt, cnt) { seg_cnt 2888 drivers/scsi/qla1280.c "remains\n", seg_cnt); seg_cnt 3001 drivers/scsi/qla1280.c int seg_cnt; seg_cnt 3011 drivers/scsi/qla1280.c seg_cnt = scsi_dma_map(cmd); seg_cnt 3012 drivers/scsi/qla1280.c if (seg_cnt) { seg_cnt 3017 drivers/scsi/qla1280.c if (seg_cnt > 4) { seg_cnt 3018 drivers/scsi/qla1280.c req_cnt += (seg_cnt - 4) / 7; seg_cnt 3019 drivers/scsi/qla1280.c if ((seg_cnt - 4) % 7) seg_cnt 3023 drivers/scsi/qla1280.c cmd, seg_cnt, req_cnt); seg_cnt 3024 drivers/scsi/qla1280.c } else if (seg_cnt < 0) { seg_cnt 3040 drivers/scsi/qla1280.c ha->req_q_cnt, seg_cnt); seg_cnt 3101 drivers/scsi/qla1280.c pkt->dseg_count = cpu_to_le16(seg_cnt); seg_cnt 3106 drivers/scsi/qla1280.c if (seg_cnt) { seg_cnt 3108 drivers/scsi/qla1280.c int remseg = seg_cnt; seg_cnt 3119 drivers/scsi/qla1280.c for_each_sg(sg, s, seg_cnt, cnt) { seg_cnt 3134 drivers/scsi/qla1280.c "...seg_cnt=0x%x remains\n", seg_cnt); seg_cnt 2391 drivers/scsi/qla2xxx/qla_target.c prm->seg_cnt = dma_map_sg(&cmd->qpair->pdev->dev, cmd->sg, seg_cnt 2393 drivers/scsi/qla2xxx/qla_target.c if (unlikely(prm->seg_cnt == 0)) seg_cnt 2403 drivers/scsi/qla2xxx/qla_target.c if (prm->seg_cnt > QLA_TGT_DATASEGS_PER_CMD_24XX) seg_cnt 2404 drivers/scsi/qla2xxx/qla_target.c prm->req_cnt += DIV_ROUND_UP(prm->seg_cnt - seg_cnt 2411 drivers/scsi/qla2xxx/qla_target.c prm->seg_cnt = DIV_ROUND_UP(cmd->bufflen, cmd->blk_sz); seg_cnt 2412 drivers/scsi/qla2xxx/qla_target.c prm->tot_dsds = prm->seg_cnt; seg_cnt 2414 drivers/scsi/qla2xxx/qla_target.c prm->tot_dsds = prm->seg_cnt; seg_cnt 2600 drivers/scsi/qla2xxx/qla_target.c while (prm->seg_cnt > 0) { seg_cnt 2622 drivers/scsi/qla2xxx/qla_target.c cnt < QLA_TGT_DATASEGS_PER_CONT_24XX && prm->seg_cnt; seg_cnt 2623 drivers/scsi/qla2xxx/qla_target.c cnt++, prm->seg_cnt--) { seg_cnt 2646 drivers/scsi/qla2xxx/qla_target.c if (prm->seg_cnt) seg_cnt 2647 drivers/scsi/qla2xxx/qla_target.c pkt24->dseg_count = cpu_to_le16(prm->seg_cnt); seg_cnt 2649 drivers/scsi/qla2xxx/qla_target.c if (prm->seg_cnt == 0) { seg_cnt 2660 drivers/scsi/qla2xxx/qla_target.c (cnt < QLA_TGT_DATASEGS_PER_CMD_24XX) && prm->seg_cnt; seg_cnt 2661 drivers/scsi/qla2xxx/qla_target.c cnt++, prm->seg_cnt--) { seg_cnt 2735 drivers/scsi/qla2xxx/qla_target.c prm->seg_cnt = -1; seg_cnt 972 drivers/scsi/qla2xxx/qla_target.h int seg_cnt;