/sof-2.7.6/src/lib/ |
D | agent.c | 90 uint64_t ticks; in sa_init() local 101 ticks = k_us_to_cyc_ceil64(timeout); in sa_init() 103 ticks = clock_us_to_ticks(PLATFORM_DEFAULT_CLOCK, timeout); in sa_init() 107 sof->sa->panic_timeout = 2 * ticks; /* 100% delay */ in sa_init() 108 sof->sa->warn_timeout = ticks + ticks / 20; /* 5% delay */ in sa_init() 113 if (ticks > UINT_MAX || sof->sa->warn_timeout > UINT_MAX || in sa_init() 120 (unsigned int)ticks, (unsigned int)sof->sa->warn_timeout, in sa_init()
|
D | clk.c | 105 uint64_t ticks; in clock_ms_to_ticks() local 107 ticks = clk_info->freqs[clk_info->current_freq_idx].ticks_per_msec * ms; in clock_ms_to_ticks() 109 return ticks; in clock_ms_to_ticks() 115 uint64_t ticks; in clock_us_to_ticks() local 117 ticks = clk_info->freqs[clk_info->current_freq_idx].ticks_per_msec * us / 1000ULL; in clock_us_to_ticks() 119 return ticks; in clock_us_to_ticks() 140 uint64_t ticks; in platform_timer_set_delta() local 142 ticks = ticks_per_msec * ns / 1000000; in platform_timer_set_delta() 143 timer->delta = ticks - platform_timer_get(timer); in platform_timer_set_delta()
|
/sof-2.7.6/src/arch/xtensa/drivers/ |
D | timer.c | 98 int64_t arch_timer_set(struct timer *timer, uint64_t ticks) in arch_timer_set() argument 101 uint32_t hitimeout = ticks >> 32; in arch_timer_set() 111 if ((ticks & 0xffffffff) == 0x1) in arch_timer_set() 112 ticks++; in arch_timer_set() 132 time = ticks; in arch_timer_set() 135 timer->lowtimeout = ticks; in arch_timer_set() 141 ret = ticks; in arch_timer_set()
|
/sof-2.7.6/src/drivers/intel/cavs/ |
D | timer.c | 39 int64_t platform_timer_set(struct timer *timer, uint64_t ticks) in platform_timer_set() argument 45 if (ticks == 0) in platform_timer_set() 46 ticks = 1; in platform_timer_set() 55 if (ticks > ticks_now + TIMER_MIN_RECOVER_CYCLES) { in platform_timer_set() 56 shim_write64(SHIM_DSPWCT0C, ticks); in platform_timer_set() 58 ticks = ticks_now + TIMER_MIN_RECOVER_CYCLES; in platform_timer_set() 59 if (ticks == 0) in platform_timer_set() 60 ticks = 1; in platform_timer_set() 62 shim_write64(SHIM_DSPWCT0C, ticks); in platform_timer_set()
|
/sof-2.7.6/src/drivers/intel/baytrail/ |
D | timer.c | 72 int64_t platform_timer_set(struct timer *timer, uint64_t ticks) in platform_timer_set() argument 75 uint32_t hitimeout = ticks >> 32; in platform_timer_set() 80 if ((ticks & 0xffffffff) < 0x2) in platform_timer_set() 81 ticks += 2; in platform_timer_set() 93 time = ticks; in platform_timer_set() 95 timer->lowtimeout = ticks; in platform_timer_set() 103 return ticks; in platform_timer_set()
|
/sof-2.7.6/src/include/sof/drivers/ |
D | timer.h | 40 static inline int64_t timer_set(struct timer *timer, uint64_t ticks) in timer_set() argument 42 return arch_timer_set(timer, ticks); in timer_set() 61 int64_t platform_timer_set(struct timer *timer, uint64_t ticks);
|
/sof-2.7.6/src/drivers/amd/renoir/ |
D | timer.c | 30 int64_t platform_timer_set(struct timer *timer, uint64_t ticks) in platform_timer_set() argument 32 return arch_timer_set(timer, ticks); in platform_timer_set()
|
/sof-2.7.6/src/drivers/imx/ |
D | timer.c | 26 int64_t platform_timer_set(struct timer *timer, uint64_t ticks) in platform_timer_set() argument 28 return arch_timer_set(timer, ticks); in platform_timer_set()
|
/sof-2.7.6/src/drivers/intel/haswell/ |
D | timer.c | 27 int64_t platform_timer_set(struct timer *timer, uint64_t ticks) in platform_timer_set() argument 29 return arch_timer_set(timer, ticks); in platform_timer_set()
|
/sof-2.7.6/src/arch/host/include/arch/drivers/ |
D | timer.h | 27 uint64_t ticks) {return 0; } in arch_timer_set() argument
|
/sof-2.7.6/src/arch/xtensa/include/arch/drivers/ |
D | timer.h | 69 int64_t arch_timer_set(struct timer *timer, uint64_t ticks);
|
/sof-2.7.6/src/schedule/ |
D | dma_single_chan_domain.c | 446 uint64_t ticks; in dma_single_chan_domain_set() local 457 ticks = domain->ticks_per_ms * data->channel->period / 1000 + in dma_single_chan_domain_set() 461 ticks : start; in dma_single_chan_domain_set()
|
/sof-2.7.6/ |
D | Kconfig.sof | 179 A basic use case is to measure number of platform & cpu clock ticks
|