Lines Matching refs:arch
78 gd->arch.timer_rate_hz = CONFIG_SYS_HZ_CLOCK; in timer_init()
80 gd->arch.timer_rate_hz = (cal & SYSTICK_CAL_TENMS_MASK) * 100; in timer_init()
83 gd->arch.tbl = 0; in timer_init()
84 gd->arch.tbu = 0; in timer_init()
85 gd->arch.lastinc = read_timer(); in timer_init()
95 return (ulong)((t / gd->arch.timer_rate_hz)) - base; in get_timer()
102 if (now >= gd->arch.lastinc) in get_ticks()
103 gd->arch.tbl += (now - gd->arch.lastinc); in get_ticks()
105 gd->arch.tbl += (TIMER_MAX_VAL - gd->arch.lastinc) + now; in get_ticks()
107 gd->arch.lastinc = now; in get_ticks()
109 return gd->arch.tbl; in get_ticks()
114 return gd->arch.timer_rate_hz; in get_tbclk()