Home
last modified time | relevance | path

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

12

/linux/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_ptp.c34 write_lock_irqsave(&priv->ptp_lock, flags); in stmmac_adjust_freq()
36 write_unlock_irqrestore(&priv->ptp_lock, flags); in stmmac_adjust_freq()
81 write_lock_irqsave(&priv->ptp_lock, flags); in stmmac_adjust_time()
83 write_unlock_irqrestore(&priv->ptp_lock, flags); in stmmac_adjust_time()
132 read_lock_irqsave(&priv->ptp_lock, flags); in stmmac_get_time()
134 read_unlock_irqrestore(&priv->ptp_lock, flags); in stmmac_get_time()
157 write_lock_irqsave(&priv->ptp_lock, flags); in stmmac_set_time()
159 write_unlock_irqrestore(&priv->ptp_lock, flags); in stmmac_set_time()
217 write_lock_irqsave(&priv->ptp_lock, flags); in stmmac_enable()
222 write_unlock_irqrestore(&priv->ptp_lock, flags); in stmmac_enable()
[all …]
H A Dstmmac_hwtstamp.c248 read_lock_irqsave(&priv->ptp_lock, flags); in timestamp_interrupt()
250 read_unlock_irqrestore(&priv->ptp_lock, flags); in timestamp_interrupt()
H A Ddwmac1000_core.c538 read_lock_irqsave(&priv->ptp_lock, flags); in dwmac1000_timestamp_interrupt()
540 read_unlock_irqrestore(&priv->ptp_lock, flags); in dwmac1000_timestamp_interrupt()
H A Ddwmac-socfpga.c375 read_lock_irqsave(&priv->ptp_lock, flags); in smtg_crosststamp()
378 read_unlock_irqrestore(&priv->ptp_lock, flags); in smtg_crosststamp()
H A Dstmmac.h317 rwlock_t ptp_lock; member
/linux/drivers/net/dsa/hirschmann/
H A Dhellcreek_ptp.c95 mutex_lock(&hellcreek->ptp_lock); in hellcreek_ptp_gettimex()
97 mutex_unlock(&hellcreek->ptp_lock); in hellcreek_ptp_gettimex()
114 mutex_lock(&hellcreek->ptp_lock); in hellcreek_ptp_settime()
127 mutex_unlock(&hellcreek->ptp_lock); in hellcreek_ptp_settime()
165 mutex_lock(&hellcreek->ptp_lock); in hellcreek_ptp_adjfine()
174 mutex_unlock(&hellcreek->ptp_lock); in hellcreek_ptp_adjfine()
212 mutex_lock(&hellcreek->ptp_lock); in hellcreek_ptp_adjtime()
222 mutex_unlock(&hellcreek->ptp_lock); in hellcreek_ptp_adjtime()
240 mutex_lock(&hellcreek->ptp_lock); in hellcreek_ptp_overflow_check()
242 mutex_unlock(&hellcreek->ptp_lock); in hellcreek_ptp_overflow_check()
[all …]
H A Dhellcreek_hwtstamp.c253 mutex_lock(&hellcreek->ptp_lock); in hellcreek_txtstamp_work()
256 mutex_unlock(&hellcreek->ptp_lock); in hellcreek_txtstamp_work()
313 mutex_lock(&hellcreek->ptp_lock); in hellcreek_get_rxts()
315 mutex_unlock(&hellcreek->ptp_lock); in hellcreek_get_rxts()
H A Dhellcreek.c1663 mutex_lock(&hellcreek->ptp_lock); in hellcreek_schedule_startable()
1665 mutex_unlock(&hellcreek->ptp_lock); in hellcreek_schedule_startable()
1684 mutex_lock(&hellcreek->ptp_lock); in hellcreek_start_schedule()
1686 mutex_unlock(&hellcreek->ptp_lock); in hellcreek_start_schedule()
1983 mutex_init(&hellcreek->ptp_lock); in hellcreek_probe()
H A Dhellcreek.h289 struct mutex ptp_lock; /* PTP IP register lock */ member
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ptp.c70 write_seqlock_irqsave(&ptp->ptp_lock, flags); in bnxt_ptp_settime()
72 write_sequnlock_irqrestore(&ptp->ptp_lock, flags); in bnxt_ptp_settime()
109 read_seqlock_excl_irqsave(&ptp->ptp_lock, flags); in bnxt_refclk_read()
111 read_sequnlock_excl_irqrestore(&ptp->ptp_lock, flags); in bnxt_refclk_read()
122 read_seqlock_excl_irqsave(&ptp->ptp_lock, flags); in bnxt_refclk_read_low()
125 read_sequnlock_excl_irqrestore(&ptp->ptp_lock, flags); in bnxt_refclk_read_low()
133 read_sequnlock_excl_irqrestore(&ptp->ptp_lock, flags); in bnxt_refclk_read_low()
241 write_seqlock_irqsave(&ptp->ptp_lock, flags); in bnxt_ptp_adjtime()
243 write_sequnlock_irqrestore(&ptp->ptp_lock, flags); in bnxt_ptp_adjtime()
276 write_seqlock_irqsave(&ptp->ptp_lock, flags); in bnxt_ptp_adjfine()
[all …]
H A Dbnxt_ptp.h106 seqlock_t ptp_lock; member
184 seq = read_seqbegin(&ptp->ptp_lock); in bnxt_timecounter_cyc2time()
186 } while (read_seqretry(&ptp->ptp_lock, seq)); in bnxt_timecounter_cyc2time()
/linux/drivers/net/ethernet/engleder/
H A Dtsnep_ptp.c107 spin_lock_irqsave(&adapter->ptp_lock, flags); in tsnep_ptp_adjtime()
120 spin_unlock_irqrestore(&adapter->ptp_lock, flags); in tsnep_ptp_adjtime()
160 spin_lock_irqsave(&adapter->ptp_lock, flags); in tsnep_ptp_settime64()
169 spin_unlock_irqrestore(&adapter->ptp_lock, flags); in tsnep_ptp_settime64()
220 spin_lock_init(&adapter->ptp_lock); in tsnep_ptp_init()
H A Dtsnep.h183 spinlock_t ptp_lock; member
/linux/drivers/net/phy/
H A Dmicrochip_rds_ptp.c695 mutex_lock(&clock->ptp_lock); in mchp_rds_ptp_ltc_adjtime()
738 mutex_unlock(&clock->ptp_lock); in mchp_rds_ptp_ltc_adjtime()
740 mutex_lock(&clock->ptp_lock); in mchp_rds_ptp_ltc_adjtime()
749 mutex_unlock(&clock->ptp_lock); in mchp_rds_ptp_ltc_adjtime()
782 mutex_lock(&clock->ptp_lock); in mchp_rds_ptp_ltc_adjfine()
793 mutex_unlock(&clock->ptp_lock); in mchp_rds_ptp_ltc_adjfine()
808 mutex_lock(&clock->ptp_lock); in mchp_rds_ptp_ltc_gettime64()
856 mutex_unlock(&clock->ptp_lock); in mchp_rds_ptp_ltc_gettime64()
869 mutex_lock(&clock->ptp_lock); in mchp_rds_ptp_ltc_settime64()
909 mutex_unlock(&clock->ptp_lock); in mchp_rds_ptp_ltc_settime64()
[all …]
H A Dnxp-c45-tja11xx.c411 mutex_lock(&priv->ptp_lock); in nxp_c45_ptp_gettimex64()
413 mutex_unlock(&priv->ptp_lock); in nxp_c45_ptp_gettimex64()
442 mutex_lock(&priv->ptp_lock); in nxp_c45_ptp_settime64()
444 mutex_unlock(&priv->ptp_lock); in nxp_c45_ptp_settime64()
458 mutex_lock(&priv->ptp_lock); in nxp_c45_ptp_adjfine()
475 mutex_unlock(&priv->ptp_lock); in nxp_c45_ptp_adjfine()
485 mutex_lock(&priv->ptp_lock); in nxp_c45_ptp_adjtime()
490 mutex_unlock(&priv->ptp_lock); in nxp_c45_ptp_adjtime()
604 mutex_lock(&priv->ptp_lock); in nxp_c45_get_hwtxts()
614 mutex_unlock(&priv->ptp_lock); in nxp_c45_get_hwtxts()
[all …]
H A Dnxp-c45-tja11xx.h22 struct mutex ptp_lock; member
H A Dmicrel.c444 struct mutex ptp_lock; member
4931 mutex_lock(&ptp_priv->ptp_lock); in lan8841_gpio_process_cap()
4949 mutex_unlock(&ptp_priv->ptp_lock); in lan8841_gpio_process_cap()
5305 mutex_lock(&ptp_priv->ptp_lock); in lan8841_ptp_settime64()
5316 mutex_unlock(&ptp_priv->ptp_lock); in lan8841_ptp_settime64()
5341 mutex_lock(&ptp_priv->ptp_lock); in lan8841_ptp_gettime64()
5356 mutex_unlock(&ptp_priv->ptp_lock); in lan8841_ptp_gettime64()
5370 mutex_lock(&ptp_priv->ptp_lock); in lan8841_ptp_getseconds()
5381 mutex_unlock(&ptp_priv->ptp_lock); in lan8841_ptp_getseconds()
5446 mutex_lock(&ptp_priv->ptp_lock); in lan8841_ptp_adjtime()
[all …]
H A Dmicrochip_rds_ptp.h198 struct mutex ptp_lock; member
/linux/drivers/net/ethernet/aquantia/atlantic/
H A 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()
1194 spin_lock_init(&aq_ptp->ptp_lock); in aq_ptp_init()
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_ptp.c115 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()
/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Dptp.h19 spinlock_t ptp_lock; /* lock */ member
H A Dptp.c158 spin_lock_irqsave(&ptp->ptp_lock, flags); in read_ptp_tstmp_sec_nsec()
167 spin_unlock_irqrestore(&ptp->ptp_lock, flags); in read_ptp_tstmp_sec_nsec()
545 spin_lock_init(&ptp->ptp_lock); in ptp_probe()
/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_ptp.c134 mutex_lock(&sparx5->ptp_lock); in sparx5_ptp_hwtstamp_set()
137 mutex_unlock(&sparx5->ptp_lock); in sparx5_ptp_hwtstamp_set()
623 mutex_init(&sparx5->ptp_lock); in sparx5_ptp_init()
/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_ptp.c310 mutex_lock(&lan966x->ptp_lock); in lan966x_ptp_hwtstamp_set()
313 mutex_unlock(&lan966x->ptp_lock); in lan966x_ptp_hwtstamp_set()
1048 mutex_init(&lan966x->ptp_lock); in lan966x_ptp_init()
/linux/drivers/net/ethernet/cavium/liquidio/
H A Dlio_main.c1534 spin_lock_irqsave(&lio->ptp_lock, flags); in liquidio_ptp_adjfine()
1541 spin_unlock_irqrestore(&lio->ptp_lock, flags); in liquidio_ptp_adjfine()
1556 spin_lock_irqsave(&lio->ptp_lock, flags); in liquidio_ptp_adjtime()
1558 spin_unlock_irqrestore(&lio->ptp_lock, flags); in liquidio_ptp_adjtime()
1576 spin_lock_irqsave(&lio->ptp_lock, flags); in liquidio_ptp_gettime()
1579 spin_unlock_irqrestore(&lio->ptp_lock, flags); in liquidio_ptp_gettime()
1601 spin_lock_irqsave(&lio->ptp_lock, flags); in liquidio_ptp_settime()
1604 spin_unlock_irqrestore(&lio->ptp_lock, flags); in liquidio_ptp_settime()
1632 spin_lock_init(&lio->ptp_lock); in oct_ptp_open()

12