Searched refs:nic_minor (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/net/ethernet/sfc/
H A Dptp.c288 void (*ns_to_nic_time)(s64 ns, u32 *nic_major, u32 *nic_minor);
289 ktime_t (*nic_to_kernel_time)(u32 nic_major, u32 nic_minor,
405 static void efx_ptp_ns_to_s_ns(s64 ns, u32 *nic_major, u32 *nic_minor) efx_ptp_ns_to_s_ns() argument
409 *nic_minor = ts.tv_nsec; efx_ptp_ns_to_s_ns()
412 static ktime_t efx_ptp_s_ns_to_ktime_correction(u32 nic_major, u32 nic_minor, efx_ptp_s_ns_to_ktime_correction() argument
415 ktime_t kt = ktime_set(nic_major, nic_minor); efx_ptp_s_ns_to_ktime_correction()
435 static void efx_ptp_ns_to_s27(s64 ns, u32 *nic_major, u32 *nic_minor) efx_ptp_ns_to_s27() argument
451 *nic_minor = min; efx_ptp_ns_to_s27()
454 static inline ktime_t efx_ptp_s27_to_ktime(u32 nic_major, u32 nic_minor) efx_ptp_s27_to_ktime() argument
456 u32 ns = (u32)(((u64)nic_minor * NSEC_PER_SEC + efx_ptp_s27_to_ktime()
461 static ktime_t efx_ptp_s27_to_ktime_correction(u32 nic_major, u32 nic_minor, efx_ptp_s27_to_ktime_correction() argument
465 nic_minor += correction; efx_ptp_s27_to_ktime_correction()
466 if ((s32)nic_minor < 0) { efx_ptp_s27_to_ktime_correction()
467 nic_minor += S27_MINOR_MAX; efx_ptp_s27_to_ktime_correction()
469 } else if (nic_minor >= S27_MINOR_MAX) { efx_ptp_s27_to_ktime_correction()
470 nic_minor -= S27_MINOR_MAX; efx_ptp_s27_to_ktime_correction()
474 return efx_ptp_s27_to_ktime(nic_major, nic_minor); efx_ptp_s27_to_ktime_correction()
1822 u32 nic_major, nic_minor; efx_phc_adjtime() local
1829 efx->ptp_data->ns_to_nic_time(delta, &nic_major, &nic_minor); efx_phc_adjtime()
1835 MCDI_SET_DWORD(inbuf, PTP_IN_ADJUST_MINOR, nic_minor); efx_phc_adjtime()

Completed in 56 milliseconds