Home
last modified time | relevance | path

Searched refs:uint64_t (Results 26 – 50 of 879) sorted by relevance

12345678910>>...36

/Zephyr-latest/drivers/timer/
Darm_arch_timer.c25 #define cycle_diff_t uint64_t
51 #define CYCLES_MAX_1 ((uint64_t)INT32_MAX * (uint64_t)CYC_PER_TICK)
52 #define CYCLES_MAX_2 ((uint64_t)CYCLE_DIFF_MAX)
59 static uint64_t cycles_max;
66 static uint64_t last_cycle;
67 static uint64_t last_tick;
98 uint64_t curr_cycle = arm_arch_timer_count(); in arm_arch_timer_compare_isr()
99 uint64_t delta_cycles = curr_cycle - last_cycle; in arm_arch_timer_compare_isr()
107 uint64_t next_cycle = last_cycle + CYC_PER_TICK; in arm_arch_timer_compare_isr()
152 uint64_t next_cycle; in sys_clock_set_timeout()
[all …]
Dambiq_stimer.c70 uint64_t now_64 = (g_last_time_stamp <= now) ? (uint64_t)now : (uint64_t)now + COUNTER_MAX; in update_tick_counter()
105 uint64_t next = (uint64_t)g_last_time_stamp + CYC_PER_TICK; in stimer_isr()
114 uint64_t now_64 = (g_last_time_stamp <= now) ? (uint64_t)now in stimer_isr()
115 : (uint64_t)now + COUNTER_MAX; in stimer_isr()
156 uint64_t last = (uint64_t)g_last_time_stamp; in sys_clock_set_timeout()
157 uint64_t now_64 = (g_last_time_stamp <= now) ? (uint64_t)now : (uint64_t)now + COUNTER_MAX; in sys_clock_set_timeout()
158 uint64_t next = now_64 + ticks * CYC_PER_TICK; in sys_clock_set_timeout()
162 uint64_t next_aligned = last + gap_aligned; in sys_clock_set_timeout()
Dapic_tsc.c76 #define CYCLES_MAX_1 ((uint64_t)INT32_MAX * (uint64_t)CYC_PER_TICK)
77 #define CYCLES_MAX_2 ((uint64_t)CYCLE_DIFF_MAX)
91 static uint64_t last_cycle;
92 static uint64_t last_tick;
96 static ALWAYS_INLINE uint64_t rdtsc(void) in rdtsc()
101 return lo + (((uint64_t)hi) << 32); in rdtsc()
104 static inline void wrmsr(int32_t msr, uint64_t val) in wrmsr()
112 static void set_trigger(uint64_t deadline) in set_trigger()
118 uint64_t curr_cycle = rdtsc(); in set_trigger()
119 uint64_t delta_cycles = deadline - MIN(deadline, curr_cycle); in set_trigger()
[all …]
Driscv_machine_timer.c102 #define CYCLES_MAX_1 ((uint64_t)INT32_MAX * (uint64_t)CYC_PER_TICK)
103 #define CYCLES_MAX_2 ((uint64_t)CYCLE_DIFF_MAX)
109 static uint64_t last_count;
110 static uint64_t last_ticks;
122 static void set_mtimecmp(uint64_t time) in set_mtimecmp()
125 *(volatile uint64_t *)get_hart_mtimecmp() = time; in set_mtimecmp()
149 static uint64_t mtime(void) in mtime()
152 return *(volatile uint64_t *)MTIME_REG; in mtime()
163 return (((uint64_t)hi) << 32) | lo; in mtime()
173 uint64_t now = mtime(); in timer_isr()
[all …]
Dnrf_grtc_timer.c44 ((uint64_t)sys_clock_hw_cycles_per_sec() / (uint64_t)CONFIG_SYS_CLOCK_TICKS_PER_SEC)
46 #define COUNTER_SPAN (GRTC_SYSCOUNTERL_VALUE_Msk | ((uint64_t)GRTC_SYSCOUNTERH_VALUE_Msk << 32))
58 static void sys_clock_timeout_handler(int32_t id, uint64_t cc_val, void *p_context);
61 static uint64_t last_count; /* Time (SYSCOUNTER value) @last sys_clock_announce() */
74 static inline uint64_t counter_sub(uint64_t a, uint64_t b) in counter_sub()
79 static inline uint64_t counter(void) in counter()
81 uint64_t now; in counter()
86 static inline int get_comparator(uint32_t chan, uint64_t *cc) in get_comparator()
103 static void system_timeout_set_relative(uint64_t value) in system_timeout_set_relative()
117 static void system_timeout_set_abs(uint64_t value) in system_timeout_set_abs()
[all …]
/Zephyr-latest/include/zephyr/sys/
Dmath_extras.h60 static bool u64_add_overflow(uint64_t a, uint64_t b, uint64_t *result);
106 static bool u64_mul_overflow(uint64_t a, uint64_t b, uint64_t *result);
139 static int u64_count_leading_zeros(uint64_t x);
163 static int u64_count_trailing_zeros(uint64_t x);
Dmath_extras_impl.h42 static inline bool u64_add_overflow(uint64_t a, uint64_t b, uint64_t *result) in u64_add_overflow()
70 static inline bool u64_add_overflow(uint64_t a, uint64_t b, uint64_t *result) in u64_add_overflow()
72 uint64_t c = a + b; in u64_add_overflow()
100 static inline bool u64_mul_overflow(uint64_t a, uint64_t b, uint64_t *result) in u64_mul_overflow()
128 static inline bool u64_mul_overflow(uint64_t a, uint64_t b, uint64_t *result) in u64_mul_overflow()
130 uint64_t c = a * b; in u64_mul_overflow()
206 static inline int u64_count_leading_zeros(uint64_t x) in u64_count_leading_zeros()
211 static inline int u64_count_leading_zeros(uint64_t x) in u64_count_leading_zeros()
240 static inline int u64_count_trailing_zeros(uint64_t x) in u64_count_trailing_zeros()
245 static inline int u64_count_trailing_zeros(uint64_t x) in u64_count_trailing_zeros()
/Zephyr-latest/arch/common/
Dtiming.c28 uint64_t arch_timing_cycles_get(volatile timing_t *const start, in arch_timing_cycles_get()
35 uint64_t arch_timing_freq_get(void) in arch_timing_freq_get()
40 uint64_t arch_timing_cycles_to_ns(uint64_t cycles) in arch_timing_cycles_to_ns()
45 uint64_t arch_timing_cycles_to_ns_avg(uint64_t cycles, uint32_t count) in arch_timing_cycles_to_ns_avg()
/Zephyr-latest/drivers/misc/timeaware_gpio/
Dtimeaware_gpio_handlers.c9 static inline int z_vrfy_tgpio_port_get_time(const struct device *port, uint64_t *current_time) in z_vrfy_tgpio_port_get_time()
12 K_OOPS(Z_SYSCALL_MEMORY_WRITE(current_time, sizeof(uint64_t))); in z_vrfy_tgpio_port_get_time()
13 return z_impl_tgpio_port_get_time((const struct device *)port, (uint64_t *)current_time); in z_vrfy_tgpio_port_get_time()
28 uint64_t start_time, uint64_t repeat_interval, in z_vrfy_tgpio_pin_periodic_output()
54 uint64_t *timestamp, uint64_t *event_count) in z_vrfy_tgpio_pin_read_ts_ec()
57 return z_impl_tgpio_pin_read_ts_ec((const struct device *)port, pin, (uint64_t *)timestamp, in z_vrfy_tgpio_pin_read_ts_ec()
58 (uint64_t *)event_count); in z_vrfy_tgpio_pin_read_ts_ec()
/Zephyr-latest/drivers/tee/optee/
Doptee_msg.h118 uint64_t buf_ptr;
119 uint64_t size;
120 uint64_t shm_ref;
130 uint64_t offs;
131 uint64_t size;
132 uint64_t shm_ref;
148 uint64_t size;
149 uint64_t global_id;
158 uint64_t a;
159 uint64_t b;
[all …]
/Zephyr-latest/include/zephyr/drivers/timer/
Dnrf_grtc_timer.h29 typedef void (*z_nrf_grtc_timer_compare_handler_t)(int32_t id, uint64_t expire_time,
49 uint64_t z_nrf_grtc_timer_read(void);
110 int z_nrf_grtc_timer_compare_read(int32_t chan, uint64_t *val);
125 int z_nrf_grtc_timer_set(int32_t chan, uint64_t target_time,
147 uint64_t z_nrf_grtc_timer_get_ticks(k_timeout_t t);
176 int z_nrf_grtc_timer_capture_read(int32_t chan, uint64_t *captured_time);
190 int z_nrf_grtc_wakeup_prepare(uint64_t wake_time_us);
/Zephyr-latest/tests/kernel/common/src/
Dbyteorder.c79 uint64_t val = 0xf0e1d2c3b4a59687, tmp; in ZTEST()
98 uint64_t val = 0xf0e1d2c3b4a59687; in ZTEST()
102 uint8_t tmp[sizeof(uint64_t)]; in ZTEST()
106 zassert_mem_equal(tmp, buf, sizeof(uint64_t), "sys_put_be64() failed"); in ZTEST()
118 uint64_t val = 0xf0e1d2c3b4, tmp; in ZTEST()
135 uint64_t val = 0xf0e1d2c3b4; in ZTEST()
152 uint64_t val = 0xf0e1d2c3b4a5, tmp; in ZTEST()
171 uint64_t val = 0xf0e1d2c3b4a5; in ZTEST()
209 uint64_t val = 0xf0e1d2c3; in ZTEST()
248 uint64_t val = 0xf0e1d2; in ZTEST()
[all …]
/Zephyr-latest/arch/arm64/core/
Dthread.c107 pInitCtx->x0 = (uint64_t)entry; in arch_new_thread()
108 pInitCtx->x1 = (uint64_t)p1; in arch_new_thread()
109 pInitCtx->x2 = (uint64_t)p2; in arch_new_thread()
110 pInitCtx->x3 = (uint64_t)p3; in arch_new_thread()
124 pInitCtx->elr = (uint64_t)arch_user_mode_enter; in arch_new_thread()
126 pInitCtx->elr = (uint64_t)z_thread_entry; in arch_new_thread()
130 pInitCtx->elr = (uint64_t)z_thread_entry; in arch_new_thread()
144 thread->callee_saved.sp_elx = (uint64_t)pInitCtx; in arch_new_thread()
145 thread->callee_saved.lr = (uint64_t)z_arm64_exit_exc; in arch_new_thread()
149 thread->arch.stack_limit = (uint64_t)stack + Z_ARM64_STACK_GUARD_SIZE; in arch_new_thread()
[all …]
Dfatal.c41 arch_curr_cpu()->arch.safe_exception_stack = (uint64_t)safe_exc_sp; in z_arm64_safe_exception_stack_init()
42 write_sp_el0((uint64_t)safe_exc_sp); in z_arm64_safe_exception_stack_init()
58 static void dump_esr(uint64_t esr, bool *dump_far) in dump_esr()
227 uint64_t *fp; in walk_stackframe()
228 uint64_t lr; in walk_stackframe()
231 fp = (uint64_t *) esf->fp; in walk_stackframe()
241 fp = (uint64_t *) fp[0]; in walk_stackframe()
263 LOG_ERR(" %d: fp: 0x%016llx lr: 0x%016lx [%s+0x%x]", (*i)++, (uint64_t)fp, lr, name, in print_trace_address()
266 LOG_ERR(" %d: fp: 0x%016llx lr: 0x%016lx", (*i)++, (uint64_t)fp, lr); in print_trace_address()
284 static bool z_arm64_stack_corruption_check(struct arch_esf *esf, uint64_t esr, uint64_t far) in z_arm64_stack_corruption_check()
[all …]
/Zephyr-latest/tests/kernel/timer/cycle64/src/
Dmain.c10 static void swap64(uint64_t *a, uint64_t *b) in swap64()
12 uint64_t t = *a; in swap64()
17 static void msg(uint64_t c64) in msg()
33 uint32_t timeout(uint64_t prev, uint64_t now) in timeout()
35 uint64_t next = prev + BIT64(32) - now; in timeout()
53 uint64_t now; in ZTEST()
54 uint64_t c64[2]; in ZTEST()
/Zephyr-latest/include/zephyr/bluetooth/audio/
Dmedia_proxy.h466 void (*icon_id_recv)(struct media_player *player, int err, uint64_t id);
596 void (*track_segments_id_recv)(struct media_player *player, int err, uint64_t id);
610 void (*current_track_id_recv)(struct media_player *player, int err, uint64_t id);
623 void (*current_track_id_write)(struct media_player *player, int err, uint64_t id);
637 void (*next_track_id_recv)(struct media_player *player, int err, uint64_t id);
650 void (*next_track_id_write)(struct media_player *player, int err, uint64_t id);
663 void (*parent_group_id_recv)(struct media_player *player, int err, uint64_t id);
677 void (*current_group_id_recv)(struct media_player *player, int err, uint64_t id);
690 void (*current_group_id_write)(struct media_player *player, int err, uint64_t id);
829 void (*search_results_id_recv)(struct media_player *player, int err, uint64_t id);
[all …]
/Zephyr-latest/boards/native/native_posix/
Dtimer_model.c45 static char *us_time_to_str(char *dest, uint64_t time) in us_time_to_str()
67 uint64_t hw_timer_timer;
69 uint64_t hw_timer_tick_timer;
70 uint64_t hw_timer_awake_timer;
72 static uint64_t tick_p; /* Period of the ticker */
88 static uint64_t boot_time;
116 static uint64_t last_radj_rtime;
118 static uint64_t last_radj_stime;
120 extern uint64_t posix_get_hw_cycle(void);
141 uint64_t get_host_us_time(void) in get_host_us_time()
[all …]
/Zephyr-latest/arch/nios2/core/
Dtiming.c41 uint64_t arch_timing_cycles_get(volatile timing_t *const start, in arch_timing_cycles_get()
47 uint64_t arch_timing_freq_get(void) in arch_timing_freq_get()
52 uint64_t arch_timing_cycles_to_ns(uint64_t cycles) in arch_timing_cycles_to_ns()
57 uint64_t arch_timing_cycles_to_ns_avg(uint64_t cycles, uint32_t count) in arch_timing_cycles_to_ns_avg()
/Zephyr-latest/soc/microchip/mec/mec15xx/
Dtiming.c42 uint64_t soc_timing_cycles_get(volatile timing_t *const start, in soc_timing_cycles_get()
48 uint64_t soc_timing_freq_get(void) in soc_timing_freq_get()
53 uint64_t soc_timing_cycles_to_ns(uint64_t cycles) in soc_timing_cycles_to_ns()
58 uint64_t soc_timing_cycles_to_ns_avg(uint64_t cycles, uint32_t count) in soc_timing_cycles_to_ns_avg()
/Zephyr-latest/include/zephyr/xen/dom0/
Ddomctl.h22 int xen_domctl_set_paging_mempool_size(int domid, uint64_t size_mb);
23 int xen_domctl_max_mem(int domid, uint64_t max_memkb);
25 int xen_domctl_iomem_permission(int domid, uint64_t first_mfn,
26 uint64_t nr_mfns, uint8_t allow_access);
27 int xen_domctl_memory_mapping(int domid, uint64_t first_gfn, uint64_t first_mfn,
28 uint64_t nr_mfns, uint32_t add_mapping);
/Zephyr-latest/arch/x86/core/
Defi.c17 static uint64_t __aligned(64) efi_stack[1024];
91 static uint64_t efi_call(void *fn, uint64_t arg1, uint64_t arg2) in efi_call()
114 return (uint64_t) fn; in efi_call()
147 uint64_t cr3; in efi_console_putchar()
162 (void)efi_call(output_string_fn, (uint64_t)conout, (uint64_t)efibuf); in efi_console_putchar()
/Zephyr-latest/soc/microchip/mec/mec172x/
Dtiming.c52 uint64_t soc_timing_cycles_get(volatile timing_t *const start, in soc_timing_cycles_get()
58 uint64_t soc_timing_freq_get(void) in soc_timing_freq_get()
63 uint64_t soc_timing_cycles_to_ns(uint64_t cycles) in soc_timing_cycles_to_ns()
68 uint64_t soc_timing_cycles_to_ns_avg(uint64_t cycles, uint32_t count) in soc_timing_cycles_to_ns_avg()
/Zephyr-latest/scripts/native_simulator/native/src/
Dtimer_model.c40 static char *us_time_to_str(char *dest, uint64_t time) in us_time_to_str()
62 static uint64_t hw_timer_timer; /* Event timer exposed to the HW scheduler */
64 static uint64_t hw_timer_tick_timer;
65 static uint64_t hw_timer_awake_timer;
67 static uint64_t tick_p; /* Period of the ticker */
78 static uint64_t boot_time;
106 static uint64_t last_radj_rtime;
108 static uint64_t last_radj_stime;
134 uint64_t get_host_us_time(void) in get_host_us_time()
139 return (uint64_t)tv.tv_sec * 1e6 + tv.tv_nsec / 1000; in get_host_us_time()
[all …]
/Zephyr-latest/soc/litex/litex_vexriscv/
Dsoc.h51 static inline uint64_t litex_read64(unsigned long addr) in litex_read64()
54 return (((uint64_t)sys_read8(addr)) << 56) in litex_read64()
55 | ((uint64_t)sys_read8(addr + 0x4) << 48) in litex_read64()
56 | ((uint64_t)sys_read8(addr + 0x8) << 40) in litex_read64()
57 | ((uint64_t)sys_read8(addr + 0xc) << 32) in litex_read64()
58 | ((uint64_t)sys_read8(addr + 0x10) << 24) in litex_read64()
59 | ((uint64_t)sys_read8(addr + 0x14) << 16) in litex_read64()
60 | ((uint64_t)sys_read8(addr + 0x18) << 8) in litex_read64()
61 | (uint64_t)sys_read8(addr + 0x1c); in litex_read64()
63 return ((uint64_t)sys_read32(addr) << 32) | (uint64_t)sys_read32(addr + 0x4); in litex_read64()
[all …]
/Zephyr-latest/soc/nordic/
Dtiming.c45 uint64_t soc_timing_cycles_get(volatile timing_t *const start, in soc_timing_cycles_get()
60 uint64_t soc_timing_freq_get(void) in soc_timing_freq_get()
65 uint64_t soc_timing_cycles_to_ns(uint64_t cycles) in soc_timing_cycles_to_ns()
70 uint64_t soc_timing_cycles_to_ns_avg(uint64_t cycles, uint32_t count) in soc_timing_cycles_to_ns_avg()

12345678910>>...36