/Linux-v5.15/fs/fscache/ |
D | cookie.c | 25 static int fscache_acquire_non_index_cookie(struct fscache_cookie *cookie, 28 struct fscache_cookie *cookie); 29 static int fscache_attach_object(struct fscache_cookie *cookie, 32 static 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->parent ? cookie->parent->debug_id : 0, in fscache_print_cookie() 43 cookie->flags, in fscache_print_cookie() 44 atomic_read(&cookie->n_children), in fscache_print_cookie() 45 atomic_read(&cookie->n_active)); in fscache_print_cookie() 48 cookie->def, in fscache_print_cookie() [all …]
|
D | page.c | 19 bool __fscache_check_page_write(struct fscache_cookie *cookie, struct page *page) in __fscache_check_page_write() argument 24 val = radix_tree_lookup(&cookie->stores, page->index); in __fscache_check_page_write() 26 trace_fscache_check_page(cookie, page, val, 0); in __fscache_check_page_write() 35 void __fscache_wait_on_page_write(struct fscache_cookie *cookie, struct page *page) in __fscache_wait_on_page_write() argument 37 wait_queue_head_t *wq = bit_waitqueue(&cookie->flags, 0); in __fscache_wait_on_page_write() 39 trace_fscache_page(cookie, page, fscache_page_write_wait); in __fscache_wait_on_page_write() 41 wait_event(*wq, !__fscache_check_page_write(cookie, page)); in __fscache_wait_on_page_write() 50 bool release_page_wait_timeout(struct fscache_cookie *cookie, struct page *page) in release_page_wait_timeout() argument 52 wait_queue_head_t *wq = bit_waitqueue(&cookie->flags, 0); in release_page_wait_timeout() 54 return wait_event_timeout(*wq, !__fscache_check_page_write(cookie, page), in release_page_wait_timeout() [all …]
|
D | io.c | 28 struct fscache_cookie *cookie) in __fscache_begin_read_operation() argument 39 if (hlist_empty(&cookie->backing_objects)) in __fscache_begin_read_operation() 42 if (test_bit(FSCACHE_COOKIE_INVALIDATING, &cookie->flags)) { in __fscache_begin_read_operation() 47 ASSERTCMP(cookie->def->type, !=, FSCACHE_COOKIE_TYPE_INDEX); in __fscache_begin_read_operation() 49 if (fscache_wait_for_deferred_lookup(cookie) < 0) in __fscache_begin_read_operation() 52 op = fscache_alloc_retrieval(cookie, NULL, NULL, NULL); in __fscache_begin_read_operation() 55 trace_fscache_page_op(cookie, NULL, &op->op, fscache_page_op_retr_multi); in __fscache_begin_read_operation() 57 spin_lock(&cookie->lock); in __fscache_begin_read_operation() 59 if (!fscache_cookie_enabled(cookie) || in __fscache_begin_read_operation() 60 hlist_empty(&cookie->backing_objects)) in __fscache_begin_read_operation() [all …]
|
D | object.c | 298 struct fscache_cookie *cookie, in fscache_object_init() argument 321 object->cookie = cookie; in fscache_object_init() 322 fscache_cookie_get(cookie, fscache_cookie_get_attach_object); in fscache_object_init() 449 struct fscache_cookie *cookie = object->cookie; in fscache_look_up_object() local 472 cookie->def->name, object->cache->tag->name); in fscache_look_up_object() 507 struct fscache_cookie *cookie = object->cookie; in fscache_object_lookup_negative() local 517 set_bit(FSCACHE_COOKIE_NO_DATA_YET, &cookie->flags); in fscache_object_lookup_negative() 518 clear_bit(FSCACHE_COOKIE_UNAVAILABLE, &cookie->flags); in fscache_object_lookup_negative() 520 clear_bit_unlock(FSCACHE_COOKIE_LOOKING_UP, &cookie->flags); in fscache_object_lookup_negative() 521 wake_up_bit(&cookie->flags, FSCACHE_COOKIE_LOOKING_UP); in fscache_object_lookup_negative() [all …]
|
D | internal.h | 62 static inline void fscache_cookie_see(struct fscache_cookie *cookie, in fscache_cookie_see() argument 65 trace_fscache_cookie(cookie->debug_id, refcount_read(&cookie->ref), in fscache_cookie_see() 120 struct fscache_retrieval *fscache_alloc_retrieval(struct fscache_cookie *cookie, 302 void *fscache_get_context(struct fscache_cookie *cookie, void *context) in fscache_get_context() argument 304 if (cookie->def->get_context) in fscache_get_context() 305 cookie->def->get_context(cookie->netfs_data, context); in fscache_get_context() 313 void fscache_put_context(struct fscache_cookie *cookie, void *context) in fscache_put_context() argument 315 if (cookie->def->put_context) in fscache_put_context() 316 cookie->def->put_context(cookie->netfs_data, context); in fscache_put_context() 323 void fscache_update_aux(struct fscache_cookie *cookie, const void *aux_data) in fscache_update_aux() argument [all …]
|
D | netfs.c | 18 struct fscache_cookie *candidate, *cookie; in __fscache_register_netfs() local 36 cookie = fscache_hash_cookie(candidate); in __fscache_register_netfs() 37 if (!cookie) in __fscache_register_netfs() 39 if (cookie != candidate) { in __fscache_register_netfs() 44 fscache_cookie_get(cookie->parent, fscache_cookie_get_register_netfs); in __fscache_register_netfs() 45 atomic_inc(&cookie->parent->n_children); in __fscache_register_netfs() 47 netfs->primary_index = cookie; in __fscache_register_netfs()
|
/Linux-v5.15/include/linux/ |
D | fscache.h | 26 #define fscache_cookie_valid(cookie) (cookie) argument 29 #define fscache_cookie_valid(cookie) (0) argument 168 static inline bool fscache_cookie_enabled(struct fscache_cookie *cookie) in fscache_cookie_enabled() argument 170 return test_bit(FSCACHE_COOKIE_ENABLED, &cookie->flags); in fscache_cookie_enabled() 222 extern void __fscache_readpages_cancel(struct fscache_cookie *cookie, 358 void fscache_relinquish_cookie(struct fscache_cookie *cookie, in fscache_relinquish_cookie() argument 362 if (fscache_cookie_valid(cookie)) in fscache_relinquish_cookie() 363 __fscache_relinquish_cookie(cookie, aux_data, retire); in fscache_relinquish_cookie() 379 int fscache_check_consistency(struct fscache_cookie *cookie, in fscache_check_consistency() argument 382 if (fscache_cookie_valid(cookie) && fscache_cookie_enabled(cookie)) in fscache_check_consistency() [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);
|
D | fscache-cache.h | 145 struct fscache_cookie *cookie; /* The netfs cookie */ member 230 struct fscache_cookie *cookie); 381 struct fscache_cookie *cookie; /* netfs's file/index object */ member 484 static inline void __fscache_use_cookie(struct fscache_cookie *cookie) in __fscache_use_cookie() argument 486 atomic_inc(&cookie->n_active); in __fscache_use_cookie() 498 struct fscache_cookie *cookie = object->cookie; in fscache_use_cookie() local 499 return atomic_inc_not_zero(&cookie->n_active) != 0; in fscache_use_cookie() 502 static inline bool __fscache_unuse_cookie(struct fscache_cookie *cookie) in __fscache_unuse_cookie() argument 504 return atomic_dec_and_test(&cookie->n_active); in __fscache_unuse_cookie() 507 static inline void __fscache_wake_unused_cookie(struct fscache_cookie *cookie) in __fscache_wake_unused_cookie() argument [all …]
|
/Linux-v5.15/include/trace/events/ |
D | fscache.h | 170 __field(unsigned int, cookie ) 176 __entry->cookie = cookie_debug_id; 183 __entry->cookie, __entry->ref) 192 __field(unsigned int, cookie ) 197 __entry->cookie = netfs->primary_index->debug_id; 203 __entry->cookie, __entry->name) 207 TP_PROTO(struct fscache_cookie *cookie), 209 TP_ARGS(cookie), 212 __field(unsigned int, cookie ) 221 __entry->cookie = cookie->debug_id; [all …]
|
/Linux-v5.15/kernel/sched/ |
D | core_sched.c | 26 void sched_core_put_cookie(unsigned long cookie) in sched_core_put_cookie() argument 28 struct sched_core_cookie *ptr = (void *)cookie; in sched_core_put_cookie() 36 unsigned long sched_core_get_cookie(unsigned long cookie) in sched_core_get_cookie() argument 38 struct sched_core_cookie *ptr = (void *)cookie; in sched_core_get_cookie() 43 return cookie; in sched_core_get_cookie() 56 unsigned long sched_core_update_cookie(struct task_struct *p, unsigned long cookie) in sched_core_update_cookie() argument 71 SCHED_WARN_ON((p->core_cookie || cookie) && !sched_core_enabled(rq)); in sched_core_update_cookie() 78 p->core_cookie = cookie; in sched_core_update_cookie() 98 unsigned long cookie, flags; in sched_core_clone_cookie() local 101 cookie = sched_core_get_cookie(p->core_cookie); in sched_core_clone_cookie() [all …]
|
/Linux-v5.15/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-v5.15/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-v5.15/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-v5.15/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-v5.15/drivers/iommu/ |
D | dma-iommu.c | 79 static inline size_t cookie_msi_granule(struct iommu_dma_cookie *cookie) in cookie_msi_granule() argument 81 if (cookie->type == IOMMU_DMA_IOVA_COOKIE) in cookie_msi_granule() 82 return cookie->iovad.granule; in cookie_msi_granule() 88 struct iommu_dma_cookie *cookie; in cookie_alloc() local 90 cookie = kzalloc(sizeof(*cookie), GFP_KERNEL); in cookie_alloc() 91 if (cookie) { in cookie_alloc() 92 INIT_LIST_HEAD(&cookie->msi_page_list); in cookie_alloc() 93 cookie->type = type; in cookie_alloc() 95 return cookie; in cookie_alloc() 132 struct iommu_dma_cookie *cookie; in iommu_get_msi_cookie() local [all …]
|
/Linux-v5.15/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-v5.15/arch/arm/mach-omap2/ |
D | pdata-quirks.c | 339 struct ti_sysc_cookie *cookie) in ti_sysc_clkdm_init() argument 342 cookie->clkdm = ti_sysc_find_one_clockdomain(fck); in ti_sysc_clkdm_init() 343 if (cookie->clkdm) in ti_sysc_clkdm_init() 346 cookie->clkdm = ti_sysc_find_one_clockdomain(ick); in ti_sysc_clkdm_init() 347 if (cookie->clkdm) in ti_sysc_clkdm_init() 354 const struct ti_sysc_cookie *cookie) in ti_sysc_clkdm_deny_idle() argument 356 if (cookie->clkdm) in ti_sysc_clkdm_deny_idle() 357 clkdm_deny_idle(cookie->clkdm); in ti_sysc_clkdm_deny_idle() 361 const struct ti_sysc_cookie *cookie) in ti_sysc_clkdm_allow_idle() argument 363 if (cookie->clkdm) in ti_sysc_clkdm_allow_idle() [all …]
|
/Linux-v5.15/drivers/media/platform/qcom/venus/ |
D | hfi_cmds.h | 260 u32 addr, void *cookie); 262 u32 size, void *cookie); 266 void pkt_sys_ping(struct hfi_sys_ping_pkt *pkt, u32 cookie); 269 int pkt_session_init(struct hfi_session_init_pkt *pkt, void *cookie, 271 void pkt_session_cmd(struct hfi_session_pkt *pkt, u32 pkt_type, void *cookie); 273 void *cookie, struct hfi_buffer_desc *bd); 275 void *cookie, struct hfi_buffer_desc *bd); 277 void *cookie, struct hfi_frame_data *input_frame); 280 void *cookie, struct hfi_frame_data *input_frame); 282 void *cookie, struct hfi_frame_data *output_frame); [all …]
|
D | hfi_cmds.c | 62 u32 addr, void *cookie) in pkt_sys_set_resource() argument 66 pkt->resource_handle = hash32_ptr(cookie); in pkt_sys_set_resource() 89 u32 size, void *cookie) in pkt_sys_unset_resource() argument 93 pkt->resource_handle = hash32_ptr(cookie); in pkt_sys_unset_resource() 109 void pkt_sys_ping(struct hfi_sys_ping_pkt *pkt, u32 cookie) in pkt_sys_ping() argument 113 pkt->client_data = cookie; in pkt_sys_ping() 153 int pkt_session_init(struct hfi_session_init_pkt *pkt, void *cookie, in pkt_session_init() argument 156 if (!pkt || !cookie || !codec) in pkt_session_init() 161 pkt->shdr.session_id = hash32_ptr(cookie); in pkt_session_init() 168 void pkt_session_cmd(struct hfi_session_pkt *pkt, u32 pkt_type, void *cookie) in pkt_session_cmd() argument [all …]
|
/Linux-v5.15/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-v5.15/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-v5.15/drivers/net/dsa/sja1105/ |
D | sja1105_flower.c | 8 unsigned long cookie) in sja1105_rule_find() argument 13 if (rule->cookie == cookie) in sja1105_rule_find() 32 unsigned long cookie, int port, in sja1105_setup_bcast_policer() argument 36 struct sja1105_rule *rule = sja1105_rule_find(priv, cookie); in sja1105_setup_bcast_policer() 48 rule->cookie = cookie; in sja1105_setup_bcast_policer() 104 unsigned long cookie, int port, int tc, in sja1105_setup_tc_policer() argument 108 struct sja1105_rule *rule = sja1105_rule_find(priv, cookie); in sja1105_setup_tc_policer() 119 rule->cookie = cookie; in sja1105_setup_tc_policer() 176 unsigned long cookie, in sja1105_flower_policer() argument 183 return sja1105_setup_bcast_policer(priv, extack, cookie, port, in sja1105_flower_policer() [all …]
|
/Linux-v5.15/net/sctp/ |
D | Kconfig | 53 prompt "Default SCTP cookie HMAC encoding" 56 This option sets the default sctp cookie hmac algorithm 60 bool "Enable optional MD5 hmac cookie generation" 62 Enable optional MD5 hmac based SCTP cookie generation 66 bool "Enable optional SHA1 hmac cookie generation" 68 Enable optional SHA1 hmac based SCTP cookie generation 72 bool "Use no hmac alg in SCTP cookie generation" 74 Use no hmac algorithm in SCTP cookie generation 79 bool "Enable optional MD5 hmac cookie generation" 81 Enable optional MD5 hmac based SCTP cookie generation [all …]
|
/Linux-v5.15/fs/cachefiles/ |
D | interface.c | 24 struct fscache_cookie *cookie) in cachefiles_alloc_object() argument 36 _enter("{%s},%x,", cache->cache.identifier, cookie->debug_id); in cachefiles_alloc_object() 52 fscache_object_init(&object->fscache, cookie, &cache->cache); in cachefiles_alloc_object() 54 object->type = cookie->def->type; in cachefiles_alloc_object() 64 keylen = cookie->key_len; in cachefiles_alloc_object() 65 if (keylen <= sizeof(cookie->inline_key)) in cachefiles_alloc_object() 66 p = cookie->inline_key; in cachefiles_alloc_object() 68 p = cookie->key; in cachefiles_alloc_object() 83 auxlen = cookie->aux_len; in cachefiles_alloc_object() 85 if (auxlen <= sizeof(cookie->inline_aux)) in cachefiles_alloc_object() [all …]
|