nic_major 298 drivers/net/ethernet/sfc/ptp.c void (*ns_to_nic_time)(s64 ns, u32 *nic_major, u32 *nic_minor); nic_major 299 drivers/net/ethernet/sfc/ptp.c ktime_t (*nic_to_kernel_time)(u32 nic_major, u32 nic_minor, nic_major 441 drivers/net/ethernet/sfc/ptp.c static void efx_ptp_ns_to_s_ns(s64 ns, u32 *nic_major, u32 *nic_minor) nic_major 444 drivers/net/ethernet/sfc/ptp.c *nic_major = (u32)ts.tv_sec; nic_major 448 drivers/net/ethernet/sfc/ptp.c static ktime_t efx_ptp_s_ns_to_ktime_correction(u32 nic_major, u32 nic_minor, nic_major 451 drivers/net/ethernet/sfc/ptp.c ktime_t kt = ktime_set(nic_major, nic_minor); nic_major 471 drivers/net/ethernet/sfc/ptp.c static void efx_ptp_ns_to_s27(s64 ns, u32 *nic_major, u32 *nic_minor) nic_major 486 drivers/net/ethernet/sfc/ptp.c *nic_major = maj; nic_major 490 drivers/net/ethernet/sfc/ptp.c static inline ktime_t efx_ptp_s27_to_ktime(u32 nic_major, u32 nic_minor) nic_major 494 drivers/net/ethernet/sfc/ptp.c return ktime_set(nic_major, ns); nic_major 497 drivers/net/ethernet/sfc/ptp.c static ktime_t efx_ptp_s27_to_ktime_correction(u32 nic_major, u32 nic_minor, nic_major 504 drivers/net/ethernet/sfc/ptp.c nic_major--; nic_major 507 drivers/net/ethernet/sfc/ptp.c nic_major++; nic_major 510 drivers/net/ethernet/sfc/ptp.c return efx_ptp_s27_to_ktime(nic_major, nic_minor); nic_major 514 drivers/net/ethernet/sfc/ptp.c static void efx_ptp_ns_to_s_qns(s64 ns, u32 *nic_major, u32 *nic_minor) nic_major 518 drivers/net/ethernet/sfc/ptp.c *nic_major = (u32)ts.tv_sec; nic_major 522 drivers/net/ethernet/sfc/ptp.c static ktime_t efx_ptp_s_qns_to_ktime_correction(u32 nic_major, u32 nic_minor, nic_major 530 drivers/net/ethernet/sfc/ptp.c kt = ktime_set(nic_major, nic_minor); nic_major 560 drivers/net/ethernet/sfc/ptp.c u32 nic_major, u32 nic_minor, nic_major 567 drivers/net/ethernet/sfc/ptp.c if (!(nic_major & 0x80000000)) { nic_major 568 drivers/net/ethernet/sfc/ptp.c WARN_ON_ONCE(nic_major >> 16); nic_major 596 drivers/net/ethernet/sfc/ptp.c delta = nic_major - sync_timestamp; nic_major 601 drivers/net/ethernet/sfc/ptp.c nic_major = sync_timestamp + delta; nic_major 603 drivers/net/ethernet/sfc/ptp.c kt = ptp->nic_to_kernel_time(nic_major, nic_minor, nic_major 2097 drivers/net/ethernet/sfc/ptp.c u32 nic_major, nic_minor; nic_major 2104 drivers/net/ethernet/sfc/ptp.c efx->ptp_data->ns_to_nic_time(delta, &nic_major, &nic_minor); nic_major 2109 drivers/net/ethernet/sfc/ptp.c MCDI_SET_DWORD(inbuf, PTP_IN_ADJUST_MAJOR, nic_major);