| /kernel/target/arm64/boot-shim/ |
| A D | devicetree.h | 38 typedef int (*dt_node_cb)(int depth, const char *name, void *cookie); 39 typedef int (*dt_prop_cb)(const char *name, uint8_t *data, uint32_t size, void *cookie); 42 int dt_walk(devicetree_t *dt, dt_node_cb ncb, dt_prop_cb pcb, void *cookie);
|
| A D | devicetree.c | 143 int dt_walk(devicetree_t *dtree, dt_node_cb ncb, dt_prop_cb pcb, void *cookie) { in dt_walk() argument 163 if (ncb(depth, p, cookie)) in dt_walk() 177 if (pcb((const char*) (ds.data + str), data, sz, cookie)) in dt_walk()
|
| A D | boot-shim.c | 69 static int node_callback(int depth, const char *name, void *cookie) { in node_callback() argument 76 device_tree_context_t* ctx = cookie; in node_callback() 94 static int prop_callback(const char *name, uint8_t *data, uint32_t size, void *cookie) { in prop_callback() argument 102 device_tree_context_t* ctx = cookie; in prop_callback()
|
| /kernel/lib/debuglog/include/lib/ |
| A D | debuglog.h | 45 void (*notify)(void* cookie); 46 void *cookie; member 76 void dlog_reader_init(dlog_reader_t* rdr, void (*notify)(void*), void* cookie);
|
| /kernel/include/ |
| A D | platform.h | 114 size_t platform_recover_crashlog(size_t len, void* cookie, 115 … void (*func)(const void* data, size_t off, size_t len, void* cookie));
|
| /kernel/object/ |
| A D | log_dispatcher.cpp | 49 void LogDispatcher::Notify(void* cookie) { in Notify() argument 50 LogDispatcher* log = static_cast<LogDispatcher*>(cookie); in Notify()
|
| A D | dispatcher.cpp | 260 zx_status_t Dispatcher::SetCookie(CookieJar* cookiejar, zx_koid_t scope, uint64_t cookie) { in SetCookie() argument 268 cookiejar->cookie_ = cookie; in SetCookie() 275 cookiejar->cookie_ = cookie; in SetCookie() 284 zx_status_t Dispatcher::GetCookie(CookieJar* cookiejar, zx_koid_t scope, uint64_t* cookie) { in GetCookie() argument 291 *cookie = cookiejar->cookie_; in GetCookie()
|
| /kernel/lib/debuglog/ |
| A D | debuglog.cpp | 253 void dlog_reader_init(dlog_reader_t* rdr, void (*notify)(void*), void* cookie) { in dlog_reader_init() argument 258 rdr->cookie = cookie; in dlog_reader_init() 274 notify(cookie); in dlog_reader_init() 305 rdr->notify(rdr->cookie); in debuglog_notifier() 334 static void debuglog_dumper_notify(void* cookie) { in debuglog_dumper_notify() argument 335 event_t* event = reinterpret_cast<event_t*>(cookie); in debuglog_dumper_notify()
|
| /kernel/object/include/object/ |
| A D | log_dispatcher.h | 32 static void Notify(void* cookie);
|
| A D | dispatcher.h | 147 zx_status_t SetCookie(CookieJar* cookiejar, zx_koid_t scope, uint64_t cookie); in DECLARE_DISPTAG() 148 zx_status_t GetCookie(CookieJar* cookiejar, zx_koid_t scope, uint64_t* cookie); in DECLARE_DISPTAG()
|
| /kernel/platform/pc/ |
| A D | platform.cpp | 87 zbi_result_t process_zbi_item(zbi_header_t* hdr, void* payload, void* cookie) { in process_zbi_item() argument 333 static size_t nvram_recover_crashlog(size_t len, void* cookie, in nvram_recover_crashlog() argument 334 … void (*func)(const void* data, size_t, size_t len, void* cookie)) { in nvram_recover_crashlog() 354 func(static_cast<char*>(nvram) + sizeof(hdr), 0, len, cookie); in nvram_recover_crashlog() 430 size_t platform_recover_crashlog(size_t len, void* cookie, in platform_recover_crashlog() argument 431 void (*func)(const void* data, size_t, size_t len, void* cookie)) { in platform_recover_crashlog() 433 return nvram_recover_crashlog(len, cookie, func); in platform_recover_crashlog() 436 func(last_crashlog, 0, last_crashlog_len, cookie); in platform_recover_crashlog()
|
| /kernel/platform/generic-arm/ |
| A D | platform.cpp | 236 static zbi_result_t process_zbi_item(zbi_header_t* item, void* payload, void* cookie) { in process_zbi_item() argument 518 size_t platform_recover_crashlog(size_t len, void* cookie, in platform_recover_crashlog() argument 519 void (*func)(const void* data, size_t, size_t len, void* cookie)) { in platform_recover_crashlog() 539 func(static_cast<char*>(nvram) + sizeof(hdr), 0, len, cookie); in platform_recover_crashlog()
|
| /kernel/target/pc/multiboot/ |
| A D | multiboot-main.c | 119 void* cookie) { in find_kernel_item() argument 121 *(const zbi_header_t**)cookie = hdr; in find_kernel_item()
|
| /kernel/syscalls/ |
| A D | object.cpp | 901 zx_status_t sys_object_set_cookie(zx_handle_t handle, zx_handle_t hscope, uint64_t cookie) { in sys_object_set_cookie() argument 913 return dispatcher->SetCookie(dispatcher->get_cookie_jar(), scope, cookie); in sys_object_set_cookie() 929 uint64_t cookie; in sys_object_get_cookie() local 930 status = dispatcher->GetCookie(dispatcher->get_cookie_jar(), scope, &cookie); in sys_object_get_cookie() 934 status = _cookie.copy_to_user(cookie); in sys_object_get_cookie()
|
| /kernel/lib/console/ |
| A D | console.cpp | 202 static int read_debug_line(const char** outbuffer, void* cookie) { in read_debug_line() argument 640 static int fetch_next_line(const char** buffer, void* cookie) { in fetch_next_line() argument 641 struct line_read_struct* lineread = (struct line_read_struct*)cookie; in fetch_next_line()
|
| /kernel/lib/userboot/ |
| A D | userboot.cpp | 267 static void clog_to_vmo(const void* data, size_t off, size_t len, void* cookie) { in clog_to_vmo() argument 268 VmObject* vmo = static_cast<VmObject*>(cookie); in clog_to_vmo()
|