/Linux-v4.19/drivers/bluetooth/ |
D | h4_recv.h | 60 const struct h4_recv_pkt *pkts, in h4_recv_buf() argument 71 if (buffer[0] != (&pkts[i])->type) in h4_recv_buf() 74 skb = bt_skb_alloc((&pkts[i])->maxlen, in h4_recv_buf() 79 hci_skb_pkt_type(skb) = (&pkts[i])->type; in h4_recv_buf() 80 hci_skb_expect(skb) = (&pkts[i])->hlen; in h4_recv_buf() 103 if (hci_skb_pkt_type(skb) == (&pkts[i])->type) in h4_recv_buf() 112 if (skb->len == (&pkts[i])->hlen) { in h4_recv_buf() 115 switch ((&pkts[i])->lsize) { in h4_recv_buf() 122 dlen = skb->data[(&pkts[i])->loff]; in h4_recv_buf() 133 (&pkts[i])->loff); in h4_recv_buf() [all …]
|
D | hci_h4.c | 172 const struct h4_recv_pkt *pkts, int pkts_count) in h4_recv_buf() argument 190 if (buffer[0] != (&pkts[i])->type) in h4_recv_buf() 193 skb = bt_skb_alloc((&pkts[i])->maxlen, in h4_recv_buf() 198 hci_skb_pkt_type(skb) = (&pkts[i])->type; in h4_recv_buf() 199 hci_skb_expect(skb) = (&pkts[i])->hlen; in h4_recv_buf() 222 if (hci_skb_pkt_type(skb) == (&pkts[i])->type) in h4_recv_buf() 231 if (skb->len == (&pkts[i])->hlen) { in h4_recv_buf() 234 switch ((&pkts[i])->lsize) { in h4_recv_buf() 241 dlen = skb->data[(&pkts[i])->loff]; in h4_recv_buf() 252 (&pkts[i])->loff); in h4_recv_buf() [all …]
|
/Linux-v4.19/drivers/net/ethernet/huawei/hinic/ |
D | hinic_rx.c | 56 rxq_stats->pkts = 0; in hinic_rxq_clean_stats() 74 stats->pkts = rxq_stats->pkts; in hinic_rxq_get_stats() 314 int num_wqes, pkts = 0; in rxq_recv() local 319 while (pkts < budget) { in rxq_recv() 351 pkts++; in rxq_recv() 355 if (pkts) in rxq_recv() 359 rxq->rxq_stats.pkts += pkts; in rxq_recv() 363 return pkts; in rxq_recv() 370 int pkts; in rx_poll() local 372 pkts = rxq_recv(rxq, budget); in rx_poll() [all …]
|
D | hinic_tx.c | 61 txq_stats->pkts = 0; in hinic_txq_clean_stats() 82 stats->pkts = txq_stats->pkts; in hinic_txq_get_stats() 318 int nr_sges, pkts = 0; in free_tx_poll() local 342 pkts++; in free_tx_poll() 351 } while (pkts < budget); in free_tx_poll() 370 txq->txq_stats.pkts += pkts; in free_tx_poll() 373 if (pkts < budget) { in free_tx_poll() 376 return pkts; in free_tx_poll()
|
D | hinic_rx.h | 27 u64 pkts; member
|
D | hinic_tx.h | 28 u64 pkts; member
|
D | hinic_main.c | 217 nic_rx_stats->pkts += rx_stats.pkts; in update_rx_stats() 234 nic_tx_stats->pkts += tx_stats.pkts; in update_tx_stats() 785 stats->rx_packets = nic_rx_stats->pkts; in hinic_get_stats64() 788 stats->tx_packets = nic_tx_stats->pkts; in hinic_get_stats64()
|
/Linux-v4.19/net/netfilter/ |
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()
|
D | nfnetlink_acct.c | 32 atomic64_t pkts; member 81 atomic64_set(&matching->pkts, 0); in nfnl_acct_new() 125 atomic64_set(&nfacct->pkts, in nfnl_acct_new() 140 u64 pkts, bytes; in nfnl_acct_fill_info() local 158 pkts = atomic64_xchg(&acct->pkts, 0); in nfnl_acct_fill_info() 164 pkts = atomic64_read(&acct->pkts); in nfnl_acct_fill_info() 167 if (nla_put_be64(skb, NFACCT_PKTS, cpu_to_be64(pkts), in nfnl_acct_fill_info() 443 atomic64_inc(&nfacct->pkts); in nfnl_acct_update() 479 atomic64_read(&nfacct->pkts) : atomic64_read(&nfacct->bytes); in nfnl_acct_overquota()
|
D | nft_limit.c | 58 const struct nlattr * const tb[], bool pkts) in nft_limit_init() argument 75 if (pkts && limit->burst == 0) in nft_limit_init() 81 if (pkts) { in nft_limit_init()
|
/Linux-v4.19/net/tipc/ |
D | bcast.c | 233 static int tipc_bcast_xmit(struct net *net, struct sk_buff_head *pkts, in tipc_bcast_xmit() argument 243 rc = tipc_link_xmit(l, pkts, &xmitq); in tipc_bcast_xmit() 246 __skb_queue_purge(pkts); in tipc_bcast_xmit() 262 static int tipc_rcast_xmit(struct net *net, struct sk_buff_head *pkts, in tipc_rcast_xmit() argument 269 selector = msg_link_selector(buf_msg(skb_peek(pkts))); in tipc_rcast_xmit() 274 if (!tipc_msg_pskb_copy(dnode, pkts, &_pkts)) in tipc_rcast_xmit() 294 int tipc_mcast_xmit(struct net *net, struct sk_buff_head *pkts, in tipc_mcast_xmit() argument 305 if (dests->local && !tipc_msg_reassemble(pkts, &localq)) { in tipc_mcast_xmit() 313 rc = tipc_rcast_xmit(net, pkts, dests, cong_link_cnt); in tipc_mcast_xmit() 315 rc = tipc_bcast_xmit(net, pkts, cong_link_cnt); in tipc_mcast_xmit() [all …]
|
D | socket.c | 771 struct sk_buff_head pkts; in tipc_sendmcast() local 801 skb_queue_head_init(&pkts); in tipc_sendmcast() 802 rc = tipc_msg_build(hdr, msg, 0, dlen, mtu, &pkts); in tipc_sendmcast() 806 rc = tipc_mcast_xmit(net, &pkts, method, &dsts, in tipc_sendmcast() 831 struct sk_buff_head pkts; in tipc_send_group_msg() local 842 skb_queue_head_init(&pkts); in tipc_send_group_msg() 844 rc = tipc_msg_build(hdr, m, 0, dlen, mtu, &pkts); in tipc_send_group_msg() 849 rc = tipc_node_xmit(net, &pkts, dnode, tsk->portid); in tipc_send_group_msg() 1014 struct sk_buff_head pkts; in tipc_send_group_bcast() local 1043 skb_queue_head_init(&pkts); in tipc_send_group_bcast() [all …]
|
/Linux-v4.19/drivers/usb/host/ |
D | xhci-mtk-sch.c | 103 sch_ep->pkts = max_burst + 1; in setup_sch_info() 104 sch_ep->bw_cost_per_microframe = max_packet_size * sch_ep->pkts; in setup_sch_info() 110 sch_ep->pkts = esit_pkts; in setup_sch_info() 117 sch_ep->pkts = 1; in setup_sch_info() 119 sch_ep->pkts = roundup_pow_of_two(esit_pkts) in setup_sch_info() 123 DIV_ROUND_UP(esit_pkts, sch_ep->pkts); in setup_sch_info() 130 sch_ep->bw_cost_per_microframe = max_packet_size * sch_ep->pkts; in setup_sch_info() 138 sch_ep->pkts = 1; /* at most one packet for each microframe */ in setup_sch_info() 366 ep_ctx->reserved[0] |= cpu_to_le32(EP_BPKTS(sch_ep->pkts) in xhci_mtk_add_ep_quirk() 372 sch_ep->pkts, sch_ep->cs_count, sch_ep->burst_mode, in xhci_mtk_add_ep_quirk()
|
/Linux-v4.19/drivers/net/can/c_can/ |
D | c_can.c | 707 u32 idx, obj, pkts = 0, bytes = 0, pend, clr; in c_can_do_tx() local 718 pkts++; in c_can_do_tx() 727 if (pkts) { in c_can_do_tx() 729 stats->tx_packets += pkts; in c_can_do_tx() 782 u32 pkts = 0, ctrl, obj; in c_can_read_objects() local 793 pkts += n; in c_can_read_objects() 811 pkts++; in c_can_read_objects() 815 return pkts; in c_can_read_objects() 841 u32 pkts = 0, pend = 0, toread, n; in c_can_do_rx_poll() local 867 pkts += n; in c_can_do_rx_poll() [all …]
|
/Linux-v4.19/drivers/net/ethernet/amazon/ena/ |
D | ena_com.h | 962 unsigned int pkts, in ena_com_calculate_interrupt_delay() argument 977 if (!pkts || !bytes) in ena_com_calculate_interrupt_delay() 993 if ((pkts > curr_moder_entry->pkts_per_interval) || in ena_com_calculate_interrupt_delay() 1000 if ((pkts <= pred_moder_entry->pkts_per_interval) || in ena_com_calculate_interrupt_delay() 1004 else if ((pkts > curr_moder_entry->pkts_per_interval) || in ena_com_calculate_interrupt_delay()
|
/Linux-v4.19/drivers/media/rc/ |
D | nuvoton-cir.c | 609 for (i = 0; i < nvt->pkts; i++) { 720 printk(KERN_DEBUG "%s (len %d): ", __func__, nvt->pkts); in nvt_dump_rx_buf() 721 for (i = 0; (i < nvt->pkts) && (i < RX_BUF_LEN); i++) in nvt_dump_rx_buf() 749 nvt_dbg_verbose("Processing buffer of len %d", nvt->pkts); in nvt_process_rx_ir_data() 751 for (i = 0; i < nvt->pkts; i++) { in nvt_process_rx_ir_data() 764 nvt->pkts = 0; in nvt_process_rx_ir_data() 776 nvt->pkts = 0; in nvt_handle_rx_fifo_overrun() 796 nvt->pkts = fifocount; in nvt_get_rx_ir_data() 797 nvt_dbg("%s: pkts now %d", __func__, nvt->pkts); in nvt_get_rx_ir_data()
|
D | fintek-cir.c | 290 for (i = 0; i < fintek->pkts; i++) { in fintek_process_rx_ir_data() 335 fintek->pkts = 0; in fintek_process_rx_ir_data() 360 fintek->buf[fintek->pkts] = sample; in fintek_get_rx_ir_data() 361 fintek->pkts++; in fintek_get_rx_ir_data()
|
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/abm/ |
D | ctrl.c | 200 u64 pkts = 0, bytes = 0; in nfp_abm_ctrl_read_stats() local 204 pkts += nn_readq(alink->vnic, NFP_NET_CFG_RXR_STATS(i)); in nfp_abm_ctrl_read_stats() 207 stats->tx_pkts = pkts; in nfp_abm_ctrl_read_stats()
|
/Linux-v4.19/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_dim.c | 28 cpr->rx_ring_coal.coal_bufs = cur_moder.pkts; in bnxt_dim_work()
|
/Linux-v4.19/tools/testing/selftests/bpf/ |
D | test_progs.c | 217 __u64 pkts; in test_l4lb() member 229 __u64 bytes = 0, pkts = 0; in test_l4lb() local 275 pkts += stats[i].pkts; in test_l4lb() 277 if (bytes != MAGIC_BYTES * NUM_ITER * 2 || pkts != NUM_ITER * 2) { in test_l4lb() 279 printf("test_l4lb:FAIL:stats %lld %lld\n", bytes, pkts); in test_l4lb() 306 __u64 pkts; in test_xdp_noinline() member 318 __u64 bytes = 0, pkts = 0; in test_xdp_noinline() local 364 pkts += stats[i].pkts; in test_xdp_noinline() 366 if (bytes != MAGIC_BYTES * NUM_ITER * 2 || pkts != NUM_ITER * 2) { in test_xdp_noinline() 368 printf("test_xdp_noinline:FAIL:stats %lld %lld\n", bytes, pkts); in test_xdp_noinline()
|
/Linux-v4.19/net/netfilter/ipvs/ |
D | ip_vs_sync.c | 460 struct ip_vs_conn *cp, int pkts) in ip_vs_sync_conn_needed() argument 523 pkts % sync_period != sysctl_sync_threshold(ipvs)) in ip_vs_sync_conn_needed() 526 pkts != sysctl_sync_threshold(ipvs)) in ip_vs_sync_conn_needed() 540 int pkts) in ip_vs_sync_conn_v0() argument 555 if (!ip_vs_sync_conn_needed(ipvs, cp, pkts)) in ip_vs_sync_conn_v0() 617 pkts = atomic_add_return(1, &cp->in_pkts); in ip_vs_sync_conn_v0() 619 pkts = sysctl_sync_threshold(ipvs); in ip_vs_sync_conn_v0() 620 ip_vs_sync_conn(ipvs, cp, pkts); in ip_vs_sync_conn_v0() 629 void ip_vs_sync_conn(struct netns_ipvs *ipvs, struct ip_vs_conn *cp, int pkts) in ip_vs_sync_conn() argument 641 ip_vs_sync_conn_v0(ipvs, cp, pkts); in ip_vs_sync_conn() [all …]
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_dim.c | 40 mlx5_core_modify_cq_moderation(mdev, mcq, moder.usec, moder.pkts); in mlx5e_complete_dim_work()
|
/Linux-v4.19/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | utils.c | 1684 vo_vi_pkts += mdata->rx.pkts[ac] + in iwl_mvm_calc_tcm_stats() 1685 mdata->tx.pkts[ac]; in iwl_mvm_calc_tcm_stats() 1695 memset(&mdata->rx.pkts, 0, sizeof(mdata->rx.pkts)); in iwl_mvm_calc_tcm_stats() 1696 memset(&mdata->tx.pkts, 0, sizeof(mdata->tx.pkts)); in iwl_mvm_calc_tcm_stats() 1815 memset(&mdata->rx.pkts, 0, sizeof(mdata->rx.pkts)); in iwl_mvm_resume_tcm() 1816 memset(&mdata->tx.pkts, 0, sizeof(mdata->tx.pkts)); in iwl_mvm_resume_tcm()
|
/Linux-v4.19/net/vmw_vsock/ |
D | virtio_transport.c | 85 LIST_HEAD(pkts); in virtio_transport_loopback_work() 88 list_splice_init(&vsock->loopback_list, &pkts); in virtio_transport_loopback_work() 92 while (!list_empty(&pkts)) { in virtio_transport_loopback_work() 95 pkt = list_first_entry(&pkts, struct virtio_vsock_pkt, list); in virtio_transport_loopback_work()
|
/Linux-v4.19/drivers/net/ethernet/broadcom/ |
D | bcmsysport.c | 254 STAT_MIB_TX("tx_pkts", mib.tx.pkts), 578 u32 usecs, u32 pkts) in bcm_sysport_set_rx_coalesce() argument 585 reg |= pkts; in bcm_sysport_set_rx_coalesce() 630 u32 usecs, pkts; in bcm_sysport_set_coalesce() local 654 pkts = priv->rx_max_coalesced_frames; in bcm_sysport_set_coalesce() 659 pkts = moder.pkts; in bcm_sysport_set_coalesce() 665 bcm_sysport_set_rx_coalesce(priv, usecs, pkts); in bcm_sysport_set_coalesce() 1105 bcm_sysport_set_rx_coalesce(priv, cur_profile.usec, cur_profile.pkts); in bcm_sysport_dim_work() 1464 u32 usecs, pkts; in bcm_sysport_init_rx_coalesce() local 1467 pkts = priv->rx_max_coalesced_frames; in bcm_sysport_init_rx_coalesce() [all …]
|