/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_ptp.c | 33 write_lock_irqsave(&priv->ptp_lock, flags); in stmmac_adjust_freq() 35 write_unlock_irqrestore(&priv->ptp_lock, flags); in stmmac_adjust_freq() 80 write_lock_irqsave(&priv->ptp_lock, flags); in stmmac_adjust_time() 82 write_unlock_irqrestore(&priv->ptp_lock, flags); in stmmac_adjust_time() 131 read_lock_irqsave(&priv->ptp_lock, flags); in stmmac_get_time() 133 read_unlock_irqrestore(&priv->ptp_lock, flags); in stmmac_get_time() 156 write_lock_irqsave(&priv->ptp_lock, flags); in stmmac_set_time() 158 write_unlock_irqrestore(&priv->ptp_lock, flags); in stmmac_set_time() 187 write_lock_irqsave(&priv->ptp_lock, flags); in stmmac_enable() 192 write_unlock_irqrestore(&priv->ptp_lock, flags); in stmmac_enable() [all …]
|
H A D | stmmac_hwtstamp.c | 251 read_lock_irqsave(&priv->ptp_lock, flags); in timestamp_interrupt() 253 read_unlock_irqrestore(&priv->ptp_lock, flags); in timestamp_interrupt()
|
H A D | stmmac.h | 282 rwlock_t ptp_lock; member
|
H A D | stmmac_selftests.c | 1783 read_lock_irqsave(&priv->ptp_lock, flags); in stmmac_test_tbs() 1785 read_unlock_irqrestore(&priv->ptp_lock, flags); in stmmac_test_tbs() 1805 read_lock_irqsave(&priv->ptp_lock, flags); in stmmac_test_tbs() 1807 read_unlock_irqrestore(&priv->ptp_lock, flags); in stmmac_test_tbs()
|
H A D | dwmac-intel.c | 388 read_lock_irqsave(&priv->ptp_lock, flags); in intel_crosststamp() 391 read_unlock_irqrestore(&priv->ptp_lock, flags); in intel_crosststamp()
|
/openbmc/linux/drivers/net/dsa/hirschmann/ |
H A D | hellcreek_ptp.c | 90 mutex_lock(&hellcreek->ptp_lock); in hellcreek_ptp_gettime() 92 mutex_unlock(&hellcreek->ptp_lock); in hellcreek_ptp_gettime() 109 mutex_lock(&hellcreek->ptp_lock); in hellcreek_ptp_settime() 122 mutex_unlock(&hellcreek->ptp_lock); in hellcreek_ptp_settime() 160 mutex_lock(&hellcreek->ptp_lock); in hellcreek_ptp_adjfine() 169 mutex_unlock(&hellcreek->ptp_lock); in hellcreek_ptp_adjfine() 207 mutex_lock(&hellcreek->ptp_lock); in hellcreek_ptp_adjtime() 217 mutex_unlock(&hellcreek->ptp_lock); in hellcreek_ptp_adjtime() 235 mutex_lock(&hellcreek->ptp_lock); in hellcreek_ptp_overflow_check() 237 mutex_unlock(&hellcreek->ptp_lock); in hellcreek_ptp_overflow_check() [all …]
|
H A D | hellcreek_hwtstamp.c | 259 mutex_lock(&hellcreek->ptp_lock); in hellcreek_txtstamp_work() 262 mutex_unlock(&hellcreek->ptp_lock); in hellcreek_txtstamp_work() 319 mutex_lock(&hellcreek->ptp_lock); in hellcreek_get_rxts() 321 mutex_unlock(&hellcreek->ptp_lock); in hellcreek_get_rxts()
|
H A D | hellcreek.h | 287 struct mutex ptp_lock; /* PTP IP register lock */ member
|
H A D | hellcreek.c | 1667 mutex_lock(&hellcreek->ptp_lock); in hellcreek_schedule_startable() 1669 mutex_unlock(&hellcreek->ptp_lock); in hellcreek_schedule_startable() 1688 mutex_lock(&hellcreek->ptp_lock); in hellcreek_start_schedule() 1690 mutex_unlock(&hellcreek->ptp_lock); in hellcreek_start_schedule() 1985 mutex_init(&hellcreek->ptp_lock); in hellcreek_probe()
|
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_ptp.c | 69 spin_lock_bh(&ptp->ptp_lock); in bnxt_ptp_settime() 71 spin_unlock_bh(&ptp->ptp_lock); in bnxt_ptp_settime() 106 spin_lock_bh(&ptp->ptp_lock); in bnxt_ptp_get_current_time() 109 spin_unlock_bh(&ptp->ptp_lock); in bnxt_ptp_get_current_time() 148 spin_lock_bh(&ptp->ptp_lock); in bnxt_ptp_gettimex() 151 spin_unlock_bh(&ptp->ptp_lock); in bnxt_ptp_gettimex() 155 spin_unlock_bh(&ptp->ptp_lock); in bnxt_ptp_gettimex() 186 spin_lock_bh(&ptp->ptp_lock); in bnxt_ptp_adjphc() 188 spin_unlock_bh(&ptp->ptp_lock); in bnxt_ptp_adjphc() 202 spin_lock_bh(&ptp->ptp_lock); in bnxt_ptp_adjtime() [all …]
|
H A D | bnxt_ptp.h | 87 spinlock_t ptp_lock; member 129 spin_lock_bh(&(ptp)->ptp_lock); \ 131 spin_unlock_bh(&(ptp)->ptp_lock); \
|
/openbmc/linux/drivers/net/ethernet/engleder/ |
H A D | tsnep_ptp.c | 111 spin_lock_irqsave(&adapter->ptp_lock, flags); in tsnep_ptp_adjtime() 124 spin_unlock_irqrestore(&adapter->ptp_lock, flags); in tsnep_ptp_adjtime() 164 spin_lock_irqsave(&adapter->ptp_lock, flags); in tsnep_ptp_settime64() 173 spin_unlock_irqrestore(&adapter->ptp_lock, flags); in tsnep_ptp_settime64() 224 spin_lock_init(&adapter->ptp_lock); in tsnep_ptp_init()
|
H A D | tsnep.h | 183 spinlock_t ptp_lock; member
|
/openbmc/linux/drivers/net/phy/ |
H A D | nxp-c45-tja11xx.c | 293 struct mutex ptp_lock; member 415 mutex_lock(&priv->ptp_lock); in nxp_c45_ptp_gettimex64() 417 mutex_unlock(&priv->ptp_lock); in nxp_c45_ptp_gettimex64() 446 mutex_lock(&priv->ptp_lock); in nxp_c45_ptp_settime64() 448 mutex_unlock(&priv->ptp_lock); in nxp_c45_ptp_settime64() 462 mutex_lock(&priv->ptp_lock); in nxp_c45_ptp_adjfine() 479 mutex_unlock(&priv->ptp_lock); in nxp_c45_ptp_adjfine() 489 mutex_lock(&priv->ptp_lock); in nxp_c45_ptp_adjtime() 494 mutex_unlock(&priv->ptp_lock); in nxp_c45_ptp_adjtime() 608 mutex_lock(&priv->ptp_lock); in nxp_c45_get_hwtxts() [all …]
|
H A D | micrel.c | 328 struct mutex ptp_lock; member 3661 mutex_lock(&ptp_priv->ptp_lock); in lan8841_gpio_process_cap() 3679 mutex_unlock(&ptp_priv->ptp_lock); in lan8841_gpio_process_cap() 4028 mutex_lock(&ptp_priv->ptp_lock); in lan8841_ptp_settime64() 4039 mutex_unlock(&ptp_priv->ptp_lock); in lan8841_ptp_settime64() 4064 mutex_lock(&ptp_priv->ptp_lock); in lan8841_ptp_gettime64() 4079 mutex_unlock(&ptp_priv->ptp_lock); in lan8841_ptp_gettime64() 4093 mutex_lock(&ptp_priv->ptp_lock); in lan8841_ptp_getseconds() 4104 mutex_unlock(&ptp_priv->ptp_lock); in lan8841_ptp_getseconds() 4169 mutex_lock(&ptp_priv->ptp_lock); in lan8841_ptp_adjtime() [all …]
|
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | ptp.h | 19 spinlock_t ptp_lock; /* lock */ member
|
H A D | ptp.c | 157 spin_lock_irqsave(&ptp->ptp_lock, flags); in read_ptp_tstmp_sec_nsec() 166 spin_unlock_irqrestore(&ptp->ptp_lock, flags); in read_ptp_tstmp_sec_nsec() 513 spin_lock_init(&ptp->ptp_lock); in ptp_probe()
|
/openbmc/linux/drivers/net/ethernet/aquantia/atlantic/ |
H A D | aq_ptp.c | 55 spinlock_t ptp_lock; member 303 spin_lock_irqsave(&aq_ptp->ptp_lock, flags); in aq_ptp_adjtime() 305 spin_unlock_irqrestore(&aq_ptp->ptp_lock, flags); in aq_ptp_adjtime() 324 spin_lock_irqsave(&aq_ptp->ptp_lock, flags); in aq_ptp_gettime() 326 spin_unlock_irqrestore(&aq_ptp->ptp_lock, flags); in aq_ptp_gettime() 349 spin_lock_irqsave(&aq_ptp->ptp_lock, flags); in aq_ptp_settime() 353 spin_unlock_irqrestore(&aq_ptp->ptp_lock, flags); in aq_ptp_settime() 1195 spin_lock_init(&aq_ptp->ptp_lock); in aq_ptp_init()
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_ptp.c | 115 spin_lock(&adapter->ptp_lock); in cxgb4_ptp_read_hwstamp() 117 spin_unlock(&adapter->ptp_lock); in cxgb4_ptp_read_hwstamp() 432 spin_lock_init(&adapter->ptp_lock); in cxgb4_ptp_init()
|
H A D | sge.c | 2490 spin_lock(&adap->ptp_lock); in t4_start_xmit() 2492 spin_unlock(&adap->ptp_lock); in t4_start_xmit() 4303 spin_lock(&adap->ptp_lock); in sge_tx_timer_cb() 4310 spin_unlock(&adap->ptp_lock); in sge_tx_timer_cb() 4995 spin_lock_bh(&adap->ptp_lock); in t4_free_sge_resources() 4997 spin_unlock_bh(&adap->ptp_lock); in t4_free_sge_resources()
|
/openbmc/linux/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_ptp.c | 130 mutex_lock(&sparx5->ptp_lock); in sparx5_ptp_hwtstamp_set() 133 mutex_unlock(&sparx5->ptp_lock); in sparx5_ptp_hwtstamp_set() 609 mutex_init(&sparx5->ptp_lock); in sparx5_ptp_init()
|
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_ptp.c | 307 mutex_lock(&lan966x->ptp_lock); in lan966x_ptp_hwtstamp_set() 310 mutex_unlock(&lan966x->ptp_lock); in lan966x_ptp_hwtstamp_set() 1028 mutex_init(&lan966x->ptp_lock); in lan966x_ptp_init()
|
H A D | lan966x_main.h | 371 struct mutex ptp_lock; /* lock for ptp interface state */ member
|
/openbmc/linux/drivers/net/ethernet/cavium/liquidio/ |
H A D | lio_main.c | 1538 spin_lock_irqsave(&lio->ptp_lock, flags); in liquidio_ptp_adjfine() 1545 spin_unlock_irqrestore(&lio->ptp_lock, flags); in liquidio_ptp_adjfine() 1560 spin_lock_irqsave(&lio->ptp_lock, flags); in liquidio_ptp_adjtime() 1562 spin_unlock_irqrestore(&lio->ptp_lock, flags); in liquidio_ptp_adjtime() 1580 spin_lock_irqsave(&lio->ptp_lock, flags); in liquidio_ptp_gettime() 1583 spin_unlock_irqrestore(&lio->ptp_lock, flags); in liquidio_ptp_gettime() 1605 spin_lock_irqsave(&lio->ptp_lock, flags); in liquidio_ptp_settime() 1608 spin_unlock_irqrestore(&lio->ptp_lock, flags); in liquidio_ptp_settime() 1636 spin_lock_init(&lio->ptp_lock); in oct_ptp_open()
|
H A D | octeon_network.h | 170 spinlock_t ptp_lock; member
|