Lines Matching refs:timeout
217 static void aq_ptp_tx_timeout_init(struct ptp_tx_timeout *timeout) in aq_ptp_tx_timeout_init() argument
219 spin_lock_init(&timeout->lock); in aq_ptp_tx_timeout_init()
220 timeout->active = false; in aq_ptp_tx_timeout_init()
225 struct ptp_tx_timeout *timeout = &aq_ptp->ptp_tx_timeout; in aq_ptp_tx_timeout_start() local
228 spin_lock_irqsave(&timeout->lock, flags); in aq_ptp_tx_timeout_start()
229 timeout->active = true; in aq_ptp_tx_timeout_start()
230 timeout->tx_start = jiffies; in aq_ptp_tx_timeout_start()
231 spin_unlock_irqrestore(&timeout->lock, flags); in aq_ptp_tx_timeout_start()
237 struct ptp_tx_timeout *timeout = &aq_ptp->ptp_tx_timeout; in aq_ptp_tx_timeout_update() local
240 spin_lock_irqsave(&timeout->lock, flags); in aq_ptp_tx_timeout_update()
241 timeout->active = false; in aq_ptp_tx_timeout_update()
242 spin_unlock_irqrestore(&timeout->lock, flags); in aq_ptp_tx_timeout_update()
248 struct ptp_tx_timeout *timeout = &aq_ptp->ptp_tx_timeout; in aq_ptp_tx_timeout_check() local
254 spin_lock_irqsave(&timeout->lock, flags); in aq_ptp_tx_timeout_check()
255 if (timeout->active) { in aq_ptp_tx_timeout_check()
256 timeout_flag = time_is_before_jiffies(timeout->tx_start + in aq_ptp_tx_timeout_check()
260 timeout->active = false; in aq_ptp_tx_timeout_check()
262 spin_unlock_irqrestore(&timeout->lock, flags); in aq_ptp_tx_timeout_check()
1378 unsigned long timeout = msecs_to_jiffies(aq_ptp->poll_timeout_ms); in aq_ptp_poll_sync_work_cb() local
1380 schedule_delayed_work(&aq_ptp->poll_sync, timeout); in aq_ptp_poll_sync_work_cb()