Lines Matching refs:adj
128 u64 adj; in gem_ptp_adjfine() local
141 adj = (u64)scaled_ppm * word; in gem_ptp_adjfine()
145 adj += (USEC_PER_SEC >> 1); in gem_ptp_adjfine()
146 adj >>= PPM_FRACTION; /* remove fractions */ in gem_ptp_adjfine()
147 adj = div_u64(adj, USEC_PER_SEC); in gem_ptp_adjfine()
148 adj = neg_adj ? (word - adj) : (word + adj); in gem_ptp_adjfine()
150 incr_spec.ns = (adj >> GEM_SUBNSINCR_SIZE) in gem_ptp_adjfine()
152 incr_spec.sub_ns = adj & ((1 << GEM_SUBNSINCR_SIZE) - 1); in gem_ptp_adjfine()
161 u32 adj, sign = 0; in gem_ptp_adjtime() local
175 adj = (sign << GEM_ADDSUB_OFFSET) | delta; in gem_ptp_adjtime()
177 gem_writel(bp, TA, adj); in gem_ptp_adjtime()
208 u64 adj; in gem_ptp_init_timer() local
212 adj = rem; in gem_ptp_init_timer()
213 adj <<= GEM_SUBNSINCR_SIZE; in gem_ptp_init_timer()
214 bp->tsu_incr.sub_ns = div_u64(adj, bp->tsu_rate); in gem_ptp_init_timer()