Home
last modified time | relevance | path

Searched refs:nfrags (Results 1 – 20 of 20) sorted by relevance

/drivers/net/ethernet/pasemi/
Dpasemi_mac.c243 const int nfrags, in pasemi_mac_unmap_tx_skb() argument
252 for (f = 0; f < nfrags; f++) { in pasemi_mac_unmap_tx_skb()
262 return (nfrags + 3) & ~1; in pasemi_mac_unmap_tx_skb()
513 int freed, nfrags; in pasemi_mac_free_tx_resources() local
526 nfrags = skb_shinfo(info->skb)->nr_frags; in pasemi_mac_free_tx_resources()
527 for (j = 0; j <= nfrags; j++) in pasemi_mac_free_tx_resources()
530 freed = pasemi_mac_unmap_tx_skb(mac, nfrags, in pasemi_mac_free_tx_resources()
1346 const int nfrags = skb_shinfo(skb)->nr_frags; in pasemi_mac_queue_csdesc() local
1380 for (i = 1; i <= nfrags; i++) in pasemi_mac_queue_csdesc()
1432 int i, nfrags; in pasemi_mac_start_tx() local
[all …]
/drivers/target/iscsi/cxgbit/
Dcxgbit_main.c222 for (i = 1; i < gl->nfrags; i++) in cxgbit_copy_frags()
228 skb_shinfo(skb)->nr_frags += gl->nfrags; in cxgbit_copy_frags()
231 get_page(gl->frags[gl->nfrags - 1].page); in cxgbit_copy_frags()
253 if (unlikely(gl->nfrags > 1)) in cxgbit_lro_add_packet_gl()
265 pdu_cb->nr_dfrags = gl->nfrags; in cxgbit_lro_add_packet_gl()
281 if (unlikely(gl->nfrags > 1)) in cxgbit_lro_add_packet_gl()
301 pdu_cb->frags += gl->nfrags; in cxgbit_lro_add_packet_gl()
406 if ((gl && (((skb_shinfo(skb)->nr_frags + gl->nfrags) > in cxgbit_lro_receive()
/drivers/net/ethernet/chelsio/cxgb4vf/
Dsge.c310 unsigned int nfrags = skb_shinfo(skb)->nr_frags; in unmap_sgl() local
318 nfrags--; in unmap_sgl()
325 for (p = sgl->sge; nfrags >= 2; nfrags -= 2) { in unmap_sgl()
354 if (nfrags) { in unmap_sgl()
908 unsigned int nfrags = si->nr_frags; in write_sgl() local
915 nfrags++; in write_sgl()
922 ULPTX_NSGE_V(nfrags)); in write_sgl()
923 if (likely(--nfrags == 0)) in write_sgl()
932 for (i = (nfrags != si->nr_frags); nfrags >= 2; nfrags -= 2, to++) { in write_sgl()
938 if (nfrags) { in write_sgl()
[all …]
Dadapter.h155 unsigned int nfrags; /* # of fragments */ member
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dktls.h98 mlx5e_ktls_dumps_num_wqebbs(struct mlx5e_txqsq *sq, unsigned int nfrags, in mlx5e_ktls_dumps_num_wqebbs() argument
105 (nfrags + DIV_ROUND_UP(sync_len, sq->hw_mtu)); in mlx5e_ktls_dumps_num_wqebbs()
/drivers/net/ethernet/pensando/ionic/
Dionic_txrx.c558 unsigned int nfrags; in ionic_tx_tso() local
576 nfrags = skb_shinfo(skb)->nr_frags; in ionic_tx_tso()
620 if (nfrags > 0 && frag_left > 0) in ionic_tx_tso()
622 done = (nfrags == 0 && left == 0); in ionic_tx_tso()
642 nfrags--; in ionic_tx_tso()
659 if (nfrags > 0 && frag_left > 0) in ionic_tx_tso()
661 done = (nfrags == 0 && left == 0); in ionic_tx_tso()
682 if (nfrags > 0 && frag_left > 0) in ionic_tx_tso()
684 done = (nfrags == 0 && left == 0); in ionic_tx_tso()
/drivers/net/ethernet/google/gve/
Dgve_tx.c79 int nfrags = 0; in gve_tx_alloc_fifo() local
93 nfrags++; in gve_tx_alloc_fifo()
103 nfrags++; in gve_tx_alloc_fifo()
115 iov[nfrags - 1].iov_padding = padding; in gve_tx_alloc_fifo()
122 return nfrags; in gve_tx_alloc_fifo()
/drivers/net/ethernet/chelsio/cxgb/
Dsge.c1116 unsigned int nfrags = skb_shinfo(skb)->nr_frags; in compute_large_page_tx_descs() local
1122 for (i = 0; nfrags--; i++) { in compute_large_page_tx_descs()
1164 unsigned int nfrags, in write_large_page_tx_descs() argument
1174 *gen, nfrags == 0 && *desc_len == 0); in write_large_page_tx_descs()
1207 nfrags = skb_shinfo(skb)->nr_frags; in write_tx_descs() local
1219 V_CMD_EOP(nfrags == 0 && desc_len <= SGE_TX_DESC_MAX_PLEN) | in write_tx_descs()
1243 nfrags, q); in write_tx_descs()
1247 nfrags == 0); in write_tx_descs()
1254 for (i = 0; nfrags--; i++) { in write_tx_descs()
1272 nfrags, q); in write_tx_descs()
[all …]
/drivers/net/ethernet/chelsio/cxgb4/
Dsge.c305 unsigned int nfrags = skb_shinfo(skb)->nr_frags; in unmap_sgl() local
313 nfrags--; in unmap_sgl()
320 for (p = sgl->sge; nfrags >= 2; nfrags -= 2) { in unmap_sgl()
348 if (nfrags) { in unmap_sgl()
887 unsigned int nfrags = si->nr_frags; in cxgb4_write_sgl() local
894 nfrags++; in cxgb4_write_sgl()
901 ULPTX_NSGE_V(nfrags)); in cxgb4_write_sgl()
902 if (likely(--nfrags == 0)) in cxgb4_write_sgl()
911 for (i = (nfrags != si->nr_frags); nfrags >= 2; nfrags -= 2, to++) { in cxgb4_write_sgl()
917 if (nfrags) { in cxgb4_write_sgl()
[all …]
Dcxgb4.h658 unsigned int nfrags; /* # of fragments */ member
/drivers/net/ethernet/cortina/
Dgemini.c619 unsigned short nfrags; in gmac_clean_txq() local
658 nfrags = word0.bits.desc_count - 1; in gmac_clean_txq()
659 if (nfrags) { in gmac_clean_txq()
660 if (nfrags >= TX_MAX_FRAGS) in gmac_clean_txq()
661 nfrags = TX_MAX_FRAGS - 1; in gmac_clean_txq()
664 port->tx_frag_stats[nfrags]++; in gmac_clean_txq()
1236 int txq_num, nfrags; in gmac_start_xmit() local
1246 nfrags = skb_shinfo(skb)->nr_frags; in gmac_start_xmit()
1255 if (d < nfrags + 2) { in gmac_start_xmit()
1260 if (d < nfrags + 2) { in gmac_start_xmit()
[all …]
/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_main.c2914 int nfrags = skb_shinfo(skb)->nr_frags; in stmmac_tso_xmit() local
3001 stmmac_tso_allocator(priv, des, tmp_pay_len, (nfrags == 0), queue); in stmmac_tso_xmit()
3004 for (i = 0; i < nfrags; i++) { in stmmac_tso_xmit()
3014 (i == nfrags - 1), queue); in stmmac_tso_xmit()
3027 tx_q->tx_count_frames += nfrags + 1; in stmmac_tso_xmit()
3054 priv->xstats.tx_tso_nfrags += nfrags; in stmmac_tso_xmit()
3095 tx_q->cur_tx, first, nfrags); in stmmac_tso_xmit()
3132 int nfrags = skb_shinfo(skb)->nr_frags; in stmmac_xmit() local
3152 if (unlikely(stmmac_tx_avail(priv, queue) < nfrags + 1)) { in stmmac_xmit()
3194 for (i = 0; i < nfrags; i++) { in stmmac_xmit()
[all …]
/drivers/infiniband/hw/qib/
Dqib_user_sdma.c826 int nfrags = 0; in qib_user_sdma_queue_pkts() local
891 nfrags++; in qib_user_sdma_queue_pkts()
983 if (nfrags) { in qib_user_sdma_queue_pkts()
986 nfrags, npages); in qib_user_sdma_queue_pkts()
/drivers/net/ethernet/faraday/
Dftgmac100.c708 unsigned int pointer, nfrags, len, i, j; in ftgmac100_hard_start_xmit() local
728 nfrags = skb_shinfo(skb)->nr_frags; in ftgmac100_hard_start_xmit()
765 if (nfrags == 0) in ftgmac100_hard_start_xmit()
774 for (i = 0; i < nfrags; i++) { in ftgmac100_hard_start_xmit()
791 if (i == (nfrags - 1)) in ftgmac100_hard_start_xmit()
/drivers/net/ethernet/chelsio/cxgb3/
Dsge.c241 int nfrags, frag_idx, curflit, j = d->addr_idx; in unmap_skb() local
253 nfrags = skb_shinfo(skb)->nr_frags; in unmap_skb()
255 while (frag_idx < nfrags && curflit < WR_FLITS) { in unmap_skb()
268 if (frag_idx < nfrags) { /* SGL continues into next Tx descriptor */ in unmap_skb()
1015 unsigned int i, j = 0, k = 0, nfrags; in write_sgl() local
1022 nfrags = skb_shinfo(skb)->nr_frags; in write_sgl()
1023 for (i = 0; i < nfrags; i++) { in write_sgl()
1034 return ((nfrags + (len != 0)) * 3) / 2 + j; in write_sgl()
/drivers/net/ethernet/calxeda/
Dxgmac.c1080 int nfrags = skb_shinfo(skb)->nr_frags; in xgmac_xmit() local
1104 for (i = 0; i < nfrags; i++) { in xgmac_xmit()
1119 if (i < (nfrags - 1)) in xgmac_xmit()
/drivers/net/ethernet/mediatek/
Dmtk_eth_soc.c1051 int i, nfrags; in mtk_cal_txd_req() local
1054 nfrags = 1; in mtk_cal_txd_req()
1058 nfrags += DIV_ROUND_UP(skb_frag_size(frag), in mtk_cal_txd_req()
1062 nfrags += skb_shinfo(skb)->nr_frags; in mtk_cal_txd_req()
1065 return nfrags; in mtk_cal_txd_req()
/drivers/net/ethernet/altera/
Daltera_tse_main.c563 int nfrags = skb_shinfo(skb)->nr_frags; in tse_start_xmit() local
570 if (unlikely(tse_tx_avail(priv) < nfrags + 1)) { in tse_start_xmit()
/drivers/net/ethernet/ibm/ehea/
Dehea_main.c1642 int nfrags, sg1entry_contains_frag_data, i; in write_swqe2_data() local
1644 nfrags = skb_shinfo(skb)->nr_frags; in write_swqe2_data()
1652 if (nfrags > 0) { in write_swqe2_data()
1666 for (i = sg1entry_contains_frag_data; i < nfrags; i++) { in write_swqe2_data()
/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Dmain.c6211 uint nfrags, uint queue, uint next_frag_len) in brcms_c_d11hdrs_mac80211() argument