Searched refs:scaled_ns (Results 1 – 1 of 1) sorted by relevance
68 u64 scaled_ns; in hwtstamp_correct_latency() local72 scaled_ns = readl(ioaddr + PTP_TS_INGR_LAT); in hwtstamp_correct_latency()80 scaled_ns = ((u64)NSEC_PER_SEC << 16) - scaled_ns; in hwtstamp_correct_latency()83 scaled_ns = ((1ULL << 31) << 16) - in hwtstamp_correct_latency()84 DIV_U64_ROUND_CLOSEST(scaled_ns * PSEC_PER_NSEC, 466U); in hwtstamp_correct_latency()86 reg_tsic = scaled_ns >> 16; in hwtstamp_correct_latency()87 reg_tsicsns = scaled_ns & 0xff00; in hwtstamp_correct_latency()96 scaled_ns = readl(ioaddr + PTP_TS_EGR_LAT); in hwtstamp_correct_latency()98 reg_tsec = scaled_ns >> 16; in hwtstamp_correct_latency()99 reg_tsecsns = scaled_ns & 0xff00; in hwtstamp_correct_latency()