Searched refs:etsects (Results 1 – 1 of 1) sorted by relevance
135 struct etsects { struct157 static u64 tmr_cnt_read(struct etsects *etsects) in tmr_cnt_read() argument162 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() argument175 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() argument185 ns = tmr_cnt_read(etsects) + 1500000000ULL; in set_alarm()187 ns -= etsects->tclk_period; in set_alarm()[all …]