Lines Matching refs:ptp_lock
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()
304 rwlock_init(&priv->ptp_lock); in stmmac_ptp_register()