Searched refs:cookie (Results 1 - 25 of 865) sorted by relevance

1234567891011>>

/linux-master/fs/netfs/
H A Dfscache_cookie.c2 /* netfs cookie management
21 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) argument
39 pr_err("%c-cookie c=%08x [fl=%lx na=%u nA=%u s=%c]\n",
41 cookie->debug_id,
42 cookie->flags,
43 atomic_read(&cookie->n_active),
44 atomic_read(&cookie->n_accesses),
45 fscache_cookie_states[cookie
56 fscache_free_cookie(struct fscache_cookie *cookie) argument
82 __fscache_queue_cookie(struct fscache_cookie *cookie) argument
88 fscache_queue_cookie(struct fscache_cookie *cookie, enum fscache_cookie_trace where) argument
101 fscache_init_access_gate(struct fscache_cookie *cookie) argument
121 fscache_end_cookie_access(struct fscache_cookie *cookie, enum fscache_access_trace why) argument
139 __fscache_begin_cookie_access(struct fscache_cookie *cookie, enum fscache_access_trace why) argument
178 fscache_begin_cookie_access(struct fscache_cookie *cookie, enum fscache_access_trace why) argument
192 wake_up_cookie_state(struct fscache_cookie *cookie) argument
208 __fscache_set_cookie_state(struct fscache_cookie *cookie, enum fscache_cookie_state state) argument
214 fscache_set_cookie_state(struct fscache_cookie *cookie, enum fscache_cookie_state state) argument
233 fscache_cookie_lookup_negative(struct fscache_cookie *cookie) argument
247 fscache_resume_after_invalidation(struct fscache_cookie *cookie) argument
262 fscache_caching_failed(struct fscache_cookie *cookie) argument
277 fscache_set_key(struct fscache_cookie *cookie, const void *index_key, size_t index_key_len) argument
332 struct fscache_cookie *cookie; local
377 fscache_cookie_is_dropped(struct fscache_cookie *cookie) argument
457 struct fscache_cookie *cookie; local
495 fscache_prepare_to_write(struct fscache_cookie *cookie) argument
503 fscache_perform_lookup(struct fscache_cookie *cookie) argument
548 fscache_begin_lookup(struct fscache_cookie *cookie, bool will_modify) argument
569 __fscache_use_cookie(struct fscache_cookie *cookie, bool will_modify) argument
643 fscache_unuse_cookie_locked(struct fscache_cookie *cookie) argument
665 __fscache_unuse_cookie(struct fscache_cookie *cookie, const void *aux_data, const loff_t *object_size) argument
700 fscache_cookie_state_machine(struct fscache_cookie *cookie) argument
828 struct fscache_cookie *cookie = container_of(work, struct fscache_cookie, work); local
840 __fscache_withdraw_cookie(struct fscache_cookie *cookie) argument
856 fscache_cookie_lru_do_one(struct fscache_cookie *cookie) argument
879 struct fscache_cookie *cookie; local
908 fscache_cookie_drop_from_lru(struct fscache_cookie *cookie) argument
929 fscache_unhash_cookie(struct fscache_cookie *cookie) argument
944 fscache_drop_withdraw_cookie(struct fscache_cookie *cookie) argument
957 fscache_withdraw_cookie(struct fscache_cookie *cookie) argument
968 __fscache_relinquish_cookie(struct fscache_cookie *cookie, bool retire) argument
1003 fscache_put_cookie(struct fscache_cookie *cookie, enum fscache_cookie_trace where) argument
1023 fscache_get_cookie(struct fscache_cookie *cookie, enum fscache_cookie_trace where) argument
1037 fscache_perform_invalidation(struct fscache_cookie *cookie) argument
1047 __fscache_invalidate(struct fscache_cookie *cookie, const void *aux_data, loff_t new_size, unsigned int flags) argument
1109 struct fscache_cookie *cookie; local
[all...]
H A Dfscache_io.c26 struct fscache_cookie *cookie = fscache_cres_cookie(cres); local
30 if (!fscache_cache_is_live(cookie->volume->cache)) {
35 state = fscache_cookie_state(cookie);
36 _enter("c=%08x{%u},%x", cookie->debug_id, state, want_state);
46 wait_var_event(&cookie->state,
47 fscache_cookie_state(cookie) != state);
61 return cookie->volume->cache->ops->begin_operation(cres, want_state);
72 struct fscache_cookie *cookie,
81 cres->cache_priv = cookie;
83 cres->debug_id = cookie
71 fscache_begin_operation(struct netfs_cache_resources *cres, struct fscache_cookie *cookie, enum fscache_want_state want_state, enum fscache_access_trace why) argument
147 __fscache_begin_read_operation(struct netfs_cache_resources *cres, struct fscache_cookie *cookie) argument
155 __fscache_begin_write_operation(struct netfs_cache_resources *cres, struct fscache_cookie *cookie) argument
210 __fscache_write_to_cache(struct fscache_cookie *cookie, struct address_space *mapping, loff_t start, size_t len, loff_t i_size, netfs_io_terminated_t term_func, void *term_func_priv, bool cond) argument
269 __fscache_resize_cookie(struct fscache_cookie *cookie, loff_t new_size) argument
[all...]
/linux-master/include/linux/
H A Dadreno-smmu-priv.h40 * @cookie: An opque token provided by adreno-smmu and passed
60 * cookie and callback functions are populated when the GPU driver attaches
64 const void *cookie; member in struct:adreno_smmu_priv
65 const struct io_pgtable_cfg *(*get_ttbr1_cfg)(const void *cookie);
66 int (*set_ttbr0_cfg)(const void *cookie, const struct io_pgtable_cfg *cfg);
67 void (*get_fault_info)(const void *cookie, struct adreno_smmu_fault_info *info);
68 void (*set_stall)(const void *cookie, bool enabled);
69 void (*resume_translation)(const void *cookie, bool terminate);
H A Dfscache-cache.h33 * Cache cookie.
61 /* Look up a cookie in the cache */
62 bool (*lookup_cookie)(struct fscache_cookie *cookie);
64 /* Withdraw an object without any cookie access counts held */
65 void (*withdraw_cookie)(struct fscache_cookie *cookie);
72 bool (*invalidate_cookie)(struct fscache_cookie *cookie);
79 void (*prepare_to_write)(struct fscache_cookie *cookie);
96 extern void fscache_withdraw_cookie(struct fscache_cookie *cookie);
101 struct fscache_cookie *cookie,
104 extern struct fscache_cookie *fscache_get_cookie(struct fscache_cookie *cookie,
124 fscache_cookie_state(struct fscache_cookie *cookie) argument
135 fscache_get_key(struct fscache_cookie *cookie) argument
[all...]
H A Dfscache.h25 #define fscache_cookie_valid(cookie) (cookie)
27 #define fscache_cookie_enabled(cookie) (cookie && !test_bit(FSCACHE_COOKIE_DISABLED, &cookie->flags))
32 #define fscache_cookie_valid(cookie) (0)
34 #define fscache_cookie_enabled(cookie) (0)
56 FSCACHE_COOKIE_STATE_QUIESCENT, /* The cookie is uncached */
62 FSCACHE_COOKIE_STATE_LRU_DISCARDING, /* The cookie is being discarded by the LRU */
63 FSCACHE_COOKIE_STATE_WITHDRAWING, /* The cookie i
268 fscache_use_cookie(struct fscache_cookie *cookie, bool will_modify) argument
284 fscache_unuse_cookie(struct fscache_cookie *cookie, const void *aux_data, const loff_t *object_size) argument
305 fscache_relinquish_cookie(struct fscache_cookie *cookie, bool retire) argument
314 fscache_get_aux(struct fscache_cookie *cookie) argument
326 fscache_update_aux(struct fscache_cookie *cookie, const void *aux_data, const loff_t *object_size) argument
342 __fscache_update_cookie(struct fscache_cookie *cookie, const void *aux_data, const loff_t *object_size) argument
368 fscache_update_cookie(struct fscache_cookie *cookie, const void *aux_data, const loff_t *object_size) argument
386 fscache_resize_cookie(struct fscache_cookie *cookie, loff_t new_size) argument
412 fscache_invalidate(struct fscache_cookie *cookie, const void *aux_data, loff_t size, unsigned int flags) argument
450 fscache_begin_read_operation(struct netfs_cache_resources *cres, struct fscache_cookie *cookie) argument
535 fscache_begin_write_operation(struct netfs_cache_resources *cres, struct fscache_cookie *cookie) argument
614 fscache_write_to_cache(struct fscache_cookie *cookie, struct address_space *mapping, loff_t start, size_t len, loff_t i_size, netfs_io_terminated_t term_func, void *term_func_priv, bool caching) argument
637 fscache_note_page_release(struct fscache_cookie *cookie) argument
[all...]
/linux-master/arch/parisc/kernel/
H A Dstacktrace.c17 struct pt_regs *regs, bool (*fn)(void *, unsigned long), void *cookie)
27 if (!fn(cookie, info.ip))
32 void arch_stack_walk(stack_trace_consume_fn consume_entry, void *cookie, argument
35 walk_stackframe(task, regs, consume_entry, cookie);
38 int arch_stack_walk_reliable(stack_trace_consume_fn consume_entry, void *cookie, argument
41 walk_stackframe(task, NULL, consume_entry, cookie);
16 walk_stackframe(struct task_struct *task, struct pt_regs *regs, bool (*fn)(void *, unsigned long), void *cookie) argument
/linux-master/drivers/dma/
H A Ddmaengine.h18 chan->cookie = DMA_MIN_COOKIE;
23 * dma_cookie_assign - assign a DMA engine cookie to the descriptor
24 * @tx: descriptor needing cookie
26 * Assign a unique non-zero per-channel cookie to the descriptor.
32 dma_cookie_t cookie; local
34 cookie = chan->cookie + 1;
35 if (cookie < DMA_MIN_COOKIE)
36 cookie = DMA_MIN_COOKIE;
37 tx->cookie
68 dma_cookie_status(struct dma_chan *chan, dma_cookie_t cookie, struct dma_tx_state *state) argument
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dexceptions.c130 __noinline int exception_cb_mod_global(u64 cookie) argument
145 __noinline int exception_cb_mod(u64 cookie) argument
147 return exception_cb_mod_global(cookie) + cookie + 10;
203 volatile u64 cookie = c; local
205 bpf_assert(cookie != 0);
211 volatile u64 cookie = c; local
213 bpf_assert(bpf_cmp_unlikely(cookie, ==, 0));
219 volatile s64 cookie = c; local
221 bpf_assert(bpf_cmp_unlikely(cookie, <,
227 volatile s64 cookie = c; local
235 volatile s64 cookie = c; local
243 volatile s64 cookie = c; local
251 volatile u64 cookie = c; local
259 volatile u64 cookie = c; local
261 bpf_assert_with(bpf_cmp_unlikely(cookie, ==, 0), cookie + 100); local
267 volatile s64 cookie = c; local
269 bpf_assert_with(bpf_cmp_unlikely(cookie, <, 0), cookie + 100); local
275 volatile s64 cookie = c; local
283 volatile s64 cookie = c; local
285 bpf_assert_with(bpf_cmp_unlikely(cookie, <=, -1), cookie + 100); local
291 volatile s64 cookie = c; local
[all...]
H A Dnetns_cookie_prog.c34 int *cookie; local
45 cookie = bpf_sk_storage_get(&sockops_netns_cookies, sk, 0,
47 if (!cookie)
50 *cookie = bpf_get_netns_cookie(ctx);
66 int *cookie; local
74 cookie = bpf_sk_storage_get(&sk_msg_netns_cookies, sk, 0,
76 if (!cookie)
79 *cookie = bpf_get_netns_cookie(msg);
H A Dexceptions_ext.c19 __noinline int exception_cb(u64 cookie) argument
21 return cookie + 64;
32 int throwing_exception_cb_extension(u64 cookie)
H A Dsk_storage_omem_uncharge.c12 __u64 cookie = 0; variable
31 if (sk->sk_cookie.counter != cookie)
46 if (!cookie || sk->sk_cookie.counter != cookie)
/linux-master/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_tc_matchall.c21 f->cookie, ingress,
24 return lan966x_mirror_port_add(port, act, f->cookie,
28 act->chain_index, f->cookie,
43 if (f->cookie == port->tc.police_id) {
44 return lan966x_police_port_del(port, f->cookie,
46 } else if (f->cookie == port->tc.ingress_mirror_id ||
47 f->cookie == port->tc.egress_mirror_id) {
51 return lan966x_goto_port_del(port, f->cookie, f->common.extack);
61 if (f->cookie == port->tc.police_id) {
63 } else if (f->cookie
[all...]
/linux-master/fs/lockd/
H A Dsvcxdr.h73 svcxdr_decode_cookie(struct xdr_stream *xdr, struct nlm_cookie *cookie) argument
88 cookie->len = len;
89 memcpy(cookie->data, p, len);
95 cookie->len = 4;
96 memset(cookie->data, 0, 4);
101 svcxdr_encode_cookie(struct xdr_stream *xdr, const struct nlm_cookie *cookie) argument
105 if (xdr_stream_encode_u32(xdr, cookie->len) < 0)
107 p = xdr_reserve_space(xdr, cookie->len);
110 memcpy(p, cookie->data, cookie
[all...]
/linux-master/kernel/sched/
H A Dcore_sched.c5 * address is used to compute the cookie of the task.
23 static void sched_core_put_cookie(unsigned long cookie) argument
25 struct sched_core_cookie *ptr = (void *)cookie;
33 static unsigned long sched_core_get_cookie(unsigned long cookie) argument
35 struct sched_core_cookie *ptr = (void *)cookie;
40 return cookie;
44 * sched_core_update_cookie - replace the cookie on a task
46 * @cookie: the new cookie
48 * Effectively exchange the task cookie; calle
53 sched_core_update_cookie(struct task_struct *p, unsigned long cookie) argument
101 unsigned long cookie, flags; local
121 __sched_core_set(struct task_struct *p, unsigned long cookie) argument
132 unsigned long cookie = 0, id = 0; local
[all...]
/linux-master/arch/s390/kernel/
H A Dstacktrace.c16 void arch_stack_walk(stack_trace_consume_fn consume_entry, void *cookie, argument
24 if (!addr || !consume_entry(cookie, addr))
30 void *cookie, struct task_struct *task)
55 if (!consume_entry(cookie, addr))
65 void arch_stack_walk_user(stack_trace_consume_fn consume_entry, void *cookie, argument
74 if (!consume_entry(cookie, instruction_pointer(regs)))
94 if (!consume_entry(cookie, ip))
29 arch_stack_walk_reliable(stack_trace_consume_fn consume_entry, void *cookie, struct task_struct *task) argument
/linux-master/include/linux/soc/apple/
H A Drtkit.h59 void (*crashed)(void *cookie);
60 void (*recv_message)(void *cookie, u8 endpoint, u64 message);
61 bool (*recv_message_early)(void *cookie, u8 endpoint, u64 message);
62 int (*shmem_setup)(void *cookie, struct apple_rtkit_shmem *bfr);
63 void (*shmem_destroy)(void *cookie, struct apple_rtkit_shmem *bfr);
73 * @cookie: opaque cookie passed to all functions defined in rtkit_ops
78 struct apple_rtkit *devm_apple_rtkit_init(struct device *dev, void *cookie,
87 * @cookie: opaque cookie passe
[all...]
/linux-master/include/trace/events/
H A Dfscache.h265 __field(unsigned int, cookie )
271 __entry->cookie = cookie_debug_id;
277 __entry->cookie,
292 __field(unsigned int, cookie )
300 __entry->cookie = cookie_debug_id;
308 __entry->cookie,
355 __field(unsigned int, cookie )
363 __entry->cookie = cookie_debug_id;
371 __entry->cookie,
386 __field(unsigned int, cookie )
[all...]
/linux-master/arch/x86/kernel/
H A Dstacktrace.c15 void arch_stack_walk(stack_trace_consume_fn consume_entry, void *cookie, argument
21 if (regs && !consume_entry(cookie, regs->ip))
27 if (!addr || !consume_entry(cookie, addr))
33 void *cookie, struct task_struct *task)
69 if (!consume_entry(cookie, addr))
106 void arch_stack_walk_user(stack_trace_consume_fn consume_entry, void *cookie, argument
111 if (!consume_entry(cookie, regs->ip))
125 if (!consume_entry(cookie, frame.ret_addr))
32 arch_stack_walk_reliable(stack_trace_consume_fn consume_entry, void *cookie, struct task_struct *task) argument
/linux-master/include/linux/fsl/bestcomm/
H A Dbestcomm.h54 void **cookie; member in struct:bcom_task
187 bcom_submit_next_buffer(struct bcom_task *tsk, void *cookie) argument
191 tsk->cookie[tsk->index] = cookie;
202 void *cookie = tsk->cookie[tsk->outdex]; local
210 return cookie;
/linux-master/arch/arm64/kernel/
H A Dstacktrace.c158 typedef bool (*kunwind_consume_fn)(const struct kunwind_state *state, void *cookie);
162 void *cookie)
170 if (!consume_state(state, cookie))
209 void *cookie, struct task_struct *task,
243 do_kunwind(&state, consume_state, cookie);
248 void *cookie; member in struct:kunwind_consume_entry_data
252 arch_kunwind_consume_entry(const struct kunwind_state *state, void *cookie) argument
254 struct kunwind_consume_entry_data *data = cookie;
255 return data->consume_entry(data->cookie, state->common.pc);
259 void *cookie, struc
161 do_kunwind(struct kunwind_state *state, kunwind_consume_fn consume_state, void *cookie) argument
208 kunwind_stack_walk(kunwind_consume_fn consume_state, void *cookie, struct task_struct *task, struct pt_regs *regs) argument
258 arch_stack_walk(stack_trace_consume_fn consume_entry, void *cookie, struct task_struct *task, struct pt_regs *regs) argument
272 void *cookie; member in struct:bpf_unwind_consume_entry_data
276 arch_bpf_unwind_consume_entry(const struct kunwind_state *state, void *cookie) argument
284 arch_bpf_stack_walk(bool (consume_entry)void *cookie, u64 ip, u64 sp, u64 fp), void *cookie) argument
[all...]
/linux-master/fs/cachefiles/
H A Dinterface.c22 struct cachefiles_object *cachefiles_alloc_object(struct fscache_cookie *cookie) argument
24 struct fscache_volume *vcookie = cookie->volume;
28 _enter("{%s},%x,", vcookie->key, cookie->debug_id);
45 object->cookie = fscache_get_cookie(cookie, fscache_cookie_get_attach_object);
48 trace_cachefiles_ref(object->debug_id, cookie->debug_id, 1,
59 trace_cachefiles_ref(object->debug_id, object->cookie->debug_id,
72 trace_cachefiles_ref(object->debug_id, object->cookie->debug_id, r, why);
83 unsigned int cookie_debug_id = object->cookie->debug_id;
98 fscache_put_cookie(object->cookie, fscache_cookie_put_objec
177 cachefiles_lookup_cookie(struct fscache_cookie *cookie) argument
283 struct fscache_cookie *cookie = object->cookie; local
354 cachefiles_withdraw_cookie(struct fscache_cookie *cookie) argument
385 cachefiles_invalidate_cookie(struct fscache_cookie *cookie) argument
[all...]
/linux-master/include/linux/ceph/
H A Dcls_lock_client.h15 char *cookie; /* locker's cookie */ member in struct:ceph_locker_id
30 char *lock_name, u8 type, char *cookie,
35 char *lock_name, char *cookie);
39 char *lock_name, char *cookie,
56 char *lock_name, u8 type, char *cookie, char *tag);
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dcustom_sec_handlers.c13 static int custom_setup_prog(struct bpf_program *prog, long cookie) argument
15 if (cookie == COOKIE_ABC1)
22 struct bpf_prog_load_opts *opts, long cookie)
24 if (cookie == COOKIE_FALLBACK)
26 else if (cookie == COOKIE_ABC1)
32 static int custom_attach_prog(const struct bpf_program *prog, long cookie, argument
35 switch (cookie) {
48 ASSERT_FALSE(true, "unexpected cookie");
63 .cookie = COOKIE_ABC1,
69 .cookie
21 custom_prepare_load_prog(struct bpf_program *prog, struct bpf_prog_load_opts *opts, long cookie) argument
[all...]
/linux-master/arch/um/kernel/
H A Dkmsg_dump.c19 int cookie; local
26 cookie = console_srcu_read_lock();
38 console_srcu_read_unlock(cookie);
/linux-master/drivers/net/ethernet/sfc/
H A Dtc_counters.h41 unsigned long cookie; member in struct:efx_tc_counter_index
57 struct efx_nic *efx, unsigned long cookie,
62 struct efx_nic *efx, unsigned long cookie);

Completed in 228 milliseconds

1234567891011>>