Home
last modified time | relevance | path

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

/linux-3.4.99/drivers/net/ethernet/freescale/
Dgianfar_ptp.c133 struct etsects { struct
155 static u64 tmr_cnt_read(struct etsects *etsects) in tmr_cnt_read() argument
160 lo = gfar_read(&etsects->regs->tmr_cnt_l); in tmr_cnt_read()
161 hi = gfar_read(&etsects->regs->tmr_cnt_h); in tmr_cnt_read()
168 static void tmr_cnt_write(struct etsects *etsects, u64 ns) in tmr_cnt_write() argument
173 gfar_write(&etsects->regs->tmr_cnt_l, lo); in tmr_cnt_write()
174 gfar_write(&etsects->regs->tmr_cnt_h, hi); in tmr_cnt_write()
178 static void set_alarm(struct etsects *etsects) in set_alarm() argument
183 ns = tmr_cnt_read(etsects) + 1500000000ULL; in set_alarm()
185 ns -= etsects->tclk_period; in set_alarm()
[all …]