/linux-6.12.1/include/linux/ |
D | dim.h | 101 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/ |
D | en_txrx.c | 52 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/ |
D | net_dim.rst | 93 :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/ |
D | dim.c | 57 bool dim_calc_stats(struct dim_sample *start, struct dim_sample *end, in dim_calc_stats()
|
D | rdma_dim.c | 78 struct dim_sample *curr_sample = &dim->measuring_sample; in rdma_dim()
|
D | net_dim.c | 350 void net_dim(struct dim *dim, struct dim_sample end_sample) in net_dim()
|
/linux-6.12.1/drivers/net/ethernet/netronome/nfp/nfd3/ |
D | dp.c | 1171 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/ |
D | dpio-service.c | 883 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/ |
D | dp.c | 1281 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/ |
D | ice_txrx.c | 1294 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/ |
D | idpf_txrx.c | 3637 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/ |
D | otx2_txrx.c | 516 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/ |
D | ionic_txrx.c | 902 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/ |
D | mtk_eth_soc.c | 2017 struct dim_sample dim_sample = {}; in mtk_poll_rx() local 2229 &dim_sample); in mtk_poll_rx() 2230 net_dim(ð->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(ð->tx_dim, dim_sample); in mtk_poll_tx()
|
/linux-6.12.1/drivers/net/ethernet/broadcom/ |
D | bcmsysport.c | 1030 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/ |
D | enetc.c | 710 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/ |
D | ena_netdev.c | 1373 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/ |
D | bcmgenet.c | 2395 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/ |
D | bnxt.c | 3099 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/ |
D | hns3_enet.c | 4444 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/ |
D | virtio_net.c | 2814 struct dim_sample cur_sample = {}; in virtnet_rx_dim_update()
|