Home
last modified time | relevance | path

Searched refs:ptp_lock (Results 1 – 25 of 30) sorted by relevance

12

/Linux-v6.1/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_ptp.c42 write_lock_irqsave(&priv->ptp_lock, flags); in stmmac_adjust_freq()
44 write_unlock_irqrestore(&priv->ptp_lock, flags); in stmmac_adjust_freq()
89 write_lock_irqsave(&priv->ptp_lock, flags); in stmmac_adjust_time()
91 write_unlock_irqrestore(&priv->ptp_lock, flags); in stmmac_adjust_time()
140 read_lock_irqsave(&priv->ptp_lock, flags); in stmmac_get_time()
142 read_unlock_irqrestore(&priv->ptp_lock, flags); in stmmac_get_time()
165 write_lock_irqsave(&priv->ptp_lock, flags); in stmmac_set_time()
167 write_unlock_irqrestore(&priv->ptp_lock, flags); in stmmac_set_time()
196 write_lock_irqsave(&priv->ptp_lock, flags); in stmmac_enable()
201 write_unlock_irqrestore(&priv->ptp_lock, flags); in stmmac_enable()
[all …]
Dstmmac_hwtstamp.c204 read_lock_irqsave(&priv->ptp_lock, flags); in timestamp_interrupt()
206 read_unlock_irqrestore(&priv->ptp_lock, flags); in timestamp_interrupt()
Dstmmac.h271 rwlock_t ptp_lock; member
Dstmmac_selftests.c1779 read_lock_irqsave(&priv->ptp_lock, flags); in stmmac_test_tbs()
1781 read_unlock_irqrestore(&priv->ptp_lock, flags); in stmmac_test_tbs()
1801 read_lock_irqsave(&priv->ptp_lock, flags); in stmmac_test_tbs()
1803 read_unlock_irqrestore(&priv->ptp_lock, flags); in stmmac_test_tbs()
Ddwmac-intel.c390 read_lock_irqsave(&priv->ptp_lock, flags); in intel_crosststamp()
393 read_unlock_irqrestore(&priv->ptp_lock, flags); in intel_crosststamp()
/Linux-v6.1/drivers/net/dsa/hirschmann/
Dhellcreek_ptp.c89 mutex_lock(&hellcreek->ptp_lock); in hellcreek_ptp_gettime()
91 mutex_unlock(&hellcreek->ptp_lock); in hellcreek_ptp_gettime()
108 mutex_lock(&hellcreek->ptp_lock); in hellcreek_ptp_settime()
121 mutex_unlock(&hellcreek->ptp_lock); in hellcreek_ptp_settime()
159 mutex_lock(&hellcreek->ptp_lock); in hellcreek_ptp_adjfine()
168 mutex_unlock(&hellcreek->ptp_lock); in hellcreek_ptp_adjfine()
206 mutex_lock(&hellcreek->ptp_lock); in hellcreek_ptp_adjtime()
216 mutex_unlock(&hellcreek->ptp_lock); in hellcreek_ptp_adjtime()
234 mutex_lock(&hellcreek->ptp_lock); in hellcreek_ptp_overflow_check()
236 mutex_unlock(&hellcreek->ptp_lock); in hellcreek_ptp_overflow_check()
[all …]
Dhellcreek_hwtstamp.c259 mutex_lock(&hellcreek->ptp_lock); in hellcreek_txtstamp_work()
262 mutex_unlock(&hellcreek->ptp_lock); in hellcreek_txtstamp_work()
326 mutex_lock(&hellcreek->ptp_lock); in hellcreek_get_rxts()
328 mutex_unlock(&hellcreek->ptp_lock); in hellcreek_get_rxts()
Dhellcreek.h287 struct mutex ptp_lock; /* PTP IP register lock */ member
Dhellcreek.c1673 mutex_lock(&hellcreek->ptp_lock); in hellcreek_schedule_startable()
1675 mutex_unlock(&hellcreek->ptp_lock); in hellcreek_schedule_startable()
1694 mutex_lock(&hellcreek->ptp_lock); in hellcreek_start_schedule()
1696 mutex_unlock(&hellcreek->ptp_lock); in hellcreek_start_schedule()
1987 mutex_init(&hellcreek->ptp_lock); in hellcreek_probe()
/Linux-v6.1/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ptp.c68 spin_lock_bh(&ptp->ptp_lock); in bnxt_ptp_settime()
70 spin_unlock_bh(&ptp->ptp_lock); in bnxt_ptp_settime()
105 spin_lock_bh(&ptp->ptp_lock); in bnxt_ptp_get_current_time()
108 spin_unlock_bh(&ptp->ptp_lock); in bnxt_ptp_get_current_time()
147 spin_lock_bh(&ptp->ptp_lock); in bnxt_ptp_gettimex()
150 spin_unlock_bh(&ptp->ptp_lock); in bnxt_ptp_gettimex()
154 spin_unlock_bh(&ptp->ptp_lock); in bnxt_ptp_gettimex()
185 spin_lock_bh(&ptp->ptp_lock); in bnxt_ptp_adjphc()
187 spin_unlock_bh(&ptp->ptp_lock); in bnxt_ptp_adjphc()
201 spin_lock_bh(&ptp->ptp_lock); in bnxt_ptp_adjtime()
[all …]
Dbnxt_ptp.h85 spinlock_t ptp_lock; member
125 spin_lock_bh(&(ptp)->ptp_lock); \
127 spin_unlock_bh(&(ptp)->ptp_lock); \
/Linux-v6.1/drivers/net/ethernet/engleder/
Dtsnep_ptp.c111 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()
Dtsnep.h161 spinlock_t ptp_lock; member
/Linux-v6.1/drivers/net/phy/
Dnxp-c45-tja11xx.c220 struct mutex ptp_lock; member
269 mutex_lock(&priv->ptp_lock); in nxp_c45_ptp_gettimex64()
271 mutex_unlock(&priv->ptp_lock); in nxp_c45_ptp_gettimex64()
300 mutex_lock(&priv->ptp_lock); in nxp_c45_ptp_settime64()
302 mutex_unlock(&priv->ptp_lock); in nxp_c45_ptp_settime64()
314 mutex_lock(&priv->ptp_lock); in nxp_c45_ptp_adjfine()
329 mutex_unlock(&priv->ptp_lock); in nxp_c45_ptp_adjfine()
339 mutex_lock(&priv->ptp_lock); in nxp_c45_ptp_adjtime()
344 mutex_unlock(&priv->ptp_lock); in nxp_c45_ptp_adjtime()
389 mutex_lock(&priv->ptp_lock); in nxp_c45_get_hwtxts()
[all …]
/Linux-v6.1/drivers/net/ethernet/marvell/octeontx2/af/
Dptp.h19 spinlock_t ptp_lock; /* lock */ member
Dptp.c130 spin_lock_irqsave(&ptp->ptp_lock, flags); in read_ptp_tstmp_sec_nsec()
139 spin_unlock_irqrestore(&ptp->ptp_lock, flags); in read_ptp_tstmp_sec_nsec()
417 spin_lock_init(&ptp->ptp_lock); in ptp_probe()
/Linux-v6.1/drivers/net/ethernet/aquantia/atlantic/
Daq_ptp.c55 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()
1203 spin_lock_init(&aq_ptp->ptp_lock); in aq_ptp_init()
/Linux-v6.1/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_ptp.c115 spin_lock(&adapter->ptp_lock); in cxgb4_ptp_read_hwstamp()
117 spin_unlock(&adapter->ptp_lock); in cxgb4_ptp_read_hwstamp()
429 spin_lock_init(&adapter->ptp_lock); in cxgb4_ptp_init()
/Linux-v6.1/drivers/net/ethernet/microchip/sparx5/
Dsparx5_ptp.c132 mutex_lock(&sparx5->ptp_lock); in sparx5_ptp_hwtstamp_set()
135 mutex_unlock(&sparx5->ptp_lock); in sparx5_ptp_hwtstamp_set()
612 mutex_init(&sparx5->ptp_lock); in sparx5_ptp_init()
Dsparx5_main.h288 struct mutex ptp_lock; /* lock for ptp interface state */ member
/Linux-v6.1/drivers/net/ethernet/mscc/
Docelot_ptp.c512 mutex_lock(&ocelot->ptp_lock); in ocelot_hwstamp_set()
534 mutex_unlock(&ocelot->ptp_lock); in ocelot_hwstamp_set()
540 mutex_unlock(&ocelot->ptp_lock); in ocelot_hwstamp_set()
555 mutex_unlock(&ocelot->ptp_lock); in ocelot_hwstamp_set()
/Linux-v6.1/drivers/net/ethernet/microchip/lan966x/
Dlan966x_ptp.c92 mutex_lock(&lan966x->ptp_lock); in lan966x_ptp_hwtstamp_set()
95 mutex_unlock(&lan966x->ptp_lock); in lan966x_ptp_hwtstamp_set()
816 mutex_init(&lan966x->ptp_lock); in lan966x_ptp_init()
Dlan966x_main.h260 struct mutex ptp_lock; /* lock for ptp interface state */ member
/Linux-v6.1/drivers/net/ethernet/cavium/liquidio/
Dlio_main.c1539 spin_lock_irqsave(&lio->ptp_lock, flags); in liquidio_ptp_adjfreq()
1546 spin_unlock_irqrestore(&lio->ptp_lock, flags); in liquidio_ptp_adjfreq()
1561 spin_lock_irqsave(&lio->ptp_lock, flags); in liquidio_ptp_adjtime()
1563 spin_unlock_irqrestore(&lio->ptp_lock, flags); in liquidio_ptp_adjtime()
1581 spin_lock_irqsave(&lio->ptp_lock, flags); in liquidio_ptp_gettime()
1584 spin_unlock_irqrestore(&lio->ptp_lock, flags); in liquidio_ptp_gettime()
1606 spin_lock_irqsave(&lio->ptp_lock, flags); in liquidio_ptp_settime()
1609 spin_unlock_irqrestore(&lio->ptp_lock, flags); in liquidio_ptp_settime()
1637 spin_lock_init(&lio->ptp_lock); in oct_ptp_open()
Docteon_network.h170 spinlock_t ptp_lock; member

12