Home
last modified time | relevance | path

Searched refs:top (Results 1 – 25 of 220) sorted by relevance

123456789

/Zephyr-latest/drivers/counter/
Dcounter_native_posix.c27 static struct counter_top_cfg top; variable
34 uint32_t next_time = top.ticks; /* top.ticks is TOP_VALUE if is_top_set == false */ in schedule_next_isr()
36 if (current_value == top.ticks) { in schedule_next_isr()
70 if (is_top_set && (current_value == top.ticks)) { in counter_isr()
71 if (top.callback) { in counter_isr()
72 top.callback(device, top.user_data); in counter_isr()
84 top.ticks = TOP_VALUE; in ctr_init()
90 hw_counter_set_wrap_value((uint64_t)top.ticks + 1); in ctr_init()
160 top = *cfg; in ctr_set_top_value()
161 hw_counter_set_wrap_value((uint64_t)top.ticks + 1); in ctr_set_top_value()
[all …]
Dcounter_nrfx_rtc.c56 uint32_t top; member
118 uint32_t old, uint32_t top) in ticks_sub() argument
122 } else if (likely(IS_BIT_MASK(top))) { in ticks_sub()
123 return (val - old) & top; in ticks_sub()
127 return (val >= old) ? (val - old) : val + top + 1 - old; in ticks_sub()
131 static uint32_t skip_zero_on_custom_top(uint32_t val, uint32_t top) in skip_zero_on_custom_top() argument
136 if (unlikely(val == 0) && (top != NRF_RTC_COUNTER_MAX)) { in skip_zero_on_custom_top()
144 uint32_t val2, uint32_t top) in ticks_add() argument
149 ARG_UNUSED(top); in ticks_add()
152 if (likely(IS_BIT_MASK(top))) { in ticks_add()
[all …]
DKconfig.nrfx21 # Internal flag which detects if fixed top feature is enabled for any instance
23 def_bool !$(dt_nodelabel_bool_prop,rtc0,fixed-top) || \
24 !$(dt_nodelabel_bool_prop,rtc1,fixed-top) || \
25 !$(dt_nodelabel_bool_prop,rtc2,fixed-top)
DKconfig.mcux_ctimer14 bool "reserve a ctimer channel to set the top value"
18 This reserves a CTimer channel to set the top value. Without
19 this the set top value can be set only to the max counter value.
Dcounter_nrfx_timer.c103 static uint32_t ticks_add(uint32_t val1, uint32_t val2, uint32_t top) in ticks_add() argument
107 if (likely(IS_BIT_MASK(top))) { in ticks_add()
108 return (val1 + val2) & top; in ticks_add()
111 to_top = top - val1; in ticks_add()
116 static uint32_t ticks_sub(uint32_t val, uint32_t old, uint32_t top) in ticks_sub() argument
118 if (likely(IS_BIT_MASK(top))) { in ticks_sub()
119 return (val - old) & top; in ticks_sub()
123 return (val >= old) ? (val - old) : val + top + 1 - old; in ticks_sub()
147 uint32_t top = get_top_value(dev); in set_cc() local
169 max_rel_val = top - data->guard_period; in set_cc()
[all …]
Dcounter_gd32_timer.c175 static uint32_t ticks_add(uint32_t val1, uint32_t val2, uint32_t top) in ticks_add() argument
179 if (likely(IS_BIT_MASK(top))) { in ticks_add()
180 return (val1 + val2) & top; in ticks_add()
183 to_top = top - val1; in ticks_add()
188 static uint32_t ticks_sub(uint32_t val, uint32_t old, uint32_t top) in ticks_sub() argument
190 if (likely(IS_BIT_MASK(top))) { in ticks_sub()
191 return (val - old) & top; in ticks_sub()
195 return (val >= old) ? (val - old) : val + top + 1 - old; in ticks_sub()
216 uint32_t top = counter_gd32_timer_get_top_value(dev); in set_cc() local
234 max_rel_val = top - data->guard_period; in set_cc()
[all …]
Dcounter_ll_stm32_timer.c158 static uint32_t counter_stm32_ticks_add(uint32_t val1, uint32_t val2, uint32_t top) in counter_stm32_ticks_add() argument
162 if (likely(IS_BIT_MASK(top))) { in counter_stm32_ticks_add()
163 return (val1 + val2) & top; in counter_stm32_ticks_add()
166 to_top = top - val1; in counter_stm32_ticks_add()
171 static uint32_t counter_stm32_ticks_sub(uint32_t val, uint32_t old, uint32_t top) in counter_stm32_ticks_sub() argument
173 if (likely(IS_BIT_MASK(top))) { in counter_stm32_ticks_sub()
174 return (val - old) & top; in counter_stm32_ticks_sub()
178 return (val >= old) ? (val - old) : val + top + 1U - old; in counter_stm32_ticks_sub()
202 uint32_t top = counter_stm32_get_top_value(dev); in counter_stm32_set_cc() local
222 max_rel_val = top - data->guard_period; in counter_stm32_set_cc()
[all …]
Dcounter_andes_atcpit100.c75 uint32_t top, now_cnt; in get_current_tick() local
78 top = sys_read32(PIT_CH_RELD(dev, ch)) + 1; in get_current_tick()
79 now_cnt = top - sys_read32(PIT_CH_CNTR(dev, ch)); in get_current_tick()
223 uint32_t top, now_cnt, remain_cnt, alarm_cnt, flags, reg; in atcpit100_set_alarm() local
242 top = sys_read32(PIT_CH_RELD(dev, 3)) + 1; in atcpit100_set_alarm()
246 if (alarm_cnt > top) { in atcpit100_set_alarm()
258 now_cnt = top - remain_cnt; in atcpit100_set_alarm()
259 max_rel_val = top - (data->guard_period * config->divider); in atcpit100_set_alarm()
436 uint32_t top = sys_read32(PIT_CH_RELD(dev, 3)) + 1; in atcpit100_get_top_value() local
438 return (top / config->divider); in atcpit100_get_top_value()
[all …]
Dcounter_nxp_mrt.c46 uint32_t top; member
85 if (data->top <= 1) { in nxp_mrt_start()
89 data->top = config->info.max_top_value; in nxp_mrt_start()
93 base->CHANNEL[channel_id].INTVAL = data->top; in nxp_mrt_start()
95 LOG_DBG("MRT@%p channel %d started with top value %d", base, channel_id, data->top); in nxp_mrt_start()
125 data->top = cfg->ticks; in nxp_mrt_set_top_value()
134 LOG_DBG("Set MRT@%p channel %d top value to %d", base, channel_id, data->top); in nxp_mrt_set_top_value()
Dcounter_renesas_ra_agt.c67 static uint32_t r_agt_ticks_sub(uint32_t val, uint32_t old, uint32_t top);
173 const uint32_t top = counter_ra_agt_get_top_value(dev); in counter_ra_agt_set_alarm() local
204 max_rel_val = top - data->guard_period; in counter_ra_agt_set_alarm()
216 irq_on_late = (val < (top / 2U)); in counter_ra_agt_set_alarm()
218 max_rel_val = irq_on_late ? top / 2U : top; in counter_ra_agt_set_alarm()
220 val = r_agt_ticks_sub(now, val, top); in counter_ra_agt_set_alarm()
228 diff = r_agt_ticks_sub(now, val - 1, top); in counter_ra_agt_set_alarm()
512 static uint32_t r_agt_ticks_sub(uint32_t val, uint32_t old, uint32_t top) in r_agt_ticks_sub() argument
514 if (likely(IS_BIT_MASK(top))) { in r_agt_ticks_sub()
515 return (val - old) & top; in r_agt_ticks_sub()
[all …]
/Zephyr-latest/boards/native/nrf_bsim/common/
Dbstests_entry.c65 struct bst_test_list *top = tests; in bst_test_find() local
67 while (top != NULL) { in bst_test_find()
68 if (!strcmp(top->test_instance->test_id, test_id)) { in bst_test_find()
70 return top->test_instance; in bst_test_find()
72 top = top->next; in bst_test_find()
103 struct bst_test_list *top; in bst_print_testslist() local
108 top = test_list_top; in bst_print_testslist()
109 while (top) { in bst_print_testslist()
111 top->test_instance->test_id, in bst_print_testslist()
112 top->test_instance->test_descr); in bst_print_testslist()
[all …]
/Zephyr-latest/soc/atmel/sam0/common/
Dbossa.c29 uint32_t *top; in bossa_reset() local
40 top = (uint32_t *)(DT_REG_ADDR(DT_NODELABEL(sram0)) + in bossa_reset()
42 top[-1] = DOUBLE_TAP_MAGIC; in bossa_reset()
/Zephyr-latest/doc/_doxygen/
Ddoxygen-awesome-sidebar-only.css37 --top-height: 120px;
38 --toc-sticky-top: -25px;
55 top: var(--top-height);
60 height: calc(100vh - var(--top-height)) !important;
67 #top {
70 height: var(--top-height);
71 margin-bottom: calc(0px - var(--top-height));
85 box-shadow: 0 calc(-2 * var(--top-height)) 0 0 var(--separator-color);
99 padding-top: calc(var(--top-height) - 80px);
Ddoxygen-awesome-zephyr.css25 --top-height: 220px;
72 /* adjust top and title to ~match Sphinx docs */
73 #top {
89 padding-top: 12px;
98 padding-top: calc(var(--top-height) - 180px);
105 padding-top: 25px;
/Zephyr-latest/tests/drivers/counter/counter_nrf_rtc/fixed_top/boards/
Dnrf52840dk_nrf52840.overlay3 fixed-top;
7 fixed-top;
Dnrf52_bsim.overlay3 fixed-top;
7 fixed-top;
Dnrf54h20dk_nrf54h20_common.dtsi5 fixed-top;
10 fixed-top;
/Zephyr-latest/lib/utils/
Drb.c543 f->top++; in stack_left_limb()
544 f->stack[f->top] = n; in stack_left_limb()
545 f->is_left[f->top] = 0U; in stack_left_limb()
548 f->top++; in stack_left_limb()
549 f->stack[f->top] = n; in stack_left_limb()
550 f->is_left[f->top] = 1; in stack_left_limb()
553 return f->stack[f->top]; in stack_left_limb()
575 if (f->top == -1) { in z_rb_foreach_next()
582 n = get_child(f->stack[f->top], 1U); in z_rb_foreach_next()
592 if (f->is_left[f->top] != 0U) { in z_rb_foreach_next()
[all …]
/Zephyr-latest/samples/boards/phytec/reel_board/mesh_badge/src/
Dreel_board.c270 int top[4] = { -1, -1, -1, -1 }; in show_statistics() local
298 for (j = 0; j < ARRAY_SIZE(top); j++) { in show_statistics()
299 if (top[j] < 0) { in show_statistics()
300 top[j] = i; in show_statistics()
304 if (stat->hello_count <= stats[top[j]].hello_count) { in show_statistics()
309 if (j < ARRAY_SIZE(top) - 1) { in show_statistics()
310 memmove(&top[j + 1], &top[j], in show_statistics()
311 ((ARRAY_SIZE(top) - j - 1) * in show_statistics()
312 sizeof(top[j]))); in show_statistics()
315 top[j] = i; in show_statistics()
[all …]
/Zephyr-latest/drivers/gpio/
DKconfig.brcmstb5 bool "Broadcom Set-top box SoC GPIO Driver"
9 Enable Driver for Broadcom Set-top box SoC GPIO Banks.
/Zephyr-latest/include/zephyr/sys/
Drb.h175 int32_t top; member
182 .top = -1 \
189 .top = -1 \
/Zephyr-latest/samples/net/sockets/echo_server/src/ws_console/
Dstyle.css47 margin-top: 20px;
54 margin-top: 5px;
/Zephyr-latest/doc/_extensions/zephyr/domain/static/css/
Dcodesample-livesearch.css10 margin-top: 1rem;
27 top: 50%;
/Zephyr-latest/samples/boards/nordic/clock_skew/src/
Dmain.c199 uint32_t top; in main() local
231 top = counter_get_top_value(timer0); in main()
232 if (top != UINT32_MAX) { in main()
234 timer0->name, top, top); in main()
/Zephyr-latest/samples/net/virtual/
DREADME.rst15 all the virtual interfaces are running on top of it.
17 On top of Ethernet interface there are two virtual network interfaces,
21 The sample provides tunnel interface which runs on top of the IPv6 tunnel.

123456789