Home
last modified time | relevance | path

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

1234

/openbmc/linux/net/core/
H A 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()
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Dmcs_rvu_if.c248 mutex_lock(&mcs->stats_lock); in rvu_mbox_handler_mcs_clear_stats()
254 mutex_unlock(&mcs->stats_lock); in rvu_mbox_handler_mcs_clear_stats()
276 mutex_lock(&mcs->stats_lock); in rvu_mbox_handler_mcs_get_flowid_stats()
278 mutex_unlock(&mcs->stats_lock); in rvu_mbox_handler_mcs_get_flowid_stats()
302 mutex_lock(&mcs->stats_lock); in rvu_mbox_handler_mcs_get_secy_stats()
309 mutex_unlock(&mcs->stats_lock); in rvu_mbox_handler_mcs_get_secy_stats()
331 mutex_lock(&mcs->stats_lock); in rvu_mbox_handler_mcs_get_sc_stats()
333 mutex_unlock(&mcs->stats_lock); in rvu_mbox_handler_mcs_get_sc_stats()
355 mutex_lock(&mcs->stats_lock); in rvu_mbox_handler_mcs_get_sa_stats()
357 mutex_unlock(&mcs->stats_lock); in rvu_mbox_handler_mcs_get_sa_stats()
[all …]
H A 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()
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()
400 mutex_lock(&mcs->stats_lock); in rvu_dbg_mcs_flowid_stats_display()
433 mutex_lock(&mcs->stats_lock); in rvu_dbg_mcs_tx_secy_stats_display()
[all …]
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/
H A 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()
H A 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()
/openbmc/linux/drivers/net/dsa/qca/
H A 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()
/openbmc/linux/drivers/infiniband/ulp/opa_vnic/
H A 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()
H A 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()
H A 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()
/openbmc/linux/include/net/
H A Dnet_failover.h27 spinlock_t stats_lock; member
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/memcached/memcached/
H A D0001-Fix-function-protypes.patch103 pthread_mutex_lock(&stats_lock);
108 pthread_mutex_unlock(&stats_lock);
/openbmc/linux/drivers/net/ethernet/atheros/atlx/
H A 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()
964 spin_lock_irqsave(&adapter->stats_lock, flags); in atl2_mii_ioctl()
1019 spin_lock_irqsave(&adapter->stats_lock, flags); in atl2_watchdog()
1043 spin_lock_irqsave(&adapter->stats_lock, flags); in atl2_phy_config()
1047 spin_unlock_irqrestore(&adapter->stats_lock, flags); in atl2_phy_config()
[all …]
/openbmc/linux/drivers/net/ethernet/mscc/
H A 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()
/openbmc/linux/drivers/net/ethernet/sfc/
H A 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()
/openbmc/linux/drivers/net/ethernet/sfc/siena/
H A 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()
/openbmc/linux/drivers/net/ethernet/atheros/alx/
H A Dethtool.c292 spin_lock(&alx->stats_lock); in alx_get_ethtool_stats()
298 spin_unlock(&alx->stats_lock); in alx_get_ethtool_stats()
H A Dalx.h139 spinlock_t stats_lock; member
/openbmc/linux/arch/um/drivers/
H A Dvector_kern.h118 spinlock_t stats_lock; member
/openbmc/linux/drivers/net/ethernet/netronome/nfp/flower/
H A 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()
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_tc.h143 spinlock_t stats_lock; member
/openbmc/linux/drivers/net/ethernet/intel/igbvf/
H A Digbvf.h223 spinlock_t stats_lock; /* prevent concurrent stats updates */ member
/openbmc/linux/kernel/sched/
H A 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()
/openbmc/linux/drivers/net/dsa/realtek/
H A 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()
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/
H A 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()
3695 spin_lock(&adap->stats_lock); in show_tp_err_channel_stats()
[all …]
/openbmc/linux/drivers/net/ethernet/sfc/falcon/
H A 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