Home
last modified time | relevance | path

Searched refs:stats_lock (Results 1 – 25 of 87) sorted by relevance

1234

/linux-6.6.21/net/core/
Dgen_estimator.c44 spinlock_t *stats_lock; member
66 if (e->stats_lock) in est_fetch_counters()
67 spin_lock(e->stats_lock); in est_fetch_counters()
71 if (e->stats_lock) in est_fetch_counters()
72 spin_unlock(e->stats_lock); in est_fetch_counters()
162 est->stats_lock = lock; in gen_new_estimator()
/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/af/
Dmcs_rvu_if.c243 mutex_lock(&mcs->stats_lock); in rvu_mbox_handler_mcs_clear_stats()
249 mutex_unlock(&mcs->stats_lock); in rvu_mbox_handler_mcs_clear_stats()
271 mutex_lock(&mcs->stats_lock); in rvu_mbox_handler_mcs_get_flowid_stats()
273 mutex_unlock(&mcs->stats_lock); in rvu_mbox_handler_mcs_get_flowid_stats()
297 mutex_lock(&mcs->stats_lock); in rvu_mbox_handler_mcs_get_secy_stats()
304 mutex_unlock(&mcs->stats_lock); in rvu_mbox_handler_mcs_get_secy_stats()
326 mutex_lock(&mcs->stats_lock); in rvu_mbox_handler_mcs_get_sc_stats()
328 mutex_unlock(&mcs->stats_lock); in rvu_mbox_handler_mcs_get_sc_stats()
350 mutex_lock(&mcs->stats_lock); in rvu_mbox_handler_mcs_get_sa_stats()
352 mutex_unlock(&mcs->stats_lock); in rvu_mbox_handler_mcs_get_sa_stats()
[all …]
Drvu_debugfs.c235 mutex_lock(&mcs->stats_lock); in rvu_dbg_mcs_port_stats_display()
248 mutex_unlock(&mcs->stats_lock); in rvu_dbg_mcs_port_stats_display()
275 mutex_lock(&mcs->stats_lock); in rvu_dbg_mcs_sa_stats_display()
285 mutex_unlock(&mcs->stats_lock); in rvu_dbg_mcs_sa_stats_display()
291 mutex_lock(&mcs->stats_lock); in rvu_dbg_mcs_sa_stats_display()
301 mutex_unlock(&mcs->stats_lock); in rvu_dbg_mcs_sa_stats_display()
329 mutex_lock(&mcs->stats_lock); in rvu_dbg_mcs_tx_sc_stats_display()
343 mutex_unlock(&mcs->stats_lock); in rvu_dbg_mcs_tx_sc_stats_display()
359 mutex_lock(&mcs->stats_lock); in rvu_dbg_mcs_rx_sc_stats_display()
380 mutex_unlock(&mcs->stats_lock); in rvu_dbg_mcs_rx_sc_stats_display()
[all …]
/linux-6.6.21/drivers/net/ethernet/microchip/lan966x/
Dlan966x_ethtool.c297 mutex_lock(&lan966x->stats_lock); in lan966x_stats_update()
313 mutex_unlock(&lan966x->stats_lock); in lan966x_stats_update()
368 mutex_lock(&lan966x->stats_lock); in lan966x_get_eth_mac_stats()
427 mutex_unlock(&lan966x->stats_lock); in lan966x_get_eth_mac_stats()
453 mutex_lock(&lan966x->stats_lock); in lan966x_get_eth_rmon_stats()
511 mutex_unlock(&lan966x->stats_lock); in lan966x_get_eth_rmon_stats()
617 mutex_lock(&lan966x->stats_lock); in lan966x_stats_get()
699 mutex_unlock(&lan966x->stats_lock); in lan966x_stats_get()
715 mutex_init(&lan966x->stats_lock); in lan966x_stats_init()
Dlan966x_vcap_impl.c406 mutex_lock(&lan966x->stats_lock); in lan966x_es0_read_esdx_counter()
410 mutex_unlock(&lan966x->stats_lock); in lan966x_es0_read_esdx_counter()
420 mutex_lock(&lan966x->stats_lock); in lan966x_es0_write_esdx_counter()
427 mutex_unlock(&lan966x->stats_lock); in lan966x_es0_write_esdx_counter()
/linux-6.6.21/drivers/net/dsa/qca/
Dar9331.c235 struct spinlock stats_lock; member
622 spin_lock(&port->stats_lock); in ar9331_read_stats()
652 spin_unlock(&port->stats_lock); in ar9331_read_stats()
671 spin_lock(&p->stats_lock); in ar9331_get_stats64()
673 spin_unlock(&p->stats_lock); in ar9331_get_stats64()
682 spin_lock(&p->stats_lock); in ar9331_get_pause_stats()
684 spin_unlock(&p->stats_lock); in ar9331_get_pause_stats()
1068 spin_lock_init(&port->stats_lock); in ar9331_sw_probe()
/linux-6.6.21/drivers/infiniband/ulp/opa_vnic/
Dopa_vnic_ethtool.c147 spin_lock(&adapter->stats_lock); in vnic_get_ethtool_stats()
149 spin_unlock(&adapter->stats_lock); in vnic_get_ethtool_stats()
Dopa_vnic_vema_iface.c92 spin_lock(&adapter->stats_lock); in opa_vnic_get_summary_counters()
94 spin_unlock(&adapter->stats_lock); in opa_vnic_get_summary_counters()
131 spin_lock(&adapter->stats_lock); in opa_vnic_get_error_counters()
133 spin_unlock(&adapter->stats_lock); in opa_vnic_get_error_counters()
Dopa_vnic_netdev.c71 spin_lock(&adapter->stats_lock); in opa_vnic_get_stats64()
73 spin_unlock(&adapter->stats_lock); in opa_vnic_get_stats64()
360 spin_lock_init(&adapter->stats_lock); in opa_vnic_add_netdev()
Dopa_vnic_internal.h218 spinlock_t stats_lock; member
/linux-6.6.21/drivers/net/ethernet/atheros/atlx/
Datl2.c99 spin_lock_init(&adapter->stats_lock); in atl2_sw_init()
552 spin_lock(&adapter->stats_lock); in atl2_check_for_link()
555 spin_unlock(&adapter->stats_lock); in atl2_check_for_link()
573 spin_lock(&adapter->stats_lock); in atl2_clear_phy_int()
575 spin_unlock(&adapter->stats_lock); in atl2_clear_phy_int()
953 spin_lock_irqsave(&adapter->stats_lock, flags); in atl2_mii_ioctl()
956 spin_unlock_irqrestore(&adapter->stats_lock, flags); in atl2_mii_ioctl()
959 spin_unlock_irqrestore(&adapter->stats_lock, flags); in atl2_mii_ioctl()
964 spin_lock_irqsave(&adapter->stats_lock, flags); in atl2_mii_ioctl()
967 spin_unlock_irqrestore(&adapter->stats_lock, flags); in atl2_mii_ioctl()
[all …]
/linux-6.6.21/include/net/
Dnet_failover.h27 spinlock_t stats_lock; member
/linux-6.6.21/drivers/net/ethernet/mscc/
Docelot_stats.c378 spin_lock(&ocelot->stats_lock); in ocelot_check_stats_work()
380 spin_unlock(&ocelot->stats_lock); in ocelot_check_stats_work()
431 spin_lock(&ocelot->stats_lock); in ocelot_port_stats_run()
436 spin_unlock(&ocelot->stats_lock); in ocelot_port_stats_run()
829 spin_lock(&ocelot->stats_lock); in ocelot_port_get_stats64()
885 spin_unlock(&ocelot->stats_lock); in ocelot_port_get_stats64()
969 spin_lock_init(&ocelot->stats_lock); in ocelot_stats_init()
/linux-6.6.21/drivers/net/ethernet/sfc/siena/
Defx_common.c557 spin_lock_bh(&efx->stats_lock); in efx_siena_start_all()
559 spin_unlock_bh(&efx->stats_lock); in efx_siena_start_all()
581 spin_lock_bh(&efx->stats_lock); in efx_siena_stop_all()
583 spin_unlock_bh(&efx->stats_lock); in efx_siena_stop_all()
614 spin_lock_bh(&efx->stats_lock); in efx_siena_net_stats()
616 spin_unlock_bh(&efx->stats_lock); in efx_siena_net_stats()
1023 spin_lock_init(&efx->stats_lock); in efx_siena_init_struct()
/linux-6.6.21/drivers/net/ethernet/sfc/
Defx_common.c555 spin_lock_bh(&efx->stats_lock); in efx_start_all()
557 spin_unlock_bh(&efx->stats_lock); in efx_start_all()
579 spin_lock_bh(&efx->stats_lock); in efx_stop_all()
581 spin_unlock_bh(&efx->stats_lock); in efx_stop_all()
603 spin_lock_bh(&efx->stats_lock); in efx_net_stats()
605 spin_unlock_bh(&efx->stats_lock); in efx_net_stats()
1007 spin_lock_init(&efx->stats_lock); in efx_init_struct()
/linux-6.6.21/drivers/net/ethernet/atheros/alx/
Dethtool.c292 spin_lock(&alx->stats_lock); in alx_get_ethtool_stats()
298 spin_unlock(&alx->stats_lock); in alx_get_ethtool_stats()
Dalx.h139 spinlock_t stats_lock; member
/linux-6.6.21/arch/um/drivers/
Dvector_kern.h118 spinlock_t stats_lock; member
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/flower/
Dmetadata.c126 spin_lock(&priv->stats_lock); in nfp_flower_rx_flow_stats()
134 spin_unlock(&priv->stats_lock); in nfp_flower_rx_flow_stats()
581 spin_lock_init(&priv->stats_lock); in nfp_flower_metadata_init()
/linux-6.6.21/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_tc.h143 spinlock_t stats_lock; member
/linux-6.6.21/drivers/net/ethernet/intel/igbvf/
Digbvf.h223 spinlock_t stats_lock; /* prevent concurrent stats updates */ member
/linux-6.6.21/kernel/sched/
Dcputime.c336 flags = read_seqbegin_or_lock_irqsave(&sig->stats_lock, &seq); in thread_group_cputime()
349 } while (need_seqretry(&sig->stats_lock, seq)); in thread_group_cputime()
350 done_seqretry_irqrestore(&sig->stats_lock, seq, flags); in thread_group_cputime()
/linux-6.6.21/drivers/net/dsa/realtek/
Drtl8365mb.c623 spinlock_t stats_lock; member
1481 spin_lock(&mb->ports[port].stats_lock); in rtl8365mb_stats_update()
1512 spin_unlock(&mb->ports[port].stats_lock); in rtl8365mb_stats_update()
1537 spin_lock(&p->stats_lock); in rtl8365mb_get_stats64()
1539 spin_unlock(&p->stats_lock); in rtl8365mb_get_stats64()
1559 spin_lock_init(&p->stats_lock); in rtl8365mb_stats_setup()
/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_debugfs.c3621 spin_lock(&adap->stats_lock); in show_tcp_stats()
3623 spin_unlock(&adap->stats_lock); in show_tcp_stats()
3640 spin_lock(&adap->stats_lock); in show_ddp_stats()
3642 spin_unlock(&adap->stats_lock); in show_ddp_stats()
3654 spin_lock(&adap->stats_lock); in show_rdma_stats()
3656 spin_unlock(&adap->stats_lock); in show_rdma_stats()
3667 spin_lock(&adap->stats_lock); in show_tp_err_adapter_stats()
3669 spin_unlock(&adap->stats_lock); in show_tp_err_adapter_stats()
3681 spin_lock(&adap->stats_lock); in show_cpl_stats()
3683 spin_unlock(&adap->stats_lock); in show_cpl_stats()
[all …]
/linux-6.6.21/drivers/net/ethernet/sfc/falcon/
Dfalcon.c1460 spin_lock(&efx->stats_lock); in falcon_stats_timer_func()
1466 spin_unlock(&efx->stats_lock); in falcon_stats_timer_func()
2635 spin_lock_bh(&efx->stats_lock); in falcon_start_nic_stats()
2638 spin_unlock_bh(&efx->stats_lock); in falcon_start_nic_stats()
2656 spin_lock_bh(&efx->stats_lock); in falcon_stop_nic_stats()
2658 spin_unlock_bh(&efx->stats_lock); in falcon_stop_nic_stats()
2670 spin_lock_bh(&efx->stats_lock); in falcon_stop_nic_stats()
2672 spin_unlock_bh(&efx->stats_lock); in falcon_stop_nic_stats()

1234