Lines Matching defs:counter
325 * This function sets the STGEN counter value.
327 static void stgen_set_counter(unsigned long long counter)
330 mmio_write_64(STGEN_BASE + CNTCV_OFF, counter);
332 mmio_write_32(STGEN_BASE + CNTCVL_OFF, (uint32_t)counter);
333 mmio_write_32(STGEN_BASE + CNTCVU_OFF, (uint32_t)(counter >> 32));
338 * This function configures and restores the STGEN counter depending on the
344 unsigned long long counter;
353 counter = stm32mp_stgen_get_counter() * rate / cntfid0;
355 stgen_set_counter(counter);
366 * This function returns the STGEN counter value.
379 * This function restores the STGEN counter value.
380 * It takes a first input value as a counter backup value to be restored and a