Lines Matching refs:agg_bufs

1030 				   u16 start, u32 agg_bufs, bool tpa)  in bnxt_reuse_rx_agg_bufs()  argument
1043 for (i = 0; i < agg_bufs; i++) { in bnxt_reuse_rx_agg_bufs()
1197 u16 idx, u32 agg_bufs, bool tpa, in __bnxt_rx_agg_pages() argument
1210 for (i = 0; i < agg_bufs; i++) { in __bnxt_rx_agg_pages()
1251 bnxt_reuse_rx_agg_bufs(cpr, idx, i, agg_bufs - i, tpa); in __bnxt_rx_agg_pages()
1268 u32 agg_bufs, bool tpa) in bnxt_rx_agg_pages_skb() argument
1274 agg_bufs, tpa, NULL); in bnxt_rx_agg_pages_skb()
1283 skb->truesize += BNXT_RX_PAGE_SIZE * agg_bufs; in bnxt_rx_agg_pages_skb()
1290 u32 agg_bufs, bool tpa) in bnxt_rx_agg_pages_xdp() argument
1299 idx, agg_bufs, tpa, xdp); in bnxt_rx_agg_pages_xdp()
1302 shinfo->nr_frags = agg_bufs; in bnxt_rx_agg_pages_xdp()
1309 u8 agg_bufs, u32 *raw_cons) in bnxt_agg_bufs_valid() argument
1314 *raw_cons = ADV_RAW_CMP(*raw_cons, agg_bufs); in bnxt_agg_bufs_valid()
1384 u8 cmp_type, agg_bufs = 0; in bnxt_discard_rx() local
1389 agg_bufs = (le32_to_cpu(rxcmp->rx_cmp_misc_v1) & in bnxt_discard_rx()
1398 agg_bufs = TPA_END_AGG_BUFS(tpa_end); in bnxt_discard_rx()
1401 if (agg_bufs) { in bnxt_discard_rx()
1402 if (!bnxt_agg_bufs_valid(bp, cpr, agg_bufs, &tmp_raw_cons)) in bnxt_discard_rx()
1549 static void bnxt_abort_tpa(struct bnxt_cp_ring_info *cpr, u16 idx, u32 agg_bufs) in bnxt_abort_tpa() argument
1551 if (agg_bufs) in bnxt_abort_tpa()
1552 bnxt_reuse_rx_agg_bufs(cpr, idx, 0, agg_bufs, true); in bnxt_abort_tpa()
1772 u8 *data_ptr, agg_bufs; in bnxt_tpa_end() local
1792 agg_bufs = TPA_END_AGG_BUFS_P5(tpa_end1); in bnxt_tpa_end()
1794 if (unlikely(agg_bufs != tpa_info->agg_count)) { in bnxt_tpa_end()
1796 agg_bufs, tpa_info->agg_count); in bnxt_tpa_end()
1797 agg_bufs = tpa_info->agg_count; in bnxt_tpa_end()
1806 agg_bufs = TPA_END_AGG_BUFS(tpa_end); in bnxt_tpa_end()
1809 if (agg_bufs) { in bnxt_tpa_end()
1810 if (!bnxt_agg_bufs_valid(bp, cpr, agg_bufs, raw_cons)) in bnxt_tpa_end()
1824 if (unlikely(agg_bufs > MAX_SKB_FRAGS || TPA_END_ERRORS(tpa_end1))) { in bnxt_tpa_end()
1825 bnxt_abort_tpa(cpr, idx, agg_bufs); in bnxt_tpa_end()
1826 if (agg_bufs > MAX_SKB_FRAGS) in bnxt_tpa_end()
1828 agg_bufs, (int)MAX_SKB_FRAGS); in bnxt_tpa_end()
1835 bnxt_abort_tpa(cpr, idx, agg_bufs); in bnxt_tpa_end()
1845 bnxt_abort_tpa(cpr, idx, agg_bufs); in bnxt_tpa_end()
1861 bnxt_abort_tpa(cpr, idx, agg_bufs); in bnxt_tpa_end()
1869 if (agg_bufs) { in bnxt_tpa_end()
1870 skb = bnxt_rx_agg_pages_skb(bp, cpr, skb, idx, agg_bufs, true); in bnxt_tpa_end()
2030 u8 *data_ptr, agg_bufs, cmp_type; in bnxt_rx_pkt() local
2109 agg_bufs = (misc & RX_CMP_AGG_BUFS) >> RX_CMP_AGG_BUFS_SHIFT; in bnxt_rx_pkt()
2111 if (agg_bufs) { in bnxt_rx_pkt()
2112 if (!bnxt_agg_bufs_valid(bp, cpr, agg_bufs, &tmp_raw_cons)) in bnxt_rx_pkt()
2125 if (agg_bufs) in bnxt_rx_pkt()
2126 bnxt_reuse_rx_agg_bufs(cpr, cp_cons, 0, agg_bufs, in bnxt_rx_pkt()
2148 if (agg_bufs) { in bnxt_rx_pkt()
2150 cp_cons, agg_bufs, in bnxt_rx_pkt()
2172 if (agg_bufs) { in bnxt_rx_pkt()
2175 agg_bufs, false); in bnxt_rx_pkt()
2194 if (agg_bufs) { in bnxt_rx_pkt()
2196 skb = bnxt_rx_agg_pages_skb(bp, cpr, skb, cp_cons, agg_bufs, false); in bnxt_rx_pkt()
2200 skb = bnxt_xdp_build_skb(bp, skb, agg_bufs, rxr->page_pool, &xdp, rxcmp1); in bnxt_rx_pkt()