Home
last modified time | relevance | path

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

/drivers/net/ethernet/cadence/
Dmacb_ptp.c102 static int gem_tsu_incr_set(struct macb *bp, struct tsu_incr *incr_spec) in gem_tsu_incr_set() argument
113 gem_writel(bp, TISUBN, GEM_BF(SUBNSINCRL, incr_spec->sub_ns) | in gem_tsu_incr_set()
114 GEM_BF(SUBNSINCRH, (incr_spec->sub_ns >> in gem_tsu_incr_set()
116 gem_writel(bp, TI, GEM_BF(NSINCR, incr_spec->ns)); in gem_tsu_incr_set()
125 struct tsu_incr incr_spec; in gem_ptp_adjfine() local
136 incr_spec.sub_ns = bp->tsu_incr.sub_ns; in gem_ptp_adjfine()
137 incr_spec.ns = bp->tsu_incr.ns; in gem_ptp_adjfine()
140 word = ((u64)incr_spec.ns << GEM_SUBNSINCR_SIZE) + incr_spec.sub_ns; 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()
[all …]