Home
last modified time | relevance | path

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

12345678910>>...39

/linux-6.15/fs/netfs/
H A Dfscache_cookie.c51 k = (cookie->key_len <= sizeof(cookie->inline_key)) ? in fscache_print_cookie()
52 cookie->inline_key : cookie->key; in fscache_print_cookie()
74 if (cookie->aux_len > sizeof(cookie->inline_aux)) in fscache_free_cookie()
76 if (cookie->key_len > sizeof(cookie->inline_key)) in fscache_free_cookie()
336 if (!cookie) in fscache_alloc_cookie()
351 if (cookie->aux_len <= sizeof(cookie->inline_aux)) { in fscache_alloc_cookie()
352 memcpy(cookie->inline_aux, aux_data, cookie->aux_len); in fscache_alloc_cookie()
497 cookie->volume->cache->ops->prepare_to_write(cookie); in fscache_prepare_to_write()
780 cookie->volume->cache->ops->withdraw_cookie(cookie); in fscache_cookie_state_machine()
1143 cookie->inline_key : cookie->key; in fscache_cookies_seq_show()
[all …]
H A Dfscache_io.c34 state = fscache_cookie_state(cookie); in fscache_wait_for_operation()
45 wait_var_event(&cookie->state, in fscache_wait_for_operation()
71 struct fscache_cookie *cookie, in fscache_begin_operation() argument
80 cres->cache_priv = cookie; in fscache_begin_operation()
82 cres->debug_id = cookie->debug_id; in fscache_begin_operation()
91 spin_lock(&cookie->lock); in fscache_begin_operation()
116 spin_unlock(&cookie->lock); in fscache_begin_operation()
122 spin_unlock(&cookie->lock); in fscache_begin_operation()
123 trace_fscache_access(cookie->debug_id, refcount_read(&cookie->ref), in fscache_begin_operation()
131 fscache_print_cookie(cookie, 'O'); in fscache_begin_operation()
[all …]
/linux-6.15/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
274 if (fscache_cookie_valid(cookie)) in fscache_use_cookie()
291 if (fscache_cookie_valid(cookie)) in fscache_unuse_cookie()
310 if (fscache_cookie_valid(cookie)) in fscache_relinquish_cookie()
319 if (cookie->aux_len <= sizeof(cookie->inline_aux)) in fscache_get_aux()
320 return cookie->inline_aux; in fscache_get_aux()
322 return cookie->aux; in fscache_get_aux()
332 void *p = fscache_get_aux(cookie); in fscache_update_aux()
[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);
107 struct fscache_cookie *cookie,
112 extern void fscache_put_cookie(struct fscache_cookie *cookie,
118 extern void fscache_caching_failed(struct fscache_cookie *cookie);
132 return smp_load_acquire(&cookie->state); in fscache_cookie_state()
143 if (cookie->key_len <= sizeof(cookie->inline_key)) in fscache_get_key()
144 return cookie->inline_key; in fscache_get_key()
[all …]
H A Dadreno-smmu-priv.h69 const void *cookie; member
70 const struct io_pgtable_cfg *(*get_ttbr1_cfg)(const void *cookie);
71 int (*set_ttbr0_cfg)(const void *cookie, const struct io_pgtable_cfg *cfg);
72 void (*get_fault_info)(const void *cookie, struct adreno_smmu_fault_info *info);
73 void (*set_stall)(const void *cookie, bool enabled);
74 void (*resume_translation)(const void *cookie, bool terminate);
75 void (*set_prr_bit)(const void *cookie, bool set);
76 void (*set_prr_addr)(const void *cookie, phys_addr_t page_addr);
/linux-6.15/tools/testing/selftests/bpf/progs/
H A Dexceptions.c147 return exception_cb_mod_global(cookie) + cookie + 10; in exception_cb_mod()
203 volatile u64 cookie = c; in assert_nz_gfunc() local
205 bpf_assert(cookie != 0); in assert_nz_gfunc()
211 volatile u64 cookie = c; in assert_zero_gfunc() local
219 volatile s64 cookie = c; in assert_neg_gfunc() local
253 bpf_assert_with(cookie != 0, cookie + 100); in assert_nz_gfunc_with()
261 bpf_assert_with(bpf_cmp_unlikely(cookie, ==, 0), cookie + 100); in assert_zero_gfunc_with()
269 bpf_assert_with(bpf_cmp_unlikely(cookie, <, 0), cookie + 100); in assert_neg_gfunc_with()
277 bpf_assert_with(bpf_cmp_unlikely(cookie, >, 0), cookie + 100); in assert_pos_gfunc_with()
285 bpf_assert_with(bpf_cmp_unlikely(cookie, <=, -1), cookie + 100); in assert_negeq_gfunc_with()
[all …]
/linux-6.15/kernel/sched/
H A Dcore_sched.c40 return cookie; in sched_core_get_cookie()
54 unsigned long cookie) in sched_core_update_cookie() argument
74 p->core_cookie = cookie; in sched_core_update_cookie()
101 unsigned long cookie, flags; in sched_core_clone_cookie() local
107 return cookie; in sched_core_clone_cookie()
123 cookie = sched_core_get_cookie(cookie); in __sched_core_set()
124 cookie = sched_core_update_cookie(p, cookie); in __sched_core_set()
125 sched_core_put_cookie(cookie); in __sched_core_set()
177 if (cookie) { in sched_core_share_pid()
186 if (!cookie) { in sched_core_share_pid()
[all …]
/linux-6.15/include/trace/events/
H A Dfscache.h281 __entry->cookie,
312 __entry->cookie,
375 __entry->cookie,
404 __entry->cookie,
413 TP_ARGS(cookie),
423 __entry->cookie = cookie->debug_id;
430 __entry->cookie,
449 __entry->cookie = cookie->debug_id;
473 __entry->cookie = cookie->debug_id;
493 __entry->cookie = cookie->debug_id;
[all …]
/linux-6.15/fs/cachefiles/
H A Dinterface.c45 object->cookie = fscache_get_cookie(cookie, fscache_cookie_get_attach_object); in cachefiles_alloc_object()
99 object->cookie = NULL; in cachefiles_put_object()
122 ni_size = object->cookie->object_size; in cachefiles_adjust_size()
184 object = cachefiles_alloc_object(cookie); in cachefiles_lookup_cookie()
193 cookie->cache_priv = object; in cachefiles_lookup_cookie()
215 fscache_caching_failed(cookie); in cachefiles_lookup_cookie()
283 struct fscache_cookie *cookie = object->cookie; in cachefiles_resize_cookie() local
286 loff_t old_size = cookie->object_size; in cachefiles_resize_cookie()
294 object->cookie->object_size = new_size; in cachefiles_resize_cookie()
302 cookie->object_size = new_size; in cachefiles_resize_cookie()
[all …]
/linux-6.15/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 …]
/linux-6.15/drivers/iommu/
H A Ddma-iommu.c173 cookie->fq_domain->ops->flush_iotlb_all(cookie->fq_domain); in fq_flush_iotlb()
179 struct iommu_dma_cookie *cookie = from_timer(cookie, t, fq_timer); in fq_flush_timeout() local
183 fq_flush_iotlb(cookie); in fq_flush_timeout()
186 fq_ring_free(cookie, cookie->single_fq); in fq_flush_timeout()
189 fq_ring_free(cookie, per_cpu_ptr(cookie->percpu_fq, cpu)); in fq_flush_timeout()
370 cookie = kzalloc(sizeof(*cookie), GFP_KERNEL); in iommu_get_dma_cookie()
371 if (!cookie) in iommu_get_dma_cookie()
402 cookie = kzalloc(sizeof(*cookie), GFP_KERNEL); in iommu_get_msi_cookie()
403 if (!cookie) in iommu_get_msi_cookie()
429 kfree(cookie); in iommu_put_dma_cookie()
[all …]
/linux-6.15/arch/arm64/kernel/
H A Dstacktrace.c282 void *cookie) in do_kunwind() argument
290 if (!consume_state(state, cookie)) in do_kunwind()
363 do_kunwind(&state, consume_state, cookie); in kunwind_stack_walk()
368 void *cookie; member
384 .cookie = cookie, in arch_stack_walk()
392 void *cookie; member
405 u64 fp), void *cookie) in arch_bpf_stack_walk()
409 .cookie = cookie, in arch_bpf_stack_walk()
503 if (!consume_entry(cookie, lr)) in unwind_user_frame()
549 if (!consume_entry(cookie, buftail.lr)) in unwind_compat_user_frame()
[all …]
/linux-6.15/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_tc_matchall.c21 f->cookie, ingress, in lan966x_tc_matchall_add()
24 return lan966x_mirror_port_add(port, act, f->cookie, in lan966x_tc_matchall_add()
28 act->chain_index, f->cookie, in lan966x_tc_matchall_add()
43 if (f->cookie == port->tc.police_id) { in lan966x_tc_matchall_del()
44 return lan966x_police_port_del(port, f->cookie, in lan966x_tc_matchall_del()
46 } else if (f->cookie == port->tc.ingress_mirror_id || in lan966x_tc_matchall_del()
47 f->cookie == port->tc.egress_mirror_id) { in lan966x_tc_matchall_del()
51 return lan966x_goto_port_del(port, f->cookie, f->common.extack); in lan966x_tc_matchall_del()
61 if (f->cookie == port->tc.police_id) { in lan966x_tc_matchall_stats()
63 } else if (f->cookie == port->tc.ingress_mirror_id || in lan966x_tc_matchall_stats()
[all …]
/linux-6.15/fs/ocfs2/dlm/
H A Ddlmast.c267 __be64 cookie; in dlm_proxy_ast_handler() local
281 cookie = past->cookie; in dlm_proxy_ast_handler()
309 dlm_get_lock_cookie_node(be64_to_cpu(cookie)), in dlm_proxy_ast_handler()
310 dlm_get_lock_cookie_seq(be64_to_cpu(cookie)), in dlm_proxy_ast_handler()
321 dlm_get_lock_cookie_seq(be64_to_cpu(cookie)), in dlm_proxy_ast_handler()
348 if (lock->ml.cookie == cookie) in dlm_proxy_ast_handler()
360 if (lock->ml.cookie == cookie) { in dlm_proxy_ast_handler()
369 dlm_get_lock_cookie_node(be64_to_cpu(cookie)), in dlm_proxy_ast_handler()
370 dlm_get_lock_cookie_seq(be64_to_cpu(cookie)), in dlm_proxy_ast_handler()
386 dlm_get_lock_cookie_seq(be64_to_cpu(cookie)), in dlm_proxy_ast_handler()
[all …]
/linux-6.15/drivers/net/wireguard/
H A Dcookie.c69 void wg_cookie_init(struct cookie *cookie) in wg_cookie_init() argument
71 memset(cookie, 0, sizeof(*cookie)); in wg_cookie_init()
72 init_rwsem(&cookie->lock); in wg_cookie_init()
84 const u8 cookie[COOKIE_LEN]) in compute_mac2()
114 blake2s_final(&state, cookie); in make_cookie()
127 u8 cookie[COOKIE_LEN]; in wg_cookie_validate_packet() local
140 make_cookie(cookie, skb, checker); in wg_cookie_validate_packet()
186 u8 cookie[COOKIE_LEN]; in wg_cookie_message_create() local
192 make_cookie(cookie, skb, checker); in wg_cookie_message_create()
202 u8 cookie[COOKIE_LEN]; in wg_cookie_message_consume() local
[all …]
/linux-6.15/fs/lockd/
H A Dsvcxdr.h73 svcxdr_decode_cookie(struct xdr_stream *xdr, struct nlm_cookie *cookie) in svcxdr_decode_cookie() argument
88 cookie->len = len; in svcxdr_decode_cookie()
89 memcpy(cookie->data, p, len); in svcxdr_decode_cookie()
95 cookie->len = 4; in svcxdr_decode_cookie()
96 memset(cookie->data, 0, 4); in svcxdr_decode_cookie()
101 svcxdr_encode_cookie(struct xdr_stream *xdr, const struct nlm_cookie *cookie) in svcxdr_encode_cookie() argument
105 if (xdr_stream_encode_u32(xdr, cookie->len) < 0) in svcxdr_encode_cookie()
107 p = xdr_reserve_space(xdr, cookie->len); in svcxdr_encode_cookie()
110 memcpy(p, cookie->data, cookie->len); in svcxdr_encode_cookie()
/linux-6.15/arch/s390/kernel/
H A Dstacktrace.c18 void arch_stack_walk(stack_trace_consume_fn consume_entry, void *cookie, in arch_stack_walk() argument
26 if (!addr || !consume_entry(cookie, addr)) in arch_stack_walk()
32 void *cookie, struct task_struct *task) in arch_stack_walk_reliable() argument
57 if (!consume_entry(cookie, addr)) in arch_stack_walk_reliable()
67 static inline bool store_ip(stack_trace_consume_fn consume_entry, void *cookie, in store_ip() argument
78 return consume_entry(cookie, ip); in store_ip()
101 void arch_stack_walk_user_common(stack_trace_consume_fn consume_entry, void *cookie, in arch_stack_walk_user_common() argument
115 if (!store_ip(consume_entry, cookie, entry, perf, ip)) in arch_stack_walk_user_common()
154 if (!store_ip(consume_entry, cookie, entry, perf, ip)) in arch_stack_walk_user_common()
161 void arch_stack_walk_user(stack_trace_consume_fn consume_entry, void *cookie, in arch_stack_walk_user() argument
[all …]
/linux-6.15/arch/arm/mach-omap2/
H A Dpdata-quirks.c332 struct ti_sysc_cookie *cookie) in ti_sysc_clkdm_init() argument
336 if (cookie->clkdm) in ti_sysc_clkdm_init()
340 if (cookie->clkdm) in ti_sysc_clkdm_init()
349 if (cookie->clkdm) in ti_sysc_clkdm_deny_idle()
350 clkdm_deny_idle(cookie->clkdm); in ti_sysc_clkdm_deny_idle()
356 if (cookie->clkdm) in ti_sysc_clkdm_allow_idle()
357 clkdm_allow_idle(cookie->clkdm); in ti_sysc_clkdm_allow_idle()
364 if (!cookie->data) in ti_sysc_enable_module()
373 if (!cookie->data) in ti_sysc_idle_module()
376 return omap_hwmod_idle(cookie->data); in ti_sysc_idle_module()
[all …]
/linux-6.15/drivers/clocksource/
H A Dtimer-ti-dm.c119 struct omap_dm_timer cookie; member
402 if (!cookie) in to_dmtimer()
405 return container_of(cookie, struct dmtimer, cookie); in to_dmtimer()
416 timer = to_dmtimer(cookie); in omap_dm_timer_set_source()
605 return &timer->cookie; in omap_dm_timer_request()
623 return &timer->cookie; in omap_dm_timer_request_specific()
644 return &timer->cookie; in omap_dm_timer_request_by_node()
653 timer = to_dmtimer(cookie); in omap_dm_timer_free()
749 timer = to_dmtimer(cookie); in omap_dm_timer_start()
773 timer = to_dmtimer(cookie); in omap_dm_timer_stop()
[all …]
/linux-6.15/tools/testing/selftests/bpf/prog_tests/
H A Dcustom_sec_handlers.c13 static int custom_setup_prog(struct bpf_program *prog, long cookie) in custom_setup_prog() argument
15 if (cookie == COOKIE_ABC1) in custom_setup_prog()
22 struct bpf_prog_load_opts *opts, long cookie) in custom_prepare_load_prog() argument
24 if (cookie == COOKIE_FALLBACK) in custom_prepare_load_prog()
26 else if (cookie == COOKIE_ABC1) in custom_prepare_load_prog()
35 switch (cookie) { in custom_attach_prog()
63 .cookie = COOKIE_ABC1, in register_sec_handlers()
69 .cookie = COOKIE_ABC2, in register_sec_handlers()
75 .cookie = COOKIE_CUSTOM, in register_sec_handlers()
112 opts.cookie = COOKIE_KPROBE; in test_custom_sec_handlers()
[all …]
H A Dbpf_cookie.c494 __u64 cookie; in tracing_subtest() local
505 link_opts.tracing.cookie = cookie; in tracing_subtest()
512 link_opts.tracing.cookie = cookie; in tracing_subtest()
519 link_opts.tracing.cookie = cookie; in tracing_subtest()
547 __u64 cookie; in lsm_subtest() local
557 link_opts.tracing.cookie = cookie; in lsm_subtest()
593 raw_tp_opts.cookie = cookie = 0x11000000000000L; in tp_btf_subtest()
607 link_opts.tracing.cookie = cookie = 0x22000000000000L; in tp_btf_subtest()
621 trace_opts.cookie = cookie = 0x33000000000000L; in tp_btf_subtest()
653 raw_tp_opts.cookie = cookie = 0x55000000000000L; in raw_tp_subtest()
[all …]
/linux-6.15/Documentation/filesystems/caching/
H A Dbackend-api.rst23 Cache cookie struct fscache_cache
24 Volume cookie struct fscache_volume
25 Data storage cookie struct fscache_cookie
67 This will look up and potentially create a cache cookie. The cache cookie may
69 that cache cookie will be used. If the cache cookie is not in use by another
78 to reset and discard the cookie.
111 on the cookie that each object belongs to. This schedules the specified cookie
229 Each cookie has an index key, which may be stored inline to the cookie or
315 struct fscache_cookie *cookie);
391 marked the cookie as in-use.
[all …]
H A Dnetfs-api.rst14 cookie.
32 (4) Declaring a cookie to be in use
70 Once it has a cookie, the filesystem needs to mark the cookie as being in use.
77 truncate the cookie locally. It *also* needs to use the cookie when the
124 pass a NULL cookie to any function that takes a volume cookie. This will
146 cookie for data storage::
174 volume cookie and pass the NULL cookie returned to any function that takes it.
231 The caller must have first marked the cookie in-use. The cookie and the new
243 struct fscache_cookie *cookie);
350 struct fscache_cookie *cookie);
[all …]
/linux-6.15/fs/xfs/scrub/
H A Dxfblob.c74 xfblob_cookie cookie, in xfblob_load() argument
81 error = xfile_load(blob->xfile, &key, sizeof(key), cookie); in xfblob_load()
85 if (key.xb_magic != XB_KEY_MAGIC || key.xb_offset != cookie) { in xfblob_load()
95 cookie + sizeof(key)); in xfblob_load()
102 xfblob_cookie *cookie, in xfblob_store() argument
123 *cookie = blob->last_offset; in xfblob_store()
135 xfblob_cookie cookie) in xfblob_free() argument
140 error = xfile_load(blob->xfile, &key, sizeof(key), cookie); in xfblob_free()
144 if (key.xb_magic != XB_KEY_MAGIC || key.xb_offset != cookie) { in xfblob_free()
149 xfile_discard(blob->xfile, cookie, sizeof(key) + key.xb_size); in xfblob_free()
H A Dxfblob.h18 int xfblob_load(struct xfblob *blob, xfblob_cookie cookie, void *ptr,
20 int xfblob_store(struct xfblob *blob, xfblob_cookie *cookie, const void *ptr,
22 int xfblob_free(struct xfblob *blob, xfblob_cookie cookie);
29 xfblob_cookie *cookie, in xfblob_storename() argument
32 return xfblob_store(blob, cookie, xname->name, xname->len); in xfblob_storename()
38 xfblob_cookie cookie, in xfblob_loadname() argument
42 int ret = xfblob_load(blob, cookie, (void *)xname->name, size); in xfblob_loadname()

12345678910>>...39