/freebsd/sys/sys/ |
H A D | cnv.h | 54 const char *cnvlist_name(const void *cookie); 55 int cnvlist_type(const void *cookie); 63 bool cnvlist_get_bool(const void *cookie); 64 uint64_t cnvlist_get_number(const void *cookie); 65 const char *cnvlist_get_string(const void *cookie); 66 const nvlist_t *cnvlist_get_nvlist(const void *cookie); 67 const void *cnvlist_get_binary(const void *cookie, size_t *sizep); 68 const bool *cnvlist_get_bool_array(const void *cookie, size_t *nitemsp); 69 const uint64_t *cnvlist_get_number_array(const void *cookie, size_t *nitemsp); 70 const char * const *cnvlist_get_string_array(const void *cookie, size_t *nitemsp); [all …]
|
H A D | rangelock.h | 59 void rangelock_unlock(struct rangelock *lock, void *cookie); 70 void _rangelock_cookie_assert(void *cookie, int what, const char *file, 75 #define rangelock_cookie_assert_(cookie, what, file, line) \ argument 76 _rangelock_cookie_assert((cookie), (what), (file), (line)) 78 #define rangelock_cookie_assert_(cookie, what, file, line) (void)0 argument 81 #define rangelock_cookie_assert(cookie, what) \ argument 82 rangelock_cookie_assert_((cookie), (what), __FILE__, __LINE__)
|
/freebsd/sys/contrib/libnv/ |
H A D | cnvlist.c | 59 cnvlist_name(const void *cookie) in cnvlist_name() argument 62 return (nvpair_name(cookie)); in cnvlist_name() 66 cnvlist_type(const void *cookie) in cnvlist_type() argument 69 return (nvpair_type(cookie)); in cnvlist_type() 74 cnvlist_get_##type(const void *cookie) \ 77 if (nvpair_type(cookie) != NV_TYPE_##NVTYPE) { \ 79 nvpair_name(cookie)); \ 81 return (nvpair_get_##type(cookie)); \ 96 cnvlist_get_##type(const void *cookie, size_t *nitemsp) \ in CNVLIST_GET() 99 if (nvpair_type(cookie) != NV_TYPE_##NVTYPE) { \ in CNVLIST_GET() [all …]
|
/freebsd/lib/libnv/tests/ |
H A D | cnv_tests.cc | 46 void *cookie; in ATF_TEST_CASE_BODY() local 54 cookie = NULL; in ATF_TEST_CASE_BODY() 59 ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0); in ATF_TEST_CASE_BODY() 66 ATF_REQUIRE_EQ(cnvlist_get_bool(cookie), value); in ATF_TEST_CASE_BODY() 68 ATF_REQUIRE_EQ(nvlist_next(nvl, &type, &cookie), in ATF_TEST_CASE_BODY() 80 void *cookie; in ATF_TEST_CASE_BODY() local 88 cookie = NULL; in ATF_TEST_CASE_BODY() 93 ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0); in ATF_TEST_CASE_BODY() 100 ATF_REQUIRE_EQ(cnvlist_get_number(cookie), value); in ATF_TEST_CASE_BODY() 102 ATF_REQUIRE_EQ(nvlist_next(nvl, &type, &cookie), in ATF_TEST_CASE_BODY() [all …]
|
/freebsd/usr.sbin/rpc.lockd/ |
H A D | lock_proc.c | 444 res.cookie = arg->cookie; in nlm_test_1_svc() 476 res.cookie = arg->cookie; in nlm_test_msg_1_svc() 518 arg4.cookie = arg->cookie; in nlm_lock_1_svc() 528 res.cookie = arg->cookie; in nlm_lock_1_svc() 541 arg4.cookie = arg->cookie; in nlm_lock_msg_1_svc() 550 res.cookie = arg->cookie; in nlm_lock_msg_1_svc() 575 res.cookie = arg->cookie; in nlm_cancel_1_svc() 596 res.cookie = arg->cookie; in nlm_cancel_msg_1_svc() 626 res.cookie = arg->cookie; in nlm_unlock_1_svc() 643 res.cookie = arg->cookie; in nlm_unlock_msg_1_svc() [all …]
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | SSL_CTX_set_stateless_cookie_generate_cb.pod | 18 unsigned char *cookie, 23 const unsigned char *cookie, 29 *cookie, 35 char *cookie, 42 L<SSL_stateless(3)> to generate the application-controlled portion of the cookie 44 ClientHello with a missing or invalid cookie. gen_stateless_cookie_cb() must 45 write at most SSL_COOKIE_LENGTH bytes into B<cookie>, and must write the number 46 of bytes written to B<cookie_len>. If a cookie cannot be generated, a zero 51 ClientHello cookie is valid. The cookie data is pointed to by B<cookie> and is of 53 communicates that the cookie is valid. The integrity of the entire cookie, [all …]
|
/freebsd/sys/netpfil/pf/ |
H A D | pf_syncookies.c | 94 uint8_t cookie; member 313 union pf_syncookie cookie; in pf_syncookie_check() local 320 cookie.cookie = (ack & 0xff) ^ (ack >> 24); in pf_syncookie_check() 323 if (atomic_load_64(&V_pf_status.syncookies_inflight[cookie.flags.oddeven]) in pf_syncookie_check() 327 hash = pf_syncookie_mac(pd, cookie, seq); in pf_syncookie_check() 338 union pf_syncookie cookie; in pf_syncookie_validate() local 344 cookie.cookie = (ack & 0xff) ^ (ack >> 24); in pf_syncookie_validate() 347 atomic_add_64(&V_pf_status.syncookies_inflight[cookie.flags.oddeven], -1); in pf_syncookie_validate() 426 pf_syncookie_mac(struct pf_pdesc *pd, union pf_syncookie cookie, uint32_t seq) in pf_syncookie_mac() argument 435 SipHash_SetKey(&ctx, V_pf_syncookie_status.key[cookie.flags.oddeven]); in pf_syncookie_mac() [all …]
|
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/ |
H A D | zpl_export.c | 37 fstrans_cookie_t cookie; in zpl_encode_fh() local 51 cookie = spl_fstrans_mark(); in zpl_encode_fh() 58 spl_fstrans_unmark(cookie); in zpl_encode_fh() 70 fstrans_cookie_t cookie; in zpl_fh_to_dentry() local 81 cookie = spl_fstrans_mark(); in zpl_fh_to_dentry() 83 spl_fstrans_unmark(cookie); in zpl_fh_to_dentry() 116 fstrans_cookie_t cookie; in zpl_get_name() local 125 cookie = spl_fstrans_mark(); in zpl_get_name() 129 spl_fstrans_unmark(cookie); in zpl_get_name() 139 fstrans_cookie_t cookie; in zpl_get_parent() local [all …]
|
H A D | zpl_super.c | 61 fstrans_cookie_t cookie; in zpl_dirty_inode() local 63 cookie = spl_fstrans_mark(); in zpl_dirty_inode() 65 spl_fstrans_unmark(cookie); in zpl_dirty_inode() 86 fstrans_cookie_t cookie; in zpl_evict_inode() local 88 cookie = spl_fstrans_mark(); in zpl_evict_inode() 92 spl_fstrans_unmark(cookie); in zpl_evict_inode() 98 fstrans_cookie_t cookie; in zpl_put_super() local 101 cookie = spl_fstrans_mark(); in zpl_put_super() 103 spl_fstrans_unmark(cookie); in zpl_put_super() 110 fstrans_cookie_t cookie; in zpl_sync_fs() local [all …]
|
H A D | zpl_file.c | 58 fstrans_cookie_t cookie; in zpl_open() local 65 cookie = spl_fstrans_mark(); in zpl_open() 67 spl_fstrans_unmark(cookie); in zpl_open() 79 fstrans_cookie_t cookie; in zpl_release() local 81 cookie = spl_fstrans_mark(); in zpl_release() 87 spl_fstrans_unmark(cookie); in zpl_release() 99 fstrans_cookie_t cookie; in zpl_iterate() local 102 cookie = spl_fstrans_mark(); in zpl_iterate() 104 spl_fstrans_unmark(cookie); in zpl_iterate() 119 fstrans_cookie_t cookie; in zpl_fsync() local [all …]
|
H A D | zpl_inode.c | 44 fstrans_cookie_t cookie; in zpl_lookup() local 74 cookie = spl_fstrans_mark(); in zpl_lookup() 85 spl_fstrans_unmark(cookie); in zpl_lookup() 179 fstrans_cookie_t cookie; in zpl_create() local 192 cookie = spl_fstrans_mark(); in zpl_create() 209 spl_fstrans_unmark(cookie); in zpl_create() 233 fstrans_cookie_t cookie; in zpl_mknod() local 254 cookie = spl_fstrans_mark(); in zpl_mknod() 271 spl_fstrans_unmark(cookie); in zpl_mknod() 299 fstrans_cookie_t cookie; in zpl_tmpfile() local [all …]
|
/freebsd/include/rpcsvc/ |
H A D | nlm_prot.x | 46 netobj cookie; member 51 netobj cookie; member 65 netobj cookie; member 74 netobj cookie; member 81 netobj cookie; member 87 netobj cookie; member 121 netobj cookie; member 127 netobj cookie; member 190 netobj cookie; member 195 netobj cookie; member [all …]
|
/freebsd/sys/nlm/ |
H A D | nlm_prot_server.c | 103 dst->cookie = src->cookie; in nlm_convert_to_nlm_res() 110 dst->cookie = src->cookie; in nlm_convert_to_nlm4_res() 135 args4.cookie = argp->cookie; in nlm_test_1_svc() 141 result->cookie = res4.cookie; in nlm_test_1_svc() 159 args4.cookie = argp->cookie; in nlm_lock_1_svc() 180 args4.cookie = argp->cookie; in nlm_cancel_1_svc() 199 args4.cookie = argp->cookie; in nlm_unlock_1_svc() 216 args4.cookie = argp->cookie; in nlm_granted_1_svc() 236 args4.cookie = argp->cookie; in nlm_test_msg_1_svc() 243 res.cookie = res4.cookie; in nlm_test_msg_1_svc() [all …]
|
/freebsd/sys/x86/iommu/ |
H A D | intel_intrmap.c | 66 static int dmar_ir_free_irte(struct dmar_unit *unit, u_int cookie); 97 dmar_map_msi_intr(device_t src, u_int cpu, u_int vector, u_int cookie, in dmar_map_msi_intr() argument 121 if (unit == NULL || !unit->ir_enabled || cookie == -1) in dmar_map_msi_intr() 128 dmar_ir_program_irte(unit, cookie, low, rid); in dmar_map_msi_intr() 135 *addr = MSI_INTEL_ADDR_BASE | ((cookie & 0x7fff) << 5) | in dmar_map_msi_intr() 136 ((cookie & 0x8000) << 2) | 0x18; in dmar_map_msi_intr() 143 dmar_unmap_msi_intr(device_t src, u_int cookie) in dmar_unmap_msi_intr() argument 147 if (cookie == -1) in dmar_unmap_msi_intr() 150 return (dmar_ir_free_irte(unit, cookie)); in dmar_unmap_msi_intr() 155 bool activehi, int irq, u_int *cookie, uint32_t *hi, uint32_t *lo) in dmar_map_ioapic_intr() argument [all …]
|
H A D | amd_intrmap.c | 79 u_int cookie); 111 u_int cookie, uint64_t *addr, uint32_t *data) in amdiommu_map_msi_intr() argument 135 if (!unit->irte_enabled || cookie == -1) in amdiommu_map_msi_intr() 137 if (cookie >= unit->irte_nentries) { in amdiommu_map_msi_intr() 139 unit->iommu.unit, cookie, unit->irte_nentries); in amdiommu_map_msi_intr() 146 irte = &ctx->irtx2[cookie]; in amdiommu_map_msi_intr() 163 irte = &ctx->irtb[cookie]; in amdiommu_map_msi_intr() 177 *data = cookie; in amdiommu_map_msi_intr() 192 amdiommu_unmap_msi_intr(device_t src, u_int cookie) in amdiommu_unmap_msi_intr() argument 196 if (cookie == -1) in amdiommu_unmap_msi_intr() [all …]
|
/freebsd/sys/compat/linuxkpi/common/include/linux/ |
H A D | vgaarb.h | 246 int vga_client_register(struct pci_dev *pdev, void *cookie, 247 unsigned int (*set_vga_decode)(void *cookie, bool state)); 249 int vga_client_register(struct pci_dev *pdev, void *cookie, 250 void (*irq_set_state)(void *cookie, bool state), 251 unsigned int (*set_vga_decode)(void *cookie, bool state)); 258 static inline int vga_client_register(struct pci_dev *pdev, void *cookie, in vga_client_register() 259 unsigned int (*set_vga_decode)(void *cookie, bool state)) in vga_client_register() 261 static inline int vga_client_register(struct pci_dev *pdev, void *cookie, in vga_client_register() 262 void (*irq_set_state)(void *cookie, bool state), in vga_client_register() 263 unsigned int (*set_vga_decode)(void *cookie, bool state)) in vga_client_register()
|
/freebsd/lib/libc/stdio/ |
H A D | fopencookie.c | 46 fopencookie(void *cookie, const char *mode, cookie_io_functions_t io_funcs) in fopencookie() argument 61 thunk->foc_cookie = cookie; in fopencookie() 85 _fopencookie_read(void *cookie, char *buf, int size) in _fopencookie_read() argument 89 thunk = cookie; in _fopencookie_read() 99 _fopencookie_write(void *cookie, const char *buf, int size) in _fopencookie_write() argument 103 thunk = cookie; in _fopencookie_write() 114 _fopencookie_seek(void *cookie, fpos_t offset, int whence) in _fopencookie_seek() argument 131 thunk = cookie; in _fopencookie_seek() 151 _fopencookie_close(void *cookie) in _fopencookie_close() argument 157 thunk = cookie; in _fopencookie_close()
|
H A D | fmemopen.c | 46 static int fmemopen_read(void *cookie, char *buf, int nbytes); 47 static int fmemopen_write(void *cookie, const char *buf, int nbytes); 48 static fpos_t fmemopen_seek(void *cookie, fpos_t offset, int whence); 49 static int fmemopen_close(void *cookie); 164 fmemopen_read(void *cookie, char *buf, int nbytes) in fmemopen_read() argument 166 struct fmemopen_cookie *ck = cookie; in fmemopen_read() 182 fmemopen_write(void *cookie, const char *buf, int nbytes) in fmemopen_write() argument 184 struct fmemopen_cookie *ck = cookie; in fmemopen_write() 212 fmemopen_seek(void *cookie, fpos_t offset, int whence) in fmemopen_seek() argument 214 struct fmemopen_cookie *ck = cookie; in fmemopen_seek() [all …]
|
H A D | stdio.c | 49 __sread(void *cookie, char *buf, int n) in __sread() argument 51 FILE *fp = cookie; in __sread() 57 __swrite(void *cookie, char const *buf, int n) in __swrite() argument 59 FILE *fp = cookie; in __swrite() 65 __sseek(void *cookie, fpos_t offset, int whence) in __sseek() argument 67 FILE *fp = cookie; in __sseek() 73 __sclose(void *cookie) in __sclose() argument 76 return (_close(((FILE *)cookie)->_file)); in __sclose()
|
/freebsd/lib/libz/ |
H A D | zopen.c | 14 xgzread(void *cookie, char *data, int size) in xgzread() argument 16 return gzread(cookie, data, size); in xgzread() 20 xgzwrite(void *cookie, const char *data, int size) in xgzwrite() argument 22 return gzwrite(cookie, (void*)data, size); in xgzwrite() 26 xgzclose(void *cookie) in xgzclose() argument 28 return gzclose(cookie); in xgzclose() 32 xgzseek(void *cookie, fpos_t offset, int whence) in xgzseek() argument 34 return gzseek(cookie, (z_off_t)offset, whence); in xgzseek()
|
/freebsd/sys/arm/arm/ |
H A D | machdep_ptrace.c | 57 ptrace_get_usr_reg(void *cookie, int reg) in ptrace_get_usr_reg() argument 60 struct thread *td = cookie; in ptrace_get_usr_reg() 84 ptrace_get_usr_int(void* cookie, vm_offset_t offset, u_int* val) in ptrace_get_usr_int() argument 86 struct thread *td = cookie; in ptrace_get_usr_int() 220 arm_predict_branch(void *cookie, u_int insn, register_t pc, register_t *new_pc, in arm_predict_branch() argument 230 addr = fetch_reg(cookie, (insn >> 16) & 0xf); in arm_predict_branch() 238 offset = fetch_reg(cookie, insn & 0x0f); in arm_predict_branch() 241 nregs = fetch_reg(cookie, in arm_predict_branch() 270 addr = fetch_reg(cookie, insn & 0xf); in arm_predict_branch() 272 error = read_int(cookie, addr, &addr); in arm_predict_branch() [all …]
|
/freebsd/lib/libcasper/services/cap_net/ |
H A D | cap_net.c | 549 void *cookie; in net_add_sockaddr_to_cache() local 555 cookie = NULL; in net_add_sockaddr_to_cache() 556 while (nvlist_next(capdnscache, NULL, &cookie) != NULL) { in net_add_sockaddr_to_cache() 560 assert(cnvlist_type(cookie) == NV_TYPE_BINARY); in net_add_sockaddr_to_cache() 562 data = cnvlist_get_binary(cookie, &size); in net_add_sockaddr_to_cache() 641 void *cookie; in net_allowed_bsaddr_impl() local 645 cookie = NULL; in net_allowed_bsaddr_impl() 646 while (nvlist_next(salimits, NULL, &cookie) != NULL) { in net_allowed_bsaddr_impl() 647 limit = cnvlist_get_binary(cookie, &limitsize); in net_allowed_bsaddr_impl() 661 if (strcmp(cnvlist_name(cookie), "d") != 0 || in net_allowed_bsaddr_impl() [all …]
|
/freebsd/sys/dev/virtio/ |
H A D | virtqueue.c | 92 void *cookie; member 337 dxp->cookie = NULL; in virtqueue_reinit() 524 virtqueue_enqueue(struct virtqueue *vq, void *cookie, struct sglist *sg, in virtqueue_enqueue() argument 533 VQASSERT(vq, cookie != NULL, "enqueuing with no cookie"); in virtqueue_enqueue() 547 vq_ring_enqueue_indirect(vq, cookie, sg, readable, writable); in virtqueue_enqueue() 556 VQASSERT(vq, dxp->cookie == NULL, in virtqueue_enqueue() 557 "cookie already exists for index %d", head_idx); in virtqueue_enqueue() 558 dxp->cookie = cookie; in virtqueue_enqueue() 580 void *cookie; virtqueue_dequeue() local 606 void *cookie; virtqueue_poll() local 620 void *cookie; virtqueue_drain() local 752 vq_ring_enqueue_indirect(struct virtqueue * vq,void * cookie,struct sglist * sg,int readable,int writable) vq_ring_enqueue_indirect() argument [all...] |
/freebsd/sys/x86/include/ |
H A D | apicvar.h | 201 int ioapic_disable_pin(void *cookie, u_int pin); 202 int ioapic_get_vector(void *cookie, u_int pin); 203 void ioapic_register(void *cookie); 204 int ioapic_remap_vector(void *cookie, u_int pin, int vector); 205 int ioapic_set_bus(void *cookie, u_int pin, int bus_type); 206 int ioapic_set_extint(void *cookie, u_int pin); 207 int ioapic_set_nmi(void *cookie, u_int pin); 208 int ioapic_set_polarity(void *cookie, u_int pin, enum intr_polarity pol); 209 int ioapic_set_triggermode(void *cookie, u_int pin, 211 int ioapic_set_smi(void *cookie, u_int pin);
|
/freebsd/usr.sbin/bsnmpd/modules/snmp_netgraph/ |
H A D | snmp_netgraph.h | 43 void *ng_register_cookie(const struct lmodule *, u_int32_t cookie, 53 int ng_output(const char *path, u_int cookie, u_int opcode, 55 int ng_output_node(const char *node, u_int cookie, u_int opcode, 57 int ng_output_id(ng_ID_t node, u_int cookie, u_int opcode, 60 struct ng_mesg *ng_dialog(const char *path, u_int cookie, u_int opcode, 62 struct ng_mesg *ng_dialog_node(const char *node, u_int cookie, u_int opcode, 64 struct ng_mesg *ng_dialog_id(ng_ID_t id, u_int cookie, u_int opcode,
|