/kernel/linux/linux-5.10/fs/fscache/ |
D | cookie.c | 23 static int fscache_acquire_non_index_cookie(struct fscache_cookie *cookie, 26 struct fscache_cookie *cookie); 27 static int fscache_attach_object(struct fscache_cookie *cookie, 30 static void fscache_print_cookie(struct fscache_cookie *cookie, char prefix) in fscache_print_cookie() argument 37 prefix, cookie, cookie->parent, cookie->flags, in fscache_print_cookie() 38 atomic_read(&cookie->n_children), in fscache_print_cookie() 39 atomic_read(&cookie->n_active)); in fscache_print_cookie() 41 prefix, cookie->def, cookie->netfs_data); in fscache_print_cookie() 43 object = READ_ONCE(cookie->backing_objects.first); in fscache_print_cookie() 48 pr_err("%c-key=[%u] '", prefix, cookie->key_len); 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 | object.c | 302 struct fscache_cookie *cookie, in fscache_object_init() argument 325 object->cookie = cookie; in fscache_object_init() 326 fscache_cookie_get(cookie, fscache_cookie_get_attach_object); in fscache_object_init() 454 struct fscache_cookie *cookie = object->cookie; in fscache_look_up_object() local 477 cookie->def->name, object->cache->tag->name); in fscache_look_up_object() 512 struct fscache_cookie *cookie = object->cookie; in fscache_object_lookup_negative() local 522 set_bit(FSCACHE_COOKIE_NO_DATA_YET, &cookie->flags); in fscache_object_lookup_negative() 523 clear_bit(FSCACHE_COOKIE_UNAVAILABLE, &cookie->flags); in fscache_object_lookup_negative() 525 _debug("wake up lookup %p", &cookie->flags); in fscache_object_lookup_negative() 526 clear_bit_unlock(FSCACHE_COOKIE_LOOKING_UP, &cookie->flags); in fscache_object_lookup_negative() [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()
|
D | internal.h | 321 static inline void fscache_cookie_get(struct fscache_cookie *cookie, in fscache_cookie_get() argument 324 int usage = atomic_inc_return(&cookie->usage); in fscache_cookie_get() 326 trace_fscache_cookie(cookie, where, usage); in fscache_cookie_get() 333 void *fscache_get_context(struct fscache_cookie *cookie, void *context) in fscache_get_context() argument 335 if (cookie->def->get_context) in fscache_get_context() 336 cookie->def->get_context(cookie->netfs_data, context); in fscache_get_context() 344 void fscache_put_context(struct fscache_cookie *cookie, void *context) in fscache_put_context() argument 346 if (cookie->def->put_context) in fscache_put_context() 347 cookie->def->put_context(cookie->netfs_data, context); in fscache_put_context() 354 void fscache_update_aux(struct fscache_cookie *cookie, const void *aux_data) in fscache_update_aux() argument [all …]
|
D | object-list.c | 165 struct fscache_cookie *cookie; in fscache_objlist_show() local 214 cookie = obj->cookie; in fscache_objlist_show() 216 FILTER(cookie->def, in fscache_objlist_show() 252 switch (cookie->type) { in fscache_objlist_show() 261 cookie->type); in fscache_objlist_show() 267 cookie->def->name, in fscache_objlist_show() 269 cookie->flags, in fscache_objlist_show() 270 cookie->netfs_data); in fscache_objlist_show() 273 keylen = cookie->key_len; in fscache_objlist_show() 276 auxlen = cookie->aux_len; in fscache_objlist_show() [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | fscache.h | 25 #define fscache_cookie_valid(cookie) (cookie) argument 28 #define fscache_cookie_valid(cookie) (0) argument 174 static inline bool fscache_cookie_enabled(struct fscache_cookie *cookie) in fscache_cookie_enabled() argument 176 return test_bit(FSCACHE_COOKIE_ENABLED, &cookie->flags); in fscache_cookie_enabled() 224 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 | io-pgtable.h | 40 void (*tlb_flush_all)(void *cookie); 42 void *cookie); 44 void *cookie); 46 unsigned long iova, size_t granule, void *cookie); 177 void *cookie); 204 void *cookie; member 213 iop->cfg.tlb->tlb_flush_all(iop->cookie); in io_pgtable_tlb_flush_all() 220 iop->cfg.tlb->tlb_flush_walk(iova, size, granule, iop->cookie); in io_pgtable_tlb_flush_walk() 227 iop->cfg.tlb->tlb_flush_leaf(iova, size, granule, iop->cookie); in io_pgtable_tlb_flush_leaf() 236 iop->cfg.tlb->tlb_add_page(gather, iova, granule, iop->cookie); in io_pgtable_tlb_add_page() [all …]
|
D | fscache-cache.h | 145 struct fscache_cookie *cookie; /* The netfs cookie */ member 231 struct fscache_cookie *cookie); 378 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 …]
|
/kernel/linux/linux-5.10/include/trace/events/ |
D | fscache.h | 163 TP_PROTO(struct fscache_cookie *cookie, 167 TP_ARGS(cookie, where, usage), 170 __field(struct fscache_cookie *, cookie ) 180 __entry->cookie = cookie; 181 __entry->parent = cookie->parent; 184 __entry->n_children = atomic_read(&cookie->n_children); 185 __entry->n_active = atomic_read(&cookie->n_active); 186 __entry->flags = cookie->flags; 191 __entry->cookie, __entry->usage, 202 __field(struct fscache_cookie *, cookie ) [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/oprofile/ |
D | buffer_sync.c | 213 unsigned long cookie; in fast_get_dcookie() local 217 get_dcookie(path, &cookie); in fast_get_dcookie() 218 return cookie; in fast_get_dcookie() 229 unsigned long cookie = NO_COOKIE; in get_exec_dcookie() local 239 cookie = fast_get_dcookie(&exe_file->f_path); in get_exec_dcookie() 242 return cookie; in get_exec_dcookie() 256 unsigned long cookie = NO_COOKIE; in lookup_dcookie() local 266 cookie = fast_get_dcookie(&vma->vm_file->f_path); in lookup_dcookie() 278 cookie = INVALID_COOKIE; in lookup_dcookie() 281 return cookie; in lookup_dcookie() [all …]
|
/kernel/linux/linux-5.10/fs/ocfs2/dlm/ |
D | dlmast.c | 91 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in __dlm_queue_ast() 92 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie)), in __dlm_queue_ast() 99 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in __dlm_queue_ast() 100 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie))); in __dlm_queue_ast() 110 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in __dlm_queue_ast() 111 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie))); in __dlm_queue_ast() 157 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in __dlm_queue_bast() 158 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie))); in __dlm_queue_bast() 215 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in dlm_do_local_ast() 216 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie))); in dlm_do_local_ast() [all …]
|
/kernel/linux/linux-5.10/drivers/iommu/ |
D | dma-iommu.c | 52 static inline size_t cookie_msi_granule(struct iommu_dma_cookie *cookie) in cookie_msi_granule() argument 54 if (cookie->type == IOMMU_DMA_IOVA_COOKIE) in cookie_msi_granule() 55 return cookie->iovad.granule; in cookie_msi_granule() 61 struct iommu_dma_cookie *cookie; in cookie_alloc() local 63 cookie = kzalloc(sizeof(*cookie), GFP_KERNEL); in cookie_alloc() 64 if (cookie) { in cookie_alloc() 65 INIT_LIST_HEAD(&cookie->msi_page_list); in cookie_alloc() 66 cookie->type = type; in cookie_alloc() 68 return cookie; in cookie_alloc() 105 struct iommu_dma_cookie *cookie; in iommu_get_msi_cookie() local [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/media/platform/qcom/venus/ |
D | hfi_cmds.c | 61 u32 addr, void *cookie) in pkt_sys_set_resource() argument 65 pkt->resource_handle = hash32_ptr(cookie); in pkt_sys_set_resource() 88 u32 size, void *cookie) in pkt_sys_unset_resource() argument 92 pkt->resource_handle = hash32_ptr(cookie); in pkt_sys_unset_resource() 108 void pkt_sys_ping(struct hfi_sys_ping_pkt *pkt, u32 cookie) in pkt_sys_ping() argument 112 pkt->client_data = cookie; in pkt_sys_ping() 152 int pkt_session_init(struct hfi_session_init_pkt *pkt, void *cookie, in pkt_session_init() argument 155 if (!pkt || !cookie || !codec) in pkt_session_init() 160 pkt->shdr.session_id = hash32_ptr(cookie); in pkt_session_init() 167 void pkt_session_cmd(struct hfi_session_pkt *pkt, u32 pkt_type, void *cookie) in pkt_session_cmd() argument [all …]
|
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 …]
|
/kernel/linux/linux-5.10/arch/arm/mach-omap2/ |
D | pdata-quirks.c | 345 struct ti_sysc_cookie *cookie) in ti_sysc_clkdm_init() argument 348 cookie->clkdm = ti_sysc_find_one_clockdomain(fck); in ti_sysc_clkdm_init() 349 if (cookie->clkdm) in ti_sysc_clkdm_init() 352 cookie->clkdm = ti_sysc_find_one_clockdomain(ick); in ti_sysc_clkdm_init() 353 if (cookie->clkdm) in ti_sysc_clkdm_init() 360 const struct ti_sysc_cookie *cookie) in ti_sysc_clkdm_deny_idle() argument 362 if (cookie->clkdm) in ti_sysc_clkdm_deny_idle() 363 clkdm_deny_idle(cookie->clkdm); in ti_sysc_clkdm_deny_idle() 367 const struct ti_sysc_cookie *cookie) in ti_sysc_clkdm_allow_idle() argument 369 if (cookie->clkdm) in ti_sysc_clkdm_allow_idle() [all …]
|
/kernel/linux/linux-5.10/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() 39 void *cookie, struct task_struct *task) in arch_stack_walk_reliable() argument 75 if (!consume_entry(cookie, addr)) in arch_stack_walk_reliable() 112 void arch_stack_walk_user(stack_trace_consume_fn consume_entry, void *cookie, in arch_stack_walk_user() argument 117 if (!consume_entry(cookie, regs->ip)) in arch_stack_walk_user() 131 if (!consume_entry(cookie, frame.ret_addr)) in arch_stack_walk_user()
|
/kernel/linux/linux-5.10/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 201 struct net_device *rdma_ndev, void *cookie) in is_ndev_for_default_gid_filter() argument 203 struct net_device *cookie_ndev = cookie; in is_ndev_for_default_gid_filter() 227 struct net_device *rdma_ndev, void *cookie) in pass_all_filter() argument 233 struct net_device *rdma_ndev, void *cookie) in upper_device_filter() argument 240 if (rdma_ndev == cookie) in upper_device_filter() [all …]
|
/kernel/linux/linux-5.10/net/sctp/ |
D | Kconfig | 52 prompt "Default SCTP cookie HMAC encoding" 55 This option sets the default sctp cookie hmac algorithm 59 bool "Enable optional MD5 hmac cookie generation" 61 Enable optional MD5 hmac based SCTP cookie generation 65 bool "Enable optional SHA1 hmac cookie generation" 67 Enable optional SHA1 hmac based SCTP cookie generation 71 bool "Use no hmac alg in SCTP cookie generation" 73 Use no hmac algorithm in SCTP cookie generation 78 bool "Enable optional MD5 hmac cookie generation" 80 Enable optional MD5 hmac based SCTP cookie generation [all …]
|
/kernel/linux/linux-5.10/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() 47 rule->cookie = cookie; in sja1105_setup_bcast_policer() 103 unsigned long cookie, int port, int tc, in sja1105_setup_tc_policer() argument 107 struct sja1105_rule *rule = sja1105_rule_find(priv, cookie); in sja1105_setup_tc_policer() 118 rule->cookie = cookie; in sja1105_setup_tc_policer() 175 unsigned long cookie, in sja1105_flower_policer() argument 182 return sja1105_setup_bcast_policer(priv, extack, cookie, port, in sja1105_flower_policer() [all …]
|
/kernel/linux/linux-5.10/fs/cachefiles/ |
D | interface.c | 24 struct fscache_cookie *cookie) in cachefiles_alloc_object() argument 36 _enter("{%s},%p,", cache->cache.identifier, cookie); 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 …]
|
/kernel/linux/linux-5.10/tools/bpf/bpftool/ |
D | net.c | 92 typedef int (*dump_nlmsg_t)(void *cookie, void *msg, struct nlattr **tb); 94 typedef int (*__dump_nlmsg_t)(struct nlmsghdr *nlmsg, dump_nlmsg_t, void *cookie); 141 void *cookie) in netlink_recv() argument 186 ret = _fn(nh, fn, cookie); in netlink_recv() 199 void *cookie) in __dump_class_nlmsg() argument 210 return dump_class_nlmsg(cookie, t, tb); in __dump_class_nlmsg() 214 dump_nlmsg_t dump_class_nlmsg, void *cookie) in netlink_get_class() argument 233 dump_class_nlmsg, cookie); in netlink_get_class() 238 void *cookie) in __dump_qdisc_nlmsg() argument 249 return dump_qdisc_nlmsg(cookie, t, tb); in __dump_qdisc_nlmsg() [all …]
|
/kernel/linux/linux-5.10/drivers/dma/sh/ |
D | shdma-base.c | 76 dma_cookie_t cookie; in shdma_tx_submit() local 83 cookie = dma_cookie_assign(tx); in shdma_tx_submit() 92 chunk->async_tx.cookie > 0 || in shdma_tx_submit() 93 chunk->async_tx.cookie == -EBUSY || in shdma_tx_submit() 104 chunk->cookie = cookie; in shdma_tx_submit() 108 tx->cookie, &chunk->async_tx, schan->id); in shdma_tx_submit() 153 return cookie; in shdma_tx_submit() 328 dma_cookie_t cookie = 0; in __ld_cleanup() local 339 BUG_ON(tx->cookie > 0 && tx->cookie != desc->cookie); in __ld_cleanup() 350 desc->cookie != cookie) in __ld_cleanup() [all …]
|