/linux/drivers/bluetooth/ |
A D | h4_recv.h | 45 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() 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() 135 (&pkts[i])->recv(hdev, skb); in h4_recv_buf() [all …]
|
A D | hci_h4.c | 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() 259 (&pkts[i])->recv(hdev, skb); in h4_recv_buf() [all …]
|
A D | btmtksdio.c | 385 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()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | xdp_noinline.c | 18 __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()
|
A D | l4lb_all.c | 16 __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()
|
/linux/drivers/net/ethernet/huawei/hinic/ |
A D | hinic_rx.c | 58 rxq_stats->pkts = 0; in hinic_rxq_clean_stats() 79 stats->pkts = rxq_stats->pkts; in hinic_rxq_get_stats() 366 int num_wqes, pkts = 0; in rxq_recv() local 428 pkts++; in rxq_recv() 452 rxq->rxq_stats.pkts += pkts; in rxq_recv() 456 return pkts; in rxq_recv() 464 int pkts; in rx_poll() local 467 if (pkts >= budget) in rx_poll() 477 return pkts; in rx_poll() 585 int err, pkts; in hinic_init_rxq() local [all …]
|
A D | hinic_tx.c | 81 txq_stats->pkts = 0; in hinic_txq_clean_stats() 103 stats->pkts = txq_stats->pkts; in hinic_txq_get_stats() 708 int nr_sges, pkts = 0; in free_tx_poll() local 734 pkts++; in free_tx_poll() 743 } while (pkts < budget); in free_tx_poll() 762 txq->txq_stats.pkts += pkts; in free_tx_poll() 765 if (pkts < budget) { in free_tx_poll() 772 return pkts; in free_tx_poll()
|
/linux/tools/testing/selftests/bpf/ |
A D | xdpxceiver.c | 475 free(pkt_stream->pkts); in pkt_stream_delete() 496 pkt_stream->pkts = calloc(nb_pkts, sizeof(*pkt_stream->pkts)); in __pkt_stream_alloc() 497 if (!pkt_stream->pkts) { in __pkt_stream_alloc() 600 pkt_stream->pkts[i].addr = pkts[i].addr; in pkt_stream_generate_custom() 601 pkt_stream->pkts[i].len = pkts[i].len; in pkt_stream_generate_custom() 603 pkt_stream->pkts[i].valid = pkts[i].valid; in pkt_stream_generate_custom() 1253 pkt_stream_generate_custom(test, pkts, ARRAY_SIZE(pkts)); in testapp_single_pkt() 1260 struct pkt pkts[] = { in testapp_invalid_desc() local 1282 pkts[6].valid = true; in testapp_invalid_desc() 1286 pkts[7].valid = false; in testapp_invalid_desc() [all …]
|
/linux/net/netfilter/ |
A D | xt_connbytes.c | 28 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()
|
A D | nfnetlink_acct.c | 30 atomic64_t pkts; member 89 atomic64_set(&matching->pkts, 0); in nfnl_acct_new() 133 atomic64_set(&nfacct->pkts, in nfnl_acct_new() 147 u64 pkts, bytes; in nfnl_acct_fill_info() local 161 pkts = atomic64_xchg(&acct->pkts, 0); in nfnl_acct_fill_info() 167 pkts = atomic64_read(&acct->pkts); in nfnl_acct_fill_info() 170 if (nla_put_be64(skb, NFACCT_PKTS, cpu_to_be64(pkts), in nfnl_acct_fill_info() 455 atomic64_inc(&nfacct->pkts); in nfnl_acct_update() 490 atomic64_read(&nfacct->pkts) : atomic64_read(&nfacct->bytes); in nfnl_acct_overquota()
|
/linux/tools/testing/selftests/net/forwarding/ |
A D | pedit_l4port.sh | 138 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."
|
A D | pedit_dsfield.sh | 134 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."
|
A D | sch_red.sh | 184 local pkts=$1; shift 186 $MZ $h2 -p $PKTSZ -a own -b $h3_mac -A 192.0.2.2 -B 192.0.2.3 -t $proto -q -c $pkts "$@" 202 local pkts=$(((diff + PKTSZ - 1) / PKTSZ)) 212 send_packets $proto $pkts "$@"
|
/linux/net/tipc/ |
A D | bcast.c | 259 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() 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() 419 rc = tipc_bcast_xmit(net, pkts, cong_link_cnt); in tipc_mcast_xmit() [all …]
|
A D | bearer.h | 245 void tipc_clone_to_loopback(struct net *net, struct sk_buff_head *pkts); 250 struct sk_buff_head *pkts) in tipc_loopback_trace() argument 253 tipc_clone_to_loopback(net, pkts); in tipc_loopback_trace()
|
/linux/drivers/net/ethernet/pensando/ionic/ |
A D | ionic_txrx.c | 236 stats->pkts++; in ionic_rx_clean() 449 u64 pkts, bytes; in ionic_dim_update() local 459 pkts = lif->txqstats[qi].pkts; in ionic_dim_update() 463 pkts = lif->rxqstats[qi].pkts; in ionic_dim_update() 467 pkts = lif->txqstats[qi].pkts + lif->rxqstats[qi].pkts; in ionic_dim_update() 473 pkts, bytes, &dim_sample); in ionic_dim_update() 741 int pkts = 0; in ionic_tx_service() local 759 pkts++; in ionic_tx_service() 788 int pkts = 0; in ionic_tx_empty() local 797 pkts++; in ionic_tx_empty() [all …]
|
/linux/drivers/usb/host/ |
A D | xhci-mtk-sch.c | 334 sch_ep->pkts = max_burst + 1; in setup_sch_info() 335 sch_ep->bw_cost_per_microframe = maxpkt * sch_ep->pkts; in setup_sch_info() 351 sch_ep->pkts = esit_pkts; in setup_sch_info() 353 bwb_table[0] = maxpkt * sch_ep->pkts; in setup_sch_info() 359 sch_ep->pkts = esit_pkts; in setup_sch_info() 361 sch_ep->pkts = 1; in setup_sch_info() 363 sch_ep->pkts = roundup_pow_of_two(esit_pkts) in setup_sch_info() 367 DIV_ROUND_UP(esit_pkts, sch_ep->pkts); in setup_sch_info() 370 sch_ep->bw_cost_per_microframe = maxpkt * sch_ep->pkts; in setup_sch_info() 771 ep_ctx->reserved[0] = cpu_to_le32(EP_BPKTS(sch_ep->pkts) in xhci_mtk_check_bandwidth() [all …]
|
/linux/drivers/net/ethernet/netronome/nfp/flower/ |
A D | qos_conf.c | 281 curr_stats->pkts = be64_to_cpu(msg->pass_pkts) + in nfp_flower_stats_rlim_reply() 287 prev_stats->pkts = curr_stats->pkts; in nfp_flower_stats_rlim_reply() 392 diff_pkts = curr_stats->pkts - prev_stats->pkts; in nfp_flower_stats_rate_limiter() 394 prev_stats->pkts = curr_stats->pkts; in nfp_flower_stats_rate_limiter()
|
/linux/net/vmw_vsock/ |
A D | vsock_loopback.c | 124 LIST_HEAD(pkts); in vsock_loopback_work() 127 list_splice_init(&vsock->pkt_list, &pkts); in vsock_loopback_work() 130 while (!list_empty(&pkts)) { in vsock_loopback_work() 133 pkt = list_first_entry(&pkts, struct virtio_vsock_pkt, list); in vsock_loopback_work()
|
/linux/drivers/net/ethernet/ |
A D | lantiq_xrx200.c | 265 int pkts = 0; in xrx200_tx_housekeeping() local 269 while (pkts < budget) { in xrx200_tx_housekeeping() 275 pkts++; in xrx200_tx_housekeeping() 288 net_dev->stats.tx_packets += pkts; in xrx200_tx_housekeeping() 290 netdev_completed_queue(ch->priv->net_dev, pkts, bytes); in xrx200_tx_housekeeping() 296 if (pkts < budget) { in xrx200_tx_housekeeping() 297 if (napi_complete_done(&ch->napi, pkts)) in xrx200_tx_housekeeping() 301 return pkts; in xrx200_tx_housekeeping()
|
/linux/net/mctp/test/ |
A D | route-test.c | 9 struct sk_buff_head pkts; member 16 skb_queue_tail(&test_rt->pkts, skb); in mctp_test_route_output() 34 skb_queue_head_init(&rt->pkts); in mctp_route_test_alloc() 72 skb_queue_purge(&rt->pkts); in mctp_test_route_destroy() 161 n = rt->pkts.qlen; in mctp_test_fragment() 174 skb2 = skb_dequeue(&rt->pkts); in mctp_test_fragment() 261 KUNIT_EXPECT_EQ(test, !!rt->pkts.qlen, params->input); in mctp_test_rx_input()
|
/linux/drivers/net/can/c_can/ |
A D | c_can_main.c | 747 pkts++; in c_can_do_tx() 750 if (!pkts) in c_can_do_tx() 753 tx_ring->tail += pkts; in c_can_do_tx() 763 stats->tx_packets += pkts; in c_can_do_tx() 825 u32 pkts = 0, ctrl, obj; in c_can_read_objects() local 838 pkts += n; in c_can_read_objects() 855 pkts++; in c_can_read_objects() 859 return pkts; in c_can_read_objects() 907 pkts += n; in c_can_do_rx_poll() 911 if (pkts) in c_can_do_rx_poll() [all …]
|
/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
A D | utils.c | 928 vo_vi_pkts += mdata->rx.pkts[ac] + in iwl_mvm_calc_tcm_stats() 929 mdata->tx.pkts[ac]; in iwl_mvm_calc_tcm_stats() 939 memset(&mdata->rx.pkts, 0, sizeof(mdata->rx.pkts)); in iwl_mvm_calc_tcm_stats() 940 memset(&mdata->tx.pkts, 0, sizeof(mdata->tx.pkts)); in iwl_mvm_calc_tcm_stats() 1059 memset(&mdata->rx.pkts, 0, sizeof(mdata->rx.pkts)); in iwl_mvm_resume_tcm() 1060 memset(&mdata->tx.pkts, 0, sizeof(mdata->tx.pkts)); in iwl_mvm_resume_tcm()
|
/linux/tools/testing/selftests/drivers/net/mlxsw/ |
A D | tc_sample.sh | 228 local pkts pct 243 pkts=$(grep -e "group 1 " $CAPTURE_FILE | wc -l) 244 pct=$((100 * (pkts - 10000) / 10000)) 246 …check_err $? "Expected 10000 packets, got $pkts packets, which is $pct% off. Required accuracy is … 578 local pkts pct 596 pkts=$(grep -e "group 1 " $CAPTURE_FILE | wc -l) 597 pct=$((100 * (pkts - 10000) / 10000)) 599 …check_err $? "Expected 10000 packets, got $pkts packets, which is $pct% off. Required accuracy is …
|
/linux/drivers/net/can/usb/etas_es58x/ |
A D | es581_4.c | 100 int pkts, num_element, channel_no, ret; in es581_4_rx_can_msg() local 122 for (pkts = 0; pkts < num_element; pkts++) { in es581_4_rx_can_msg() 124 &es581_4_urb_cmd->rx_can_msg[pkts]; in es581_4_rx_can_msg()
|