Home
last modified time | relevance | path

Searched refs:pkts (Results 1 – 25 of 142) sorted by relevance

123456

/kernel/linux/linux-5.10/lib/dim/
Dnet_dim.c21 {.usec = 1, .pkts = NET_DIM_DEFAULT_RX_CQ_PKTS_FROM_EQE,}, \
22 {.usec = 8, .pkts = NET_DIM_DEFAULT_RX_CQ_PKTS_FROM_EQE,}, \
23 {.usec = 64, .pkts = NET_DIM_DEFAULT_RX_CQ_PKTS_FROM_EQE,}, \
24 {.usec = 128, .pkts = NET_DIM_DEFAULT_RX_CQ_PKTS_FROM_EQE,}, \
25 {.usec = 256, .pkts = NET_DIM_DEFAULT_RX_CQ_PKTS_FROM_EQE,} \
29 {.usec = 2, .pkts = 256,}, \
30 {.usec = 8, .pkts = 128,}, \
31 {.usec = 16, .pkts = 64,}, \
32 {.usec = 32, .pkts = 64,}, \
33 {.usec = 64, .pkts = 64,} \
[all …]
/kernel/linux/linux-5.10/drivers/bluetooth/
Dh4_recv.h45 const struct h4_recv_pkt *pkts, in h4_recv_buf() argument
57 if (buffer[0] != (&pkts[i])->type) in h4_recv_buf()
60 skb = bt_skb_alloc((&pkts[i])->maxlen, in h4_recv_buf()
65 hci_skb_pkt_type(skb) = (&pkts[i])->type; in h4_recv_buf()
66 hci_skb_expect(skb) = (&pkts[i])->hlen; in h4_recv_buf()
89 if (hci_skb_pkt_type(skb) == (&pkts[i])->type) in h4_recv_buf()
98 if (skb->len == (&pkts[i])->hlen) { in h4_recv_buf()
101 switch ((&pkts[i])->lsize) { in h4_recv_buf()
108 dlen = skb->data[(&pkts[i])->loff]; in h4_recv_buf()
119 (&pkts[i])->loff); in h4_recv_buf()
[all …]
Dhci_h4.c156 const struct h4_recv_pkt *pkts, int pkts_count) in h4_recv_buf() argument
178 if (buffer[0] != (&pkts[i])->type) in h4_recv_buf()
181 skb = bt_skb_alloc((&pkts[i])->maxlen, in h4_recv_buf()
186 hci_skb_pkt_type(skb) = (&pkts[i])->type; in h4_recv_buf()
187 hci_skb_expect(skb) = (&pkts[i])->hlen; in h4_recv_buf()
210 if (hci_skb_pkt_type(skb) == (&pkts[i])->type) in h4_recv_buf()
219 if (skb->len == (&pkts[i])->hlen) { in h4_recv_buf()
222 switch ((&pkts[i])->lsize) { in h4_recv_buf()
229 dlen = skb->data[(&pkts[i])->loff]; in h4_recv_buf()
240 (&pkts[i])->loff); in h4_recv_buf()
[all …]
Dbtmtksdio.c385 const struct h4_recv_pkt *pkts = mtk_recv_pkts; in btmtksdio_rx_packet() local
428 if (sdio_hdr->bt_type == (&pkts[i])->type) in btmtksdio_rx_packet()
439 if (skb->len < (&pkts[i])->hlen) { in btmtksdio_rx_packet()
444 switch ((&pkts[i])->lsize) { in btmtksdio_rx_packet()
446 dlen = skb->data[(&pkts[i])->loff]; in btmtksdio_rx_packet()
450 (&pkts[i])->loff); in btmtksdio_rx_packet()
456 pad_size = skb->len - (&pkts[i])->hlen - dlen; in btmtksdio_rx_packet()
468 (&pkts[i])->recv(bdev->hdev, skb); in btmtksdio_rx_packet()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dxdp_noinline.c18 __u64 pkts; in test_xdp_noinline() member
30 __u64 bytes = 0, pkts = 0; in test_xdp_noinline() local
61 pkts += stats[i].pkts; in test_xdp_noinline()
63 CHECK(bytes != MAGIC_BYTES * NUM_ITER * 2 || pkts != NUM_ITER * 2, in test_xdp_noinline()
65 (unsigned long long)bytes, (unsigned long long)pkts); in test_xdp_noinline()
Dl4lb_all.c16 __u64 pkts; in test_l4lb() member
28 __u64 bytes = 0, pkts = 0; in test_l4lb() local
72 pkts += stats[i].pkts; in test_l4lb()
75 pkts != NUM_ITER * 2)) in test_l4lb()
76 printf("test_l4lb:FAIL:stats %lld %lld\n", bytes, pkts); in test_l4lb()
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/
Dhinic_rx.c58 rxq_stats->pkts = 0; in hinic_rxq_clean_stats()
78 stats->pkts = rxq_stats->pkts; in hinic_rxq_get_stats()
367 int num_wqes, pkts = 0; in rxq_recv() local
379 while (pkts < budget) { in rxq_recv()
429 pkts++; in rxq_recv()
453 rxq->rxq_stats.pkts += pkts; in rxq_recv()
457 return pkts; in rxq_recv()
465 int pkts; in rx_poll() local
467 pkts = rxq_recv(rxq, budget); in rx_poll()
468 if (pkts >= budget) in rx_poll()
[all …]
Dhinic_tx.c81 txq_stats->pkts = 0; in hinic_txq_clean_stats()
102 stats->pkts = txq_stats->pkts; in hinic_txq_get_stats()
705 int nr_sges, pkts = 0; in free_tx_poll() local
731 pkts++; in free_tx_poll()
740 } while (pkts < budget); in free_tx_poll()
759 txq->txq_stats.pkts += pkts; in free_tx_poll()
762 if (pkts < budget) { in free_tx_poll()
769 return pkts; in free_tx_poll()
/kernel/linux/linux-5.10/net/netfilter/
Dxt_connbytes.c28 u_int64_t pkts = 0; in connbytes_mt() local
74 pkts = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].packets); in connbytes_mt()
78 pkts = atomic64_read(&counters[IP_CT_DIR_REPLY].packets); in connbytes_mt()
83 pkts = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].packets) + in connbytes_mt()
87 if (pkts != 0) in connbytes_mt()
88 what = div64_u64(bytes, pkts); in connbytes_mt()
Dnfnetlink_acct.c29 atomic64_t pkts; member
78 atomic64_set(&matching->pkts, 0); in nfnl_acct_new()
122 atomic64_set(&nfacct->pkts, in nfnl_acct_new()
136 u64 pkts, bytes; in nfnl_acct_fill_info() local
150 pkts = atomic64_xchg(&acct->pkts, 0); in nfnl_acct_fill_info()
156 pkts = atomic64_read(&acct->pkts); in nfnl_acct_fill_info()
159 if (nla_put_be64(skb, NFACCT_PKTS, cpu_to_be64(pkts), in nfnl_acct_fill_info()
435 atomic64_inc(&nfacct->pkts); in nfnl_acct_update()
471 atomic64_read(&nfacct->pkts) : atomic64_read(&nfacct->bytes); in nfnl_acct_overquota()
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/
Dpedit_l4port.sh138 local pkts
139 pkts=$(busywait "$TC_HIT_TIMEOUT" until_counter_is ">= 10" \
141 check_err $? "Expected to get 10 packets, but got $pkts."
143 pkts=$(tc_rule_handle_stats_get "$pedit_locus" 101)
144 ((pkts >= 10))
145 check_err $? "Expected to get 10 packets on pedit rule, but got $pkts."
Dpedit_dsfield.sh134 local pkts
135 pkts=$(busywait "$TC_HIT_TIMEOUT" until_counter_is ">= 10" \
137 check_err $? "Expected to get 10 packets on test probe, but got $pkts."
139 pkts=$(tc_rule_handle_stats_get "$pedit_locus" 101)
140 ((pkts >= 10))
141 check_err $? "Expected to get 10 packets on pedit rule, but got $pkts."
Dsch_red.sh185 local pkts=$1; shift
187 $MZ $h2 -p $PKTSZ -a own -b $h3_mac -A 192.0.2.2 -B 192.0.2.3 -t $proto -q -c $pkts "$@"
203 local pkts=$(((diff + PKTSZ - 1) / PKTSZ))
213 send_packets $proto $pkts "$@"
/kernel/linux/linux-5.10/net/vmw_vsock/
Dvsock_loopback.c112 LIST_HEAD(pkts); in vsock_loopback_work()
115 list_splice_init(&vsock->pkt_list, &pkts); in vsock_loopback_work()
118 while (!list_empty(&pkts)) { in vsock_loopback_work()
121 pkt = list_first_entry(&pkts, struct virtio_vsock_pkt, list); in vsock_loopback_work()
/kernel/linux/linux-5.10/net/tipc/
Dbcast.c259 int tipc_bcast_xmit(struct net *net, struct sk_buff_head *pkts, in tipc_bcast_xmit() argument
269 rc = tipc_link_xmit(l, pkts, &xmitq); in tipc_bcast_xmit()
272 __skb_queue_purge(pkts); in tipc_bcast_xmit()
288 static int tipc_rcast_xmit(struct net *net, struct sk_buff_head *pkts, in tipc_rcast_xmit() argument
295 selector = msg_link_selector(buf_msg(skb_peek(pkts))); in tipc_rcast_xmit()
300 if (!tipc_msg_pskb_copy(dnode, pkts, &_pkts)) in tipc_rcast_xmit()
378 int tipc_mcast_xmit(struct net *net, struct sk_buff_head *pkts, in tipc_mcast_xmit() argument
392 if (dests->local && !tipc_msg_reassemble(pkts, &localq)) { in tipc_mcast_xmit()
400 skb = skb_peek(pkts); in tipc_mcast_xmit()
417 rc = tipc_rcast_xmit(net, pkts, dests, cong_link_cnt); in tipc_mcast_xmit()
[all …]
Dbearer.h241 void tipc_clone_to_loopback(struct net *net, struct sk_buff_head *pkts);
246 struct sk_buff_head *pkts) in tipc_loopback_trace() argument
249 tipc_clone_to_loopback(net, pkts); in tipc_loopback_trace()
Dbcast.h90 int tipc_mcast_xmit(struct net *net, struct sk_buff_head *pkts,
93 int tipc_bcast_xmit(struct net *net, struct sk_buff_head *pkts,
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/flower/
Dqos_conf.c205 curr_stats->pkts = be64_to_cpu(msg->pass_pkts) + in nfp_flower_stats_rlim_reply()
211 prev_stats->pkts = curr_stats->pkts; in nfp_flower_stats_rlim_reply()
316 diff_pkts = curr_stats->pkts - prev_stats->pkts; in nfp_flower_stats_rate_limiter()
318 prev_stats->pkts = curr_stats->pkts; in nfp_flower_stats_rate_limiter()
/kernel/linux/linux-5.10/drivers/usb/host/
Dxhci-mtk-sch.c277 sch_ep->pkts = max_burst + 1; in setup_sch_info()
278 sch_ep->bw_cost_per_microframe = maxpkt * sch_ep->pkts; in setup_sch_info()
294 sch_ep->pkts = esit_pkts; in setup_sch_info()
296 bwb_table[0] = maxpkt * sch_ep->pkts; in setup_sch_info()
303 sch_ep->pkts = esit_pkts; in setup_sch_info()
305 sch_ep->pkts = 1; in setup_sch_info()
307 sch_ep->pkts = roundup_pow_of_two(esit_pkts) in setup_sch_info()
311 DIV_ROUND_UP(esit_pkts, sch_ep->pkts); in setup_sch_info()
314 sch_ep->bw_cost_per_microframe = maxpkt * sch_ep->pkts; in setup_sch_info()
326 sch_ep->pkts = 1; /* at most one packet for each microframe */ in setup_sch_info()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/
Dlantiq_xrx200.c250 int pkts = 0; in xrx200_tx_housekeeping() local
254 while (pkts < budget) { in xrx200_tx_housekeeping()
260 pkts++; in xrx200_tx_housekeeping()
273 net_dev->stats.tx_packets += pkts; in xrx200_tx_housekeeping()
275 netdev_completed_queue(ch->priv->net_dev, pkts, bytes); in xrx200_tx_housekeeping()
281 if (pkts < budget) { in xrx200_tx_housekeeping()
282 if (napi_complete_done(&ch->napi, pkts)) in xrx200_tx_housekeeping()
286 return pkts; in xrx200_tx_housekeeping()
/kernel/linux/linux-5.10/drivers/net/can/c_can/
Dc_can.c715 u32 idx, obj, pkts = 0, bytes = 0, pend, clr; in c_can_do_tx() local
726 pkts++; in c_can_do_tx()
735 if (pkts) { in c_can_do_tx()
737 stats->tx_packets += pkts; in c_can_do_tx()
790 u32 pkts = 0, ctrl, obj; in c_can_read_objects() local
801 pkts += n; in c_can_read_objects()
819 pkts++; in c_can_read_objects()
823 return pkts; in c_can_read_objects()
849 u32 pkts = 0, pend = 0, toread, n; in c_can_do_rx_poll() local
875 pkts += n; in c_can_do_rx_poll()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
Dice_lib.h88 void ice_update_tx_ring_stats(struct ice_ring *ring, u64 pkts, u64 bytes);
90 void ice_update_rx_ring_stats(struct ice_ring *ring, u64 pkts, u64 bytes);
/kernel/linux/linux-5.10/drivers/media/rc/
Dnuvoton-cir.c602 for (i = 0; i < nvt->pkts; i++) {
688 printk(KERN_DEBUG "%s (len %d): ", __func__, nvt->pkts); in nvt_dump_rx_buf()
689 for (i = 0; (i < nvt->pkts) && (i < RX_BUF_LEN); i++) in nvt_dump_rx_buf()
717 nvt_dbg_verbose("Processing buffer of len %d", nvt->pkts); in nvt_process_rx_ir_data()
719 for (i = 0; i < nvt->pkts; i++) { in nvt_process_rx_ir_data()
731 nvt->pkts = 0; in nvt_process_rx_ir_data()
743 nvt->pkts = 0; in nvt_handle_rx_fifo_overrun()
763 nvt->pkts = fifocount; in nvt_get_rx_ir_data()
764 nvt_dbg("%s: pkts now %d", __func__, nvt->pkts); in nvt_get_rx_ir_data()
/kernel/linux/linux-5.10/drivers/net/ethernet/pensando/ionic/
Dionic_txrx.c168 stats->pkts++; in ionic_rx_clean()
424 u64 pkts, bytes; in ionic_dim_update() local
434 pkts = lif->txqstats[qi].pkts; in ionic_dim_update()
438 pkts = lif->rxqstats[qi].pkts; in ionic_dim_update()
442 pkts = lif->txqstats[qi].pkts + lif->rxqstats[qi].pkts; in ionic_dim_update()
448 pkts, bytes, &dim_sample); in ionic_dim_update()
939 stats->pkts += total_pkts; in ionic_tx_tso()
1076 stats->pkts++; in ionic_tx()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/
Dutils.c1244 vo_vi_pkts += mdata->rx.pkts[ac] + in iwl_mvm_calc_tcm_stats()
1245 mdata->tx.pkts[ac]; in iwl_mvm_calc_tcm_stats()
1255 memset(&mdata->rx.pkts, 0, sizeof(mdata->rx.pkts)); in iwl_mvm_calc_tcm_stats()
1256 memset(&mdata->tx.pkts, 0, sizeof(mdata->tx.pkts)); in iwl_mvm_calc_tcm_stats()
1376 memset(&mdata->rx.pkts, 0, sizeof(mdata->rx.pkts)); in iwl_mvm_resume_tcm()
1377 memset(&mdata->tx.pkts, 0, sizeof(mdata->tx.pkts)); in iwl_mvm_resume_tcm()

123456