Home
last modified time | relevance | path

Searched refs:delta (Results 1 – 25 of 105) sorted by relevance

12345

/Zephyr-latest/tests/ztest/busy_sim/src/
Dmain.c13 uint32_t delta = 80; in ZTEST() local
20 zassert_true((t > (ms - delta)) && (t < (ms + delta))); in ZTEST()
33 zassert_true((t > (busy_ms - 2 * delta)) && (t < (busy_ms + 4 * delta)), in ZTEST()
35 busy_ms - 2 * delta, busy_ms + 4 * delta, t); in ZTEST()
41 zassert_true((t > (ms - delta)) && (t < (ms + delta))); in ZTEST()
/Zephyr-latest/samples/boards/nordic/coresight_stm/src/
Dmain.c59 uint32_t delta; in main() local
67 delta = k_cycle_get_32() - t; in main()
70 t0 -= delta; in main()
73 t1 -= delta; in main()
76 t2 -= delta; in main()
79 t3 -= delta; in main()
82 t_s -= delta; in main()
89 t_tp -= delta; in main()
92 t_tpd -= delta; in main()
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/lll/
Dlll_prof.c30 static inline void delta(uint32_t timestamp, uint16_t *cputime);
66 delta(timestamp_radio, &cputime_radio); in lll_prof_exit_radio()
78 delta(timestamp_lll, &cputime_lll); in lll_prof_exit_lll()
90 delta(timestamp_ull_high, &cputime_ull_high); in lll_prof_exit_ull_high()
102 delta(timestamp_ull_low, &cputime_ull_low); in lll_prof_exit_ull_low()
321 static inline void delta(uint32_t timestamp, uint16_t *cputime) in delta() function
323 uint32_t delta; in delta() local
326 delta = radio_tmr_sample_get() - timestamp; in delta()
327 if (delta < UINT16_MAX && delta > *cputime) { in delta()
328 *cputime = delta; in delta()
[all …]
/Zephyr-latest/modules/openthread/platform/
Dalarm.c90 int32_t delta = (int32_t)(aT0 + aDt - otPlatAlarmMilliGetNow()); in otPlatAlarmMilliStartAt() local
92 if (delta > 0) { in otPlatAlarmMilliStartAt()
93 k_timer_start(&ot_ms_timer, K_MSEC(delta), K_NO_WAIT); in otPlatAlarmMilliStartAt()
110 int32_t delta = (int32_t)(aT0 + aDt - otPlatAlarmMicroGetNow()); in otPlatAlarmMicroStartAt() local
112 if (delta > 0) { in otPlatAlarmMicroStartAt()
113 k_timer_start(&ot_us_timer, K_USEC(delta), K_NO_WAIT); in otPlatAlarmMicroStartAt()
/Zephyr-latest/samples/boards/nordic/mesh/onoff_level_lighting_vnd_app/src/mesh/
Dtransition.c116 ctl->light->delta = in set_transition_values()
121 ctl->light->delta = in set_transition_values()
125 ctl->temp->delta = in set_transition_values()
129 ctl->duv->delta = in set_transition_values()
134 ctl->temp->delta = in set_transition_values()
139 ctl->temp->delta = in set_transition_values()
143 ctl->duv->delta = in set_transition_values()
170 ctl->light->current -= ctl->light->delta; in onoff_work_handler()
186 light = ctl->light->current + ctl->light->delta; in level_move_lightness_work_handler()
188 if (ctl->light->delta < 0) { in level_move_lightness_work_handler()
[all …]
Ddevice_composition.h51 int delta; member
65 int delta; member
75 int delta; member
Ddevice_composition.c470 int32_t target, delta; in gen_delta_set_unack() local
473 delta = (int32_t) net_buf_simple_pull_le32(buf); in gen_delta_set_unack()
482 if (ctl->light->delta == delta) { in gen_delta_set_unack()
485 target = last_level + delta; in gen_delta_set_unack()
489 target = last_level + delta; in gen_delta_set_unack()
552 int32_t target, delta; in gen_delta_set() local
555 delta = (int32_t) net_buf_simple_pull_le32(buf); in gen_delta_set()
564 if (ctl->light->delta == delta) { in gen_delta_set()
568 target = last_level + delta; in gen_delta_set()
572 target = last_level + delta; in gen_delta_set()
[all …]
/Zephyr-latest/tests/kernel/timer/timer_monotonic/src/
Dmain.c14 uint32_t delta, pct; in test_frequency() local
22 delta = end - start; in test_frequency()
23 pct = (uint64_t)delta * 100U / sys_clock_hw_cycles_per_sec(); in test_frequency()
25 printk("delta: %u expected: %u %u%%\n", delta, in test_frequency()
/Zephyr-latest/modules/canopennode/
Dcanopen_sync.c23 uint32_t delta; /* cycles */ in canopen_sync_thread() local
43 delta = stop - start; in canopen_sync_thread()
44 elapsed = (uint32_t)k_cyc_to_ns_floor64(delta) / NSEC_PER_USEC; in canopen_sync_thread()
/Zephyr-latest/samples/bluetooth/central_gatt_write/src/
Dgatt_write_common.c26 uint64_t delta; in write_cmd_cb() local
28 delta = k_cycle_get_32() - cycle_stamp; in write_cmd_cb()
29 delta = k_cyc_to_ns_floor64(delta); in write_cmd_cb()
31 if (delta == 0) { in write_cmd_cb()
39 if (delta > (1U * NSEC_PER_SEC)) { in write_cmd_cb()
59 delta; in write_cmd_cb()
/Zephyr-latest/drivers/timer/
Dambiq_stimer.c117 uint32_t delta = (now_64 + MIN_DELAY < next) ? (next - now_64) : MIN_DELAY; in stimer_isr() local
120 ambiq_stimer_delta_set(delta); in stimer_isr()
164 uint32_t delta = next_aligned - now_64; in sys_clock_set_timeout() local
166 if (delta <= MIN_DELAY) { in sys_clock_set_timeout()
170 ambiq_stimer_delta_set(delta); in sys_clock_set_timeout()
Dxlnx_psttc_timer.c64 uint32_t delta = match - cycles; in update_match() local
67 if (delta < CYCLES_NEXT_MIN) { in update_match()
68 match += CYCLES_NEXT_MIN - delta; in update_match()
Dsmartbond_timer.c180 int32_t delta; in timer2_isr() local
188 delta = (int32_t)(val - last_isr_val_rounded); in timer2_isr()
190 dticks = CYC_TO_TICK(delta); in timer2_isr()
/Zephyr-latest/subsys/shell/
Dshell_ops.c11 void z_shell_op_cursor_vert_move(const struct shell *sh, int32_t delta) in z_shell_op_cursor_vert_move() argument
13 char dir = delta > 0 ? 'A' : 'B'; in z_shell_op_cursor_vert_move()
15 if (delta == 0) { in z_shell_op_cursor_vert_move()
19 if (delta < 0) { in z_shell_op_cursor_vert_move()
20 delta = -delta; in z_shell_op_cursor_vert_move()
23 Z_SHELL_VT100_CMD(sh, "\e[%d%c", delta, dir); in z_shell_op_cursor_vert_move()
26 void z_shell_op_cursor_horiz_move(const struct shell *sh, int32_t delta) in z_shell_op_cursor_horiz_move() argument
28 char dir = delta > 0 ? 'C' : 'D'; in z_shell_op_cursor_horiz_move()
30 if (delta == 0) { in z_shell_op_cursor_horiz_move()
34 if (delta < 0) { in z_shell_op_cursor_horiz_move()
[all …]
/Zephyr-latest/tests/kernel/timer/timer_behavior/src/
Dtick_timer_train.c36 uint32_t delta = now - tm_wrap->last_isr; in tm_fn() local
38 tm_wrap->max_delta = delta > tm_wrap->max_delta ? delta : tm_wrap->max_delta; in tm_fn()
39 if (delta >= k_ticks_to_cyc_floor32(TIMERS + 1)) { in tm_fn()
/Zephyr-latest/tests/bsim/bluetooth/ll/conn/src/
Dtest_connect1.c139 uint64_t delta; in notify_func() local
148 delta = cycle_now - cycle_stamp; in notify_func()
150 delta = k_cyc_to_ns_floor64(delta); in notify_func()
153 ((delta > (NSEC_PER_MSEC / 2U)) && in notify_func()
154 (delta < (NSEC_PER_MSEC + (NSEC_PER_MSEC / 2U))))) { in notify_func()
159 notify_count, data, length, delta); in notify_func()
/Zephyr-latest/tests/kernel/sched/schedule_api/src/
Dtest_sched_timeslice_reset.c41 uint32_t now, delta; in cycles_delta() local
44 delta = now - *reftime; in cycles_delta()
47 return delta; in cycles_delta()
/Zephyr-latest/tests/lib/cmsis_dsp/common/
Dtest_common.h282 float64_t rel, delta, average; in test_rel_error_f64() local
285 delta = fabs(a[index] - b[index]); in test_rel_error_f64()
289 rel = delta / average; in test_rel_error_f64()
305 float32_t rel, delta, average; in test_rel_error_f32() local
308 delta = fabsf(a[index] - b[index]); in test_rel_error_f32()
312 rel = delta / average; in test_rel_error_f32()
329 float32_t rel, delta, average; in test_rel_error_f16() local
332 delta = fabsf((float)a[index] - (float)b[index]); in test_rel_error_f16()
336 rel = delta / average; in test_rel_error_f16()
/Zephyr-latest/subsys/net/lib/coap/
Dcoap.c185 cpkt->delta = 0U; in coap_packet_init()
248 static void option_header_set_delta(uint8_t *opt, uint8_t delta) in option_header_set_delta() argument
250 *opt = (delta & 0xF) << 4; in option_header_set_delta()
357 if (code < cpkt->delta) { in coap_packet_append_option()
364 code = (code == cpkt->delta) ? 0 : code - cpkt->delta; in coap_packet_append_option()
373 cpkt->delta += code; in coap_packet_append_option()
538 uint16_t delta; in parse_option() local
556 delta = option_header_get_delta(opt); in parse_option()
563 if (r == 0 && delta > COAP_OPTION_NO_EXT) { in parse_option()
567 if (delta > COAP_OPTION_NO_EXT) { in parse_option()
[all …]
/Zephyr-latest/tests/net/socket/socketpair/src/
Dpoll.c300 int64_t timestamp, delta; in ZTEST_USER_F() local
324 delta = k_uptime_delta(&timestamp); in ZTEST_USER_F()
325 zassert_true(delta < 100, "poll did not exit immediately"); in ZTEST_USER_F()
350 int64_t timestamp, delta; in ZTEST_USER_F() local
363 delta = k_uptime_delta(&timestamp); in ZTEST_USER_F()
364 zassert_true(delta < 100, "poll did not exit immediately"); in ZTEST_USER_F()
393 delta = k_uptime_delta(&timestamp); in ZTEST_USER_F()
394 zassert_true(delta < 100, "poll did not exit immediately"); in ZTEST_USER_F()
/Zephyr-latest/subsys/testsuite/busy_sim/
Dbusy_sim.c80 uint32_t delta = idle ? data->idle_delta : data->active_delta; in get_timeout() local
97 delta *= data->us_tick; in get_timeout()
99 return avg - delta + 2 * (rand_val % delta); in get_timeout()
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/
Dull_df_internal.h17 void ull_iq_report_link_inc_quota(int8_t delta);
/Zephyr-latest/include/zephyr/
Dspinlock.h308 uint32_t delta = sys_clock_cycle_get_32() - l->lock_time; in k_spin_unlock() local
310 __ASSERT(delta < CONFIG_SPIN_LOCK_TIME_LIMIT, in k_spin_unlock()
312 l, delta, CONFIG_SPIN_LOCK_TIME_LIMIT); in k_spin_unlock()
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/
Dtest_advertiser.c92 int64_t delta = k_uptime_delta(&timestamp); in check_delta_time() local
95 cnt, (int32_t)delta, (uint32_t)interval); in check_delta_time()
97 ASSERT_TRUE(delta >= (interval - 5) && in check_delta_time()
98 delta < (interval + 15)); in check_delta_time()
118 int64_t delta; in single_start_cb() local
120 delta = k_uptime_delta(&tx_timestamp); in single_start_cb()
121 LOG_INF("tx start: +%d ms", delta); in single_start_cb()
131 int64_t delta; in single_end_cb() local
133 delta = k_uptime_delta(&tx_timestamp); in single_end_cb()
134 LOG_INF("tx end: +%d ms", delta); in single_end_cb()
/Zephyr-latest/subsys/net/ip/
Dtcp.h104 int net_tcp_update_recv_wnd(struct net_context *context, int32_t delta);

12345