Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/net/ethernet/freescale/
Dgianfar_ptp.c135 struct etsects { struct
157 static u64 tmr_cnt_read(struct etsects *etsects) in tmr_cnt_read() argument
162 lo = gfar_read(&etsects->regs->tmr_cnt_l); in tmr_cnt_read()
163 hi = gfar_read(&etsects->regs->tmr_cnt_h); in tmr_cnt_read()
170 static void tmr_cnt_write(struct etsects *etsects, u64 ns) in tmr_cnt_write() argument
175 gfar_write(&etsects->regs->tmr_cnt_l, lo); in tmr_cnt_write()
176 gfar_write(&etsects->regs->tmr_cnt_h, hi); in tmr_cnt_write()
180 static void set_alarm(struct etsects *etsects) in set_alarm() argument
185 ns = tmr_cnt_read(etsects) + 1500000000ULL; in set_alarm()
187 ns -= etsects->tclk_period; in set_alarm()
[all …]