MAX_SKB_FRAGS 78 arch/um/drivers/vector_kern.c #define MAX_IOV_SIZE (MAX_SKB_FRAGS + 1) MAX_SKB_FRAGS 161 drivers/crypto/chelsio/chcr_core.h dma_addr_t addr[MAX_SKB_FRAGS + 1]; MAX_SKB_FRAGS 683 drivers/crypto/chelsio/chcr_ipsec.c dma_addr_t addr[MAX_SKB_FRAGS + 1]; MAX_SKB_FRAGS 1088 drivers/crypto/chelsio/chtls/chtls_io.c if (i == (is_tls_tx(csk) ? (MAX_SKB_FRAGS - 1) : MAX_SKB_FRAGS 1089 drivers/crypto/chelsio/chtls/chtls_io.c MAX_SKB_FRAGS)) MAX_SKB_FRAGS 1252 drivers/crypto/chelsio/chtls/chtls_io.c } else if (i < MAX_SKB_FRAGS) { MAX_SKB_FRAGS 191 drivers/infiniband/ulp/ipoib/ipoib.h u64 mapping[MAX_SKB_FRAGS + 1]; MAX_SKB_FRAGS 386 drivers/infiniband/ulp/ipoib/ipoib.h struct ib_sge tx_sge[MAX_SKB_FRAGS + 1]; MAX_SKB_FRAGS 1075 drivers/infiniband/ulp/ipoib/ipoib_cm.c MAX_SKB_FRAGS + 1); MAX_SKB_FRAGS 151 drivers/infiniband/ulp/ipoib/ipoib_verbs.c MAX_SKB_FRAGS + 1), MAX_SKB_FRAGS 218 drivers/infiniband/ulp/ipoib/ipoib_verbs.c for (i = 0; i < MAX_SKB_FRAGS + 1; ++i) MAX_SKB_FRAGS 557 drivers/net/ethernet/3com/3c59x.c #ifdef MAX_SKB_FRAGS MAX_SKB_FRAGS 570 drivers/net/ethernet/3com/3c59x.c } frag[1+MAX_SKB_FRAGS]; MAX_SKB_FRAGS 142 drivers/net/ethernet/3com/typhoon.c #if defined(NETIF_F_TSO) && MAX_SKB_FRAGS > 32 MAX_SKB_FRAGS 147 drivers/net/ethernet/3com/typhoon.c #if TXLO_ENTRIES <= (2 * MAX_SKB_FRAGS) MAX_SKB_FRAGS 842 drivers/net/ethernet/3com/typhoon.c numDesc = MAX_SKB_FRAGS + TSO_NUM_DESCRIPTORS + 1; MAX_SKB_FRAGS 1547 drivers/net/ethernet/3com/typhoon.c int numDesc = MAX_SKB_FRAGS + 1; MAX_SKB_FRAGS 732 drivers/net/ethernet/aeroflex/greth.c (MAX_SKB_FRAGS+1))) MAX_SKB_FRAGS 2440 drivers/net/ethernet/agere/et131x.c BUILD_BUG_ON(MAX_SKB_FRAGS + 1 > 23); MAX_SKB_FRAGS 702 drivers/net/ethernet/alteon/acenic.h #define TX_RESERVED MAX_SKB_FRAGS MAX_SKB_FRAGS 85 drivers/net/ethernet/amazon/ena/ena_netdev.h #define ENA_TX_WAKEUP_THRESH (MAX_SKB_FRAGS + 2) MAX_SKB_FRAGS 163 drivers/net/ethernet/amd/xgbe/xgbe.h #define XGBE_TX_MAX_DESCS (MAX_SKB_FRAGS + XGBE_TX_MAX_SPLIT + 2) MAX_SKB_FRAGS 240 drivers/net/ethernet/apm/xgene/xgene_enet_main.c frag_dma_addr = &cp_ring->frag_dma_addr[skb_index * MAX_SKB_FRAGS]; MAX_SKB_FRAGS 403 drivers/net/ethernet/apm/xgene/xgene_enet_main.c return &ring->cp_ring->frag_dma_addr[ring->tail * MAX_SKB_FRAGS]; MAX_SKB_FRAGS 1444 drivers/net/ethernet/apm/xgene/xgene_enet_main.c size = sizeof(dma_addr_t) * MAX_SKB_FRAGS; MAX_SKB_FRAGS 6726 drivers/net/ethernet/broadcom/bnx2.c if (unlikely(bnx2_tx_avail(bp, txr) <= MAX_SKB_FRAGS)) { MAX_SKB_FRAGS 7401 drivers/net/ethernet/broadcom/bnx2.c (ering->tx_pending <= MAX_SKB_FRAGS)) { MAX_SKB_FRAGS 398 drivers/net/ethernet/broadcom/bnx2x/bnx2x.h #define TPA_AGG_SIZE min_t(u32, (min_t(u32, 8, MAX_SKB_FRAGS) * \ MAX_SKB_FRAGS 669 drivers/net/ethernet/broadcom/bnx2x/bnx2x.h #define MAX_BDS_PER_TX_PKT (MAX_SKB_FRAGS + BDS_PER_TX_PKT) MAX_SKB_FRAGS 216 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c if ((nbd - 1) > (MAX_SKB_FRAGS + 2)) { MAX_SKB_FRAGS 612 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c if (pages > min_t(u32, 8, MAX_SKB_FRAGS) * SGE_PAGES) { MAX_SKB_FRAGS 3390 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c #if (MAX_SKB_FRAGS >= MAX_FETCH_BD - BDS_PER_TX_PKT) MAX_SKB_FRAGS 3812 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c #if (MAX_SKB_FRAGS >= MAX_FETCH_BD - BDS_PER_TX_PKT) MAX_SKB_FRAGS 1309 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h return mtu <= SGE_PAGE_SIZE && (U_ETH_SGL_SIZE * fpp) <= MAX_SKB_FRAGS; MAX_SKB_FRAGS 1967 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c (ering->tx_pending <= MAX_SKB_FRAGS + 4)) { MAX_SKB_FRAGS 578 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (unlikely(bnxt_tx_avail(bp, txr) <= MAX_SKB_FRAGS + 1)) { MAX_SKB_FRAGS 1562 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (unlikely(agg_bufs > MAX_SKB_FRAGS || TPA_END_ERRORS(tpa_end1))) { MAX_SKB_FRAGS 1564 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (agg_bufs > MAX_SKB_FRAGS) MAX_SKB_FRAGS 1566 drivers/net/ethernet/broadcom/bnxt/bnxt.c agg_bufs, (int)MAX_SKB_FRAGS); MAX_SKB_FRAGS 1648 drivers/net/ethernet/broadcom/bnxt/bnxt.c BUG_ON(tpa_info->agg_count >= MAX_SKB_FRAGS); MAX_SKB_FRAGS 2742 drivers/net/ethernet/broadcom/bnxt/bnxt.c total_aggs = bp->max_tpa * MAX_SKB_FRAGS; MAX_SKB_FRAGS 2761 drivers/net/ethernet/broadcom/bnxt/bnxt.c rxr->rx_tpa[j].agg_arr = agg + j * MAX_SKB_FRAGS; MAX_SKB_FRAGS 3299 drivers/net/ethernet/broadcom/bnxt/bnxt.c MAX_SKB_FRAGS + 1); MAX_SKB_FRAGS 4773 drivers/net/ethernet/broadcom/bnxt/bnxt.c nsegs = (MAX_SKB_FRAGS - 1) * n; MAX_SKB_FRAGS 4778 drivers/net/ethernet/broadcom/bnxt/bnxt.c nsegs = (MAX_SKB_FRAGS - n) / n; MAX_SKB_FRAGS 747 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c (ering->tx_pending <= MAX_SKB_FRAGS)) MAX_SKB_FRAGS 1453 drivers/net/ethernet/broadcom/genet/bcmgenet.c if (ring->free_bds > (MAX_SKB_FRAGS + 1)) { MAX_SKB_FRAGS 1665 drivers/net/ethernet/broadcom/genet/bcmgenet.c if (ring->free_bds <= (MAX_SKB_FRAGS + 1)) MAX_SKB_FRAGS 8145 drivers/net/ethernet/broadcom/tg3.c if (unlikely(tg3_tx_avail(tnapi) <= (MAX_SKB_FRAGS + 1))) { MAX_SKB_FRAGS 12440 drivers/net/ethernet/broadcom/tg3.c (ering->tx_pending <= MAX_SKB_FRAGS) || MAX_SKB_FRAGS 12442 drivers/net/ethernet/broadcom/tg3.c (ering->tx_pending <= (MAX_SKB_FRAGS * 3)))) MAX_SKB_FRAGS 900 drivers/net/ethernet/calxeda/xgmac.c (tx_dma_ring_space(priv) > MAX_SKB_FRAGS))) MAX_SKB_FRAGS 1140 drivers/net/ethernet/calxeda/xgmac.c if (unlikely(tx_dma_ring_space(priv) <= MAX_SKB_FRAGS)) { MAX_SKB_FRAGS 1144 drivers/net/ethernet/calxeda/xgmac.c if (tx_dma_ring_space(priv) > MAX_SKB_FRAGS) MAX_SKB_FRAGS 32 drivers/net/ethernet/cavium/liquidio/lio_core.c #define OCTNIC_MAX_SG MAX_SKB_FRAGS MAX_SKB_FRAGS 737 drivers/net/ethernet/chelsio/cxgb/cxgb2.c e->tx_pending < (adapter->params.nports + 1) * (MAX_SKB_FRAGS + 1)) MAX_SKB_FRAGS 449 drivers/net/ethernet/chelsio/cxgb/sge.c if (credits < MAX_SKB_FRAGS + 1) MAX_SKB_FRAGS 710 drivers/net/ethernet/chelsio/cxgb/sge.c (MAX_SKB_FRAGS + 1); MAX_SKB_FRAGS 139 drivers/net/ethernet/chelsio/cxgb3/sge.c dma_addr_t addr[MAX_SKB_FRAGS + 1]; MAX_SKB_FRAGS 1186 drivers/net/ethernet/chelsio/cxgb3/sge.c struct sg_ent *sgp, sgl[MAX_SKB_FRAGS / 2 + 1]; MAX_SKB_FRAGS 1272 drivers/net/ethernet/chelsio/cxgb3/sge.c dma_addr_t addr[MAX_SKB_FRAGS + 1]; MAX_SKB_FRAGS 1636 drivers/net/ethernet/chelsio/cxgb3/sge.c struct sg_ent *sgp, sgl[MAX_SKB_FRAGS / 2 + 1]; MAX_SKB_FRAGS 3102 drivers/net/ethernet/chelsio/cxgb3/sge.c flits_to_desc(sgl_len(MAX_SKB_FRAGS + 1) + 3); MAX_SKB_FRAGS 69 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h (1 + DIV_ROUND_UP((3 * MAX_SKB_FRAGS) / 2 + (MAX_SKB_FRAGS & 1), 8)) MAX_SKB_FRAGS 656 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h struct page_frag frags[MAX_SKB_FRAGS]; MAX_SKB_FRAGS 888 drivers/net/ethernet/chelsio/cxgb4/sge.c struct ulptx_sge_pair buf[MAX_SKB_FRAGS / 2 + 1]; MAX_SKB_FRAGS 1375 drivers/net/ethernet/chelsio/cxgb4/sge.c dma_addr_t addr[MAX_SKB_FRAGS + 1]; MAX_SKB_FRAGS 1707 drivers/net/ethernet/chelsio/cxgb4/sge.c dma_addr_t addr[MAX_SKB_FRAGS + 1]; MAX_SKB_FRAGS 153 drivers/net/ethernet/chelsio/cxgb4vf/adapter.h struct page_frag frags[MAX_SKB_FRAGS]; MAX_SKB_FRAGS 105 drivers/net/ethernet/chelsio/cxgb4vf/sge.c ETHTXQ_MAX_FRAGS = MAX_SKB_FRAGS + 1, MAX_SKB_FRAGS 909 drivers/net/ethernet/chelsio/cxgb4vf/sge.c struct ulptx_sge_pair buf[MAX_SKB_FRAGS / 2 + 1]; MAX_SKB_FRAGS 1169 drivers/net/ethernet/chelsio/cxgb4vf/sge.c dma_addr_t addr[MAX_SKB_FRAGS + 1]; MAX_SKB_FRAGS 1808 drivers/net/ethernet/chelsio/cxgb4vf/sge.c BUG_ON(frag >= MAX_SKB_FRAGS); MAX_SKB_FRAGS 393 drivers/net/ethernet/cisco/enic/enic_main.c (MAX_SKB_FRAGS + ENIC_DESC_MAX_SPLITS)) MAX_SKB_FRAGS 897 drivers/net/ethernet/cisco/enic/enic_main.c if (vnic_wq_desc_avail(wq) < MAX_SKB_FRAGS + ENIC_DESC_MAX_SPLITS) MAX_SKB_FRAGS 1473 drivers/net/ethernet/cortina/gemini.c if (frag_nr == MAX_SKB_FRAGS) MAX_SKB_FRAGS 2390 drivers/net/ethernet/emulex/benet/be_main.c BUG_ON(j > MAX_SKB_FRAGS); MAX_SKB_FRAGS 2468 drivers/net/ethernet/emulex/benet/be_main.c BUG_ON(j > MAX_SKB_FRAGS); MAX_SKB_FRAGS 49 drivers/net/ethernet/faraday/ftgmac100.c #define TX_THRESHOLD (MAX_SKB_FRAGS + 1) MAX_SKB_FRAGS 277 drivers/net/ethernet/freescale/fec_main.c #define FEC_MAX_SKB_DESCS (FEC_MAX_TSO_SEGS * 2 + MAX_SKB_FRAGS) MAX_SKB_FRAGS 486 drivers/net/ethernet/freescale/fec_main.c if (entries_free < MAX_SKB_FRAGS + 1) { MAX_SKB_FRAGS 178 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c if (++fep->tx_free == MAX_SKB_FRAGS) MAX_SKB_FRAGS 605 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c if (fep->tx_free < MAX_SKB_FRAGS) MAX_SKB_FRAGS 636 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c wake = fep->tx_free >= MAX_SKB_FRAGS && MAX_SKB_FRAGS 603 drivers/net/ethernet/hisilicon/hns/hns_enet.c if (unlikely(bnum >= (int)MAX_SKB_FRAGS)) { /* check err*/ MAX_SKB_FRAGS 622 drivers/net/ethernet/hisilicon/hns/hns_enet.c length, (int)MAX_SKB_FRAGS, MAX_SKB_FRAGS 2715 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c if (unlikely(ring->frag_num >= MAX_SKB_FRAGS)) { MAX_SKB_FRAGS 200 drivers/net/ethernet/hisilicon/hns3/hns3_enet.h #define HNS3_MAX_BD_PER_PKT MAX_SKB_FRAGS MAX_SKB_FRAGS 3252 drivers/net/ethernet/intel/e1000/e1000_main.c int desc_needed = MAX_SKB_FRAGS + 7; MAX_SKB_FRAGS 3264 drivers/net/ethernet/intel/e1000/e1000_main.c desc_needed += MAX_SKB_FRAGS + 1; MAX_SKB_FRAGS 5915 drivers/net/ethernet/intel/e1000e/netdev.c (MAX_SKB_FRAGS * MAX_SKB_FRAGS 439 drivers/net/ethernet/intel/fm10k/fm10k.h #define DESC_NEEDED (MAX_SKB_FRAGS + 4) MAX_SKB_FRAGS 264 drivers/net/ethernet/intel/i40e/i40e_txrx.h #define DESC_NEEDED (MAX_SKB_FRAGS + 6) MAX_SKB_FRAGS 243 drivers/net/ethernet/intel/iavf/iavf_txrx.h #define DESC_NEEDED (MAX_SKB_FRAGS + 6) MAX_SKB_FRAGS 38 drivers/net/ethernet/intel/ice/ice_txrx.h #define DESC_NEEDED (MAX_SKB_FRAGS + ICE_DESCS_FOR_CTX_DESC + \ MAX_SKB_FRAGS 187 drivers/net/ethernet/intel/igb/igb.h #define DESC_NEEDED (MAX_SKB_FRAGS + 4) MAX_SKB_FRAGS 2348 drivers/net/ethernet/intel/igbvf/netdev.c igbvf_maybe_stop_tx(netdev, MAX_SKB_FRAGS + 4); MAX_SKB_FRAGS 178 drivers/net/ethernet/intel/igc/igc.h #define DESC_NEEDED (MAX_SKB_FRAGS + 4) MAX_SKB_FRAGS 1474 drivers/net/ethernet/intel/ixgb/ixgb_main.c MAX_SKB_FRAGS * TXD_USE_COUNT(PAGE_SIZE) + 1 /* for context */ \ MAX_SKB_FRAGS 207 drivers/net/ethernet/intel/ixgbe/ixgbe.h #define DESC_NEEDED (MAX_SKB_FRAGS + 4) MAX_SKB_FRAGS 24 drivers/net/ethernet/intel/ixgbevf/ixgbevf.h #define DESC_NEEDED (MAX_SKB_FRAGS + 4) MAX_SKB_FRAGS 2197 drivers/net/ethernet/jme.c if (unlikely(atomic_read(&txring->nr_free) < (MAX_SKB_FRAGS+2))) { MAX_SKB_FRAGS 176 drivers/net/ethernet/marvell/mv643xx_eth.c #define MV643XX_MAX_SKB_DESCS (MV643XX_MAX_TSO_SEGS * 2 + MAX_SKB_FRAGS) MAX_SKB_FRAGS 946 drivers/net/ethernet/marvell/mv643xx_eth.c if (txq->tx_ring_size - txq->tx_desc_count < MAX_SKB_FRAGS + 1) { MAX_SKB_FRAGS 309 drivers/net/ethernet/marvell/mvneta.c #define MVNETA_MAX_SKB_DESCS (MVNETA_MAX_TSO_SEGS * 2 + MAX_SKB_FRAGS) MAX_SKB_FRAGS 580 drivers/net/ethernet/marvell/mvpp2/mvpp2.h #define MVPP2_MAX_SKB_DESCS (MVPP2_MAX_TSO_SEGS * 2 + MAX_SKB_FRAGS) MAX_SKB_FRAGS 46 drivers/net/ethernet/marvell/skge.c #define TX_LOW_WATER (MAX_SKB_FRAGS + 1) MAX_SKB_FRAGS 59 drivers/net/ethernet/marvell/sky2.c #define MAX_SKB_TX_LE (2 + (sizeof(dma_addr_t)/sizeof(u32))*(MAX_SKB_FRAGS+1)) MAX_SKB_FRAGS 1577 drivers/net/ethernet/mediatek/mtk_eth_soc.c ring->thresh = MAX_SKB_FRAGS; MAX_SKB_FRAGS 185 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c skb_frag_t frags[MAX_SKB_FRAGS]; MAX_SKB_FRAGS 52 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c skb_frag_t frags[MAX_SKB_FRAGS]; MAX_SKB_FRAGS 1163 drivers/net/ethernet/mellanox/mlx5/core/en_main.c mlx5e_ktls_dumps_num_wqebbs(sq, MAX_SKB_FRAGS, MAX_SKB_FRAGS 636 drivers/net/ethernet/neterion/s2io.c fifo->max_txds = MAX_SKB_FRAGS + 2; MAX_SKB_FRAGS 7802 drivers/net/ethernet/neterion/s2io.c config->max_txds = MAX_SKB_FRAGS + 2; MAX_SKB_FRAGS 3746 drivers/net/ethernet/neterion/vxge/vxge-main.c MAX_SKB_FRAGS + 1; MAX_SKB_FRAGS 412 drivers/net/ethernet/neterion/vxge/vxge-main.h dma_addr_t dma_buffers[MAX_SKB_FRAGS+1]; MAX_SKB_FRAGS 686 drivers/net/ethernet/netronome/nfp/nfp_net_common.c return !nfp_net_tx_full(tx_ring, MAX_SKB_FRAGS * 4); MAX_SKB_FRAGS 691 drivers/net/ethernet/netronome/nfp/nfp_net_common.c return nfp_net_tx_full(tx_ring, MAX_SKB_FRAGS + 1); MAX_SKB_FRAGS 512 drivers/net/ethernet/pasemi/pasemi_mac.c dma_addr_t dmas[MAX_SKB_FRAGS+1]; MAX_SKB_FRAGS 812 drivers/net/ethernet/pasemi/pasemi_mac.c #define TX_CLEAN_BATCHSIZE (128/MAX_SKB_FRAGS) MAX_SKB_FRAGS 824 drivers/net/ethernet/pasemi/pasemi_mac.c dma_addr_t dmas[TX_CLEAN_BATCHSIZE][MAX_SKB_FRAGS+1]; MAX_SKB_FRAGS 1429 drivers/net/ethernet/pasemi/pasemi_mac.c dma_addr_t map[MAX_SKB_FRAGS+1]; MAX_SKB_FRAGS 1430 drivers/net/ethernet/pasemi/pasemi_mac.c unsigned int map_size[MAX_SKB_FRAGS+1]; MAX_SKB_FRAGS 162 drivers/net/ethernet/qlogic/netxen/netxen_nic.h #define TX_STOP_THRESH ((MAX_SKB_FRAGS >> 2) + MAX_TSO_HEADER_DESC \ MAX_SKB_FRAGS 545 drivers/net/ethernet/qlogic/netxen/netxen_nic.h struct netxen_skb_frag frag_array[MAX_SKB_FRAGS + 1]; MAX_SKB_FRAGS 295 drivers/net/ethernet/qlogic/qede/qede_fp.c #if ((MAX_SKB_FRAGS + 2) > ETH_TX_MAX_BDS_PER_NON_LSO_PACKET) MAX_SKB_FRAGS 467 drivers/net/ethernet/qlogic/qede/qede_fp.c >= (MAX_SKB_FRAGS + 1))) { MAX_SKB_FRAGS 1453 drivers/net/ethernet/qlogic/qede/qede_fp.c WARN_ON(qed_chain_get_elem_left(&txq->tx_pbl) < (MAX_SKB_FRAGS + 1)); MAX_SKB_FRAGS 1457 drivers/net/ethernet/qlogic/qede/qede_fp.c #if ((MAX_SKB_FRAGS + 2) > ETH_TX_MAX_BDS_PER_NON_LSO_PACKET) MAX_SKB_FRAGS 1663 drivers/net/ethernet/qlogic/qede/qede_fp.c < (MAX_SKB_FRAGS + 1))) { MAX_SKB_FRAGS 1678 drivers/net/ethernet/qlogic/qede/qede_fp.c (MAX_SKB_FRAGS + 1)) && MAX_SKB_FRAGS 1017 drivers/net/ethernet/qlogic/qla3xxx.h #define MAX_OAL_CNT ((MAX_SKB_FRAGS-1)/4 + 1) MAX_SKB_FRAGS 1041 drivers/net/ethernet/qlogic/qla3xxx.h struct map_list map[MAX_SKB_FRAGS+1]; MAX_SKB_FRAGS 97 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h #define TX_STOP_THRESH ((MAX_SKB_FRAGS >> 2) + MAX_TSO_HEADER_DESC \ MAX_SKB_FRAGS 362 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h struct qlcnic_skb_frag frag_array[MAX_SKB_FRAGS + 1]; MAX_SKB_FRAGS 1210 drivers/net/ethernet/qualcomm/emac/emac-mac.c if (emac_tpd_num_free_descs(tx_q) > (MAX_SKB_FRAGS + 1)) MAX_SKB_FRAGS 1470 drivers/net/ethernet/qualcomm/emac/emac-mac.c if (emac_tpd_num_free_descs(tx_q) < (MAX_SKB_FRAGS + 3)) MAX_SKB_FRAGS 705 drivers/net/ethernet/realtek/8139cp.c if (TX_BUFFS_AVAIL(cp) > (MAX_SKB_FRAGS + 1)) MAX_SKB_FRAGS 870 drivers/net/ethernet/realtek/8139cp.c if (TX_BUFFS_AVAIL(cp) <= (MAX_SKB_FRAGS + 1)) MAX_SKB_FRAGS 5948 drivers/net/ethernet/realtek/r8169_main.c stop_queue = !rtl_tx_slots_avail(tp, MAX_SKB_FRAGS); MAX_SKB_FRAGS 5970 drivers/net/ethernet/realtek/r8169_main.c if (rtl_tx_slots_avail(tp, MAX_SKB_FRAGS)) MAX_SKB_FRAGS 6111 drivers/net/ethernet/realtek/r8169_main.c rtl_tx_slots_avail(tp, MAX_SKB_FRAGS)) { MAX_SKB_FRAGS 1401 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c if (unlikely(sxgbe_tx_avail(tqueue, tx_rsize) <= (MAX_SKB_FRAGS + 1))) { MAX_SKB_FRAGS 90 drivers/net/ethernet/sfc/falcon/tx.c unsigned int max_descs = EF4_TSO_MAX_SEGS * 2 + MAX_SKB_FRAGS; MAX_SKB_FRAGS 100 drivers/net/ethernet/sfc/falcon/tx.c max_descs += max_t(unsigned int, MAX_SKB_FRAGS, MAX_SKB_FRAGS 109 drivers/net/ethernet/sfc/tx.c unsigned int max_descs = EFX_TSO_MAX_SEGS * 2 + MAX_SKB_FRAGS; MAX_SKB_FRAGS 117 drivers/net/ethernet/sfc/tx.c max_descs += max_t(unsigned int, MAX_SKB_FRAGS, MAX_SKB_FRAGS 3047 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c if (unlikely(stmmac_tx_avail(priv, queue) <= (MAX_SKB_FRAGS + 1))) { MAX_SKB_FRAGS 3277 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c if (unlikely(stmmac_tx_avail(priv, queue) <= (MAX_SKB_FRAGS + 1))) { MAX_SKB_FRAGS 1910 drivers/net/ethernet/sun/cassini.c (TX_BUFFS_AVAIL(cp, ring) > CAS_TABORT(cp)*(MAX_SKB_FRAGS + 1))) MAX_SKB_FRAGS 2843 drivers/net/ethernet/sun/cassini.c if (TX_BUFFS_AVAIL(cp, ring) <= CAS_TABORT(cp)*(MAX_SKB_FRAGS + 1)) MAX_SKB_FRAGS 6715 drivers/net/ethernet/sun/niu.c if (unlikely(niu_tx_avail(rp) <= (MAX_SKB_FRAGS + 1))) { MAX_SKB_FRAGS 702 drivers/net/ethernet/sun/sungem.c TX_BUFFS_AVAIL(gp) > (MAX_SKB_FRAGS + 1))) { MAX_SKB_FRAGS 707 drivers/net/ethernet/sun/sungem.c TX_BUFFS_AVAIL(gp) > (MAX_SKB_FRAGS + 1)) MAX_SKB_FRAGS 1097 drivers/net/ethernet/sun/sungem.c if (unlikely(TX_BUFFS_AVAIL(gp) <= (MAX_SKB_FRAGS + 1))) { MAX_SKB_FRAGS 1106 drivers/net/ethernet/sun/sungem.c if (TX_BUFFS_AVAIL(gp) > (MAX_SKB_FRAGS + 1)) MAX_SKB_FRAGS 1972 drivers/net/ethernet/sun/sunhme.c TX_BUFFS_AVAIL(hp) > (MAX_SKB_FRAGS + 1)) MAX_SKB_FRAGS 2370 drivers/net/ethernet/sun/sunhme.c if (TX_BUFFS_AVAIL(hp) <= (MAX_SKB_FRAGS + 1)) MAX_SKB_FRAGS 44 drivers/net/ethernet/synopsys/dwc-xlgmac.h #define XLGMAC_TX_MAX_DESC_NR (MAX_SKB_FRAGS + XLGMAC_TX_MAX_SPLIT + 2) MAX_SKB_FRAGS 1469 drivers/net/ethernet/tehuti/tehuti.c } txd_sizes[MAX_SKB_FRAGS + 1]; MAX_SKB_FRAGS 1534 drivers/net/ethernet/tehuti/tehuti.c for (i = 0; i < MAX_SKB_FRAGS + 1; i++) { MAX_SKB_FRAGS 2002 drivers/net/ethernet/ti/netcp_core.c netcp->tx_pause_threshold = MAX_SKB_FRAGS; MAX_SKB_FRAGS 2087 drivers/net/ethernet/ti/netcp_core.c if (netcp->tx_pool_size < MAX_SKB_FRAGS) { MAX_SKB_FRAGS 2089 drivers/net/ethernet/ti/netcp_core.c MAX_SKB_FRAGS); MAX_SKB_FRAGS 661 drivers/net/ethernet/tundra/tsi108_eth.c if (data->txfree < MAX_SKB_FRAGS + 1) { MAX_SKB_FRAGS 670 drivers/net/ethernet/tundra/tsi108_eth.c if (data->txfree - frags < MAX_SKB_FRAGS + 1) { MAX_SKB_FRAGS 678 drivers/net/tap.c if (iov_iter_npages(&i, INT_MAX) <= MAX_SKB_FRAGS) MAX_SKB_FRAGS 761 drivers/net/thunderbolt.c if (cleaned_count >= MAX_SKB_FRAGS) { MAX_SKB_FRAGS 1015 drivers/net/thunderbolt.c struct tbnet_frame *frames[MAX_SKB_FRAGS]; MAX_SKB_FRAGS 1471 drivers/net/tun.c if (it->nr_segs > MAX_SKB_FRAGS + 1) MAX_SKB_FRAGS 1811 drivers/net/tun.c if (iov_iter_npages(&i, INT_MAX) <= MAX_SKB_FRAGS) MAX_SKB_FRAGS 123 drivers/net/virtio_net.c struct scatterlist sg[MAX_SKB_FRAGS + 2]; MAX_SKB_FRAGS 154 drivers/net/virtio_net.c struct scatterlist sg[MAX_SKB_FRAGS + 2]; MAX_SKB_FRAGS 425 drivers/net/virtio_net.c if (unlikely(len > MAX_SKB_FRAGS * PAGE_SIZE)) { MAX_SKB_FRAGS 954 drivers/net/virtio_net.c if (unlikely(num_skb_frags == MAX_SKB_FRAGS)) { MAX_SKB_FRAGS 1107 drivers/net/virtio_net.c sg_init_table(rq->sg, MAX_SKB_FRAGS + 2); MAX_SKB_FRAGS 1110 drivers/net/virtio_net.c for (i = MAX_SKB_FRAGS + 1; i > 1; --i) { MAX_SKB_FRAGS 1141 drivers/net/virtio_net.c err = virtqueue_add_inbuf(rq->vq, rq->sg, MAX_SKB_FRAGS + 2, MAX_SKB_FRAGS 1415 drivers/net/virtio_net.c if (sq->vq->num_free >= 2 + MAX_SKB_FRAGS) MAX_SKB_FRAGS 1500 drivers/net/virtio_net.c if (sq->vq->num_free >= 2 + MAX_SKB_FRAGS) MAX_SKB_FRAGS 1603 drivers/net/virtio_net.c if (sq->vq->num_free < 2+MAX_SKB_FRAGS) { MAX_SKB_FRAGS 1609 drivers/net/virtio_net.c if (sq->vq->num_free >= 2+MAX_SKB_FRAGS) { MAX_SKB_FRAGS 662 drivers/net/vmxnet3/vmxnet3_drv.c BUG_ON(skb_shinfo(skb)->nr_frags >= MAX_SKB_FRAGS); MAX_SKB_FRAGS 2430 drivers/net/vmxnet3/vmxnet3_drv.c devRead->misc.maxNumRxSG = cpu_to_le16(1 + MAX_SKB_FRAGS); MAX_SKB_FRAGS 922 drivers/net/xen-netback/netback.c if (skb_shinfo(skb)->nr_frags > MAX_SKB_FRAGS) { MAX_SKB_FRAGS 923 drivers/net/xen-netback/netback.c frag_overflow = skb_shinfo(skb)->nr_frags - MAX_SKB_FRAGS; MAX_SKB_FRAGS 924 drivers/net/xen-netback/netback.c BUG_ON(frag_overflow > MAX_SKB_FRAGS); MAX_SKB_FRAGS 925 drivers/net/xen-netback/netback.c skb_shinfo(skb)->nr_frags = MAX_SKB_FRAGS; MAX_SKB_FRAGS 1035 drivers/net/xen-netback/netback.c skb_frag_t frags[MAX_SKB_FRAGS]; MAX_SKB_FRAGS 1054 drivers/net/xen-netback/netback.c BUG_ON(i >= MAX_SKB_FRAGS); MAX_SKB_FRAGS 902 drivers/net/xen-netfront.c if (skb_shinfo(skb)->nr_frags == MAX_SKB_FRAGS) { MAX_SKB_FRAGS 908 drivers/net/xen-netfront.c if (unlikely(skb_shinfo(skb)->nr_frags >= MAX_SKB_FRAGS)) { MAX_SKB_FRAGS 1902 drivers/scsi/cxgbi/libcxgbi.c if (SKB_MAX_HEAD(cdev->skb_tx_rsvd) > (512 * MAX_SKB_FRAGS) && MAX_SKB_FRAGS 2003 drivers/scsi/cxgbi/libcxgbi.c if (tdata->nr_frags > MAX_SKB_FRAGS || MAX_SKB_FRAGS 2004 drivers/scsi/cxgbi/libcxgbi.c (padlen && tdata->nr_frags == MAX_SKB_FRAGS)) { MAX_SKB_FRAGS 2206 drivers/scsi/cxgbi/libcxgbi.c unsigned int max_def = 512 * MAX_SKB_FRAGS; MAX_SKB_FRAGS 102 drivers/scsi/cxgbi/libcxgbi.h dma_addr_t addr[MAX_SKB_FRAGS + 1]; MAX_SKB_FRAGS 370 drivers/scsi/cxgbi/libcxgbi.h #define SKB_WR_LIST_SIZE (MAX_SKB_FRAGS + 2) MAX_SKB_FRAGS 64 drivers/staging/qlge/qlge.h #if ((MAX_SKB_FRAGS - TX_DESC_PER_IOCB) + 2) > 0 MAX_SKB_FRAGS 65 drivers/staging/qlge/qlge.h #define TX_DESC_PER_OAL ((MAX_SKB_FRAGS - TX_DESC_PER_IOCB) + 2) MAX_SKB_FRAGS 1356 drivers/staging/qlge/qlge.h struct map_list map[MAX_SKB_FRAGS + 2]; MAX_SKB_FRAGS 54 drivers/target/iscsi/cxgbit/cxgbit.h min_t(u32, MAX_SKB_FRAGS * PAGE_SIZE, 65535) MAX_SKB_FRAGS 57 drivers/target/iscsi/cxgbit/cxgbit_lro.h (MAX_SKB_FRAGS * sizeof(struct cxgbit_lro_pdu_cb))) MAX_SKB_FRAGS 41 drivers/target/iscsi/cxgbit/cxgbit_main.c mdsl = min_t(u32, mdsl, (MAX_SKB_FRAGS - 1) * PAGE_SIZE); MAX_SKB_FRAGS 407 drivers/target/iscsi/cxgbit/cxgbit_main.c MAX_SKB_FRAGS) || (lro_cb->pdu_totallen >= LRO_FLUSH_LEN_MAX))) || MAX_SKB_FRAGS 408 drivers/target/iscsi/cxgbit/cxgbit_main.c (lro_cb->pdu_idx >= MAX_SKB_FRAGS)) { MAX_SKB_FRAGS 18 drivers/target/iscsi/cxgbit/cxgbit_target.c dma_addr_t addr[MAX_SKB_FRAGS + 1]; MAX_SKB_FRAGS 360 drivers/target/iscsi/cxgbit/cxgbit_target.c u32 i = 0, nr_frags = MAX_SKB_FRAGS; MAX_SKB_FRAGS 533 include/linux/skbuff.h skb_frag_t frags[MAX_SKB_FRAGS]; MAX_SKB_FRAGS 16 include/linux/skmsg.h #define MAX_MSG_FRAGS MAX_SKB_FRAGS MAX_SKB_FRAGS 192 include/net/tls.h skb_frag_t frags[MAX_SKB_FRAGS]; MAX_SKB_FRAGS 204 include/net/tls.h struct scatterlist sg_tx_data[MAX_SKB_FRAGS]; MAX_SKB_FRAGS 48 include/scsi/fc_frame.h #define FC_FRAME_SG_LEN (MAX_SKB_FRAGS - 1) MAX_SKB_FRAGS 629 net/core/datagram.c struct page *pages[MAX_SKB_FRAGS]; MAX_SKB_FRAGS 635 net/core/datagram.c if (frag == MAX_SKB_FRAGS) MAX_SKB_FRAGS 639 net/core/datagram.c MAX_SKB_FRAGS - frag, &start); MAX_SKB_FRAGS 2630 net/core/pktgen.c if (frags > MAX_SKB_FRAGS) MAX_SKB_FRAGS 2631 net/core/pktgen.c frags = MAX_SKB_FRAGS; MAX_SKB_FRAGS 86 net/core/skbuff.c int sysctl_max_skb_frags __read_mostly = MAX_SKB_FRAGS; MAX_SKB_FRAGS 2313 net/core/skbuff.c if (unlikely(spd->nr_pages == MAX_SKB_FRAGS)) MAX_SKB_FRAGS 2429 net/core/skbuff.c struct partial_page partial[MAX_SKB_FRAGS]; MAX_SKB_FRAGS 2430 net/core/skbuff.c struct page *pages[MAX_SKB_FRAGS]; MAX_SKB_FRAGS 2434 net/core/skbuff.c .nr_pages_max = MAX_SKB_FRAGS, MAX_SKB_FRAGS 2909 net/core/skbuff.c skb_shinfo(from)->nr_frags >= MAX_SKB_FRAGS) MAX_SKB_FRAGS 3348 net/core/skbuff.c (skb_shinfo(skb)->nr_frags - from) > (MAX_SKB_FRAGS - to)) MAX_SKB_FRAGS 3355 net/core/skbuff.c if (to == MAX_SKB_FRAGS) MAX_SKB_FRAGS 3595 net/core/skbuff.c } else if (i < MAX_SKB_FRAGS) { MAX_SKB_FRAGS 3886 net/core/skbuff.c MAX_SKB_FRAGS)) { MAX_SKB_FRAGS 4007 net/core/skbuff.c if (nr_frags > MAX_SKB_FRAGS) MAX_SKB_FRAGS 4040 net/core/skbuff.c if (nr_frags + 1 + skbinfo->nr_frags > MAX_SKB_FRAGS) MAX_SKB_FRAGS 5056 net/core/skbuff.c from_shinfo->nr_frags >= MAX_SKB_FRAGS) MAX_SKB_FRAGS 5072 net/core/skbuff.c from_shinfo->nr_frags > MAX_SKB_FRAGS) MAX_SKB_FRAGS 5660 net/core/skbuff.c if (npages > MAX_SKB_FRAGS) MAX_SKB_FRAGS 28 net/core/sysctl_net_core.c static int max_skb_frags = MAX_SKB_FRAGS; MAX_SKB_FRAGS 297 net/ipv4/esp4.c } else if ((skb_shinfo(skb)->nr_frags < MAX_SKB_FRAGS) MAX_SKB_FRAGS 1191 net/ipv4/ip_output.c if (i == MAX_SKB_FRAGS) MAX_SKB_FRAGS 4708 net/ipv4/tcp_input.c int npages = min_t(size_t, size >> PAGE_SHIFT, MAX_SKB_FRAGS); MAX_SKB_FRAGS 242 net/ipv6/esp6.c } else if ((skb_shinfo(skb)->nr_frags < MAX_SKB_FRAGS) MAX_SKB_FRAGS 1612 net/ipv6/ip6_output.c if (i == MAX_SKB_FRAGS) MAX_SKB_FRAGS 1156 net/iucv/af_iucv.c (MAX_SKB_FRAGS + 1); MAX_SKB_FRAGS 1277 net/iucv/af_iucv.c headroom = sizeof(struct iucv_array) * (MAX_SKB_FRAGS + 1); MAX_SKB_FRAGS 795 net/kcm/kcmsock.c if (i >= MAX_SKB_FRAGS) { MAX_SKB_FRAGS 966 net/kcm/kcmsock.c if (i == MAX_SKB_FRAGS) { MAX_SKB_FRAGS 2529 net/packet/af_packet.c if (unlikely(nr_frags >= MAX_SKB_FRAGS)) { MAX_SKB_FRAGS 2531 net/packet/af_packet.c MAX_SKB_FRAGS); MAX_SKB_FRAGS 493 net/tls/tls_device.c (record->num_frags >= MAX_SKB_FRAGS - 1)) { MAX_SKB_FRAGS 389 net/tls/tls_device_fallback.c sg_in_max_elements = 2 * MAX_SKB_FRAGS + 1; MAX_SKB_FRAGS 733 net/tls/tls_sw.c MAX_SKB_FRAGS - msg_pl->sg.start + 1, MAX_SKB_FRAGS 1331 net/tls/tls_sw.c struct page *pages[MAX_SKB_FRAGS]; MAX_SKB_FRAGS 1631 net/unix/af_unix.c MAX_SKB_FRAGS * PAGE_SIZE); MAX_SKB_FRAGS 72 net/xfrm/xfrm_ipcomp.c if (WARN_ON(skb_shinfo(skb)->nr_frags >= MAX_SKB_FRAGS))