/drivers/net/ethernet/pasemi/ |
D | pasemi_mac.c | 256 const int nfrags, in pasemi_mac_unmap_tx_skb() argument 265 for (f = 0; f < nfrags; f++) { in pasemi_mac_unmap_tx_skb() 275 return (nfrags + 3) & ~1; in pasemi_mac_unmap_tx_skb() 524 int freed, nfrags; in pasemi_mac_free_tx_resources() local 537 nfrags = skb_shinfo(info->skb)->nr_frags; in pasemi_mac_free_tx_resources() 538 for (j = 0; j <= nfrags; j++) in pasemi_mac_free_tx_resources() 541 freed = pasemi_mac_unmap_tx_skb(mac, nfrags, in pasemi_mac_free_tx_resources() 1358 const int nfrags = skb_shinfo(skb)->nr_frags; in pasemi_mac_queue_csdesc() local 1392 for (i = 1; i <= nfrags; i++) in pasemi_mac_queue_csdesc() 1445 int i, nfrags; in pasemi_mac_start_tx() local [all …]
|
/drivers/target/iscsi/cxgbit/ |
D | cxgbit_main.c | 225 for (i = 1; i < gl->nfrags; i++) in cxgbit_copy_frags() 231 skb_shinfo(skb)->nr_frags += gl->nfrags; in cxgbit_copy_frags() 234 get_page(gl->frags[gl->nfrags - 1].page); in cxgbit_copy_frags() 256 if (unlikely(gl->nfrags > 1)) in cxgbit_lro_add_packet_gl() 268 pdu_cb->nr_dfrags = gl->nfrags; in cxgbit_lro_add_packet_gl() 284 if (unlikely(gl->nfrags > 1)) in cxgbit_lro_add_packet_gl() 304 pdu_cb->frags += gl->nfrags; in cxgbit_lro_add_packet_gl() 409 if ((gl && (((skb_shinfo(skb)->nr_frags + gl->nfrags) > in cxgbit_lro_receive()
|
/drivers/net/ethernet/chelsio/cxgb4vf/ |
D | sge.c | 310 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() 913 unsigned int nfrags = si->nr_frags; in write_sgl() local 920 nfrags++; in write_sgl() 927 ULPTX_NSGE_V(nfrags)); in write_sgl() 928 if (likely(--nfrags == 0)) in write_sgl() 937 for (i = (nfrags != si->nr_frags); nfrags >= 2; nfrags -= 2, to++) { in write_sgl() 943 if (nfrags) { in write_sgl() [all …]
|
D | adapter.h | 154 unsigned int nfrags; /* # of fragments */ member
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | sge.c | 314 unsigned int nfrags = skb_shinfo(skb)->nr_frags; in unmap_sgl() local 322 nfrags--; in unmap_sgl() 329 for (p = sgl->sge; nfrags >= 2; nfrags -= 2) { in unmap_sgl() 357 if (nfrags) { in unmap_sgl() 859 unsigned int nfrags = si->nr_frags; in write_sgl() local 866 nfrags++; in write_sgl() 873 ULPTX_NSGE_V(nfrags)); in write_sgl() 874 if (likely(--nfrags == 0)) in write_sgl() 883 for (i = (nfrags != si->nr_frags); nfrags >= 2; nfrags -= 2, to++) { in write_sgl() 889 if (nfrags) { in write_sgl() [all …]
|
D | cxgb4.h | 585 unsigned int nfrags; /* # of fragments */ member
|
/drivers/net/ethernet/chelsio/cxgb/ |
D | sge.c | 1117 unsigned int nfrags = skb_shinfo(skb)->nr_frags; in compute_large_page_tx_descs() local 1123 for (i = 0; nfrags--; i++) { in compute_large_page_tx_descs() 1165 unsigned int nfrags, in write_large_page_tx_descs() argument 1175 *gen, nfrags == 0 && *desc_len == 0); in write_large_page_tx_descs() 1208 nfrags = skb_shinfo(skb)->nr_frags; in write_tx_descs() local 1220 V_CMD_EOP(nfrags == 0 && desc_len <= SGE_TX_DESC_MAX_PLEN) | in write_tx_descs() 1244 nfrags, q); in write_tx_descs() 1248 nfrags == 0); in write_tx_descs() 1255 for (i = 0; nfrags--; i++) { in write_tx_descs() 1273 nfrags, q); in write_tx_descs() [all …]
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_main.c | 2804 int nfrags = skb_shinfo(skb)->nr_frags; in stmmac_tso_xmit() local 2874 stmmac_tso_allocator(priv, des, tmp_pay_len, (nfrags == 0), queue); in stmmac_tso_xmit() 2877 for (i = 0; i < nfrags; i++) { in stmmac_tso_xmit() 2887 (i == nfrags - 1), queue); in stmmac_tso_xmit() 2915 priv->xstats.tx_tso_nfrags += nfrags; in stmmac_tso_xmit() 2918 priv->tx_count_frames += nfrags + 1; in stmmac_tso_xmit() 2964 tx_q->cur_tx, first, nfrags); in stmmac_tso_xmit() 3002 int nfrags = skb_shinfo(skb)->nr_frags; in stmmac_xmit() local 3030 if (unlikely(stmmac_tx_avail(priv, queue) < nfrags + 1)) { in stmmac_xmit() 3066 for (i = 0; i < nfrags; i++) { in stmmac_xmit() [all …]
|
/drivers/net/ethernet/faraday/ |
D | ftgmac100.c | 715 unsigned int pointer, nfrags, len, i, j; in ftgmac100_hard_start_xmit() local 735 nfrags = skb_shinfo(skb)->nr_frags; in ftgmac100_hard_start_xmit() 772 if (nfrags == 0) in ftgmac100_hard_start_xmit() 781 for (i = 0; i < nfrags; i++) { in ftgmac100_hard_start_xmit() 798 if (i == (nfrags - 1)) in ftgmac100_hard_start_xmit()
|
/drivers/infiniband/hw/qib/ |
D | qib_user_sdma.c | 830 int nfrags = 0; in qib_user_sdma_queue_pkts() local 895 nfrags++; in qib_user_sdma_queue_pkts() 986 if (nfrags) { in qib_user_sdma_queue_pkts() 989 nfrags, npages); in qib_user_sdma_queue_pkts()
|
/drivers/net/ethernet/chelsio/cxgb3/ |
D | sge.c | 241 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() 969 unsigned int i, j = 0, nfrags; in make_sgl() local 978 nfrags = skb_shinfo(skb)->nr_frags; in make_sgl() 979 for (i = 0; i < nfrags; i++) { in make_sgl() 992 return ((nfrags + (len != 0)) * 3) / 2 + j; in make_sgl()
|
/drivers/staging/lustre/lustre/ptlrpc/ |
D | ptlrpc_internal.h | 58 struct ptlrpc_bulk_desc *ptlrpc_new_bulk(unsigned int nfrags,
|
D | client.c | 110 struct ptlrpc_bulk_desc *ptlrpc_new_bulk(unsigned int nfrags, in ptlrpc_new_bulk() argument 128 GET_KIOV(desc) = kcalloc(nfrags, sizeof(*GET_KIOV(desc)), in ptlrpc_new_bulk() 133 GET_KVEC(desc) = kcalloc(nfrags, sizeof(*GET_KVEC(desc)), in ptlrpc_new_bulk() 141 desc->bd_max_iov = nfrags; in ptlrpc_new_bulk() 170 unsigned int nfrags, in ptlrpc_prep_bulk_imp() argument 181 desc = ptlrpc_new_bulk(nfrags, max_brw, type, portal, ops); in ptlrpc_prep_bulk_imp()
|
/drivers/net/ethernet/mediatek/ |
D | mtk_eth_soc.c | 814 int i, nfrags; in mtk_cal_txd_req() local 817 nfrags = 1; in mtk_cal_txd_req() 821 nfrags += DIV_ROUND_UP(frag->size, MTK_TX_DMA_BUF_LEN); in mtk_cal_txd_req() 824 nfrags += skb_shinfo(skb)->nr_frags; in mtk_cal_txd_req() 827 return nfrags; in mtk_cal_txd_req()
|
/drivers/net/ethernet/calxeda/ |
D | xgmac.c | 1090 int nfrags = skb_shinfo(skb)->nr_frags; in xgmac_xmit() local 1114 for (i = 0; i < nfrags; i++) { in xgmac_xmit() 1129 if (i < (nfrags - 1)) in xgmac_xmit()
|
/drivers/net/ethernet/altera/ |
D | altera_tse_main.c | 574 int nfrags = skb_shinfo(skb)->nr_frags; in tse_start_xmit() local 581 if (unlikely(tse_tx_avail(priv) < nfrags + 1)) { in tse_start_xmit()
|
/drivers/net/ethernet/ibm/ehea/ |
D | ehea_main.c | 1672 int nfrags, sg1entry_contains_frag_data, i; in write_swqe2_data() local 1674 nfrags = skb_shinfo(skb)->nr_frags; in write_swqe2_data() 1682 if (nfrags > 0) { in write_swqe2_data() 1696 for (i = sg1entry_contains_frag_data; i < nfrags; i++) { in write_swqe2_data()
|
/drivers/staging/lustre/lustre/include/ |
D | lustre_net.h | 1866 unsigned int nfrags,
|
/drivers/staging/lustre/lnet/klnds/o2iblnd/ |
D | o2iblnd_cb.c | 606 struct kib_rdma_desc *rd, int nfrags) in kiblnd_map_tx() argument 618 tx->tx_nfrags = nfrags; in kiblnd_map_tx()
|
/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
D | main.c | 6223 uint nfrags, uint queue, uint next_frag_len) in brcms_c_d11hdrs_mac80211() argument
|