/Zephyr-latest/drivers/timer/ |
D | native_posix_timer.c | 22 static uint64_t tick_period; /* System tick period in microseconds */ 24 static uint64_t last_tick_time; 35 uint64_t sys_clock_cycle_get_64(void) in sys_clock_cycle_get_64() 48 uint64_t now = hwm_get_time(); in np_timer_isr() 81 uint64_t silent_ticks; in sys_clock_set_timeout()
|
D | hpet.c | 93 static inline uint64_t hpet_counter_get(void) in hpet_counter_get() 96 uint64_t val = sys_read64(MAIN_COUNTER_LOW_REG); in hpet_counter_get() 108 return ((uint64_t)high << 32) | low; in hpet_counter_get() 197 static inline void hpet_timer_comparator_set(uint64_t val) in hpet_timer_comparator_set() 229 static __pinned_bss uint64_t last_count; 230 static __pinned_bss uint64_t last_tick; 257 static inline void hpet_timer_comparator_set_safe(uint64_t next) in hpet_timer_comparator_set_safe() 261 uint64_t now = hpet_counter_get(); in hpet_timer_comparator_set_safe() 282 uint64_t now = hpet_counter_get(); in hpet_isr() 308 last_count += (uint64_t)dticks * cyc_per_tick; in hpet_isr() [all …]
|
/Zephyr-latest/tests/bluetooth/controller/mock_ctrl/include/hal/ |
D | ticker_vendor_hal.h | 29 ((uint32_t)(((uint64_t) (x) * HAL_TICKER_FSEC_PER_USEC) / \ 39 DIV_ROUND_UP(((uint64_t) (x) * HAL_TICKER_FSEC_PER_USEC), \ 47 ((uint32_t)(((uint64_t)(x) * HAL_TICKER_CNTR_CLK_UNIT_FSEC) / \ 55 ((uint64_t) (x) * HAL_TICKER_FSEC_PER_USEC) \ 56 - ((uint64_t)HAL_TICKER_US_TO_TICKS(x) * \
|
/Zephyr-latest/tests/drivers/timer/nrf_rtc_timer/src/ |
D | main.c | 13 uint64_t target_time; 71 static void timeout_handler(int32_t id, uint64_t expire_time, void *user_data) in timeout_handler() 74 uint64_t now = z_nrf_rtc_timer_read(); in timeout_handler() 75 uint64_t diff = (now - expire_time); in timeout_handler() 99 z_nrf_rtc_timer_set(chan, (uint64_t)ticks, timeout_handler, &test_data); in test_timeout() 149 uint64_t now = z_nrf_rtc_timer_read(); in ZTEST() 150 uint64_t t = 1000; in ZTEST() 182 uint64_t exp_ticks = z_nrf_rtc_timer_read() + t.ticks; in ZTEST() 211 static void sched_handler(int32_t id, uint64_t expire_time, void *user_data) in sched_handler() 216 uint64_t *evt_uptime_us = user_data; in sched_handler() [all …]
|
/Zephyr-latest/tests/kernel/timer/timer_behavior/src/ |
D | jitter_drift.c | 24 static uint64_t periodic_data[CONFIG_TIMER_TEST_SAMPLES + 1]; 25 static uint64_t periodic_start, periodic_end; 36 uint64_t curr_cycle; in timer_period_fn() 74 uint64_t curr_cycle; in timer_startdelay_fn() 110 static uint64_t periodic_diff(uint64_t later, uint64_t earlier) in periodic_diff() 121 static double cycles_to_us(uint64_t cycles) in cycles_to_us() 132 uint64_t expected_duration = (uint64_t)actual_timeout.ticks * CONFIG_TIMER_TEST_SAMPLES; in do_test_using() 156 uint64_t total_cycles = 0; in do_test_using() 159 uint64_t max_cyc = 0; in do_test_using() 160 uint64_t min_cyc = UINT64_MAX; in do_test_using() [all …]
|
/Zephyr-latest/include/zephyr/arch/arm64/ |
D | structs.h | 16 uint64_t safe_exception_stack; 17 uint64_t current_stack_limit; 19 uint64_t corrupted_sp;
|
/Zephyr-latest/tests/drivers/disk/disk_performance/src/ |
D | main.c | 86 static uint64_t read_helper(uint32_t num_blocks) in read_helper() 90 uint64_t cycles, total_ns; in read_helper() 118 uint64_t time_ns; in ZTEST() 139 static uint64_t write_helper(uint32_t num_blocks) in write_helper() 143 uint64_t cycles, total_ns; in write_helper() 181 uint64_t time_ns; in ZTEST() 204 uint64_t cycles, total_ns; in ZTEST() 240 ((uint64_t)(((uint64_t)RANDOM_ITERATIONS)* in ZTEST() 241 ((uint64_t)NSEC_PER_SEC))) in ZTEST() 248 uint64_t cycles, total_ns; in ZTEST() [all …]
|
/Zephyr-latest/include/zephyr/kernel/ |
D | stats.h | 19 uint64_t total; /**< total usage in cycles */ 25 uint64_t current; /**< \# of cycles in current usage window */ 26 uint64_t longest; /**< \# of cycles in longest usage window */
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/ |
D | ll_feat.c | 34 static uint64_t host_features; 38 uint64_t feature; in ll_set_host_feature() 78 uint64_t ll_feat_get(void) in ll_feat_get() 84 uint64_t ll_feat_get(void) in ll_feat_get()
|
D | lll_sync_iso.h | 27 uint64_t payload_count:39; 28 uint64_t framing:1; 29 uint64_t enc:1; 30 uint64_t ctrl:1; 31 uint64_t cssn_curr:3; 32 uint64_t cssn_next:3;
|
/Zephyr-latest/include/zephyr/arch/arm/cortex_a_r/ |
D | armv8_timer.h | 28 static ALWAYS_INLINE void arm_arch_timer_set_compare(uint64_t val) in arm_arch_timer_set_compare() 35 uint64_t cntv_ctl; in arm_arch_timer_enable() 50 uint64_t cntv_ctl; in arm_arch_timer_set_irq_mask() 63 static ALWAYS_INLINE uint64_t arm_arch_timer_count(void) in arm_arch_timer_count()
|
/Zephyr-latest/include/zephyr/ |
D | net_buf.h | 314 void net_buf_simple_add_le40(struct net_buf_simple *buf, uint64_t val); 326 void net_buf_simple_add_be40(struct net_buf_simple *buf, uint64_t val); 338 void net_buf_simple_add_le48(struct net_buf_simple *buf, uint64_t val); 350 void net_buf_simple_add_be48(struct net_buf_simple *buf, uint64_t val); 362 void net_buf_simple_add_le64(struct net_buf_simple *buf, uint64_t val); 374 void net_buf_simple_add_be64(struct net_buf_simple *buf, uint64_t val); 482 uint64_t net_buf_simple_remove_le40(struct net_buf_simple *buf); 494 uint64_t net_buf_simple_remove_be40(struct net_buf_simple *buf); 506 uint64_t net_buf_simple_remove_le48(struct net_buf_simple *buf); 518 uint64_t net_buf_simple_remove_be48(struct net_buf_simple *buf); [all …]
|
/Zephyr-latest/scripts/native_simulator/native/src/ |
D | native_rtc.c | 18 uint64_t native_rtc_gettime_us(int clock_type) in native_rtc_gettime_us() 26 uint64_t sec; in native_rtc_gettime_us() 42 void native_rtc_gettime(int clock_type, uint32_t *nsec, uint64_t *sec) in native_rtc_gettime() 45 uint64_t us = native_rtc_gettime_us(clock_type); in native_rtc_gettime()
|
/Zephyr-latest/boards/native/native_posix/ |
D | native_rtc.c | 20 uint64_t native_rtc_gettime_us(int clock_type) in native_rtc_gettime_us() 28 uint64_t sec; in native_rtc_gettime_us() 44 void native_rtc_gettime(int clock_type, uint32_t *nsec, uint64_t *sec) in native_rtc_gettime() 47 uint64_t us = native_rtc_gettime_us(clock_type); in native_rtc_gettime()
|
/Zephyr-latest/soc/intel/intel_adsp/ace/include/ |
D | adsp_timestamp.h | 15 uint64_t lscs; /* copy of DfLSCS register */ 16 uint64_t dwccs; /* copy of DfDWCCS register */ 17 uint64_t artcs; /* copy of DfARTCS register */
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/ |
D | ticker.h | 48 ((uint32_t)(((uint64_t) (x) * HAL_TICKER_FSEC_PER_USEC) / \ 58 DIV_ROUND_UP(((uint64_t) (x) * HAL_TICKER_FSEC_PER_USEC), \ 66 (((uint64_t)(x) * HAL_TICKER_CNTR_CLK_UNIT_FSEC) / \ 76 ((uint64_t) (x) * HAL_TICKER_FSEC_PER_USEC) \ 77 - ((uint64_t)HAL_TICKER_US_TO_TICKS(x) * \
|
/Zephyr-latest/tests/benchmarks/wait_queues/src/ |
D | main.c | 34 uint64_t add_cycles[CONFIG_BENCHMARK_NUM_THREADS]; 35 uint64_t remove_cycles[CONFIG_BENCHMARK_NUM_THREADS]; 129 static uint64_t sqrt_u64(uint64_t square) in sqrt_u64() 132 uint64_t lo = sqrt_u64(square >> 2) << 1; in sqrt_u64() 133 uint64_t hi = lo + 1; in sqrt_u64() 142 uint64_t *cycles, const char *tag, const char *str) in compute_and_report_stats() 144 uint64_t minimum = cycles[0]; in compute_and_report_stats() 145 uint64_t maximum = cycles[0]; in compute_and_report_stats() 146 uint64_t total = cycles[0]; in compute_and_report_stats() 147 uint64_t average; in compute_and_report_stats() [all …]
|
/Zephyr-latest/tests/kernel/mem_protect/syscalls/src/ |
D | test_syscalls.h | 19 __syscall int syscall_arg64(uint64_t arg); 21 __syscall uint64_t syscall_arg64_big(uint32_t arg1, uint32_t arg2, uint64_t arg3, 22 uint32_t arg4, uint32_t arg5, uint64_t arg6);
|
/Zephyr-latest/include/zephyr/drivers/flash/ |
D | stm32_flash_api_extensions.h | 69 uint64_t enable_mask; 70 uint64_t disable_mask; 74 uint64_t protected_mask;
|
/Zephyr-latest/samples/kernel/metairq_dispatch/src/ |
D | msgdev.c | 38 static uint64_t state; in rand32() 41 state = ((uint64_t)k_cycle_get_32()) << 16; in rand32() 90 uint64_t cyc_per_tick = k_ticks_to_cyc_near64(1); in message_dev_init() 91 uint64_t avg_ticks_per_event = MAX_EVENT_DELAY_TICKS / 2; in message_dev_init() 92 uint64_t avg_cyc_per_event = cyc_per_tick * avg_ticks_per_event; in message_dev_init()
|
/Zephyr-latest/include/zephyr/arch/x86/intel64/ |
D | arch.h | 26 static ALWAYS_INLINE void sys_write64(uint64_t data, mm_reg_t addr) in sys_write64() 30 : "r"(data), "m" (*(volatile uint64_t *) in sys_write64() 35 static ALWAYS_INLINE uint64_t sys_read64(mm_reg_t addr) in sys_read64() 37 uint64_t ret; in sys_read64() 41 : "m" (*(volatile uint64_t *)(uintptr_t) addr) in sys_read64()
|
/Zephyr-latest/subsys/fs/zms/ |
D | zms.c | 18 static int zms_prev_ate(struct zms_fs *fs, uint64_t *addr, struct zms_ate *ate); 20 static int zms_get_sector_cycle(struct zms_fs *fs, uint64_t addr, uint8_t *cycle_cnt); 21 static int zms_get_sector_header(struct zms_fs *fs, uint64_t addr, struct zms_ate *empty_ate, 47 uint64_t addr; in zms_lookup_cache_rebuild() 48 uint64_t ate_addr; in zms_lookup_cache_rebuild() 49 uint64_t *cache_entry; in zms_lookup_cache_rebuild() 97 uint64_t *cache_entry = fs->lookup_cache; in zms_lookup_cache_invalidate() 98 uint64_t *const cache_end = &fs->lookup_cache[CONFIG_ZMS_LOOKUP_CACHE_SIZE]; in zms_lookup_cache_invalidate() 110 static inline off_t zms_addr_to_offset(struct zms_fs *fs, uint64_t addr) in zms_addr_to_offset() 141 static inline uint64_t zms_empty_ate_addr(struct zms_fs *fs, uint64_t addr) in zms_empty_ate_addr() [all …]
|
/Zephyr-latest/tests/benchmarks/sched_queues/src/ |
D | main.c | 38 static uint64_t add_cycles[CONFIG_BENCHMARK_NUM_THREADS]; 39 static uint64_t remove_cycles[CONFIG_BENCHMARK_NUM_THREADS]; 142 static uint64_t sqrt_u64(uint64_t square) in sqrt_u64() 145 uint64_t lo = sqrt_u64(square >> 2) << 1; in sqrt_u64() 146 uint64_t hi = lo + 1; in sqrt_u64() 155 uint64_t *cycles, const char *tag, const char *str) in compute_and_report_stats() 157 uint64_t minimum = cycles[0]; in compute_and_report_stats() 158 uint64_t maximum = cycles[0]; in compute_and_report_stats() 159 uint64_t total = cycles[0]; in compute_and_report_stats() 160 uint64_t average; in compute_and_report_stats() [all …]
|
/Zephyr-latest/lib/hash/ |
D | hash_map_cxx.cpp | 13 using cxx_map = std::unordered_map<uint64_t, uint64_t>; 69 static int sys_hashmap_cxx_insert(struct sys_hashmap *map, uint64_t key, uint64_t value, in sys_hashmap_cxx_insert() 70 uint64_t *old_value) in sys_hashmap_cxx_insert() 99 static bool sys_hashmap_cxx_remove(struct sys_hashmap *map, uint64_t key, uint64_t *value) in sys_hashmap_cxx_remove() 129 static bool sys_hashmap_cxx_get(const struct sys_hashmap *map, uint64_t key, uint64_t *value) in sys_hashmap_cxx_get()
|
/Zephyr-latest/tests/drivers/timer/nrf_grtc_timer/src/ |
D | main.c | 13 ((uint64_t)sys_clock_hw_cycles_per_sec() / (uint64_t)CONFIG_SYS_CLOCK_TICKS_PER_SEC) 20 static void timer_compare_interrupt_handler(int32_t id, uint64_t expire_time, void *user_data) in timer_compare_interrupt_handler() 31 uint64_t exp_ticks = z_nrf_grtc_timer_read() + t.ticks * CYC_PER_TICK; in ZTEST() 66 uint64_t test_ticks = 0; in ZTEST() 67 uint64_t compare_value = 0; in ZTEST() 103 uint64_t test_ticks = 0; in ZTEST() 104 uint64_t compare_value = 0; in ZTEST()
|