Searched refs:ptp_prev_hw_time (Results 1 - 4 of 4) sorted by relevance
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_ptp.c | 731 ktime_get_real_ts64(&pf->ptp_prev_hw_time); in i40e_ptp_create_clock() 738 * i40e_ptp_save_hw_time - Save the current PTP time as ptp_prev_hw_time 741 * Read the current PTP time and save it into pf->ptp_prev_hw_time. This should 752 i40e_ptp_gettimex(&pf->ptp_caps, &pf->ptp_prev_hw_time, NULL); in i40e_ptp_save_hw_time() 758 * i40e_ptp_restore_hw_time - Restore the ptp_prev_hw_time + delta to PTP regs 762 * hardware time as pf->ptp_prev_hw_time. To be as accurate as possible, 774 timespec64_add_ns(&pf->ptp_prev_hw_time, ktime_to_ns(delta)); in i40e_ptp_restore_hw_time() 777 i40e_ptp_settime(&pf->ptp_caps, &pf->ptp_prev_hw_time); in i40e_ptp_restore_hw_time() 789 * pf->ptp_prev_hw_time to the current system time. During resets, it is
|
H A D | i40e.h | 637 struct timespec64 ptp_prev_hw_time; member
|
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_ptp.c | 1410 ktime_get_real_ts64(&pf->ptp_prev_hw_time); in i40e_ptp_create_clock() 1417 * i40e_ptp_save_hw_time - Save the current PTP time as ptp_prev_hw_time 1420 * Read the current PTP time and save it into pf->ptp_prev_hw_time. This should 1431 i40e_ptp_gettimex(&pf->ptp_caps, &pf->ptp_prev_hw_time, NULL); in i40e_ptp_save_hw_time() 1437 * i40e_ptp_restore_hw_time - Restore the ptp_prev_hw_time + delta to PTP regs 1441 * hardware time as pf->ptp_prev_hw_time. To be as accurate as possible, 1453 timespec64_add_ns(&pf->ptp_prev_hw_time, ktime_to_ns(delta)); in i40e_ptp_restore_hw_time() 1456 i40e_ptp_settime(&pf->ptp_caps, &pf->ptp_prev_hw_time); in i40e_ptp_restore_hw_time() 1468 * pf->ptp_prev_hw_time to the current system time. During resets, it is
|
H A D | i40e.h | 739 struct timespec64 ptp_prev_hw_time; member
|
Completed in 10 milliseconds