/fuchsia/zircon/system/ulib/fdio/include/lib/fdio/ |
H A D | watcher.h | 12 typedef zx_status_t (*watchdir_func_t)(int dirfd, int event, const char* fn, void* cookie); 40 zx_status_t fdio_watch_directory(int dirfd, watchdir_func_t cb, zx_time_t deadline, void* cookie);
|
/fuchsia/zircon/system/ulib/driver-info/include/driver-info/ |
H A D | driver-info.h | 16 const zx_bind_inst_t* binding, void *cookie); 18 zx_status_t di_read_driver_info(int fd, void* cookie, di_info_func_t func); 23 void* cookie, di_info_func_t ifunc);
|
/fuchsia/zircon/system/utest/core/cookies/ |
H A D | cookies.c | 25 uint64_t cookie; local 26 ASSERT_EQ(zx_object_get_cookie(token, scope1, &cookie), ZX_ERR_ACCESS_DENIED, ""); 30 ASSERT_EQ(zx_object_get_cookie(token, scope1, &cookie), ZX_OK, ""); 31 ASSERT_EQ(cookie, magic1, ""); 37 ASSERT_EQ(zx_object_get_cookie(zx_process_self(), scope1, &cookie), ZX_ERR_NOT_SUPPORTED, ""); 40 ASSERT_EQ(zx_object_get_cookie(token, scope2, &cookie), ZX_ERR_ACCESS_DENIED, ""); 47 ASSERT_EQ(zx_object_get_cookie(token, scope1, &cookie), ZX_OK, ""); 48 ASSERT_EQ(cookie, magic2, ""); 51 ASSERT_EQ(zx_object_get_cookie(token, ZX_HANDLE_INVALID, &cookie), ZX_ERR_BAD_HANDLE, ""); 52 ASSERT_EQ(zx_object_get_cookie(ZX_HANDLE_INVALID, scope1, &cookie), ZX_ERR_BAD_HANDL 76 uint64_t cookie; local [all...] |
/fuchsia/zircon/system/ulib/inet6/ |
H A D | eth-client.h | 26 zx_status_t eth_queue_tx(eth_client_t* eth, void* cookie, 31 void (*func)(void* ctx, void* cookie)); 34 zx_status_t eth_queue_rx(eth_client_t* eth, void* cookie, 39 void (*func)(void* ctx, void* cookie, size_t len, uint32_t flags));
|
H A D | eth-client.c | 72 zx_status_t eth_queue_tx(eth_client_t* eth, void* cookie, argument 78 .cookie = cookie, 81 e.cookie, e.offset, e.length, e.flags); 85 zx_status_t eth_queue_rx(eth_client_t* eth, void* cookie, argument 91 .cookie = cookie, 94 e.cookie, e.offset, e.length, e.flags); 99 void (*func)(void* ctx, void* cookie)) { 113 e->cookie, 98 eth_complete_tx(eth_client_t* eth, void* ctx, void (*func)(void* ctx, void* cookie)) argument 119 eth_complete_rx(eth_client_t* eth, void* ctx, void (*func)(void* ctx, void* cookie, size_t len, uint32_t flags)) argument [all...] |
/fuchsia/zircon/system/ulib/fdio/ |
H A D | output.c | 19 ssize_t (*func)(void* cookie, const void* data, size_t len); 20 void* cookie; member in struct:fdio_out 25 return out->func(out->cookie, data, len); 68 fdio_t* fdio_output_create(ssize_t (*func)(void* cookie, const void* data, size_t len), argument 69 void* cookie) { 78 out->cookie = cookie;
|
/fuchsia/zircon/third_party/ulib/musl/src/stdio/ |
H A D | vswprintf.c | 8 struct cookie { struct 16 struct cookie* c = f->cookie; 33 struct cookie c = {s, n - 1}; 41 f.cookie = &c;
|
H A D | vswscanf.c | 6 const wchar_t* src = f->cookie; 20 f->cookie = (void*)src; 32 .buf = buf, .buf_size = sizeof buf, .cookie = (void*)s, .read = wstring_read, .lock = -1};
|
H A D | __string_read.c | 5 char* src = f->cookie; 15 f->cookie = src + k;
|
H A D | vsscanf.c | 9 FILE f = {.buf = (void*)s, .cookie = (void*)s, .read = do_read, .lock = -1};
|
H A D | open_wmemstream.c | 7 struct cookie { struct 19 struct cookie* c = f->cookie; 33 struct cookie* c = f->cookie; 64 struct cookie* c; 74 f->cookie = c = (void*)(f + 1);
|
H A D | open_memstream.c | 6 struct cookie { struct 17 struct cookie* c = f->cookie; 30 struct cookie* c = f->cookie; 61 struct cookie* c; 71 f->cookie = c = (void*)(f + 1);
|
H A D | fmemopen.c | 6 struct cookie { struct 14 struct cookie* c = f->cookie; 27 struct cookie* c = f->cookie; 48 struct cookie* c = f->cookie; 79 struct cookie* c; 95 f->cookie = c = (void*)(f + 1);
|
/fuchsia/zircon/system/ulib/ddk/include/ddk/protocol/ |
H A D | bt-gatt-svc.h | 117 typedef void (*bt_gatt_status_cb)(void* cookie, bt_gatt_status_t status, 124 typedef void (*bt_gatt_connect_cb)(void* cookie, bt_gatt_status_t status, 129 typedef void (*bt_gatt_read_characteristic_cb)(void* cookie, 136 typedef void (*bt_gatt_notification_value_cb)(void* cookie, bt_gatt_id_t id, 141 zx_status_t (*connect)(void* ctx, void* cookie, 151 zx_status_t (*read_characteristic)(void* ctx, bt_gatt_id_t id, void* cookie, 159 void* ctx, bt_gatt_id_t id, void* cookie, uint16_t offset, 162 zx_status_t (*write_characteristic)(void* ctx, bt_gatt_id_t id, void* cookie, 173 zx_status_t (*enable_notifications)(void* ctx, bt_gatt_id_t id, void* cookie, 184 void* cookie, 183 bt_gatt_svc_connect(bt_gatt_svc_proto_t* svc, void* cookie, bt_gatt_connect_cb connect_cb) argument 193 bt_gatt_svc_read_characteristic( bt_gatt_svc_proto_t* svc, bt_gatt_id_t id, void* cookie, bt_gatt_read_characteristic_cb read_cb) argument 199 bt_gatt_svc_read_long_characteristic( bt_gatt_svc_proto_t* svc, bt_gatt_id_t id, void* cookie, uint16_t offset, size_t max_bytes, bt_gatt_read_characteristic_cb read_cb) argument 206 bt_gatt_svc_write_characteristic( bt_gatt_svc_proto_t* svc, bt_gatt_id_t id, void* cookie, const uint8_t* buff, size_t len, bt_gatt_status_cb status_cb) argument 213 bt_gatt_svc_enable_notifications( bt_gatt_svc_proto_t* svc, bt_gatt_id_t id, void* cookie, bt_gatt_status_cb status_cb, bt_gatt_notification_value_cb value_cb) argument [all...] |
H A D | test.h | 11 typedef zx_status_t (*test_func_t)(void* cookie, test_report_t* report, const void* arg, size_t arglen); 27 void (*set_test_func)(void* ctx, test_func_t func, void* cookie);
|
H A D | intel-hda-dsp.h | 16 typedef void (ihda_dsp_irq_callback_t)(void* cookie); 37 zx_status_t (*irq_enable)(void* ctx, ihda_dsp_irq_callback_t* callback, void* cookie); 74 void* cookie) { 75 return ihda_dsp->ops->irq_enable(ihda_dsp->ctx, callback, cookie); 72 ihda_dsp_irq_enable(const ihda_dsp_protocol_t* ihda_dsp, ihda_dsp_irq_callback_t* callback, void* cookie) argument
|
/fuchsia/zircon/kernel/target/arm64/boot-shim/ |
H 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);
|
/fuchsia/zircon/system/core/virtcon/ |
H A D | textcon.h | 55 void (*invalidate)(void* cookie, int x, int y, int w, int h); 56 void (*movecursor)(void* cookie, int x, int y); 57 void (*push_scrollback_line)(void* cookie, int y); 58 void (*copy_lines)(void* cookie, int y_dest, int y_src, int count); 59 void (*setparam)(void* cookie, int param, uint8_t* arg, size_t arglen); 60 void* cookie; member in struct:textcon
|
/fuchsia/zircon/system/ulib/fs/ |
H A D | lazy-dir.cpp | 20 bool DoDot(vdircookie_t* cookie) { argument 21 if (cookie->p == 0) { 22 cookie->p = (void*)1; 54 zx_status_t LazyDir::Readdir(vdircookie_t* cookie, void* dirents, size_t len, size_t* out_actual) { argument 63 if (DoDot(cookie)) { 70 for (auto it = fbl::lower_bound(entries.begin(), entries.end(), cookie->n, 74 if (cookie->n >= it->id) { 81 cookie->n = it->id;
|
/fuchsia/zircon/system/core/netsvc/ |
H A D | netboot.c | 134 msg->cookie = 0; 145 static void nb_open(const char* filename, uint32_t cookie, uint32_t arg, argument 149 m.cookie = cookie; 155 static void nb_read(uint32_t cookie, uint32_t arg, argument 161 // Request to resend last message, verify that the cookie is unchanged 162 if (cookie != m.hdr.cookie) { 164 m.hdr.cookie = cookie; 188 nb_write(const char* data, size_t len, uint32_t cookie, uint32_t arg, const ip6_addr_t* saddr, uint16_t sport, uint16_t dport) argument 206 nb_close(uint32_t cookie, const ip6_addr_t* saddr, uint16_t sport, uint16_t dport) argument [all...] |
/fuchsia/zircon/system/ulib/ddktl/include/ddktl/protocol/ |
H A D | ethernet.h | 137 static void Status(void* cookie, uint32_t status) { argument 138 static_cast<D*>(cookie)->EthmacStatus(status); 141 static void Recv(void* cookie, void* data, size_t length, uint32_t flags) { argument 142 static_cast<D*>(cookie)->EthmacRecv(data, length, flags); 145 static void CompleteTx(void* cookie, ethmac_netbuf_t* netbuf, zx_status_t status) { argument 146 static_cast<D*>(cookie)->EthmacCompleteTx(netbuf, status); 154 EthmacIfcProxy(ethmac_ifc_t* ifc, void* cookie) argument 155 : ifc_(ifc), cookie_(cookie) {} 201 static zx_status_t Start(void* ctx, ethmac_ifc_t* ifc, void* cookie) { argument 202 auto ifc_proxy = fbl::unique_ptr<EthmacIfcProxy>(new EthmacIfcProxy(ifc, cookie)); [all...] |
/fuchsia/zircon/system/host/netprotocol/ |
H A D | netprotocol.c | 33 static uint32_t cookie = 0x12345678; variable 77 m.hdr.cookie = ++cookie; 130 (m.hdr.cookie == cookie) && 315 netboot_open_cookie_t* cookie = data; local 316 cookie->index++; 317 if (strcmp(cookie->hostname, "*") && strcmp(cookie->hostname, device->nodename)) { 320 memcpy(&cookie 336 netboot_open_cookie_t cookie; local [all...] |
/fuchsia/zircon/bootloader/src/ |
H A D | netboot.c | 49 uint32_t cookie) { 53 msg->cookie = cookie; 65 msg->cookie = 0; 84 // msg->magic, msg->cookie, msg->cmd, msg->arg, len); 86 if ((last_cookie == msg->cookie) && 90 ack.cookie = last_cookie; 160 send_query_ack(saddr, sport, msg->cookie); 167 last_cookie = msg->cookie; 173 ack.cookie 48 send_query_ack(const ip6_addr* addr, uint16_t port, uint32_t cookie) argument 185 buffer_open(const char* filename, size_t size, void* cookie) argument 206 buffer_write(const void* data, size_t* len, off_t offset, void* cookie) argument 226 buffer_close(void* cookie) argument 232 udp_send(void* data, size_t len, void* cookie) argument 239 udp_timeout_set(uint32_t timeout_ms, void* cookie) argument [all...] |
/fuchsia/zircon/system/ulib/tftp/ |
H A D | internal.h | 213 // library should use when waiting for a response. |cookie| will be passed to 221 void* cookie); 224 tftp_status tx_data(tftp_session* session, tftp_data_msg* resp, size_t* outlen, void* cookie); 231 void* cookie); 238 void* cookie); 245 void* cookie); 252 void* cookie); 259 void* cookie); 266 void* cookie); 273 void* cookie); [all...] |
/fuchsia/zircon/kernel/include/ |
H 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));
|