/Zephyr-latest/tests/subsys/pm/policy_api/src/ |
D | main.c | 33 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/ |
D | mpsc_lockfree.h | 80 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 …]
|
/Zephyr-latest/drivers/timer/ |
D | mcux_gpt_timer.c | 53 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() 62 /* GPT fires interrupt at next counter cycle after a compare point is in gpt_set_safe() 66 * We will exit this loop if next==MAX_CYCLES, as we already 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() [all …]
|
D | cc13xx_cc26xx_rtc_timer.c | 68 static void setThreshold(uint32_t next) in setThreshold() argument 78 /* if next is too soon, set at least one RTC tick in future */ in setThreshold() 79 /* assume next never be more than half the maximum 32 bit count value */ in setThreshold() 80 if ((next - now) > (uint32_t)0x80000000) { in setThreshold() 81 /* now is past next */ 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() 89 /* set next compare threshold in RTC */ in setThreshold() [all …]
|
D | gecko_burtc_timer.c | 96 uint32_t next = prev + g_cyc_per_tick; in burtc_isr() local 98 /* `next` can be too close in the future since we're trying to in burtc_isr() 99 * announce the very next tick - in that case we skip one and in burtc_isr() 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 149 /* `next` can be too close in the future if we're trying to announce in sys_clock_set_timeout() 150 * the very next tick - in that case we skip one and announce the one in sys_clock_set_timeout() 153 if ((next - curr) < MIN_DELAY_CYC) { in sys_clock_set_timeout() [all …]
|
D | intel_adsp_timer.c | 121 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 147 /* Round up to next tick boundary */ in sys_clock_set_timeout() 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/ |
D | ztest_mock.c | 14 struct parameter *next; member 95 /* All full. Try next word. */ in sys_bitfield_find_first_clear() 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() [all …]
|
/Zephyr-latest/tests/subsys/settings/nvs/src/ |
D | settings_test_nvs.c | 41 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/ |
D | settings.c | 30 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/settings/src/ |
D | settings.c | 74 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/ |
D | blinfo_mcuboot.c | 91 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/subsys/demand_paging/eviction/ |
D | lru.c | 27 * to the end of the queue, preventing it from being the next page 46 * is a previous PF index and a next PF index for each page frame number 57 /* For each page frame, track the previous and next page frame in the queue. */ 59 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() [all …]
|
/Zephyr-latest/samples/sensor/isl29035/ |
D | README.rst | 42 Next alert outside 315 .. 415 46 Next alert outside 252 .. 352 49 Next alert outside 197 .. 297 52 Next alert outside 137 .. 237 55 Next alert outside 76 .. 176 58 Next alert outside 131 .. 231 61 Next alert outside 185 .. 285 64 Next alert outside 251 .. 351 67 Next alert outside 303 .. 403
|
/Zephyr-latest/tests/subsys/settings/fcb/src/ |
D | settings_test_fcb.c | 77 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/ |
D | lll.c | 224 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/ |
D | settings_test_file.c | 44 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/tests/subsys/settings/functional/src/ |
D | settings_basic_test.c | 77 * settings_name_steq(name, key, next): compares the start of name with key 78 * settings_name_next(name, next): returns the location of the first 89 /* complete match: return 1, next = NULL */ in ZTEST() 92 zassert_is_null(next1, "_steq comparison next error"); in ZTEST() 95 zassert_is_null(next2, "_steq comparison next error"); in ZTEST() 97 /* partial match: return 1, next <> NULL */ in ZTEST() 100 zassert_not_null(next1, "_steq comparison next error"); in ZTEST() 101 zassert_equal_ptr(next1, test1+9, "next points to wrong location"); in ZTEST() 104 zassert_not_null(next2, "_steq comparison next error"); in ZTEST() 105 zassert_equal_ptr(next2, test2+9, "next points to wrong location"); in ZTEST() [all …]
|
/Zephyr-latest/subsys/rtio/ |
D | rtio_executor.c | 75 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() 90 * then cancel the next one and generate no response 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() 131 /* Reset the buffer info so the next request can get a new one */ in rtio_executor_handle_multishot() 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() [all …]
|
/Zephyr-latest/subsys/tracing/ctf/ |
D | ctf_map.h | 57 #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/ |
D | lll_common.c | 72 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/tests/lib/lockfree/src/ |
D | test_mpsc.c | 29 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()
|
/Zephyr-latest/tests/kernel/timer/cycle64/src/ |
D | main.c | 35 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/controller/util/ |
D | mem.c | 20 /* Store free mem_count after the list's next pointer at an 32-bit in mem_init() 25 /* Initialize next pointers to form a free list, in mem_init() 26 * next pointer is stored in the first 32-bit of each block in mem_init() 31 uint32_t next; in mem_init() local 33 next = (uint32_t)((uint8_t *) mem_pool + in mem_init() 36 (void *)&next, sizeof(next)); in mem_init() 55 /* Store free mem_count after the list's next pointer */ in mem_acquire() 81 /* Store free mem_count after the list's next pointer */ in mem_release()
|
/Zephyr-latest/include/zephyr/debug/ |
D | object_tracing.h | 22 * @brief Gets a thread node's next element. 24 * @details Given a node in a thread monitor list, gets the next 27 * @param obj Object to get the next element from.
|
/Zephyr-latest/subsys/bluetooth/audio/ |
D | mpl.c | 62 .next = &seg_2, 70 .next = &seg_3, 78 .next = NULL, 92 .next = &track_1_2, 101 .next = &track_1_3, 109 .next = &track_1_4, 117 .next = &track_1_5, 125 .next = NULL, 136 .next = &track_2_2, 144 .next = &track_2_3, [all …]
|