Lines Matching full:cycles
87 * @brief Get number of cycles between @p start and @p end.
90 * obtain actual number of cycles, or may roll over internally.
96 * @return Number of cycles between start and end.
113 * @brief Convert number of @p cycles into nanoseconds.
115 * @param cycles Number of cycles
120 uint64_t soc_timing_cycles_to_ns(uint64_t cycles);
123 * @brief Convert number of @p cycles into nanoseconds with averaging.
125 * @param cycles Number of cycles
126 * @param count Times of accumulated cycles to average over
131 uint64_t soc_timing_cycles_to_ns_avg(uint64_t cycles, uint32_t count);
203 * @brief Get number of cycles between @p start and @p end.
206 * obtain actual number of cycles, or may roll over internally.
212 * @return Number of cycles between start and end.
229 * @brief Convert number of @p cycles into nanoseconds.
231 * @param cycles Number of cycles
236 uint64_t board_timing_cycles_to_ns(uint64_t cycles);
239 * @brief Convert number of @p cycles into nanoseconds with averaging.
241 * @param cycles Number of cycles
242 * @param count Times of accumulated cycles to average over
247 uint64_t board_timing_cycles_to_ns_avg(uint64_t cycles, uint32_t count);
309 * @brief Get number of cycles between @p start and @p end.
312 * need to be scaled to obtain actual number of cycles.
316 * @return Number of cycles between start and end.
347 * @brief Convert number of @p cycles into nanoseconds.
349 * @param cycles Number of cycles
352 static inline uint64_t timing_cycles_to_ns(uint64_t cycles) in timing_cycles_to_ns() argument
355 return board_timing_cycles_to_ns(cycles); in timing_cycles_to_ns()
357 return soc_timing_cycles_to_ns(cycles); in timing_cycles_to_ns()
359 return arch_timing_cycles_to_ns(cycles); in timing_cycles_to_ns()
364 * @brief Convert number of @p cycles into nanoseconds with averaging.
366 * @param cycles Number of cycles
367 * @param count Times of accumulated cycles to average over
370 static inline uint64_t timing_cycles_to_ns_avg(uint64_t cycles, uint32_t count) in timing_cycles_to_ns_avg() argument
373 return board_timing_cycles_to_ns_avg(cycles, count); in timing_cycles_to_ns_avg()
375 return soc_timing_cycles_to_ns_avg(cycles, count); in timing_cycles_to_ns_avg()
377 return arch_timing_cycles_to_ns_avg(cycles, count); in timing_cycles_to_ns_avg()