Lines Matching refs:evt
930 struct efx_ptp_event_rx *evt; in efx_ptp_drop_time_expired_events() local
932 evt = list_entry(cursor, struct efx_ptp_event_rx, in efx_ptp_drop_time_expired_events()
934 if (time_after(jiffies, evt->expiry)) { in efx_ptp_drop_time_expired_events()
935 list_move(&evt->link, &ptp->evt_free_list); in efx_ptp_drop_time_expired_events()
967 struct efx_ptp_event_rx *evt; in efx_ptp_match_rx() local
969 evt = list_entry(cursor, struct efx_ptp_event_rx, link); in efx_ptp_match_rx()
970 if ((evt->seq0 == match->words[0]) && in efx_ptp_match_rx()
971 (evt->seq1 == match->words[1])) { in efx_ptp_match_rx()
976 timestamps->hwtstamp = evt->hwtimestamp; in efx_ptp_match_rx()
980 list_move(&evt->link, &ptp->evt_free_list); in efx_ptp_match_rx()
1596 struct efx_ptp_event_rx *evt = NULL; in ptp_event_rx() local
1608 evt = list_first_entry(&ptp->evt_free_list, in ptp_event_rx()
1610 list_del(&evt->link); in ptp_event_rx()
1612 evt->seq0 = EFX_QWORD_FIELD(ptp->evt_frags[2], MCDI_EVENT_DATA); in ptp_event_rx()
1613 evt->seq1 = (EFX_QWORD_FIELD(ptp->evt_frags[2], in ptp_event_rx()
1619 evt->hwtimestamp = efx->ptp_data->nic_to_kernel_time( in ptp_event_rx()
1623 evt->expiry = jiffies + msecs_to_jiffies(PKT_EVENT_LIFETIME_MS); in ptp_event_rx()
1624 list_add_tail(&evt->link, &ptp->evt_list); in ptp_event_rx()