Searched refs:etsects (Results 1 – 1 of 1) sorted by relevance
133 struct etsects { struct155 static u64 tmr_cnt_read(struct etsects *etsects) in tmr_cnt_read() argument160 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() argument173 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() argument183 ns = tmr_cnt_read(etsects) + 1500000000ULL; in set_alarm()185 ns -= etsects->tclk_period; in set_alarm()[all …]