Searched refs:to_top (Results 1 – 4 of 4) sorted by relevance
100 uint32_t to_top; in ticks_add() local106 to_top = top - val1; in ticks_add()108 return (val2 <= to_top) ? val1 + val2 : val2 - to_top; in ticks_add()
326 uint32_t to_top; in ifx_cat1_counter_ticks_add() local333 to_top = top - val1; in ifx_cat1_counter_ticks_add()335 return (val2 <= to_top) ? (val1 + val2) : (val2 - to_top - 1U); in ifx_cat1_counter_ticks_add()
177 uint32_t to_top; in ticks_add() local183 to_top = top - val1; in ticks_add()185 return (val2 <= to_top) ? val1 + val2 : val2 - to_top; in ticks_add()
166 uint32_t to_top; in counter_stm32_ticks_add() local172 to_top = top - val1; in counter_stm32_ticks_add()174 return (val2 <= to_top) ? val1 + val2 : val2 - to_top - 1U; in counter_stm32_ticks_add()