Lines Matching refs:evt
940 struct efx_ptp_event_rx *evt; in efx_ptp_drop_time_expired_events() local
942 evt = list_entry(cursor, struct efx_ptp_event_rx, in efx_ptp_drop_time_expired_events()
944 if (time_after(jiffies, evt->expiry)) { in efx_ptp_drop_time_expired_events()
945 list_move(&evt->link, &ptp->evt_free_list); in efx_ptp_drop_time_expired_events()
977 struct efx_ptp_event_rx *evt; in efx_ptp_match_rx() local
979 evt = list_entry(cursor, struct efx_ptp_event_rx, link); in efx_ptp_match_rx()
980 if ((evt->seq0 == match->words[0]) && in efx_ptp_match_rx()
981 (evt->seq1 == match->words[1])) { in efx_ptp_match_rx()
986 timestamps->hwtstamp = evt->hwtimestamp; in efx_ptp_match_rx()
990 list_move(&evt->link, &ptp->evt_free_list); in efx_ptp_match_rx()
1606 struct efx_ptp_event_rx *evt = NULL; in ptp_event_rx() local
1618 evt = list_first_entry(&ptp->evt_free_list, in ptp_event_rx()
1620 list_del(&evt->link); in ptp_event_rx()
1622 evt->seq0 = EFX_QWORD_FIELD(ptp->evt_frags[2], MCDI_EVENT_DATA); in ptp_event_rx()
1623 evt->seq1 = (EFX_QWORD_FIELD(ptp->evt_frags[2], in ptp_event_rx()
1629 evt->hwtimestamp = efx->ptp_data->nic_to_kernel_time( in ptp_event_rx()
1633 evt->expiry = jiffies + msecs_to_jiffies(PKT_EVENT_LIFETIME_MS); in ptp_event_rx()
1634 list_add_tail(&evt->link, &ptp->evt_list); in ptp_event_rx()