| /src/sys/external/bsd/libnv/dist/ |
| H A D | cnv.h | 55 * Functions which returns information about the given cookie. 57 const char *cnvlist_name(const void *cookie); 58 int cnvlist_type(const void *cookie); 61 * The cnvlist_get functions returns value associated with the given cookie. 66 bool cnvlist_get_bool(const void *cookie); 67 uint64_t cnvlist_get_number(const void *cookie); 68 const char *cnvlist_get_string(const void *cookie); 69 const nvlist_t *cnvlist_get_nvlist(const void *cookie); 70 const void *cnvlist_get_binary(const void *cookie, size_t *sizep); 71 const bool *cnvlist_get_bool_array(const void *cookie, size_ [all...] |
| H A D | cnvlist.c | 72 cnvlist_name(const void *cookie) argument 75 return (nvpair_name(cookie)); 79 cnvlist_type(const void *cookie) argument 82 return (nvpair_type(cookie)); 87 cnvlist_get_##type(const void *cookie) \ 90 if (nvpair_type(cookie) != NV_TYPE_##NVTYPE) { \ 92 nvpair_name(cookie)); \ 94 return (nvpair_get_##type(cookie)); \ 109 cnvlist_get_##type(const void *cookie, size_t *nitemsp) \ 112 if (nvpair_type(cookie) ! 195 cnvlist_take_binary(void * cookie,size_t * sizep) argument [all...] |
| /src/sys/arch/sparc/include/ |
| H A D | intr.h | 75 sparc_softintr_disestablish(void *cookie); 78 * NB that sparc_softintr_schedule() casts the cookie to an int *. 87 #define sparc_softintr_schedule(cookie) raise(0, *((int *) (cookie))) 89 #define sparc_softintr_schedule(cookie) do { \ 91 raise(0, *((int *)(cookie))); \ 93 ienab_bis(*((int *)(cookie))); \ 97 #define sparc_softintr_schedule(cookie) ienab_bis(*((int *) (cookie))) 101 void sparc_softintr_schedule(void *cookie); [all...] |
| /src/sys/arch/evbarm/stand/boot2440/ |
| H A D | dm9k.h | 34 int dm9k_send(void *cookie, char *data, unsigned int len); 35 int dm9k_recv(void *cookie, char *data, unsigned int len, unsigned int to);
|
| /src/sys/dev/pci/ |
| H A D | voyagervar.h | 51 #define voyager_write_gpio(cookie, m_and, m_or) \ 52 voyager_twiddle_bits(cookie, SM502_GPIO_DATA0, m_and, m_or) 54 #define voyager_control_gpio(cookie, m_and, m_or) \ 55 voyager_twiddle_bits(cookie, SM502_GPIO0_CONTROL, m_and, m_or) 57 #define voyager_gpio_dir(cookie, m_and, m_or) \ 58 voyager_twiddle_bits(cookie, SM502_GPIO_DIR0, m_and, m_or) 59 #define voyager_control_power_0(cookie, m_and, m_or) \ 60 voyager_twiddle_bits(cookie, SM502_POWER_MODE0_GATE, m_and, m_or)
|
| H A D | radeonfb_i2c.c | 73 radeonfb_i2cbb_set_bits(void *cookie, uint32_t bits) argument 75 struct radeonfb_i2c *ric = (struct radeonfb_i2c *)cookie; 83 radeonfb_i2cbb_set_dir(void *cookie, uint32_t bits) argument 85 struct radeonfb_i2c *ric = (struct radeonfb_i2c *)cookie; 92 radeonfb_i2cbb_read(void *cookie) argument 94 struct radeonfb_i2c *ric = (struct radeonfb_i2c *)cookie; 117 radeonfb_i2c_acquire_bus(void *cookie, int flags) argument 119 struct radeonfb_i2c *ric = (struct radeonfb_i2c *)cookie; 150 radeonfb_i2c_release_bus(void *cookie, int flags) argument 152 struct radeonfb_i2c *ric = (struct radeonfb_i2c *)cookie; 163 radeonfb_i2c_send_start(void * cookie,int flags) argument 170 radeonfb_i2c_send_stop(void * cookie,int flags) argument 177 radeonfb_i2c_initiate_xfer(void * cookie,i2c_addr_t addr,int flags) argument 185 radeonfb_i2c_read_byte(void * cookie,uint8_t * valp,int flags) argument 192 radeonfb_i2c_write_byte(void * cookie,uint8_t val,int flags) argument [all...] |
| /src/lib/libc/stdio/ |
| H A D | stdio.c | 60 __sread(void *cookie, void *buf, size_t n) argument 62 FILE *fp = cookie; 65 _DIAGASSERT(cookie != NULL); 66 _DIAGASSERT(cookie == fp->_cookie); 80 __swrite(void *cookie, const void *buf, size_t n) argument 82 FILE *fp = cookie; 84 _DIAGASSERT(cookie != NULL); 85 _DIAGASSERT(cookie == fp->_cookie); 100 __sseek(void *cookie, off_t offset, int whence) argument 102 FILE *fp = cookie; 119 __sclose(void * cookie) argument [all...] |
| H A D | fmemopen.c | 50 fmemopen_read(void *cookie, void *buf, size_t nbytes) argument 55 _DIAGASSERT(cookie != NULL); 58 p = (struct fmemopen_cookie *)cookie; 70 fmemopen_write(void *cookie, const void *buf, size_t nbytes) argument 76 _DIAGASSERT(cookie != NULL); 79 p = (struct fmemopen_cookie *)cookie; 103 fmemopen_flush(void *cookie) argument 107 _DIAGASSERT(cookie != NULL); 109 p = (struct fmemopen_cookie *)cookie; 118 fmemopen_seek(void *cookie, off_ argument 147 fmemopen_close0(void * cookie) argument 157 fmemopen_close1(void * cookie) argument 176 struct fmemopen_cookie *cookie; local in function:fmemopen [all...] |
| /src/sys/arch/evbmips/isa/ |
| H A D | isadma_bounce.c | 65 struct mips_bus_dma_cookie *cookie; local in function:isadma_bounce_dmamap_create 80 cookiesize = sizeof(*cookie); 110 * Allocate our cookie. 118 cookie = (struct mips_bus_dma_cookie *)cookiestore; 119 cookie->id_flags = cookieflags; 120 map->_dm_cookie = cookie; 148 struct mips_bus_dma_cookie *cookie = map->_dm_cookie; local in function:isadma_bounce_dmamap_destroy 153 if (cookie->id_flags & _BUS_DMA_HAS_BOUNCE) 156 free(cookie, M_DMAMAP); 167 struct mips_bus_dma_cookie *cookie local in function:isadma_bounce_dmamap_load 228 struct mips_bus_dma_cookie *cookie = map->_dm_cookie; local in function:isadma_bounce_dmamap_load_mbuf 320 struct mips_bus_dma_cookie *cookie = map->_dm_cookie; local in function:isadma_bounce_dmamap_unload 346 struct mips_bus_dma_cookie *cookie = map->_dm_cookie; local in function:isadma_bounce_dmamap_sync 519 struct mips_bus_dma_cookie *cookie = map->_dm_cookie; local in function:isadma_bounce_alloc_bouncebuf 547 struct mips_bus_dma_cookie *cookie = map->_dm_cookie; local in function:isadma_bounce_free_bouncebuf [all...] |
| /src/tests/lib/libpthread/weak/lib/ |
| H A D | h_pthread_weak.c | 42 start(void *cookie) argument 44 return cookie; 61 int cookie = 123; local in function:test_thread_creation 68 RZ(pthread_create(&t, NULL, &start, &cookie)); 71 ATF_CHECK_EQ(result, &cookie); 77 int cookie = 123; local in function:test_thread_creation_failure 81 error = pthread_create(&t, NULL, &start, &cookie);
|
| /src/lib/libpthread/ |
| H A D | thrd.c | 51 struct __thrd_tramp_data *cookie; local in function:__thrd_create_tramp 56 cookie = (struct __thrd_tramp_data *)arg; 58 ret = (cookie->func)(cookie->arg); 60 free(cookie); 68 struct __thrd_tramp_data *cookie; local in function:thrd_create 74 cookie = malloc(sizeof(*cookie)); 75 if (cookie == NULL) 78 cookie [all...] |
| /src/lib/libpuffs/ |
| H A D | flush.c | 50 puffs_inval_namecache_node(struct puffs_usermount *pu, puffs_cookie_t cookie, 59 doflush(struct puffs_usermount *pu, puffs_cookie_t cookie, int op, argument 81 pf->pf_cookie = cookie; 94 puffs_inval_namecache_dir(struct puffs_usermount *pu, puffs_cookie_t cookie) argument 97 return doflush(pu, cookie, PUFFS_INVAL_NAMECACHE_DIR, 0, 0); 108 puffs_inval_pagecache_node(struct puffs_usermount *pu, puffs_cookie_t cookie) argument 111 return doflush(pu, cookie, PUFFS_INVAL_PAGECACHE_NODE_RANGE, 0, 0); 116 puffs_cookie_t cookie, off_t start, off_t end) 119 return doflush(pu, cookie, PUFFS_INVAL_PAGECACHE_NODE_RANGE, start,end); 123 puffs_flush_pagecache_node(struct puffs_usermount *pu, puffs_cookie_t cookie) argument 115 puffs_inval_pagecache_node_range(struct puffs_usermount * pu,puffs_cookie_t cookie,off_t start,off_t end) argument 130 puffs_flush_pagecache_node_range(struct puffs_usermount * pu,puffs_cookie_t cookie,off_t start,off_t end) argument [all...] |
| /src/sys/arch/atari/isa/ |
| H A D | isa_dma.c | 208 struct atari_isa_dma_cookie *cookie; local in function:isadma_bounce_cookie_alloc 211 if ((cookie = kmem_zalloc(isadma_bounce_cookiesize(map, cookieflags), 216 cookie->id_flags = cookieflags; 217 map->_dm_cookie = cookie; 225 struct atari_isa_dma_cookie *cookie = map->_dm_cookie; local in function:isadma_bounce_cookie_free 227 if (cookie != NULL) { 229 isadma_bounce_cookiesize(map, cookie->id_flags)); 240 struct atari_isa_dma_cookie *cookie; local in function:_isa_bus_dmamap_create 254 * Allocate our cookie. 259 cookie 285 struct atari_isa_dma_cookie *cookie = map->_dm_cookie; local in function:_isa_bus_dmamap_destroy 304 struct atari_isa_dma_cookie *cookie = map->_dm_cookie; local in function:_isa_bus_dmamap_load 369 struct atari_isa_dma_cookie *cookie = map->_dm_cookie; local in function:_isa_bus_dmamap_load_mbuf 461 struct atari_isa_dma_cookie *cookie = map->_dm_cookie; local in function:_isa_bus_dmamap_unload 486 struct atari_isa_dma_cookie *cookie = map->_dm_cookie; local in function:_isa_bus_dmamap_sync 632 struct atari_isa_dma_cookie *cookie = map->_dm_cookie; local in function:_isa_dma_alloc_bouncebuf 662 struct atari_isa_dma_cookie *cookie = map->_dm_cookie; local in function:_isa_dma_free_bouncebuf [all...] |
| /src/sys/arch/alpha/isa/ |
| H A D | isadma_bounce.c | 150 struct isadma_bounce_cookie *cookie; local in function:isadma_bounce_cookie_alloc 153 if ((cookie = kmem_zalloc(isadma_bounce_cookiesize(map, cookieflags), 158 cookie->id_flags = cookieflags; 159 map->_dm_cookie = cookie; 167 struct isadma_bounce_cookie *cookie = map->_dm_cookie; local in function:isadma_bounce_cookie_free 169 if (cookie != NULL) { 171 isadma_bounce_cookiesize(map, cookie->id_flags)); 183 struct isadma_bounce_cookie *cookie; local in function:isadma_bounce_dmamap_create 197 * Allocate our cookie. 202 cookie 229 struct isadma_bounce_cookie *cookie = map->_dm_cookie; local in function:isadma_bounce_dmamap_destroy 248 struct isadma_bounce_cookie *cookie = map->_dm_cookie; local in function:isadma_bounce_dmamap_load 310 struct isadma_bounce_cookie *cookie = map->_dm_cookie; local in function:isadma_bounce_dmamap_load_mbuf 403 struct isadma_bounce_cookie *cookie = map->_dm_cookie; local in function:isadma_bounce_dmamap_unload 429 struct isadma_bounce_cookie *cookie = map->_dm_cookie; local in function:isadma_bounce_dmamap_sync 584 struct isadma_bounce_cookie *cookie = map->_dm_cookie; local in function:isadma_bounce_alloc_bouncebuf 612 struct isadma_bounce_cookie *cookie = map->_dm_cookie; local in function:isadma_bounce_free_bouncebuf [all...] |
| /src/sys/arch/arc/isa/ |
| H A D | isadma_bounce.c | 168 struct isadma_bounce_cookie *cookie; local in function:isadma_bounce_cookie_alloc 171 if ((cookie = kmem_zalloc(isadma_bounce_cookiesize(map, cookieflags), 176 cookie->id_flags = cookieflags; 177 map->_dm_cookie = cookie; 185 struct isadma_bounce_cookie *cookie = map->_dm_cookie; local in function:isadma_bounce_cookie_free 187 if (cookie != NULL) { 189 isadma_bounce_cookiesize(map, cookie->id_flags)); 221 struct isadma_bounce_cookie *cookie; local in function:isadma_bounce_dmamap_create 235 * Allocate our cookie. 240 cookie 267 struct isadma_bounce_cookie *cookie = map->_dm_cookie; local in function:isadma_bounce_dmamap_destroy 286 struct isadma_bounce_cookie *cookie = map->_dm_cookie; local in function:isadma_bounce_dmamap_load 347 struct isadma_bounce_cookie *cookie = map->_dm_cookie; local in function:isadma_bounce_dmamap_load_mbuf 439 struct isadma_bounce_cookie *cookie = map->_dm_cookie; local in function:isadma_bounce_dmamap_unload 465 struct isadma_bounce_cookie *cookie = map->_dm_cookie; local in function:isadma_bounce_dmamap_sync 632 struct isadma_bounce_cookie *cookie = map->_dm_cookie; local in function:isadma_bounce_alloc_bouncebuf 660 struct isadma_bounce_cookie *cookie = map->_dm_cookie; local in function:isadma_bounce_free_bouncebuf [all...] |
| /src/sys/external/bsd/drm2/include/linux/ |
| H A D | async.h | 40 * Schedule the kernel to run fn(arg, cookie) at some point to 42 * short. Returns a cookie that can be used to wait for the 65 * async_synchronize_cookie(cookie) 68 * returned cookie has completed. 71 async_synchronize_cookie(unsigned long cookie) argument
|
| H A D | smp.h | 60 void *cookie = b; local in function:on_each_cpu_xc 62 (**fp)(cookie); 66 on_each_cpu(void (*f)(void *), void *cookie, int wait) argument 70 ticket = xc_broadcast(0, &on_each_cpu_xc, &f, cookie);
|
| /src/sbin/savecore/ |
| H A D | zopen.c | 19 xgzread(void *cookie, char *data, int size) argument 21 return gzread(cookie, data, size); 25 xgzwrite(void *cookie, const char *data, int size) argument 27 return gzwrite(cookie, __UNCONST(data), size);
|
| /src/sys/arch/powerpc/isa/ |
| H A D | isadma_machdep.c | 164 struct powerpc_isa_dma_cookie *cookie; local in function:_isa_bus_dmamap_create 187 cookiesize = sizeof(*cookie); 224 * Allocate our cookie. 232 cookie = (struct powerpc_isa_dma_cookie *)cookiestore; 233 cookie->id_flags = cookieflags; 234 map->_dm_cookie = cookie; 262 struct powerpc_isa_dma_cookie *cookie = map->_dm_cookie; local in function:_isa_bus_dmamap_destroy 267 if (cookie->id_flags & ID_HAS_BOUNCE) 270 size_t cookiesize = sizeof(*cookie); 271 if (cookie 285 struct powerpc_isa_dma_cookie *cookie = map->_dm_cookie; local in function:_isa_bus_dmamap_load 350 struct powerpc_isa_dma_cookie *cookie = map->_dm_cookie; local in function:_isa_bus_dmamap_load_mbuf 444 struct powerpc_isa_dma_cookie *cookie = map->_dm_cookie; local in function:_isa_bus_dmamap_unload 470 struct powerpc_isa_dma_cookie *cookie = map->_dm_cookie; local in function:_isa_bus_dmamap_sync 626 struct powerpc_isa_dma_cookie *cookie = map->_dm_cookie; local in function:_isa_dma_alloc_bouncebuf 656 struct powerpc_isa_dma_cookie *cookie = map->_dm_cookie; local in function:_isa_dma_free_bouncebuf [all...] |
| /src/tests/compat/linux/ |
| H A D | h_inotify_directory.c | 50 bool cookie; member in struct:__anon2edd0c350108 53 { .mask = LINUX_IN_CREATE, .cookie = 0, .name = "test", }, 54 { .mask = LINUX_IN_MOVED_FROM, .cookie = 1, .name = "test", }, 55 { .mask = LINUX_IN_MOVED_TO, .cookie = 1, .name = "test2", }, 56 { .mask = LINUX_IN_DELETE, .cookie = 0, .name = "test2", }, 57 { .mask = LINUX_IN_MOVE_SELF, .cookie = 0, .name = "", }, 58 { .mask = LINUX_IN_DELETE_SELF, .cookie = 0, .name = "", }, 59 { .mask = LINUX_IN_IGNORED, .cookie = 0, .name = "", }, 93 if (target_events[i].cookie) 94 REQUIRE(cur_ie->cookie ! [all...] |
| /src/tests/usr.bin/cc/ |
| H A D | t_pthread_abuse.sh | 44 start(void *cookie) 46 return cookie; 52 int cookie = 123; 57 error = pthread_create(&t, NULL, &start, &cookie); 63 return (result == &cookie ? 0 : EXIT_FAILURE);
|
| /src/sys/arch/alpha/pci/ |
| H A D | tsciic.c | 91 tsciicbb_set_bits(void *cookie, uint32_t bits) argument 103 tsciicbb_set_dir(void *cookie, uint32_t dir) argument 109 tsciicbb_read(void *cookie) argument 122 tsciic_send_start(void *cookie, int flags) argument 124 return (i2c_bitbang_send_start(cookie, flags, &tsciicbb_ops)); 128 tsciic_send_stop(void *cookie, int flags) argument 130 return (i2c_bitbang_send_stop(cookie, flags, &tsciicbb_ops)); 134 tsciic_initiate_xfer(void *cookie, i2c_addr_t addr, int flags) argument 136 return (i2c_bitbang_initiate_xfer(cookie, addr, flags, 141 tsciic_read_byte(void *cookie, uint8_ argument 147 tsciic_write_byte(void * cookie,uint8_t val,int flags) argument [all...] |
| /src/sys/arch/epoc32/epoc32/ |
| H A D | external_io.c | 54 /* cookie */ 143 external_bs_rr_1(void *cookie, bus_space_handle_t bsh, argument 149 datap[i] = external_bs_r_1(cookie, bsh, offset + i); 153 external_bs_rr_2(void *cookie, bus_space_handle_t bsh, argument 160 external_bs_r_4(cookie, bsh, offset + (i << 1)); 163 external_bs_r_1(cookie, bsh, offset + (i << 1)) | 164 external_bs_r_1(cookie, bsh, offset + (i << 1) + 1); 168 external_bs_wr_1(void *cookie, bus_space_handle_t bsh, argument 174 external_bs_w_1(cookie, bsh, offset + i, datap[i]); 178 external_bs_wr_2(void *cookie, bus_space_handle_ argument 195 external_bs_sr_1(void * cookie,bus_space_handle_t bsh,bus_size_t offset,uint8_t value,bus_size_t count) argument 205 external_bs_sr_2(void * cookie,bus_space_handle_t bsh,bus_size_t offset,uint16_t value,bus_size_t count) argument [all...] |
| /src/sys/rump/dev/lib/libugenhc/ |
| H A D | ugenhc_user.c | 47 void *cookie; local in function:rumpcomp_ugenhc_ioctl 50 cookie = rumpuser_component_unschedule(); 56 rumpuser_component_schedule(cookie);
|
| /src/sys/arch/mips/adm5120/ |
| H A D | adm5120_cfio.c | 102 /* cookie */ 207 cf_bs_unmap(void *cookie, bus_space_handle_t bh, bus_size_t size, int acct) argument 210 bus_space_unmap((bus_space_tag_t)cookie, 212 bus_space_unmap((bus_space_tag_t)cookie, 256 cf_bs_map(void *cookie, bus_addr_t addr, bus_size_t size, int flags, argument 266 rc = bus_space_map((bus_space_tag_t)cookie, 272 rc = bus_space_map((bus_space_tag_t)cookie, addr, size, flags, 275 bus_space_unmap((bus_space_tag_t)cookie, 285 cf_bs_subregion(void *cookie, bus_space_handle_t h, bus_size_t offset, argument 293 rc = bus_space_subregion((bus_space_tag_t)cookie, 311 cf_bs_translate(void * cookie,bus_addr_t addr,bus_size_t len,int flags,struct mips_bus_space_translation * mbst) argument 318 cf_bs_get_window(void * cookie,int window,struct mips_bus_space_translation * mbst) argument 325 cf_bs_alloc(void * cookie,bus_addr_t reg_start,bus_addr_t reg_end,bus_size_t size,bus_size_t alignment,bus_size_t boundary,int flags,bus_addr_t * addrp,bus_space_handle_t * bhp) argument 357 cf_bs_free(void * cookie,bus_space_handle_t bh,bus_size_t size) argument 367 cf_bs_vaddr(void * cookie,bus_space_handle_t bh) argument 373 cf_bs_mmap(void * cookie,bus_addr_t addr,off_t off,int prot,int flags) argument 379 cf_bs_barrier(void * cookie,bus_space_handle_t bh,bus_size_t offset,bus_size_t length,int flags) argument 390 cf_bs_r_1(void * cookie,bus_space_handle_t bh,bus_size_t offset) argument 400 cf_bs_rm_1(void * cookie,bus_space_handle_t bh,bus_size_t offset,uint8_t * datap,bus_size_t count) argument 409 cf_bs_w_1(void * cookie,bus_space_handle_t bh,bus_size_t offset,uint8_t val) argument 419 cf_bs_wm_1(void * cookie,bus_space_handle_t bh,bus_size_t offset,const uint8_t * datap,bus_size_t count) argument 428 cf_bs_rs_1(void * cookie,bus_space_handle_t bh,bus_size_t offset) argument 438 cf_bs_rms_1(void * cookie,bus_space_handle_t bh,bus_size_t offset,uint8_t * datap,bus_size_t count) argument 447 cf_bs_ws_1(void * cookie,bus_space_handle_t bh,bus_size_t offset,uint8_t val) argument 457 cf_bs_wms_1(void * cookie,bus_space_handle_t bh,bus_size_t offset,const uint8_t * datap,bus_size_t count) argument 466 cf_bs_sm_1(void * cookie,bus_space_handle_t bh,bus_size_t offset,uint8_t value,bus_size_t count) argument [all...] |