Home
last modified time | relevance | path

Searched refs:next (Results 1 – 25 of 402) sorted by relevance

12345678910>>...17

/Zephyr-latest/tests/subsys/pm/policy_api/src/
Dmain.c33 const struct pm_state_info *next; in ZTEST() local
36 next = pm_policy_next_state(0U, 0); in ZTEST()
37 zassert_is_null(next); in ZTEST()
39 next = pm_policy_next_state(0U, k_us_to_ticks_floor32(10999)); in ZTEST()
40 zassert_is_null(next); in ZTEST()
42 next = pm_policy_next_state(0U, k_us_to_ticks_floor32(110000)); in ZTEST()
43 zassert_equal(next->state, PM_STATE_RUNTIME_IDLE); in ZTEST()
44 zassert_equal(next->min_residency_us, 100000); in ZTEST()
45 zassert_equal(next->exit_latency_us, 10000); in ZTEST()
47 next = pm_policy_next_state(0U, k_us_to_ticks_floor32(1099999)); in ZTEST()
[all …]
/Zephyr-latest/include/zephyr/sys/
Dmpsc_lockfree.h80 mpsc_ptr_t next; member
104 .next = NULL, \
117 mpsc_ptr_set(q->stub.next, NULL); in mpsc_init()
131 mpsc_ptr_set(n->next, NULL); in mpsc_push()
135 mpsc_ptr_set(prev->next, n); in mpsc_push()
149 struct mpsc_node *next = (struct mpsc_node *)mpsc_ptr_get(tail->next); in mpsc_pop() local
153 if (next == NULL) { in mpsc_pop()
157 q->tail = next; in mpsc_pop()
158 tail = next; in mpsc_pop()
159 next = (struct mpsc_node *)mpsc_ptr_get(next->next); in mpsc_pop()
[all …]
Ddlist.h39 struct _dnode *next; /* ptr to next node (sys_dnode_t) */ member
221 node->next = NULL; in sys_dnode_init()
235 return node->next != NULL; in sys_dnode_is_linked()
336 return (node == list->tail) ? NULL : node->next; in sys_dlist_peek_next_no_check()
416 node->next = list; in sys_dlist_append()
419 tail->next = node; in sys_dlist_append()
436 node->next = head; in sys_dlist_prepend()
456 node->next = successor; in sys_dlist_insert()
457 prev->next = node; in sys_dlist_insert()
507 sys_dnode_t *const next = node->next; in sys_dlist_remove() local
[all …]
/Zephyr-latest/drivers/timer/
Dmcux_gpt_timer.c53 static void gpt_set_safe(uint32_t next) in gpt_set_safe() argument
58 next = MIN(MAX_CYCLES, next); in gpt_set_safe()
59 GPT_SetOutputCompareValue(base, kGPT_OutputCompare_Channel2, next - 1); in gpt_set_safe()
70 if (unlikely(((int32_t)(next - now)) <= 1)) { in gpt_set_safe()
74 next = now + bump; in gpt_set_safe()
76 next = MIN(MAX_CYCLES, next); in gpt_set_safe()
78 kGPT_OutputCompare_Channel2, next - 1); in gpt_set_safe()
80 } while ((((int32_t)(next - now)) <= 1) && (next < MAX_CYCLES)); in gpt_set_safe()
140 uint32_t next, adj, now; in sys_clock_set_timeout() local
154 next = ticks * CYC_PER_TICK; in sys_clock_set_timeout()
[all …]
Dcc13xx_cc26xx_rtc_timer.c68 static void setThreshold(uint32_t next) in setThreshold() argument
80 if ((next - now) > (uint32_t)0x80000000) { in setThreshold()
82 next = now + COMPARE_MARGIN; in setThreshold()
83 } else if ((now + COMPARE_MARGIN - next) < (uint32_t)0x80000000) { in setThreshold()
84 if (next < now + COMPARE_MARGIN) { in setThreshold()
85 next = now + COMPARE_MARGIN; in setThreshold()
90 AONRTCCompareValueSet(AON_RTC_CH0, next); in setThreshold()
99 uint32_t next; in rtc_isr() local
123 next = (uint32_t)((uint64_t)newThreshold >> 16); in rtc_isr()
124 setThreshold(next); in rtc_isr()
Dgecko_burtc_timer.c96 uint32_t next = prev + g_cyc_per_tick; in burtc_isr() local
102 if ((next - curr) < MIN_DELAY_CYC) { in burtc_isr()
103 next += g_cyc_per_tick; in burtc_isr()
106 BURTC_CompareSet(0, next); in burtc_isr()
147 uint32_t next = prev + to_announce * g_cyc_per_tick; in sys_clock_set_timeout() local
153 if ((next - curr) < MIN_DELAY_CYC) { in sys_clock_set_timeout()
154 next += g_cyc_per_tick; in sys_clock_set_timeout()
157 BURTC_CompareSet(0, next); in sys_clock_set_timeout()
Dintel_adsp_timer.c121 uint64_t next = last_count + CYC_PER_TICK; in compare_isr() local
123 if ((int64_t)(next - curr) < MIN_DELAY) { in compare_isr()
124 next += CYC_PER_TICK; in compare_isr()
126 set_compare(next); in compare_isr()
144 uint64_t next; in sys_clock_set_timeout() local
155 next = last_count + cyc; in sys_clock_set_timeout()
157 if (((uint32_t)next - (uint32_t)curr) < MIN_DELAY) { in sys_clock_set_timeout()
158 next += CYC_PER_TICK; in sys_clock_set_timeout()
161 set_compare(next); in sys_clock_set_timeout()
/Zephyr-latest/subsys/testsuite/ztest/src/
Dztest_mock.c14 struct parameter *next; member
158 if (!param->next) { in find_and_delete_value()
162 if (strcmp(param->next->name, name) || strcmp(param->next->fn, fn)) { in find_and_delete_value()
163 return find_and_delete_value(param->next, fn, name); in find_and_delete_value()
166 value = param->next; in find_and_delete_value()
167 param->next = param->next->next; in find_and_delete_value()
168 value->next = NULL; in find_and_delete_value()
183 while (param->next) { in insert_value()
184 param = param->next; in insert_value()
188 value->next = param->next; in insert_value()
[all …]
/Zephyr-latest/subsys/settings/src/
Dsettings.c74 int settings_name_steq(const char *name, const char *key, const char **next) in settings_name_steq() argument
76 if (next) { in settings_name_steq()
77 *next = NULL; in settings_name_steq()
100 if (next) { in settings_name_steq()
101 *next = name + 1; in settings_name_steq()
113 int settings_name_next(const char *name, const char **next) in settings_name_next() argument
117 if (next) { in settings_name_next()
118 *next = NULL; in settings_name_next()
136 if (next) { in settings_name_next()
137 *next = name + 1; in settings_name_next()
[all …]
/Zephyr-latest/subsys/retention/
Dblinfo_mcuboot.c91 const char *next; in blinfo_handle_get() local
97 if (settings_name_steq(name, "mode", &next) && !next) { in blinfo_handle_get()
99 } else if (settings_name_steq(name, "signature_type", &next) && !next) { in blinfo_handle_get()
101 } else if (settings_name_steq(name, "recovery", &next) && !next) { in blinfo_handle_get()
103 } else if (settings_name_steq(name, "running_slot", &next) && !next) { in blinfo_handle_get()
105 } else if (settings_name_steq(name, "bootloader_version", &next) && !next) { in blinfo_handle_get()
107 } else if (settings_name_steq(name, "max_application_size", &next) && !next) { in blinfo_handle_get()
/Zephyr-latest/tests/subsys/settings/nvs/src/
Dsettings_test_nvs.c41 const char *next; in c1_handle_get() local
45 if (settings_name_steq(name, "mybar", &next) && !next) { in c1_handle_get()
51 if (settings_name_steq(name, "mybar64", &next) && !next) { in c1_handle_get()
65 const char *next; in c1_handle_set() local
68 if (settings_name_steq(name, "mybar", &next) && !next) { in c1_handle_set()
74 if (settings_name_steq(name, "mybar64", &next) && !next) { in c1_handle_set()
80 if (settings_name_steq(name, "unaligned", &next) && !next) { in c1_handle_set()
/Zephyr-latest/tests/subsys/mgmt/mcumgr/settings_mgmt/src/
Dsettings.c30 const char *next; in val_handle_set() local
35 if (settings_name_steq(name, "aa", &next) && !next) { in val_handle_set()
43 } else if (settings_name_steq(name, "bb", &next) && !next) { in val_handle_set()
74 const char *next; in val_handle_get() local
78 if (settings_name_steq(name, "aa", &next) && !next) { in val_handle_get()
82 } else if (settings_name_steq(name, "bb", &next) && !next) { in val_handle_get()
/Zephyr-latest/subsys/tracing/ctf/
Dctf_map.h57 #define MAP_NEXT0(test, next, ...) next MAP_OUT argument
58 #define MAP_NEXT1(test, next) MAP_NEXT0(test, next, 0) argument
59 #define MAP_NEXT(test, next) MAP_NEXT1(MAP_GET_END test, next) argument
64 #define MAP_LIST_NEXT1(test, next) MAP_NEXT0(test, MAP_COMMA next, 0) argument
65 #define MAP_LIST_NEXT(test, next) MAP_LIST_NEXT1(MAP_GET_END test, next) argument
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/
Dlll_common.c72 struct lll_event *next; in lll_resume() local
75 next = param; in lll_resume()
76 err = lll_prepare_resolve(next->is_abort_cb, next->abort_cb, next->prepare_cb, in lll_resume()
77 &next->prepare_param, next->is_resume, 1U); in lll_resume()
/Zephyr-latest/subsys/demand_paging/eviction/
Dlru.c59 uint32_t next : PF_IDX_BITS; member
67 #define LRU_PF_HEAD lru_pf_queue[0].next
82 lru_pf_queue[pf_idx].next = 0; in lru_pf_append()
84 lru_pf_queue[LRU_PF_TAIL].next = pf_idx; in lru_pf_append()
90 uint32_t next = lru_pf_queue[pf_idx].next; in lru_pf_unlink() local
93 lru_pf_queue[prev].next = next; in lru_pf_unlink()
94 lru_pf_queue[next].prev = prev; in lru_pf_unlink()
96 lru_pf_queue[pf_idx].next = 0; in lru_pf_unlink()
102 bool unqueued = (lru_pf_queue[pf_idx].next == 0) && in lru_pf_in_queue()
118 (lru_pf_queue[LRU_PF_HEAD].next != 0)) { in lru_pf_remove()
/Zephyr-latest/tests/subsys/settings/fcb/src/
Dsettings_test_fcb.c77 const char *next; in c1_handle_get() local
81 if (settings_name_steq(name, "mybar", &next) && !next) { in c1_handle_get()
87 if (settings_name_steq(name, "mybar64", &next) && !next) { in c1_handle_get()
101 const char *next; in c1_handle_set() local
104 if (settings_name_steq(name, "mybar", &next) && !next) { in c1_handle_set()
110 if (settings_name_steq(name, "mybar64", &next) && !next) { in c1_handle_set()
116 if (settings_name_steq(name, "unaligned", &next) && !next) { in c1_handle_set()
238 const char *next; in c2_handle_get() local
241 len = settings_name_next(name, &next); in c2_handle_get()
242 if (len && !next) { in c2_handle_get()
[all …]
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/openisa/lll/
Dlll.c224 struct lll_event *next; in lll_disable() local
228 next = ull_prepare_dequeue_iter(&idx); in lll_disable()
229 while (next) { in lll_disable()
230 if (!next->is_aborted && in lll_disable()
231 (!param || (param == next->prepare_param.param))) { in lll_disable()
232 next->is_aborted = 1; in lll_disable()
233 next->abort_cb(&next->prepare_param, in lll_disable()
234 next->prepare_param.param); in lll_disable()
245 next = ull_prepare_dequeue_iter(&idx); in lll_disable()
272 struct lll_event *next; in lll_done() local
[all …]
/Zephyr-latest/tests/subsys/settings/file/src/
Dsettings_test_file.c44 const char *next; in c1_handle_get() local
46 if (settings_name_steq(name, "mybar", &next) && !next) { in c1_handle_get()
52 if (settings_name_steq(name, "mybar16", &next) && !next) { in c1_handle_get()
58 if (settings_name_steq(name, "mybar64", &next) && !next) { in c1_handle_get()
71 const char *next; in c1_handle_set() local
75 if (settings_name_steq(name, "mybar", &next) && !next) { in c1_handle_set()
84 if (settings_name_steq(name, "mybar16", &next) && !next) { in c1_handle_set()
93 if (settings_name_steq(name, "mybar64", &next) && !next) { in c1_handle_set()
/Zephyr-latest/samples/subsys/settings/src/
Dmain.c67 const char *next; in alpha_handle_set() local
71 if (settings_name_steq(name, "angle/1", &next) && !next) { in alpha_handle_set()
80 next_len = settings_name_next(name, &next); in alpha_handle_set()
82 if (!next) { in alpha_handle_set()
87 next_len = settings_name_next(name, &next); in alpha_handle_set()
89 if (!next) { in alpha_handle_set()
95 if (!strncmp(next, "1", next_len)) { in alpha_handle_set()
102 if (!strncmp(next, "2", next_len)) { in alpha_handle_set()
118 const char *next; in beta_handle_set() local
122 name_len = settings_name_next(name, &next); in beta_handle_set()
[all …]
/Zephyr-latest/subsys/rtio/
Drtio_executor.c75 struct rtio_iodev_sqe *curr = iodev_sqe, *next; in rtio_executor_submit() local
87 next = CONTAINER_OF(node, struct rtio_iodev_sqe, q); in rtio_executor_submit()
93 next->sqe.flags |= cancel_no_response; in rtio_executor_submit()
95 curr->next = next; in rtio_executor_submit()
96 curr = next; in rtio_executor_submit()
104 curr->next = NULL; in rtio_executor_submit()
147 struct rtio_iodev_sqe *curr = iodev_sqe, *next; in rtio_executor_done() local
156 next = rtio_iodev_sqe_next(curr); in rtio_executor_done()
168 curr = next; in rtio_executor_done()
/Zephyr-latest/boards/native/nrf_bsim/common/
Dbstests_entry.c38 while (tail->next) { in bst_add_tests()
39 tail = tail->next; in bst_add_tests()
44 head->next = NULL; in bst_add_tests()
52 tail->next = bs_malloc(sizeof(struct bst_test_list)); in bst_add_tests()
53 tail = tail->next; in bst_add_tests()
56 tail->next = NULL; in bst_add_tests()
72 top = top->next; in bst_test_find()
113 top = top->next; in bst_print_testslist()
239 struct bst_test_list *tmp = test_list_top->next; in bst_delete()
/Zephyr-latest/tests/kernel/timer/cycle64/src/
Dmain.c35 uint64_t next = prev + BIT64(32) - now; in timeout() local
37 next &= UINT32_MAX; in timeout()
38 if (next == 0) { in timeout()
39 next = UINT32_MAX; in timeout()
42 return (uint32_t)next; in timeout()
/Zephyr-latest/subsys/bluetooth/audio/
Dmicp_mic_ctlr.c53 struct bt_micp_mic_ctlr_cb *listener, *next; in micp_mic_ctlr_mute_changed() local
55 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&micp_mic_ctlr_cbs, listener, next, _node) { in micp_mic_ctlr_mute_changed()
64 struct bt_micp_mic_ctlr_cb *listener, *next; in micp_mic_ctlr_mute_written() local
66 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&micp_mic_ctlr_cbs, listener, next, _node) { in micp_mic_ctlr_mute_written()
81 struct bt_micp_mic_ctlr_cb *listener, *next; in micp_mic_ctlr_discover_complete() local
85 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&micp_mic_ctlr_cbs, listener, next, _node) { in micp_mic_ctlr_discover_complete()
184 struct bt_micp_mic_ctlr_cb *listener, *next; in micp_mic_ctlr_aics_state_cb() local
186 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&micp_mic_ctlr_cbs, listener, next, _node) { in micp_mic_ctlr_aics_state_cb()
196 struct bt_micp_mic_ctlr_cb *listener, *next; in micp_mic_ctlr_aics_gain_setting_cb() local
198 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&micp_mic_ctlr_cbs, listener, next, _node) { in micp_mic_ctlr_aics_gain_setting_cb()
[all …]
/Zephyr-latest/subsys/net/ip/
Dtp_priv.h40 sys_snode_t next; member
51 sys_snode_t next; member
58 sys_snode_t next; member
65 sys_snode_t next; member
/Zephyr-latest/tests/lib/lockfree/src/
Dtest_mpsc.c29 struct mpsc_node *stub, *next, *tail; in ZTEST() local
36 next = stub->next; in ZTEST()
40 zassert_is_null(next, "Next should be null"); in ZTEST()
50 next = mpsc_ptr_get(push_pop_nodes[0].next); in ZTEST()
51 zassert_is_null(next, NULL, "push_pop_node next should point at null"); in ZTEST()
52 next = mpsc_ptr_get(push_pop_q.stub.next); in ZTEST()
53 zassert_equal(next, &push_pop_nodes[0], "Queue stub should point at push_pop_node"); in ZTEST()

12345678910>>...17