Home
last modified time | relevance | path

Searched refs:pkt_cnt (Results 1 – 25 of 39) sorted by relevance

12

/linux/drivers/net/wireless/marvell/mwifiex/
H A Dsdio.h95 #define MP_TX_AGGR_IN_PROGRESS(a) (a->mpa_tx.pkt_cnt > 0)
106 if (!a->mpa_tx.pkt_cnt) \
109 a->mpa_tx.ports |= (1<<(a->mpa_tx.pkt_cnt)); \
111 a->mpa_tx.ports |= (1<<(a->mpa_tx.pkt_cnt+1+ \
114 a->mpa_tx.pkt_cnt++; \
119 (a->mpa_tx.pkt_cnt == a->mpa_tx.pkt_aggr_limit)
123 a->mpa_tx.pkt_cnt = 0; \
131 (a->mpa_rx.pkt_cnt == a->mpa_rx.pkt_aggr_limit)
134 #define MP_RX_AGGR_IN_PROGRESS(a) (a->mpa_rx.pkt_cnt > 0)
142 a->mpa_rx.pkt_cnt = 0; \
[all …]
H A Dwmm.c641 u32 pkt_cnt = 0, tx_pkts_queued; in mwifiex_update_ralist_tx_pause() local
649 pkt_cnt += ra_list->total_pkt_count; in mwifiex_update_ralist_tx_pause()
660 if (pkt_cnt) { in mwifiex_update_ralist_tx_pause()
663 tx_pkts_queued -= pkt_cnt; in mwifiex_update_ralist_tx_pause()
665 tx_pkts_queued += pkt_cnt; in mwifiex_update_ralist_tx_pause()
680 u32 pkt_cnt = 0, tx_pkts_queued; in mwifiex_update_ralist_tx_pause_in_tdls_cs() local
692 pkt_cnt += ra_list->total_pkt_count; in mwifiex_update_ralist_tx_pause_in_tdls_cs()
704 if (pkt_cnt) { in mwifiex_update_ralist_tx_pause_in_tdls_cs()
707 tx_pkts_queued -= pkt_cnt; in mwifiex_update_ralist_tx_pause_in_tdls_cs()
709 tx_pkts_queued += pkt_cnt; in mwifiex_update_ralist_tx_pause_in_tdls_cs()
H A Dsdio.c1837 card->mpa_rx.pkt_cnt); in mwifiex_sdio_card_to_host_mp_aggr()
1859 if (card->mpa_rx.pkt_cnt == 1) in mwifiex_sdio_card_to_host_mp_aggr()
1868 for (pind = 0; pind < card->mpa_rx.pkt_cnt; pind++) { in mwifiex_sdio_card_to_host_mp_aggr()
2292 if (card->mpa_tx.pkt_cnt == 1) in mwifiex_host_to_card_mp_aggr()
2571 card->mpa_tx.pkt_cnt = 0; in mwifiex_init_sdio()
2578 card->mpa_rx.pkt_cnt = 0; in mwifiex_init_sdio()
/linux/tools/testing/selftests/drivers/net/lib/py/
H A Dload.py26 def _wait_pkts(self, pkt_cnt=None, pps=None): argument
39 elif pkt_cnt:
40 if pkt_now - pkt_start > pkt_cnt:
44 def wait_pkts_and_stop(self, pkt_cnt): argument
45 failed = not self._wait_pkts(pkt_cnt=pkt_cnt)
/linux/drivers/net/wireless/rsi/
H A Drsi_91x_core.c95 u32 pkt_cnt = 0; in rsi_get_num_pkts_dequeue() local
119 pkt_cnt += 1; in rsi_get_num_pkts_dequeue()
121 if (skb_queue_len(&common->tx_queue[q_num]) - pkt_cnt) in rsi_get_num_pkts_dequeue()
128 return pkt_cnt; in rsi_get_num_pkts_dequeue()
158 if (common->pkt_cnt != 0) { in rsi_core_determine_hal_queue()
159 --common->pkt_cnt; in rsi_core_determine_hal_queue()
203 common->pkt_cnt = rsi_get_num_pkts_dequeue(common, q_num); in rsi_core_determine_hal_queue()
204 common->pkt_cnt -= 1; in rsi_core_determine_hal_queue()
/linux/samples/bpf/
H A Dtest_cgrp2_attach.c95 long long pkt_cnt, byte_cnt; in attach_filter() local
121 assert(bpf_map_lookup_elem(map_fd, &key, &pkt_cnt) == 0); in attach_filter()
127 pkt_cnt, byte_cnt); in attach_filter()
/linux/drivers/net/wwan/t7xx/
H A Dt7xx_hif_dpmaif.c45 int pkt_cnt; in t7xx_ring_buf_rd_wr_count() local
48 pkt_cnt = wr_idx - rd_idx; in t7xx_ring_buf_rd_wr_count()
50 pkt_cnt = rd_idx - wr_idx - 1; in t7xx_ring_buf_rd_wr_count()
52 if (pkt_cnt < 0) in t7xx_ring_buf_rd_wr_count()
53 pkt_cnt += total_cnt; in t7xx_ring_buf_rd_wr_count()
55 return (unsigned int)pkt_cnt; in t7xx_ring_buf_rd_wr_count()
/linux/net/ipv6/
H A Dioam6_iptunnel.c43 atomic_t pkt_cnt; member
182 atomic_set(&ilwt->pkt_cnt, 0); in ioam6_build_state()
343 u32 pkt_cnt; in ioam6_output() local
351 pkt_cnt = atomic_fetch_inc(&ilwt->pkt_cnt); in ioam6_output()
352 if (pkt_cnt % ilwt->freq.n >= ilwt->freq.k) in ioam6_output()
/linux/drivers/net/usb/
H A Dlg-vl600.c40 __le32 pkt_cnt; member
152 count = le32_to_cpup(&frame->pkt_cnt); in vl600_rx_fixup()
293 frame->pkt_cnt = cpu_to_le32(1); in vl600_tx_fixup()
/linux/drivers/net/ethernet/broadcom/
H A Dbcmsysport.c227 STAT_MIB_RX("rx_64_octets", mib.rx.pkt_cnt.cnt_64),
228 STAT_MIB_RX("rx_65_127_oct", mib.rx.pkt_cnt.cnt_127),
229 STAT_MIB_RX("rx_128_255_oct", mib.rx.pkt_cnt.cnt_255),
230 STAT_MIB_RX("rx_256_511_oct", mib.rx.pkt_cnt.cnt_511),
231 STAT_MIB_RX("rx_512_1023_oct", mib.rx.pkt_cnt.cnt_1023),
232 STAT_MIB_RX("rx_1024_1518_oct", mib.rx.pkt_cnt.cnt_1518),
233 STAT_MIB_RX("rx_vlan_1519_1522_oct", mib.rx.pkt_cnt.cnt_mgv),
234 STAT_MIB_RX("rx_1522_2047_oct", mib.rx.pkt_cnt.cnt_2047),
235 STAT_MIB_RX("rx_2048_4095_oct", mib.rx.pkt_cnt.cnt_4095),
236 STAT_MIB_RX("rx_4096_9216_oct", mib.rx.pkt_cnt.cnt_9216),
[all …]
H A Dbcmsysport.h512 struct bcm_sysport_pkt_counters pkt_cnt; member
536 struct bcm_sysport_pkt_counters pkt_cnt; member
/linux/drivers/net/ethernet/netronome/nfp/nfd3/
H A Ddp.c96 txbuf->pkt_cnt = skb_shinfo(skb)->gso_segs; in nfp_nfd3_tx_tso()
97 txbuf->real_len += hdrlen * (txbuf->pkt_cnt - 1); in nfp_nfd3_tx_tso()
168 r_vec->hw_csum_tx_inner += txbuf->pkt_cnt; in nfp_nfd3_tx_csum()
170 r_vec->hw_csum_tx += txbuf->pkt_cnt; in nfp_nfd3_tx_csum()
314 txbuf->pkt_cnt = 1; in nfp_nfd3_tx()
463 done_pkts += tx_buf->pkt_cnt; in nfp_nfd3_tx_complete()
873 txbuf->pkt_cnt = 1; in nfp_nfd3_tx_xdp_buf()
1260 txbuf->pkt_cnt = 1; in nfp_nfd3_ctrl_tx_one()
H A Dnfd3.h78 u16 pkt_cnt; member
/linux/drivers/net/ethernet/netronome/nfp/nfdk/
H A Dnfdk.h103 u32 pkt_cnt; member
H A Ddp.c70 txbuf->pkt_cnt = segs; in nfp_nfdk_tx_tso()
71 txbuf->real_len = skb->len + hdrlen * (txbuf->pkt_cnt - 1); in nfp_nfdk_tx_tso()
82 unsigned int pkt_cnt, struct sk_buff *skb, u64 flags) in nfp_nfdk_tx_csum() argument
108 r_vec->hw_csum_tx += pkt_cnt; in nfp_nfdk_tx_csum()
111 r_vec->hw_csum_tx_inner += pkt_cnt; in nfp_nfdk_tx_csum()
403 metadata = nfp_nfdk_tx_csum(dp, r_vec, txbuf->pkt_cnt, skb, metadata); in nfp_nfdk_tx()
534 done_pkts += txbuf->pkt_cnt; in nfp_nfdk_tx_complete()
/linux/drivers/net/ethernet/broadcom/genet/
H A Dbcmgenet.c1042 STAT_GENET_MIB_RX("rx_64_octets", mib.rx.pkt_cnt.cnt_64),
1043 STAT_GENET_MIB_RX("rx_65_127_oct", mib.rx.pkt_cnt.cnt_127),
1044 STAT_GENET_MIB_RX("rx_128_255_oct", mib.rx.pkt_cnt.cnt_255),
1045 STAT_GENET_MIB_RX("rx_256_511_oct", mib.rx.pkt_cnt.cnt_511),
1046 STAT_GENET_MIB_RX("rx_512_1023_oct", mib.rx.pkt_cnt.cnt_1023),
1047 STAT_GENET_MIB_RX("rx_1024_1518_oct", mib.rx.pkt_cnt.cnt_1518),
1048 STAT_GENET_MIB_RX("rx_vlan_1519_1522_oct", mib.rx.pkt_cnt.cnt_mgv),
1049 STAT_GENET_MIB_RX("rx_1522_2047_oct", mib.rx.pkt_cnt.cnt_2047),
1050 STAT_GENET_MIB_RX("rx_2048_4095_oct", mib.rx.pkt_cnt.cnt_4095),
1051 STAT_GENET_MIB_RX("rx_4096_9216_oct", mib.rx.pkt_cnt.cnt_9216),
[all …]
H A Dbcmgenet.h92 struct bcmgenet_pkt_counters pkt_cnt; member
116 struct bcmgenet_pkt_counters pkt_cnt; member
/linux/arch/mips/include/asm/octeon/
H A Dcvmx-pci-defs.h902 uint32_t pkt_cnt:32; member
904 uint32_t pkt_cnt:32;
1816 uint32_t pkt_cnt:16; member
1820 uint32_t pkt_cnt:16;
1829 uint32_t pkt_cnt:32; member
1831 uint32_t pkt_cnt:32;
1840 uint32_t pkt_cnt:32; member
1842 uint32_t pkt_cnt:32;
/linux/drivers/staging/rtl8712/
H A Drtl8712_recv.c973 u16 pkt_cnt, drvinfo_sz, pkt_offset, tmp_len, alloc_sz; in recvbuf2recvframe() local
982 pkt_cnt = (le32_to_cpu(prxstat->rxdw2) >> 16) & 0xff; in recvbuf2recvframe()
1053 pkt_cnt--; in recvbuf2recvframe()
1056 } while ((transfer_len > 0) && pkt_cnt > 0); in recvbuf2recvframe()
/linux/drivers/net/ethernet/microchip/
H A Dlan743x_ethtool.c839 u64 pkt_cnt; in lan743x_ethtool_get_ethtool_stats() local
855 pkt_cnt = (u64)(adapter->tx[i].frame_count); in lan743x_ethtool_get_ethtool_stats()
856 data[data_index++] = pkt_cnt; in lan743x_ethtool_get_ethtool_stats()
857 total_queue_count += pkt_cnt; in lan743x_ethtool_get_ethtool_stats()
/linux/drivers/net/wireless/ath/ath10k/
H A Dsdio.c546 int pkt_cnt = 0; in ath10k_sdio_mbox_rx_alloc() local
591 &ar_sdio->rx_pkts[pkt_cnt], in ath10k_sdio_mbox_rx_alloc()
603 pkt_cnt += bndl_cnt; in ath10k_sdio_mbox_rx_alloc()
616 ret = ath10k_sdio_mbox_alloc_rx_pkt(&ar_sdio->rx_pkts[pkt_cnt], in ath10k_sdio_mbox_rx_alloc()
626 pkt_cnt++; in ath10k_sdio_mbox_rx_alloc()
629 ar_sdio->n_rx_pkts = pkt_cnt; in ath10k_sdio_mbox_rx_alloc()
/linux/include/linux/usb/
H A Dusbnet.h29 unsigned char pkt_cnt, pkt_err; member
/linux/drivers/net/ethernet/cavium/liquidio/
H A Dlio_vf_main.c77 int pkt_cnt = 0, pending_pkts; in lio_wait_for_oq_pkts() local
86 pkt_cnt += octeon_droq_check_hw_for_pkts(oct->droq[i]); in lio_wait_for_oq_pkts()
88 if (pkt_cnt > 0) { in lio_wait_for_oq_pkts()
89 pending_pkts += pkt_cnt; in lio_wait_for_oq_pkts()
92 pkt_cnt = 0; in lio_wait_for_oq_pkts()
97 return pkt_cnt; in lio_wait_for_oq_pkts()
/linux/net/tipc/
H A Dsocket.c136 u16 pkt_cnt; member
1279 tsk->pkt_cnt += skb_queue_len(txq); in tipc_sk_push_backlog()
1280 if (!tsk->pkt_cnt || tsk->msg_acc / tsk->pkt_cnt < 2) { in tipc_sk_push_backlog()
1286 tsk->portid, tsk->msg_acc, tsk->pkt_cnt, in tipc_sk_push_backlog()
1298 tsk->pkt_cnt = 0; in tipc_sk_push_backlog()
1309 tsk->pkt_cnt += skb_queue_len(txq); in tipc_sk_push_backlog()
1602 tsk->pkt_cnt += skb_queue_len(txq); in __tipc_sendstream()
1612 tsk->pkt_cnt = 0; in __tipc_sendstream()
/linux/drivers/net/ethernet/asix/
H A Dax88796c_main.c500 u8 pkt_cnt; in ax88796c_receive() local
508 pkt_cnt = AX_READ(&ax_local->ax_spi, P0_RXBCR2) & RXBCR2_PKT_MASK; in ax88796c_receive()
509 if (!pkt_cnt) in ax88796c_receive()

12