HomeSort by: relevance | last modified time | path
    Searched refs:cookie (Results 1 - 25 of 906) sorted by relevancy

1 2 3 4 5 6 7 8 91011>>

  /src/sys/external/bsd/libnv/dist/
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_t *nitemsp)
    [all...]
cnvlist.c 72 cnvlist_name(const void *cookie)
75 return (nvpair_name(cookie));
79 cnvlist_type(const void *cookie)
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) != NV_TYPE_##NVTYPE) {
    [all...]
  /src/sys/arch/sparc/include/
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/
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/
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)
radeonfb_i2c.c 73 radeonfb_i2cbb_set_bits(void *cookie, uint32_t bits)
75 struct radeonfb_i2c *ric = (struct radeonfb_i2c *)cookie;
83 radeonfb_i2cbb_set_dir(void *cookie, uint32_t bits)
85 struct radeonfb_i2c *ric = (struct radeonfb_i2c *)cookie;
92 radeonfb_i2cbb_read(void *cookie)
94 struct radeonfb_i2c *ric = (struct radeonfb_i2c *)cookie;
117 radeonfb_i2c_acquire_bus(void *cookie, int flags)
119 struct radeonfb_i2c *ric = (struct radeonfb_i2c *)cookie;
150 radeonfb_i2c_release_bus(void *cookie, int flags)
152 struct radeonfb_i2c *ric = (struct radeonfb_i2c *)cookie;
    [all...]
  /src/lib/libc/stdio/
stdio.c 60 __sread(void *cookie, void *buf, size_t n)
62 FILE *fp = cookie;
65 _DIAGASSERT(cookie != NULL);
66 _DIAGASSERT(cookie == fp->_cookie);
80 __swrite(void *cookie, const void *buf, size_t n)
82 FILE *fp = cookie;
84 _DIAGASSERT(cookie != NULL);
85 _DIAGASSERT(cookie == fp->_cookie);
100 __sseek(void *cookie, off_t offset, int whence)
102 FILE *fp = cookie;
    [all...]
fmemopen.c 50 fmemopen_read(void *cookie, void *buf, size_t nbytes)
55 _DIAGASSERT(cookie != NULL);
58 p = (struct fmemopen_cookie *)cookie;
70 fmemopen_write(void *cookie, const void *buf, size_t nbytes)
76 _DIAGASSERT(cookie != NULL);
79 p = (struct fmemopen_cookie *)cookie;
103 fmemopen_flush(void *cookie)
107 _DIAGASSERT(cookie != NULL);
109 p = (struct fmemopen_cookie *)cookie;
118 fmemopen_seek(void *cookie, off_t offset, int whence
176 struct fmemopen_cookie *cookie; local in function:fmemopen
    [all...]
  /src/sys/arch/evbmips/isa/
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 = map->_dm_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_pthread_weak.c 42 start(void *cookie)
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/
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->func = func
    [all...]
  /src/lib/libpuffs/
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,
81 pf->pf_cookie = cookie;
94 puffs_inval_namecache_dir(struct puffs_usermount *pu, puffs_cookie_t cookie)
97 return doflush(pu, cookie, PUFFS_INVAL_NAMECACHE_DIR, 0, 0);
108 puffs_inval_pagecache_node(struct puffs_usermount *pu, puffs_cookie_t cookie)
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)
    [all...]
  /src/sys/arch/alpha/isa/
isadma_bounce.c 54 * Cookie used by bouncing ISA DMA. A pointer to one of these is stashed
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
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/
isadma_bounce.c 55 * Cookie used by bouncing ISA DMA. A pointer to one of these is stashed
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
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/arch/atari/isa/
isa_dma.c 58 * Cookie used by ISA dma. A pointer to one of these it stashed in
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
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/sbin/savecore/
zopen.c 19 xgzread(void *cookie, char *data, int size)
21 return gzread(cookie, data, size);
25 xgzwrite(void *cookie, const char *data, int size)
27 return gzwrite(cookie, __UNCONST(data), size);
  /src/sys/external/bsd/drm2/include/linux/
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)
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)
70 ticket = xc_broadcast(0, &on_each_cpu_xc, &f, cookie);
  /src/sys/arch/powerpc/isa/
isadma_machdep.c 57 * Cookie used by ISA dma. A pointer to one of these it stashed in
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);
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_inotify_directory.c 50 bool cookie; member in struct:__anon8e5146cf0108
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 != 0)
    [all...]
  /src/tests/usr.bin/cc/
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/
tsciic.c 91 tsciicbb_set_bits(void *cookie, uint32_t bits)
103 tsciicbb_set_dir(void *cookie, uint32_t dir)
109 tsciicbb_read(void *cookie)
122 tsciic_send_start(void *cookie, int flags)
124 return (i2c_bitbang_send_start(cookie, flags, &tsciicbb_ops));
128 tsciic_send_stop(void *cookie, int flags)
130 return (i2c_bitbang_send_stop(cookie, flags, &tsciicbb_ops));
134 tsciic_initiate_xfer(void *cookie, i2c_addr_t addr, int flags)
136 return (i2c_bitbang_initiate_xfer(cookie, addr, flags,
141 tsciic_read_byte(void *cookie, uint8_t *valp, int flags
    [all...]
  /src/sys/arch/epoc32/epoc32/
external_io.c 54 /* cookie */
143 external_bs_rr_1(void *cookie, bus_space_handle_t bsh,
149 datap[i] = external_bs_r_1(cookie, bsh, offset + i);
153 external_bs_rr_2(void *cookie, bus_space_handle_t bsh,
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,
174 external_bs_w_1(cookie, bsh, offset + i, datap[i]);
178 external_bs_wr_2(void *cookie, bus_space_handle_t bsh
    [all...]
  /src/sys/rump/dev/lib/libugenhc/
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/
adm5120_cfio.c 102 /* cookie */
207 cf_bs_unmap(void *cookie, bus_space_handle_t bh, bus_size_t size, int acct)
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,
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,
293 rc = bus_space_subregion((bus_space_tag_t)cookie,
    [all...]

Completed in 27 milliseconds

1 2 3 4 5 6 7 8 91011>>