Home
last modified time | relevance | path

Searched refs:cookie (Results 1 – 23 of 23) sorted by relevance

/Zephyr-latest/samples/userspace/prod_consumer/src/
Dapp_syscall.c19 int z_impl_magic_syscall(unsigned int *cookie) in z_impl_magic_syscall() argument
21 LOG_DBG("magic syscall: got a cookie %u", *cookie); in z_impl_magic_syscall()
23 if (*cookie > 42) { in z_impl_magic_syscall()
28 *cookie = *cookie + 1; in z_impl_magic_syscall()
33 static int z_vrfy_magic_syscall(unsigned int *cookie) in z_vrfy_magic_syscall() argument
41 if (k_usermode_from_copy(&cookie_copy, cookie, sizeof(*cookie)) != 0) { in z_vrfy_magic_syscall()
50 k_usermode_to_copy(cookie, &cookie_copy, sizeof(*cookie)) != 0) { in z_vrfy_magic_syscall()
Dapp_syscall.h9 __syscall int magic_syscall(unsigned int *cookie);
/Zephyr-latest/arch/riscv/core/
Dstacktrace.c17 typedef bool (*riscv_stacktrace_cb)(void *cookie, unsigned long addr, unsigned long sfp);
99 static void walk_stackframe(riscv_stacktrace_cb cb, void *cookie, const struct k_thread *thread, in walk_stackframe() argument
122 if (in_text_region(ra) && !cb(cookie, ra, fp)) { in walk_stackframe()
132 if (in_text_region(esf->ra) && !cb(cookie, esf->ra, fp)) { in walk_stackframe()
172 static void walk_stackframe(riscv_stacktrace_cb cb, void *cookie, const struct k_thread *thread, in walk_stackframe() argument
198 if (!cb(cookie, ra, POINTER_TO_UINT(ksp))) { in walk_stackframe()
214 void arch_stack_walk(stack_trace_callback_fn callback_fn, void *cookie, in arch_stack_walk() argument
224 walk_stackframe((riscv_stacktrace_cb)callback_fn, cookie, thread, esf, in_stack_bound, in arch_stack_walk()
/Zephyr-latest/include/zephyr/sys/
Drb.h110 typedef void (*rb_visit_t)(struct rbnode *node, void *cookie);
115 void z_rb_walk(struct rbnode *node, rb_visit_t visit_fn, void *cookie);
166 void *cookie) in rb_walk() argument
168 z_rb_walk(tree->root, visit_fn, cookie); in rb_walk()
Dhash_map.h146 void *cookie) in sys_hashmap_foreach() argument
152 cb(it.key, it.value, cookie); in sys_hashmap_foreach()
166 void *cookie) in sys_hashmap_clear() argument
168 map->api->clear(map, cb, cookie); in sys_hashmap_clear()
Dhash_map_api.h106 typedef void (*sys_hashmap_callback_t)(uint64_t key, uint64_t value, void *cookie);
118 void *cookie);
/Zephyr-latest/tests/lib/hash_map/src/
Dforeach.c12 static void foreach_callback(uint64_t key, uint64_t value, void *cookie) in foreach_callback() argument
14 bool *called = (bool *)cookie; in foreach_callback()
Dclear.c27 static void clear_callback(uint64_t key, uint64_t value, void *cookie) in clear_callback() argument
29 bool *cleared = (bool *)cookie; in clear_callback()
/Zephyr-latest/arch/arm64/core/
Dfatal.c202 typedef bool (*arm64_stacktrace_cb)(void *cookie, unsigned long addr, void *fp);
204 static void walk_stackframe(arm64_stacktrace_cb cb, void *cookie, const struct arch_esf *esf, in walk_stackframe() argument
238 if (!cb(cookie, lr, fp)) { in walk_stackframe()
245 void arch_stack_walk(stack_trace_callback_fn callback_fn, void *cookie, in arch_stack_walk() argument
250 walk_stackframe((arm64_stacktrace_cb)callback_fn, cookie, esf, in arch_stack_walk()
/Zephyr-latest/lib/hash/
Dhash_map_cxx.cpp48 static void sys_hashmap_cxx_clear(struct sys_hashmap *map, sys_hashmap_callback_t cb, void *cookie) in sys_hashmap_cxx_clear() argument
58 cb(kv.first, kv.second, cookie); in sys_hashmap_cxx_clear()
Dhash_map_sc.c191 static void sys_hashmap_sc_clear(struct sys_hashmap *map, sys_hashmap_callback_t cb, void *cookie) in sys_hashmap_sc_clear() argument
212 cb(entry->key, entry->value, cookie); in sys_hashmap_sc_clear()
Dhash_map_oa_lp.c210 void *cookie) in sys_hashmap_oa_lp_clear() argument
219 cb(entry->key, entry->value, cookie); in sys_hashmap_oa_lp_clear()
/Zephyr-latest/arch/x86/core/
Dfatal.c129 __pinned_func static void walk_stackframe(stack_trace_callback_fn cb, void *cookie, in walk_stackframe() argument
179 if (!cb(cookie, frame->ret_addr)) { in walk_stackframe()
187 void arch_stack_walk(stack_trace_callback_fn callback_fn, void *cookie, in arch_stack_walk() argument
192 walk_stackframe(callback_fn, cookie, esf, in arch_stack_walk()
/Zephyr-latest/include/zephyr/arch/
Darch_interface.h1279 typedef bool (*stack_trace_callback_fn)(void *cookie, unsigned long addr);
1296 void arch_stack_walk(stack_trace_callback_fn callback_fn, void *cookie,
/Zephyr-latest/tests/unit/rbtree/
Dmain.c77 void visit_node(struct rbnode *node, void *cookie) in visit_node() argument
79 int *nwalked = cookie; in visit_node()
/Zephyr-latest/lib/utils/
Drb.c504 void z_rb_walk(struct rbnode *node, rb_visit_t visit_fn, void *cookie) in z_rb_walk() argument
507 z_rb_walk(get_child(node, 0U), visit_fn, cookie); in z_rb_walk()
508 visit_fn(node, cookie); in z_rb_walk()
509 z_rb_walk(get_child(node, 1U), visit_fn, cookie); in z_rb_walk()
/Zephyr-latest/drivers/wifi/nrf_wifi/inc/
Dwpa_supp_if.h45 int cookie);
/Zephyr-latest/tests/net/dhcpv4/server/src/
Dmain.c135 static const uint8_t cookie[4] = { 0x63, 0x82, 0x53, 0x63 }; variable
188 net_pkt_write(pkt, cookie, SIZE_OF_MAGIC_COOKIE); in client_prepare_test_msg()
561 zassert_mem_equal(cookie_buf, cookie, SIZE_OF_MAGIC_COOKIE, in verify_offer()
744 zassert_mem_equal(cookie_buf, cookie, SIZE_OF_MAGIC_COOKIE, in verify_ack()
/Zephyr-latest/subsys/net/lib/dhcpv4/
Ddhcpv4.c961 uint8_t cookie[4]; in dhcpv4_parse_options() local
969 if (net_pkt_read(pkt, cookie, sizeof(cookie)) || in dhcpv4_parse_options()
970 memcmp(magic_cookie, cookie, sizeof(magic_cookie))) { in dhcpv4_parse_options()
/Zephyr-latest/subsys/net/lib/sockets/
Dsockets_tls.c217 mbedtls_ssl_cookie_ctx cookie; member
470 mbedtls_ssl_cookie_init(&tls->cookie); in tls_alloc()
535 mbedtls_ssl_cookie_free(&tls->cookie); in tls_release()
1353 ret = mbedtls_ssl_cookie_setup(&context->cookie, in tls_mbedtls_init()
1363 &context->cookie); in tls_mbedtls_init()
/Zephyr-latest/drivers/wifi/nrf_wifi/src/
Dwpa_supp_if.c1325 __func__, mlme_event->cookie, acked ? "ACK" : "NOACK"); in nrf_wifi_wpa_supp_event_mgmt_tx_status()
1385 int cookie) in nrf_wifi_nl80211_send_mlme() argument
1452 mgmt_tx_info->host_cookie = cookie; in nrf_wifi_nl80211_send_mlme()
1456 cookie, wait_time, noack); in nrf_wifi_nl80211_send_mlme()
Dfmac_main.c414 LOG_DBG("%s: cookie_rsp_event->cookie = %llx", __func__, cookie_rsp_event->cookie); in nrf_wifi_event_proc_cookie_rsp()
/Zephyr-latest/doc/releases/
Drelease-notes-2.6.rst1138 * :github:`35522` - doc: Current section is not shown in the side pane nor the page top cookie