Home
last modified time | relevance | path

Searched refs:cookie (Results 1 – 25 of 989) sorted by relevance

12345678910>>...40

/openbmc/linux/fs/fscache/
H A Dcookie.c21 static void fscache_unhash_cookie(struct fscache_cookie *cookie);
22 static void fscache_perform_invalidation(struct fscache_cookie *cookie);
35 void fscache_print_cookie(struct fscache_cookie *cookie, char prefix) in fscache_print_cookie() argument
41 cookie->debug_id, in fscache_print_cookie()
42 cookie->flags, in fscache_print_cookie()
43 atomic_read(&cookie->n_active), in fscache_print_cookie()
44 atomic_read(&cookie->n_accesses), in fscache_print_cookie()
45 fscache_cookie_states[cookie->state]); in fscache_print_cookie()
48 cookie->volume->debug_id, in fscache_print_cookie()
49 cookie->volume->key); in fscache_print_cookie()
[all …]
H A Dio.c26 struct fscache_cookie *cookie = fscache_cres_cookie(cres); in fscache_wait_for_operation() local
30 if (!fscache_cache_is_live(cookie->volume->cache)) { in fscache_wait_for_operation()
35 state = fscache_cookie_state(cookie); in fscache_wait_for_operation()
36 _enter("c=%08x{%u},%x", cookie->debug_id, state, want_state); in fscache_wait_for_operation()
46 wait_var_event(&cookie->state, in fscache_wait_for_operation()
47 fscache_cookie_state(cookie) != state); in fscache_wait_for_operation()
61 return cookie->volume->cache->ops->begin_operation(cres, want_state); in fscache_wait_for_operation()
72 struct fscache_cookie *cookie, in fscache_begin_operation() argument
81 cres->cache_priv = cookie; in fscache_begin_operation()
83 cres->debug_id = cookie->debug_id; in fscache_begin_operation()
[all …]
/openbmc/u-boot/drivers/fpga/
H A Dspartan3.c114 int cookie = desc->cookie; /* make a local copy */ in spartan3_sp_load() local
142 printf ("Loading FPGA Device %d...\n", cookie); in spartan3_sp_load()
148 (*fn->pre) (cookie); in spartan3_sp_load()
152 (*fn->pgm) (true, true, cookie); /* Assert the program, commit */ in spartan3_sp_load()
156 (*fn->pgm) (false, true, cookie); /* Deassert the program, commit */ in spartan3_sp_load()
164 (*fn->abort) (cookie); /* abort the burn */ in spartan3_sp_load()
167 } while ((*fn->init) (cookie) && (*fn->busy) (cookie)); in spartan3_sp_load()
169 (*fn->wr) (true, true, cookie); /* Assert write, commit */ in spartan3_sp_load()
170 (*fn->cs) (true, true, cookie); /* Assert chip select, commit */ in spartan3_sp_load()
171 (*fn->clk) (true, true, cookie); /* Assert the clock pin */ in spartan3_sp_load()
[all …]
H A Dspartan2.c110 int cookie = desc->cookie; /* make a local copy */ in spartan2_sp_load() local
138 printf ("Loading FPGA Device %d...\n", cookie); in spartan2_sp_load()
144 (*fn->pre) (cookie); in spartan2_sp_load()
148 (*fn->pgm) (true, true, cookie); /* Assert the program, commit */ in spartan2_sp_load()
152 (*fn->pgm) (false, true, cookie); /* Deassert the program, commit */ in spartan2_sp_load()
160 (*fn->abort) (cookie); /* abort the burn */ in spartan2_sp_load()
163 } while ((*fn->init) (cookie) && (*fn->busy) (cookie)); in spartan2_sp_load()
165 (*fn->wr) (true, true, cookie); /* Assert write, commit */ in spartan2_sp_load()
166 (*fn->cs) (true, true, cookie); /* Assert chip select, commit */ in spartan2_sp_load()
167 (*fn->clk) (true, true, cookie); /* Assert the clock pin */ in spartan2_sp_load()
[all …]
H A Dvirtex2.c168 int cookie = desc->cookie; in virtex2_ssm_load() local
193 printf ("Initializing FPGA Device %d...\n", cookie); in virtex2_ssm_load()
199 (*fn->pre) (cookie); in virtex2_ssm_load()
208 (*fn->pgm) (true, true, cookie); in virtex2_ssm_load()
216 (*fn->abort) (cookie); in virtex2_ssm_load()
219 } while (!(*fn->init) (cookie)); in virtex2_ssm_load()
221 (*fn->pgm) (false, true, cookie); in virtex2_ssm_load()
223 (*fn->clk) (true, true, cookie); in virtex2_ssm_load()
235 (*fn->abort) (cookie); in virtex2_ssm_load()
238 } while ((*fn->init) (cookie) && (*fn->busy) (cookie)); in virtex2_ssm_load()
[all …]
H A DACEX1K.c101 int cookie = desc->cookie; /* make a local copy */ in ACEX1K_ps_load() local
115 printf ("Loading FPGA Device %d...", cookie); in ACEX1K_ps_load()
122 (*fn->pre) (cookie); in ACEX1K_ps_load()
126 (*fn->config) (true, true, cookie); /* Assert nCONFIG */ in ACEX1K_ps_load()
131 (*fn->done) (cookie); in ACEX1K_ps_load()
132 if ( !(*fn->status) (cookie) ) { in ACEX1K_ps_load()
134 (*fn->abort) (cookie); in ACEX1K_ps_load()
138 (*fn->config) (false, true, cookie); /* Deassert nCONFIG */ in ACEX1K_ps_load()
147 (*fn->abort) (cookie); in ACEX1K_ps_load()
150 (*fn->done) (cookie); in ACEX1K_ps_load()
[all …]
H A DstratixII.c72 int cookie; in StratixII_ps_fpp_load() local
97 cookie = desc->cookie; in StratixII_ps_fpp_load()
110 if ((ret_val = fns->pre (cookie)) < 0) { in StratixII_ps_fpp_load()
118 fns->config (0, 1, cookie); in StratixII_ps_fpp_load()
120 fns->config (1, 1, cookie); in StratixII_ps_fpp_load()
125 fns->clk (0, 1, cookie); in StratixII_ps_fpp_load()
130 if (fns->status (cookie) != 1) { in StratixII_ps_fpp_load()
134 fns->abort (cookie); in StratixII_ps_fpp_load()
142 fns->data ((data >> i) & 1, 1, cookie); in StratixII_ps_fpp_load()
145 fns->clk (1, 1, cookie); in StratixII_ps_fpp_load()
[all …]
H A Dcyclon2.c105 int cookie = desc->cookie; /* make a local copy */ in CYC2_ps_load() local
118 printf ("Loading FPGA Device %d...", cookie); in CYC2_ps_load()
125 (*fn->pre) (cookie); in CYC2_ps_load()
129 (*fn->config) (false, true, cookie); /* De-assert nCONFIG */ in CYC2_ps_load()
131 (*fn->config) (true, true, cookie); /* Assert nCONFIG */ in CYC2_ps_load()
141 (*fn->abort) (cookie); in CYC2_ps_load()
144 } while (!(*fn->status) (cookie)); in CYC2_ps_load()
149 ret = (*fn->write) (buf, bsize, true, cookie); in CYC2_ps_load()
152 (*fn->abort) (cookie); in CYC2_ps_load()
169 if ( ! (*fn->done) (cookie) ) { in CYC2_ps_load()
[all …]
/openbmc/linux/include/linux/
H A Dfscache.h25 #define fscache_cookie_valid(cookie) (cookie) argument
27 #define fscache_cookie_enabled(cookie) (cookie && !test_bit(FSCACHE_COOKIE_DISABLED, &cookie->flags… argument
32 #define fscache_cookie_valid(cookie) (0) argument
34 #define fscache_cookie_enabled(cookie) (0) argument
268 static inline void fscache_use_cookie(struct fscache_cookie *cookie, in fscache_use_cookie() argument
271 if (fscache_cookie_valid(cookie)) in fscache_use_cookie()
272 __fscache_use_cookie(cookie, will_modify); in fscache_use_cookie()
284 static inline void fscache_unuse_cookie(struct fscache_cookie *cookie, in fscache_unuse_cookie() argument
288 if (fscache_cookie_valid(cookie)) in fscache_unuse_cookie()
289 __fscache_unuse_cookie(cookie, aux_data, object_size); in fscache_unuse_cookie()
[all …]
H A Dfscache-cache.h63 bool (*lookup_cookie)(struct fscache_cookie *cookie);
66 void (*withdraw_cookie)(struct fscache_cookie *cookie);
73 bool (*invalidate_cookie)(struct fscache_cookie *cookie);
80 void (*prepare_to_write)(struct fscache_cookie *cookie);
97 extern void fscache_withdraw_cookie(struct fscache_cookie *cookie);
107 struct fscache_cookie *cookie,
110 extern struct fscache_cookie *fscache_get_cookie(struct fscache_cookie *cookie,
112 extern void fscache_put_cookie(struct fscache_cookie *cookie,
114 extern void fscache_end_cookie_access(struct fscache_cookie *cookie,
116 extern void fscache_cookie_lookup_negative(struct fscache_cookie *cookie);
[all …]
/openbmc/u-boot/include/
H A Dspartan3.h77 #define XILINX_XC3S50_DESC(iface, fn_table, cookie) \ argument
78 { xilinx_spartan3, iface, XILINX_XC3S50_SIZE, fn_table, cookie, \
81 #define XILINX_XC3S200_DESC(iface, fn_table, cookie) \ argument
82 { xilinx_spartan3, iface, XILINX_XC3S200_SIZE, fn_table, cookie, \
85 #define XILINX_XC3S400_DESC(iface, fn_table, cookie) \ argument
86 { xilinx_spartan3, iface, XILINX_XC3S400_SIZE, fn_table, cookie, \
89 #define XILINX_XC3S1000_DESC(iface, fn_table, cookie) \ argument
90 { xilinx_spartan3, iface, XILINX_XC3S1000_SIZE, fn_table, cookie, \
93 #define XILINX_XC3S1500_DESC(iface, fn_table, cookie) \ argument
94 { xilinx_spartan3, iface, XILINX_XC3S1500_SIZE, fn_table, cookie, \
[all …]
H A Dvirtex2.h64 #define XILINX_XC2V40_DESC(iface, fn_table, cookie) \ argument
65 { xilinx_virtex2, iface, XILINX_XC2V40_SIZE, fn_table, cookie, \
68 #define XILINX_XC2V80_DESC(iface, fn_table, cookie) \ argument
69 { xilinx_virtex2, iface, XILINX_XC2V80_SIZE, fn_table, cookie, \
72 #define XILINX_XC2V250_DESC(iface, fn_table, cookie) \ argument
73 { xilinx_virtex2, iface, XILINX_XC2V250_SIZE, fn_table, cookie, \
76 #define XILINX_XC2V500_DESC(iface, fn_table, cookie) \ argument
77 { xilinx_virtex2, iface, XILINX_XC2V500_SIZE, fn_table, cookie, \
80 #define XILINX_XC2V1000_DESC(iface, fn_table, cookie) \ argument
81 { xilinx_virtex2, iface, XILINX_XC2V1000_SIZE, fn_table, cookie, \
[all …]
H A Dspartan2.h67 #define XILINX_XC2S15_DESC(iface, fn_table, cookie) \ argument
68 { xilinx_spartan2, iface, XILINX_XC2S15_SIZE, fn_table, cookie, \
71 #define XILINX_XC2S30_DESC(iface, fn_table, cookie) \ argument
72 { xilinx_spartan2, iface, XILINX_XC2S30_SIZE, fn_table, cookie, \
75 #define XILINX_XC2S50_DESC(iface, fn_table, cookie) \ argument
76 { xilinx_spartan2, iface, XILINX_XC2S50_SIZE, fn_table, cookie, \
79 #define XILINX_XC2S100_DESC(iface, fn_table, cookie) \ argument
80 { xilinx_spartan2, iface, XILINX_XC2S100_SIZE, fn_table, cookie, \
83 #define XILINX_XC2S150_DESC(iface, fn_table, cookie) \ argument
84 { xilinx_spartan2, iface, XILINX_XC2S150_SIZE, fn_table, cookie, \
[all …]
H A Dxilinx.h43 int cookie; /* implementation specific cookie */ member
70 typedef int (*xilinx_pgm_fn)(int assert_pgm, int flush, int cookie);
71 typedef int (*xilinx_init_fn)(int cookie);
72 typedef int (*xilinx_err_fn)(int cookie);
73 typedef int (*xilinx_done_fn)(int cookie);
74 typedef int (*xilinx_clk_fn)(int assert_clk, int flush, int cookie);
75 typedef int (*xilinx_cs_fn)(int assert_cs, int flush, int cookie);
76 typedef int (*xilinx_wr_fn)(int assert_write, int flush, int cookie);
77 typedef int (*xilinx_rdata_fn)(unsigned char *data, int cookie);
78 typedef int (*xilinx_wdata_fn)(unsigned char data, int flush, int cookie);
[all …]
/openbmc/linux/kernel/sched/
H A Dcore_sched.c23 static void sched_core_put_cookie(unsigned long cookie) in sched_core_put_cookie() argument
25 struct sched_core_cookie *ptr = (void *)cookie; in sched_core_put_cookie()
33 static unsigned long sched_core_get_cookie(unsigned long cookie) in sched_core_get_cookie() argument
35 struct sched_core_cookie *ptr = (void *)cookie; in sched_core_get_cookie()
40 return cookie; in sched_core_get_cookie()
54 unsigned long cookie) in sched_core_update_cookie() argument
68 SCHED_WARN_ON((p->core_cookie || cookie) && !sched_core_enabled(rq)); in sched_core_update_cookie()
74 p->core_cookie = cookie; in sched_core_update_cookie()
79 if (cookie && task_on_rq_queued(p)) in sched_core_update_cookie()
101 unsigned long cookie, flags; in sched_core_clone_cookie() local
[all …]
/openbmc/openbmc/meta-openembedded/meta-python/recipes-devtools/python/python3-inotify/
H A Dnew-test-inotify.patch69 - (inotify.adapters._INOTIFY_EVENT(wd=1, mask=256, cookie=0, len=16), ['IN_CREATE'],…
70 - (inotify.adapters._INOTIFY_EVENT(wd=1, mask=32, cookie=0, len=16), ['IN_OPEN'], in…
71 - (inotify.adapters._INOTIFY_EVENT(wd=1, mask=8, cookie=0, len=16), ['IN_CLOSE_WRITE…
72 + (inotify.adapters._INOTIFY_EVENT(wd=wd, mask=256, cookie=0, len=16), ['IN_CREATE']…
73 + (inotify.adapters._INOTIFY_EVENT(wd=wd, mask=32, cookie=0, len=16), ['IN_OPEN'], i…
74 + (inotify.adapters._INOTIFY_EVENT(wd=wd, mask=8, cookie=0, len=16), ['IN_CLOSE_WRIT…
110 - (inotify.adapters._INOTIFY_EVENT(wd=1, mask=256, cookie=0, len=16), ['IN_CREATE'],…
111 - (inotify.adapters._INOTIFY_EVENT(wd=1, mask=32, cookie=0, len=16), ['IN_OPEN'], in…
112 - (inotify.adapters._INOTIFY_EVENT(wd=1, mask=8, cookie=0, len=16), ['IN_CLOSE_WRITE…
113 + (inotify.adapters._INOTIFY_EVENT(wd=wd, mask=256, cookie=0, len=16), ['IN_CREATE']…
[all …]
/openbmc/linux/include/trace/events/
H A Dfscache.h269 __field(unsigned int, cookie )
275 __entry->cookie = cookie_debug_id;
281 __entry->cookie,
296 __field(unsigned int, cookie )
304 __entry->cookie = cookie_debug_id;
312 __entry->cookie,
359 __field(unsigned int, cookie )
367 __entry->cookie = cookie_debug_id;
375 __entry->cookie,
390 __field(unsigned int, cookie )
[all …]
/openbmc/u-boot/api/
H A Dapi_net.c27 static int dev_valid_net(void *cookie) in dev_valid_net() argument
29 return ((void *)eth_get_dev() == cookie) ? 1 : 0; in dev_valid_net()
32 int dev_open_net(void *cookie) in dev_open_net() argument
34 if (!dev_valid_net(cookie)) in dev_open_net()
43 int dev_close_net(void *cookie) in dev_close_net() argument
45 if (!dev_valid_net(cookie)) in dev_close_net()
61 di->cookie = (void *)eth_current; in dev_enum_net()
62 if (di->cookie == NULL) in dev_enum_net()
68 (u_int32_t)di->cookie); in dev_enum_net()
73 int dev_write_net(void *cookie, void *buf, int len) in dev_write_net() argument
[all …]
/openbmc/u-boot/board/armadeus/apf27/
H A Dfpga.h13 extern int fpga_pre_fn(int cookie);
14 extern int fpga_pgm_fn(int assert_pgm, int flush, int cookie);
15 extern int fpga_cs_fn(int assert_cs, int flush, int cookie);
16 extern int fpga_init_fn(int cookie);
17 extern int fpga_done_fn(int cookie);
18 extern int fpga_clk_fn(int assert_clk, int flush, int cookie);
19 extern int fpga_wr_fn(int assert_write, int flush, int cookie);
20 extern int fpga_rdata_fn(unsigned char *data, int cookie);
21 extern int fpga_wdata_fn(unsigned char data, int flush, int cookie);
22 extern int fpga_abort_fn(int cookie);
[all …]
H A Dfpga.c57 int fpga_pre_fn(int cookie) in fpga_pre_fn() argument
79 return cookie; in fpga_pre_fn()
85 int fpga_pgm_fn(int assert, int flush, int cookie) in fpga_pgm_fn() argument
96 int fpga_clk_fn(int assert_clk, int flush, int cookie) in fpga_clk_fn() argument
108 int fpga_init_fn(int cookie) in fpga_init_fn() argument
124 int fpga_done_fn(int cookie) in fpga_done_fn() argument
134 int fpga_wr_fn(int assert_write, int flush, int cookie) in fpga_wr_fn() argument
142 int fpga_cs_fn(int assert_cs, int flush, int cookie) in fpga_cs_fn() argument
150 int fpga_rdata_fn(unsigned char *data, int cookie) in fpga_rdata_fn() argument
159 int fpga_wdata_fn(unsigned char data, int flush, int cookie) in fpga_wdata_fn() argument
[all …]
/openbmc/linux/fs/cachefiles/
H A Dinterface.c22 struct cachefiles_object *cachefiles_alloc_object(struct fscache_cookie *cookie) in cachefiles_alloc_object() argument
24 struct fscache_volume *vcookie = cookie->volume; in cachefiles_alloc_object()
28 _enter("{%s},%x,", vcookie->key, cookie->debug_id); in cachefiles_alloc_object()
45 object->cookie = fscache_get_cookie(cookie, fscache_cookie_get_attach_object); in cachefiles_alloc_object()
48 trace_cachefiles_ref(object->debug_id, cookie->debug_id, 1, in cachefiles_alloc_object()
59 trace_cachefiles_ref(object->debug_id, object->cookie->debug_id, in cachefiles_see_object()
72 trace_cachefiles_ref(object->debug_id, object->cookie->debug_id, r, why); in cachefiles_grab_object()
83 unsigned int cookie_debug_id = object->cookie->debug_id; in cachefiles_put_object()
98 fscache_put_cookie(object->cookie, fscache_cookie_put_object); in cachefiles_put_object()
99 object->cookie = NULL; in cachefiles_put_object()
[all …]
/openbmc/linux/drivers/dma/
H A Ddmaengine.h18 chan->cookie = DMA_MIN_COOKIE; in dma_cookie_init()
32 dma_cookie_t cookie; in dma_cookie_assign() local
34 cookie = chan->cookie + 1; in dma_cookie_assign()
35 if (cookie < DMA_MIN_COOKIE) in dma_cookie_assign()
36 cookie = DMA_MIN_COOKIE; in dma_cookie_assign()
37 tx->cookie = chan->cookie = cookie; in dma_cookie_assign()
39 return cookie; in dma_cookie_assign()
54 BUG_ON(tx->cookie < DMA_MIN_COOKIE); in dma_cookie_complete()
55 tx->chan->completed_cookie = tx->cookie; in dma_cookie_complete()
56 tx->cookie = 0; in dma_cookie_complete()
[all …]
/openbmc/u-boot/board/theadorable/
H A Dfpga.c19 static int fpga_pre_fn(int cookie) in fpga_pre_fn() argument
21 int gpio_config = COOKIE2CONFIG(cookie); in fpga_pre_fn()
22 int gpio_done = COOKIE2DONE(cookie); in fpga_pre_fn()
26 __func__, __LINE__, cookie, gpio_config, gpio_done); in fpga_pre_fn()
46 static int fpga_config_fn(int assert, int flush, int cookie) in fpga_config_fn() argument
48 int gpio_config = COOKIE2CONFIG(cookie); in fpga_config_fn()
51 __func__, __LINE__, cookie, gpio_config); in fpga_config_fn()
61 static int fpga_write_fn(const void *buf, size_t len, int flush, int cookie) in fpga_write_fn() argument
63 int spi_bus = COOKIE2SPI_BUS(cookie); in fpga_write_fn()
64 int spi_dev = COOKIE2SPI_DEV(cookie); in fpga_write_fn()
[all …]
/openbmc/linux/drivers/iommu/
H A Ddma-iommu.c128 static void fq_ring_free(struct iommu_dma_cookie *cookie, struct iova_fq *fq) in fq_ring_free() argument
130 u64 counter = atomic64_read(&cookie->fq_flush_finish_cnt); in fq_ring_free()
141 free_iova_fast(&cookie->iovad, in fq_ring_free()
149 static void fq_flush_iotlb(struct iommu_dma_cookie *cookie) in fq_flush_iotlb() argument
151 atomic64_inc(&cookie->fq_flush_start_cnt); in fq_flush_iotlb()
152 cookie->fq_domain->ops->flush_iotlb_all(cookie->fq_domain); in fq_flush_iotlb()
153 atomic64_inc(&cookie->fq_flush_finish_cnt); in fq_flush_iotlb()
158 struct iommu_dma_cookie *cookie = from_timer(cookie, t, fq_timer); in fq_flush_timeout() local
161 atomic_set(&cookie->fq_timer_on, 0); in fq_flush_timeout()
162 fq_flush_iotlb(cookie); in fq_flush_timeout()
[all …]
/openbmc/qemu/block/
H A Daccounting.c105 void block_acct_start(BlockAcctStats *stats, BlockAcctCookie *cookie, in block_acct_start() argument
110 cookie->bytes = bytes; in block_acct_start()
111 cookie->start_time_ns = qemu_clock_get_ns(clock_type); in block_acct_start()
112 cookie->type = type; in block_acct_start()
203 static void block_account_one_io(BlockAcctStats *stats, BlockAcctCookie *cookie, in block_account_one_io() argument
208 int64_t latency_ns = time_ns - cookie->start_time_ns; in block_account_one_io()
214 assert(cookie->type < BLOCK_MAX_IOTYPE); in block_account_one_io()
216 if (cookie->type == BLOCK_ACCT_NONE) { in block_account_one_io()
222 stats->failed_ops[cookie->type]++; in block_account_one_io()
224 stats->nr_bytes[cookie->type] += cookie->bytes; in block_account_one_io()
[all …]

12345678910>>...40