Lines Matching refs:nic_major
303 void (*ns_to_nic_time)(s64 ns, u32 *nic_major, u32 *nic_minor);
304 ktime_t (*nic_to_kernel_time)(u32 nic_major, u32 nic_minor,
441 static void efx_ptp_ns_to_s_ns(s64 ns, u32 *nic_major, u32 *nic_minor) in efx_ptp_ns_to_s_ns() argument
444 *nic_major = (u32)ts.tv_sec; in efx_ptp_ns_to_s_ns()
448 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
451 ktime_t kt = ktime_set(nic_major, nic_minor); in efx_ptp_s_ns_to_ktime_correction()
471 static void efx_ptp_ns_to_s27(s64 ns, u32 *nic_major, u32 *nic_minor) in efx_ptp_ns_to_s27() argument
486 *nic_major = maj; in efx_ptp_ns_to_s27()
490 static inline ktime_t efx_ptp_s27_to_ktime(u32 nic_major, u32 nic_minor) in efx_ptp_s27_to_ktime() argument
494 return ktime_set(nic_major, ns); in efx_ptp_s27_to_ktime()
497 static ktime_t efx_ptp_s27_to_ktime_correction(u32 nic_major, u32 nic_minor, in efx_ptp_s27_to_ktime_correction() argument
504 nic_major--; in efx_ptp_s27_to_ktime_correction()
507 nic_major++; in efx_ptp_s27_to_ktime_correction()
510 return efx_ptp_s27_to_ktime(nic_major, nic_minor); in efx_ptp_s27_to_ktime_correction()
514 static void efx_ptp_ns_to_s_qns(s64 ns, u32 *nic_major, u32 *nic_minor) in efx_ptp_ns_to_s_qns() argument
518 *nic_major = (u32)ts.tv_sec; in efx_ptp_ns_to_s_qns()
522 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
530 kt = ktime_set(nic_major, nic_minor); in efx_ptp_s_qns_to_ktime_correction()
560 u32 nic_major, u32 nic_minor, in efx_ptp_mac_nic_to_ktime_correction() argument
567 if (!(nic_major & 0x80000000)) { in efx_ptp_mac_nic_to_ktime_correction()
568 WARN_ON_ONCE(nic_major >> 16); in efx_ptp_mac_nic_to_ktime_correction()
596 delta = nic_major - sync_timestamp; in efx_ptp_mac_nic_to_ktime_correction()
601 nic_major = sync_timestamp + delta; in efx_ptp_mac_nic_to_ktime_correction()
603 kt = ptp->nic_to_kernel_time(nic_major, nic_minor, in efx_ptp_mac_nic_to_ktime_correction()
2095 u32 nic_major, nic_minor; in efx_phc_adjtime() local
2102 efx->ptp_data->ns_to_nic_time(delta, &nic_major, &nic_minor); in efx_phc_adjtime()
2107 MCDI_SET_DWORD(inbuf, PTP_IN_ADJUST_MAJOR, nic_major); in efx_phc_adjtime()