• Home
  • Raw
  • Download

Lines Matching refs:nic_minor

307 	void (*ns_to_nic_time)(s64 ns, u32 *nic_major, u32 *nic_minor);
308 ktime_t (*nic_to_kernel_time)(u32 nic_major, u32 nic_minor,
445 static void efx_ptp_ns_to_s_ns(s64 ns, u32 *nic_major, u32 *nic_minor) in efx_ptp_ns_to_s_ns() argument
449 *nic_minor = ts.tv_nsec; in efx_ptp_ns_to_s_ns()
452 static ktime_t efx_ptp_s_ns_to_ktime_correction(u32 nic_major, u32 nic_minor, in efx_ptp_s_ns_to_ktime_correction() argument
455 ktime_t kt = ktime_set(nic_major, nic_minor); in efx_ptp_s_ns_to_ktime_correction()
475 static void efx_ptp_ns_to_s27(s64 ns, u32 *nic_major, u32 *nic_minor) in efx_ptp_ns_to_s27() argument
491 *nic_minor = min; in efx_ptp_ns_to_s27()
494 static inline ktime_t efx_ptp_s27_to_ktime(u32 nic_major, u32 nic_minor) in efx_ptp_s27_to_ktime() argument
496 u32 ns = (u32)(((u64)nic_minor * NSEC_PER_SEC + in efx_ptp_s27_to_ktime()
501 static ktime_t efx_ptp_s27_to_ktime_correction(u32 nic_major, u32 nic_minor, in efx_ptp_s27_to_ktime_correction() argument
505 nic_minor += correction; in efx_ptp_s27_to_ktime_correction()
506 if ((s32)nic_minor < 0) { in efx_ptp_s27_to_ktime_correction()
507 nic_minor += S27_MINOR_MAX; in efx_ptp_s27_to_ktime_correction()
509 } else if (nic_minor >= S27_MINOR_MAX) { in efx_ptp_s27_to_ktime_correction()
510 nic_minor -= S27_MINOR_MAX; in efx_ptp_s27_to_ktime_correction()
514 return efx_ptp_s27_to_ktime(nic_major, nic_minor); in efx_ptp_s27_to_ktime_correction()
518 static void efx_ptp_ns_to_s_qns(s64 ns, u32 *nic_major, u32 *nic_minor) in efx_ptp_ns_to_s_qns() argument
523 *nic_minor = ts.tv_nsec * 4; in efx_ptp_ns_to_s_qns()
526 static ktime_t efx_ptp_s_qns_to_ktime_correction(u32 nic_major, u32 nic_minor, in efx_ptp_s_qns_to_ktime_correction() argument
531 nic_minor = DIV_ROUND_CLOSEST(nic_minor, 4); in efx_ptp_s_qns_to_ktime_correction()
534 kt = ktime_set(nic_major, nic_minor); in efx_ptp_s_qns_to_ktime_correction()
570 u32 nic_major, u32 nic_minor, in efx_ptp_mac_nic_to_ktime_correction() argument
613 kt = ptp->nic_to_kernel_time(nic_major, nic_minor, in efx_ptp_mac_nic_to_ktime_correction()
2177 u32 nic_major, nic_minor; in efx_phc_adjtime() local
2184 efx->ptp_data->ns_to_nic_time(delta, &nic_major, &nic_minor); in efx_phc_adjtime()
2190 MCDI_SET_DWORD(inbuf, PTP_IN_ADJUST_MINOR, nic_minor); in efx_phc_adjtime()