/linux-6.6.21/fs/fscache/ |
D | 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 | 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.6.21/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 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 …]
|
D | fscache-cache.h | 62 bool (*lookup_cookie)(struct fscache_cookie *cookie); 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, 106 extern void fscache_put_cookie(struct fscache_cookie *cookie, 108 extern void fscache_end_cookie_access(struct fscache_cookie *cookie, 110 extern void fscache_cookie_lookup_negative(struct fscache_cookie *cookie); [all …]
|
D | adreno-smmu-priv.h | 64 const void *cookie; member 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);
|
/linux-6.6.21/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.6.21/include/trace/events/ |
D | fscache.h | 265 __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-6.6.21/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() 40 object->cookie = fscache_get_cookie(cookie, fscache_cookie_get_attach_object); in cachefiles_alloc_object() 43 trace_cachefiles_ref(object->debug_id, cookie->debug_id, 1, in cachefiles_alloc_object() 54 trace_cachefiles_ref(object->debug_id, object->cookie->debug_id, in cachefiles_see_object() 67 trace_cachefiles_ref(object->debug_id, object->cookie->debug_id, r, why); in cachefiles_grab_object() 78 unsigned int cookie_debug_id = object->cookie->debug_id; in cachefiles_put_object() 93 fscache_put_cookie(object->cookie, fscache_cookie_put_object); in cachefiles_put_object() 94 object->cookie = NULL; in cachefiles_put_object() [all …]
|
/linux-6.6.21/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.6.21/drivers/iommu/ |
D | dma-iommu.c | 128 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 …]
|
/linux-6.6.21/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.6.21/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.6.21/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.6.21/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.6.21/arch/arm/mach-omap2/ |
D | pdata-quirks.c | 322 struct ti_sysc_cookie *cookie) in ti_sysc_clkdm_init() argument 325 cookie->clkdm = ti_sysc_find_one_clockdomain(fck); in ti_sysc_clkdm_init() 326 if (cookie->clkdm) in ti_sysc_clkdm_init() 329 cookie->clkdm = ti_sysc_find_one_clockdomain(ick); in ti_sysc_clkdm_init() 330 if (cookie->clkdm) in ti_sysc_clkdm_init() 337 const struct ti_sysc_cookie *cookie) in ti_sysc_clkdm_deny_idle() argument 339 if (cookie->clkdm) in ti_sysc_clkdm_deny_idle() 340 clkdm_deny_idle(cookie->clkdm); in ti_sysc_clkdm_deny_idle() 344 const struct ti_sysc_cookie *cookie) in ti_sysc_clkdm_allow_idle() argument 346 if (cookie->clkdm) in ti_sysc_clkdm_allow_idle() [all …]
|
/linux-6.6.21/tools/testing/selftests/bpf/progs/ |
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.6.21/drivers/clocksource/ |
D | timer-ti-dm.c | 119 struct omap_dm_timer cookie; member 401 static struct dmtimer *to_dmtimer(struct omap_dm_timer *cookie) in to_dmtimer() argument 403 if (!cookie) in to_dmtimer() 406 return container_of(cookie, struct dmtimer, cookie); in to_dmtimer() 409 static int omap_dm_timer_set_source(struct omap_dm_timer *cookie, int source) in omap_dm_timer_set_source() argument 417 timer = to_dmtimer(cookie); in omap_dm_timer_set_source() 467 static void omap_dm_timer_enable(struct omap_dm_timer *cookie) in omap_dm_timer_enable() argument 469 struct dmtimer *timer = to_dmtimer(cookie); in omap_dm_timer_enable() 478 static void omap_dm_timer_disable(struct omap_dm_timer *cookie) in omap_dm_timer_disable() argument 480 struct dmtimer *timer = to_dmtimer(cookie); in omap_dm_timer_disable() [all …]
|
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/ |
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.6.21/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.6.21/drivers/media/platform/qcom/venus/ |
D | hfi_cmds.h | 261 u32 addr, void *cookie); 263 u32 size, void *cookie); 267 void pkt_sys_ping(struct hfi_sys_ping_pkt *pkt, u32 cookie); 270 int pkt_session_init(struct hfi_session_init_pkt *pkt, void *cookie, 272 void pkt_session_cmd(struct hfi_session_pkt *pkt, u32 pkt_type, void *cookie); 274 void *cookie, struct hfi_buffer_desc *bd); 276 void *cookie, struct hfi_buffer_desc *bd); 278 void *cookie, struct hfi_frame_data *input_frame); 281 void *cookie, struct hfi_frame_data *input_frame); 283 void *cookie, struct hfi_frame_data *output_frame); [all …]
|
D | hfi_cmds.c | 71 u32 addr, void *cookie) in pkt_sys_set_resource() argument 75 pkt->resource_handle = hash32_ptr(cookie); in pkt_sys_set_resource() 98 u32 size, void *cookie) in pkt_sys_unset_resource() argument 102 pkt->resource_handle = hash32_ptr(cookie); in pkt_sys_unset_resource() 118 void pkt_sys_ping(struct hfi_sys_ping_pkt *pkt, u32 cookie) in pkt_sys_ping() argument 122 pkt->client_data = cookie; in pkt_sys_ping() 162 int pkt_session_init(struct hfi_session_init_pkt *pkt, void *cookie, in pkt_session_init() argument 165 if (!pkt || !cookie || !codec) in pkt_session_init() 170 pkt->shdr.session_id = hash32_ptr(cookie); in pkt_session_init() 177 void pkt_session_cmd(struct hfi_session_pkt *pkt, u32 pkt_type, void *cookie) in pkt_session_cmd() argument [all …]
|
/linux-6.6.21/arch/x86/kernel/ |
D | stacktrace.c | 15 void arch_stack_walk(stack_trace_consume_fn consume_entry, void *cookie, in arch_stack_walk() argument 21 if (regs && !consume_entry(cookie, regs->ip)) in arch_stack_walk() 27 if (!addr || !consume_entry(cookie, addr)) in arch_stack_walk() 33 void *cookie, struct task_struct *task) in arch_stack_walk_reliable() argument 69 if (!consume_entry(cookie, addr)) in arch_stack_walk_reliable() 106 void arch_stack_walk_user(stack_trace_consume_fn consume_entry, void *cookie, in arch_stack_walk_user() argument 111 if (!consume_entry(cookie, regs->ip)) in arch_stack_walk_user() 125 if (!consume_entry(cookie, frame.ret_addr)) in arch_stack_walk_user()
|
/linux-6.6.21/drivers/infiniband/core/ |
D | roce_gid_mgmt.c | 148 struct net_device *rdma_ndev, void *cookie) in is_eth_port_of_netdev_filter() argument 157 real_dev = rdma_vlan_dev_real_dev(cookie); in is_eth_port_of_netdev_filter() 159 real_dev = cookie; in is_eth_port_of_netdev_filter() 161 res = ((rdma_is_upper_dev_rcu(rdma_ndev, cookie) && in is_eth_port_of_netdev_filter() 172 struct net_device *rdma_ndev, void *cookie) in is_eth_port_inactive_slave_filter() argument 202 struct net_device *rdma_ndev, void *cookie) in is_ndev_for_default_gid_filter() argument 204 struct net_device *cookie_ndev = cookie; in is_ndev_for_default_gid_filter() 228 struct net_device *rdma_ndev, void *cookie) in pass_all_filter() argument 234 struct net_device *rdma_ndev, void *cookie) in upper_device_filter() argument 241 if (rdma_ndev == cookie) in upper_device_filter() [all …]
|
/linux-6.6.21/arch/parisc/kernel/ |
D | stacktrace.c | 17 struct pt_regs *regs, bool (*fn)(void *, unsigned long), void *cookie) in walk_stackframe() argument 27 if (!fn(cookie, info.ip)) in walk_stackframe() 32 void arch_stack_walk(stack_trace_consume_fn consume_entry, void *cookie, in arch_stack_walk() argument 35 walk_stackframe(task, regs, consume_entry, cookie); in arch_stack_walk() 38 int arch_stack_walk_reliable(stack_trace_consume_fn consume_entry, void *cookie, in arch_stack_walk_reliable() argument 41 walk_stackframe(task, NULL, consume_entry, cookie); in arch_stack_walk_reliable()
|