/linux-6.12.1/fs/netfs/ |
D | fscache_cookie.c | 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) 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 …]
|
D | fscache_io.c | 26 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 …]
|
/linux-6.12.1/include/linux/ |
D | fscache.h | 25 #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 175 void __fscache_write_to_cache(struct fscache_cookie *cookie, 271 static inline void fscache_use_cookie(struct fscache_cookie *cookie, in fscache_use_cookie() argument 274 if (fscache_cookie_valid(cookie)) in fscache_use_cookie() 275 __fscache_use_cookie(cookie, will_modify); in fscache_use_cookie() 287 static inline void fscache_unuse_cookie(struct fscache_cookie *cookie, in fscache_unuse_cookie() argument 291 if (fscache_cookie_valid(cookie)) in fscache_unuse_cookie() [all …]
|
D | fscache-cache.h | 63 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 …]
|
/linux-6.12.1/tools/testing/selftests/bpf/progs/ |
D | exceptions.c | 130 __noinline int exception_cb_mod_global(u64 cookie) in exception_cb_mod_global() argument 145 __noinline int exception_cb_mod(u64 cookie) in exception_cb_mod() argument 147 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 213 bpf_assert(bpf_cmp_unlikely(cookie, ==, 0)); in assert_zero_gfunc() 219 volatile s64 cookie = c; in assert_neg_gfunc() local 221 bpf_assert(bpf_cmp_unlikely(cookie, <, 0)); in assert_neg_gfunc() 227 volatile s64 cookie = c; in assert_pos_gfunc() local [all …]
|
D | netns_cookie_prog.c | 34 int *cookie; in get_netns_cookie_sockops() local 45 cookie = bpf_sk_storage_get(&sockops_netns_cookies, sk, 0, in get_netns_cookie_sockops() 47 if (!cookie) in get_netns_cookie_sockops() 50 *cookie = bpf_get_netns_cookie(ctx); in get_netns_cookie_sockops() 66 int *cookie; in get_netns_cookie_sk_msg() local 74 cookie = bpf_sk_storage_get(&sk_msg_netns_cookies, sk, 0, in get_netns_cookie_sk_msg() 76 if (!cookie) in get_netns_cookie_sk_msg() 79 *cookie = bpf_get_netns_cookie(msg); in get_netns_cookie_sk_msg()
|
/linux-6.12.1/kernel/sched/ |
D | core_sched.c | 23 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 …]
|
/linux-6.12.1/include/trace/events/ |
D | fscache.h | 269 __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 …]
|
/linux-6.12.1/fs/cachefiles/ |
D | interface.c | 22 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 …]
|
/linux-6.12.1/arch/arm64/kernel/ |
D | stacktrace.c | 160 typedef bool (*kunwind_consume_fn)(const struct kunwind_state *state, void *cookie); 164 void *cookie) in do_kunwind() argument 172 if (!consume_state(state, cookie)) in do_kunwind() 211 void *cookie, struct task_struct *task, in kunwind_stack_walk() argument 245 do_kunwind(&state, consume_state, cookie); in kunwind_stack_walk() 250 void *cookie; member 254 arch_kunwind_consume_entry(const struct kunwind_state *state, void *cookie) in arch_kunwind_consume_entry() argument 256 struct kunwind_consume_entry_data *data = cookie; in arch_kunwind_consume_entry() 257 return data->consume_entry(data->cookie, state->common.pc); in arch_kunwind_consume_entry() 261 void *cookie, struct task_struct *task, in arch_stack_walk() argument [all …]
|
/linux-6.12.1/drivers/iommu/ |
D | dma-iommu.c | 149 static void fq_ring_free_locked(struct iommu_dma_cookie *cookie, struct iova_fq *fq) in fq_ring_free_locked() argument 151 u64 counter = atomic64_read(&cookie->fq_flush_finish_cnt); in fq_ring_free_locked() 162 free_iova_fast(&cookie->iovad, in fq_ring_free_locked() 170 static void fq_ring_free(struct iommu_dma_cookie *cookie, struct iova_fq *fq) in fq_ring_free() argument 175 fq_ring_free_locked(cookie, fq); in fq_ring_free() 179 static void fq_flush_iotlb(struct iommu_dma_cookie *cookie) in fq_flush_iotlb() argument 181 atomic64_inc(&cookie->fq_flush_start_cnt); in fq_flush_iotlb() 182 cookie->fq_domain->ops->flush_iotlb_all(cookie->fq_domain); in fq_flush_iotlb() 183 atomic64_inc(&cookie->fq_flush_finish_cnt); in fq_flush_iotlb() 188 struct iommu_dma_cookie *cookie = from_timer(cookie, t, fq_timer); in fq_flush_timeout() local [all …]
|
/linux-6.12.1/drivers/dma/ |
D | dmaengine.h | 18 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.12.1/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_tc_matchall.c | 21 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.12.1/fs/ocfs2/dlm/ |
D | dlmast.c | 89 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in __dlm_queue_ast() 90 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie)), in __dlm_queue_ast() 97 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in __dlm_queue_ast() 98 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie))); in __dlm_queue_ast() 108 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in __dlm_queue_ast() 109 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie))); in __dlm_queue_ast() 155 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in __dlm_queue_bast() 156 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie))); in __dlm_queue_bast() 203 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in dlm_do_local_ast() 204 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie))); in dlm_do_local_ast() [all …]
|
/linux-6.12.1/drivers/net/wireguard/ |
D | cookie.c | 69 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() 88 blake2s(mac2, message, cookie, COOKIE_LEN, len, COOKIE_LEN); in compute_mac2() 91 static void make_cookie(u8 cookie[COOKIE_LEN], struct sk_buff *skb, in make_cookie() 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() 142 compute_mac2(computed_mac, skb->data, skb->len, cookie); in wg_cookie_validate_packet() [all …]
|
/linux-6.12.1/fs/lockd/ |
D | svcxdr.h | 73 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.12.1/arch/s390/kernel/ |
D | stacktrace.c | 17 void arch_stack_walk(stack_trace_consume_fn consume_entry, void *cookie, in arch_stack_walk() argument 25 if (!addr || !consume_entry(cookie, addr)) in arch_stack_walk() 31 void *cookie, struct task_struct *task) in arch_stack_walk_reliable() argument 56 if (!consume_entry(cookie, addr)) in arch_stack_walk_reliable() 66 static inline bool store_ip(stack_trace_consume_fn consume_entry, void *cookie, in store_ip() argument 77 return consume_entry(cookie, ip); in store_ip() 100 void arch_stack_walk_user_common(stack_trace_consume_fn consume_entry, void *cookie, in arch_stack_walk_user_common() argument 114 if (!store_ip(consume_entry, cookie, entry, perf, ip)) in arch_stack_walk_user_common() 153 if (!store_ip(consume_entry, cookie, entry, perf, ip)) in arch_stack_walk_user_common() 160 void arch_stack_walk_user(stack_trace_consume_fn consume_entry, void *cookie, in arch_stack_walk_user() argument [all …]
|
/linux-6.12.1/arch/arm/mach-omap2/ |
D | pdata-quirks.c | 332 struct ti_sysc_cookie *cookie) in ti_sysc_clkdm_init() argument 335 cookie->clkdm = ti_sysc_find_one_clockdomain(fck); in ti_sysc_clkdm_init() 336 if (cookie->clkdm) in ti_sysc_clkdm_init() 339 cookie->clkdm = ti_sysc_find_one_clockdomain(ick); in ti_sysc_clkdm_init() 340 if (cookie->clkdm) in ti_sysc_clkdm_init() 347 const struct ti_sysc_cookie *cookie) in ti_sysc_clkdm_deny_idle() argument 349 if (cookie->clkdm) in ti_sysc_clkdm_deny_idle() 350 clkdm_deny_idle(cookie->clkdm); in ti_sysc_clkdm_deny_idle() 354 const struct ti_sysc_cookie *cookie) in ti_sysc_clkdm_allow_idle() argument 356 if (cookie->clkdm) in ti_sysc_clkdm_allow_idle() [all …]
|
/linux-6.12.1/drivers/clocksource/ |
D | timer-ti-dm.c | 119 struct omap_dm_timer cookie; member 400 static struct dmtimer *to_dmtimer(struct omap_dm_timer *cookie) in to_dmtimer() argument 402 if (!cookie) in to_dmtimer() 405 return container_of(cookie, struct dmtimer, cookie); in to_dmtimer() 408 static int omap_dm_timer_set_source(struct omap_dm_timer *cookie, int source) in omap_dm_timer_set_source() argument 416 timer = to_dmtimer(cookie); in omap_dm_timer_set_source() 466 static void omap_dm_timer_enable(struct omap_dm_timer *cookie) in omap_dm_timer_enable() argument 468 struct dmtimer *timer = to_dmtimer(cookie); in omap_dm_timer_enable() 477 static void omap_dm_timer_disable(struct omap_dm_timer *cookie) in omap_dm_timer_disable() argument 479 struct dmtimer *timer = to_dmtimer(cookie); in omap_dm_timer_disable() [all …]
|
/linux-6.12.1/Documentation/filesystems/caching/ |
D | backend-api.rst | 18 storage, and each level has its own type of cookie object: 23 Cache cookie struct fscache_cache 24 Volume cookie struct fscache_volume 25 Data storage cookie struct fscache_cookie 30 API functions. Each cookie has a debugging ID that is included in trace points 35 and if they ask for one of the same name, they'll get the same cookie. Volume 63 the cache name and that will get it a cache cookie. This is done with:: 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. [all …]
|
D | netfs-api.rst | 14 cookie. 32 (4) Declaring a cookie to be in use 48 cookie, hereafter referred to as "volume cookies" and "cookies". 50 A network filesystem acquires a volume cookie for a volume using a volume key, 58 A filesystem would typically have a volume cookie for each superblock. 60 The filesystem then acquires a cookie for each file within that volume using an 67 A filesystem would typically have a cookie for each inode, and would acquire it 68 in iget and relinquish it when evicting the cookie. 70 Once it has a cookie, the filesystem needs to mark the cookie as being in use. 72 for the cookie in the background, to check its coherency and, if necessary, to [all …]
|
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | bpf_cookie.c | 494 __u64 cookie; in tracing_subtest() local 503 cookie = 0x10000000000000L; in tracing_subtest() 505 link_opts.tracing.cookie = cookie; in tracing_subtest() 510 cookie = 0x20000000000000L; in tracing_subtest() 512 link_opts.tracing.cookie = cookie; in tracing_subtest() 517 cookie = 0x30000000000000L; in tracing_subtest() 519 link_opts.tracing.cookie = cookie; in tracing_subtest() 547 __u64 cookie; in lsm_subtest() local 555 cookie = 0x90000000000090L; in lsm_subtest() 557 link_opts.tracing.cookie = cookie; in lsm_subtest() [all …]
|
D | custom_sec_handlers.c | 13 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() 32 static int custom_attach_prog(const struct bpf_program *prog, long cookie, in custom_attach_prog() argument 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() [all …]
|
/linux-6.12.1/fs/xfs/scrub/ |
D | xfblob.c | 74 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()
|
D | xfblob.h | 18 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()
|