Searched refs:ccount (Results 1 – 2 of 2) sorted by relevance
16 ulong ccount; in get_ccount() local17 asm volatile ("rsr %0,"__stringify(CCOUNT) : "=a" (ccount)); in get_ccount()18 return ccount; in get_ccount()74 register ulong ccount; in get_timer() local75 __asm__ volatile ("rsr %0, CCOUNT" : "=a"(ccount)); in get_timer()76 return ccount / (CONFIG_SYS_CLK_FREQ / CONFIG_SYS_HZ) - base; in get_timer()113 unsigned long ccount; in timer_get_us() local115 __asm__ volatile ("rsr %0, CCOUNT" : "=a"(ccount)); in timer_get_us()116 return ccount / (CONFIG_SYS_CLK_FREQ / 1000000); in timer_get_us()
193 unsigned char i, idx, pos1, pos2, ccount; in set_env_gpios() local209 ccount = 0; in set_env_gpios()212 if (ccount++ < 1) in set_env_gpios()219 if (pos2 <= pos1 || ccount > 2) in set_env_gpios()