Home
last modified time | relevance | path

Searched refs:dim_sample (Results 1 – 21 of 21) sorted by relevance

/linux-6.12.1/include/linux/
Ddim.h101 struct dim_sample { struct
147 struct dim_sample start_sample;
148 struct dim_sample measuring_sample;
354 bool dim_calc_stats(struct dim_sample *start, struct dim_sample *end,
365 dim_update_sample(u16 event_ctr, u64 packets, u64 bytes, struct dim_sample *s) in dim_update_sample()
384 struct dim_sample *s) in dim_update_sample_with_comps()
427 void net_dim(struct dim *dim, struct dim_sample end_sample);
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/
Den_txrx.c52 struct dim_sample dim_sample = {}; in mlx5e_handle_tx_dim() local
57 dim_update_sample(sq->cq.event_ctr, stats->packets, stats->bytes, &dim_sample); in mlx5e_handle_tx_dim()
58 net_dim(sq->dim, dim_sample); in mlx5e_handle_tx_dim()
64 struct dim_sample dim_sample = {}; in mlx5e_handle_rx_dim() local
69 dim_update_sample(rq->cq.event_ctr, stats->packets, stats->bytes, &dim_sample); in mlx5e_handle_rx_dim()
70 net_dim(rq->dim, dim_sample); in mlx5e_handle_rx_dim()
/linux-6.12.1/Documentation/networking/
Dnet_dim.rst93 :c:type:`struct dim_sample <dim_sample>`. :c:type:`struct dim <dim>`
97 :c:type:`struct dim_sample <dim_sample>` describes a data sample,
111 The :c:type:`struct dim_sample <dim_sample>` should hold the latest
151 struct dim_sample dim_sample;
157 &dim_sample);
159 net_dim(&my_entity->dim, dim_sample);
/linux-6.12.1/lib/dim/
Ddim.c57 bool dim_calc_stats(struct dim_sample *start, struct dim_sample *end, in dim_calc_stats()
Drdma_dim.c78 struct dim_sample *curr_sample = &dim->measuring_sample; in rdma_dim()
Dnet_dim.c350 void net_dim(struct dim *dim, struct dim_sample end_sample) in net_dim()
/linux-6.12.1/drivers/net/ethernet/netronome/nfp/nfd3/
Ddp.c1171 struct dim_sample dim_sample = {}; in nfp_nfd3_poll() local
1181 dim_update_sample(r_vec->event_ctr, pkts, bytes, &dim_sample); in nfp_nfd3_poll()
1182 net_dim(&r_vec->rx_dim, dim_sample); in nfp_nfd3_poll()
1186 struct dim_sample dim_sample = {}; in nfp_nfd3_poll() local
1196 dim_update_sample(r_vec->event_ctr, pkts, bytes, &dim_sample); in nfp_nfd3_poll()
1197 net_dim(&r_vec->tx_dim, dim_sample); in nfp_nfd3_poll()
/linux-6.12.1/drivers/soc/fsl/dpio/
Ddpio-service.c883 struct dim_sample dim_sample = {}; in dpaa2_io_update_net_dim() local
893 dim_update_sample(d->event_ctr, d->frames, d->bytes, &dim_sample); in dpaa2_io_update_net_dim()
894 net_dim(&d->rx_dim, dim_sample); in dpaa2_io_update_net_dim()
/linux-6.12.1/drivers/net/ethernet/netronome/nfp/nfdk/
Ddp.c1281 struct dim_sample dim_sample = {}; in nfp_nfdk_poll() local
1291 dim_update_sample(r_vec->event_ctr, pkts, bytes, &dim_sample); in nfp_nfdk_poll()
1292 net_dim(&r_vec->rx_dim, dim_sample); in nfp_nfdk_poll()
1296 struct dim_sample dim_sample = {}; in nfp_nfdk_poll() local
1306 dim_update_sample(r_vec->event_ctr, pkts, bytes, &dim_sample); in nfp_nfdk_poll()
1307 net_dim(&r_vec->tx_dim, dim_sample); in nfp_nfdk_poll()
/linux-6.12.1/drivers/net/ethernet/intel/ice/
Dice_txrx.c1294 struct dim_sample *sample, in __ice_update_sample()
1352 struct dim_sample dim_sample; in ice_net_dim() local
1354 __ice_update_sample(q_vector, tx, &dim_sample, true); in ice_net_dim()
1355 net_dim(&tx->dim, dim_sample); in ice_net_dim()
1359 struct dim_sample dim_sample; in ice_net_dim() local
1361 __ice_update_sample(q_vector, rx, &dim_sample, false); in ice_net_dim()
1362 net_dim(&rx->dim, dim_sample); in ice_net_dim()
/linux-6.12.1/drivers/net/ethernet/intel/idpf/
Didpf_txrx.c3637 struct dim_sample *dim_sample, in idpf_update_dim_sample() argument
3640 dim_update_sample(q_vector->total_events, packets, bytes, dim_sample); in idpf_update_dim_sample()
3641 dim_sample->comp_ctr = 0; in idpf_update_dim_sample()
3647 if (ktime_ms_delta(dim_sample->time, dim->start_sample.time) >= HZ) in idpf_update_dim_sample()
3662 struct dim_sample dim_sample = { }; in idpf_net_dim() local
3680 idpf_update_dim_sample(q_vector, &dim_sample, &q_vector->tx_dim, in idpf_net_dim()
3682 net_dim(&q_vector->tx_dim, dim_sample); in idpf_net_dim()
3699 idpf_update_dim_sample(q_vector, &dim_sample, &q_vector->rx_dim, in idpf_net_dim()
3701 net_dim(&q_vector->rx_dim, dim_sample); in idpf_net_dim()
/linux-6.12.1/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_txrx.c516 struct dim_sample dim_sample = { 0 }; in otx2_adjust_adaptive_coalese() local
529 &dim_sample); in otx2_adjust_adaptive_coalese()
530 net_dim(&cq_poll->dim, dim_sample); in otx2_adjust_adaptive_coalese()
/linux-6.12.1/drivers/net/ethernet/pensando/ionic/
Dionic_txrx.c902 struct dim_sample dim_sample; in ionic_dim_update() local
929 pkts, bytes, &dim_sample); in ionic_dim_update()
931 net_dim(&qcq->dim, dim_sample); in ionic_dim_update()
/linux-6.12.1/drivers/net/ethernet/mediatek/
Dmtk_eth_soc.c2017 struct dim_sample dim_sample = {}; in mtk_poll_rx() local
2229 &dim_sample); in mtk_poll_rx()
2230 net_dim(&eth->rx_dim, dim_sample); in mtk_poll_rx()
2367 struct dim_sample dim_sample = {}; in mtk_poll_tx() local
2379 &dim_sample); in mtk_poll_tx()
2380 net_dim(&eth->tx_dim, dim_sample); in mtk_poll_tx()
/linux-6.12.1/drivers/net/ethernet/broadcom/
Dbcmsysport.c1030 struct dim_sample dim_sample = {}; in bcm_sysport_poll() local
1055 priv->dim.bytes, &dim_sample); in bcm_sysport_poll()
1056 net_dim(&priv->dim.dim, dim_sample); in bcm_sysport_poll()
/linux-6.12.1/drivers/net/ethernet/freescale/enetc/
Denetc.c710 struct dim_sample dim_sample = {}; in enetc_rx_net_dim() local
720 &dim_sample); in enetc_rx_net_dim()
721 net_dim(&v->rx_dim, dim_sample); in enetc_rx_net_dim()
/linux-6.12.1/drivers/net/ethernet/amazon/ena/
Dena_netdev.c1373 struct dim_sample dim_sample; in ena_adjust_adaptive_rx_intr_moderation() local
1384 &dim_sample); in ena_adjust_adaptive_rx_intr_moderation()
1386 net_dim(&ena_napi->dim, dim_sample); in ena_adjust_adaptive_rx_intr_moderation()
/linux-6.12.1/drivers/net/ethernet/broadcom/genet/
Dbcmgenet.c2395 struct dim_sample dim_sample = {}; in bcmgenet_rx_poll() local
2407 ring->dim.bytes, &dim_sample); in bcmgenet_rx_poll()
2408 net_dim(&ring->dim.dim, dim_sample); in bcmgenet_rx_poll()
/linux-6.12.1/drivers/net/ethernet/broadcom/bnxt/
Dbnxt.c3099 struct dim_sample dim_sample = {}; in bnxt_poll() local
3104 &dim_sample); in bnxt_poll()
3105 net_dim(&cpr->dim, dim_sample); in bnxt_poll()
3230 struct dim_sample dim_sample = {}; in bnxt_poll_p5() local
3235 &dim_sample); in bnxt_poll_p5()
3236 net_dim(&cpr->dim, dim_sample); in bnxt_poll_p5()
/linux-6.12.1/drivers/net/ethernet/hisilicon/hns3/
Dhns3_enet.c4444 struct dim_sample sample = {}; in hns3_update_rx_int_coalesce()
4457 struct dim_sample sample = {}; in hns3_update_tx_int_coalesce()
/linux-6.12.1/drivers/net/
Dvirtio_net.c2814 struct dim_sample cur_sample = {}; in virtnet_rx_dim_update()