nic_minor         298 drivers/net/ethernet/sfc/ptp.c 	void (*ns_to_nic_time)(s64 ns, u32 *nic_major, u32 *nic_minor);
nic_minor         299 drivers/net/ethernet/sfc/ptp.c 	ktime_t (*nic_to_kernel_time)(u32 nic_major, u32 nic_minor,
nic_minor         441 drivers/net/ethernet/sfc/ptp.c static void efx_ptp_ns_to_s_ns(s64 ns, u32 *nic_major, u32 *nic_minor)
nic_minor         445 drivers/net/ethernet/sfc/ptp.c 	*nic_minor = ts.tv_nsec;
nic_minor         448 drivers/net/ethernet/sfc/ptp.c static ktime_t efx_ptp_s_ns_to_ktime_correction(u32 nic_major, u32 nic_minor,
nic_minor         451 drivers/net/ethernet/sfc/ptp.c 	ktime_t kt = ktime_set(nic_major, nic_minor);
nic_minor         471 drivers/net/ethernet/sfc/ptp.c static void efx_ptp_ns_to_s27(s64 ns, u32 *nic_major, u32 *nic_minor)
nic_minor         487 drivers/net/ethernet/sfc/ptp.c 	*nic_minor = min;
nic_minor         490 drivers/net/ethernet/sfc/ptp.c static inline ktime_t efx_ptp_s27_to_ktime(u32 nic_major, u32 nic_minor)
nic_minor         492 drivers/net/ethernet/sfc/ptp.c 	u32 ns = (u32)(((u64)nic_minor * NSEC_PER_SEC +
nic_minor         497 drivers/net/ethernet/sfc/ptp.c static ktime_t efx_ptp_s27_to_ktime_correction(u32 nic_major, u32 nic_minor,
nic_minor         501 drivers/net/ethernet/sfc/ptp.c 	nic_minor += correction;
nic_minor         502 drivers/net/ethernet/sfc/ptp.c 	if ((s32)nic_minor < 0) {
nic_minor         503 drivers/net/ethernet/sfc/ptp.c 		nic_minor += S27_MINOR_MAX;
nic_minor         505 drivers/net/ethernet/sfc/ptp.c 	} else if (nic_minor >= S27_MINOR_MAX) {
nic_minor         506 drivers/net/ethernet/sfc/ptp.c 		nic_minor -= S27_MINOR_MAX;
nic_minor         510 drivers/net/ethernet/sfc/ptp.c 	return efx_ptp_s27_to_ktime(nic_major, nic_minor);
nic_minor         514 drivers/net/ethernet/sfc/ptp.c static void efx_ptp_ns_to_s_qns(s64 ns, u32 *nic_major, u32 *nic_minor)
nic_minor         519 drivers/net/ethernet/sfc/ptp.c 	*nic_minor = ts.tv_nsec * 4;
nic_minor         522 drivers/net/ethernet/sfc/ptp.c static ktime_t efx_ptp_s_qns_to_ktime_correction(u32 nic_major, u32 nic_minor,
nic_minor         527 drivers/net/ethernet/sfc/ptp.c 	nic_minor = DIV_ROUND_CLOSEST(nic_minor, 4);
nic_minor         530 drivers/net/ethernet/sfc/ptp.c 	kt = ktime_set(nic_major, nic_minor);
nic_minor         560 drivers/net/ethernet/sfc/ptp.c 				    u32 nic_major, u32 nic_minor,
nic_minor         603 drivers/net/ethernet/sfc/ptp.c 		kt = ptp->nic_to_kernel_time(nic_major, nic_minor,
nic_minor        2097 drivers/net/ethernet/sfc/ptp.c 	u32 nic_major, nic_minor;
nic_minor        2104 drivers/net/ethernet/sfc/ptp.c 	efx->ptp_data->ns_to_nic_time(delta, &nic_major, &nic_minor);
nic_minor        2110 drivers/net/ethernet/sfc/ptp.c 	MCDI_SET_DWORD(inbuf, PTP_IN_ADJUST_MINOR, nic_minor);