Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/ethernet/sfc/siena/
Dptp.c303 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
445 *nic_minor = ts.tv_nsec; 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
487 *nic_minor = min; 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
492 u32 ns = (u32)(((u64)nic_minor * NSEC_PER_SEC + in efx_ptp_s27_to_ktime()
[all …]
/linux-6.12.1/drivers/net/ethernet/sfc/
Dptp.c307 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,
458 static void efx_ptp_ns_to_s27(s64 ns, u32 *nic_major, u32 *nic_minor) in efx_ptp_ns_to_s27() argument
474 *nic_minor = min; in efx_ptp_ns_to_s27()
477 static inline ktime_t efx_ptp_s27_to_ktime(u32 nic_major, u32 nic_minor) in efx_ptp_s27_to_ktime() argument
479 u32 ns = (u32)(((u64)nic_minor * NSEC_PER_SEC + in efx_ptp_s27_to_ktime()
484 static ktime_t efx_ptp_s27_to_ktime_correction(u32 nic_major, u32 nic_minor, in efx_ptp_s27_to_ktime_correction() argument
488 nic_minor += correction; in efx_ptp_s27_to_ktime_correction()
489 if ((s32)nic_minor < 0) { in efx_ptp_s27_to_ktime_correction()
490 nic_minor += S27_MINOR_MAX; in efx_ptp_s27_to_ktime_correction()
[all …]