/linux/fs/fscache/ |
A D | cookie.c | 42 cookie->parent ? cookie->parent->debug_id : 0, in fscache_print_cookie() 49 cookie->def ? cookie->def->name : "?", in fscache_print_cookie() 59 k = (cookie->key_len <= sizeof(cookie->inline_key)) ? in fscache_print_cookie() 60 cookie->inline_key : cookie->key; in fscache_print_cookie() 73 if (cookie->aux_len > sizeof(cookie->inline_aux)) in fscache_free_cookie() 75 if (cookie->key_len > sizeof(cookie->inline_key)) in fscache_free_cookie() 511 ASSERTCMP(object->cookie, ==, cookie); in fscache_alloc_object() 567 ASSERTCMP(object->cookie, ==, cookie); in fscache_attach_object() 812 cookie->debug_id, cookie->def->name, in __fscache_relinquish_cookie() 1031 cookie->inline_key : cookie->key; in fscache_cookies_seq_show() [all …]
|
A D | page.c | 153 cookie = object->cookie; in fscache_end_page_write() 154 if (cookie) { in fscache_end_page_write() 219 _enter("%p", cookie); in __fscache_attr_changed() 238 spin_lock(&cookie->lock); in __fscache_attr_changed() 322 op->cookie = cookie; in fscache_alloc_retrieval() 461 spin_lock(&cookie->lock); in __fscache_read_or_alloc_page() 590 spin_lock(&cookie->lock); in __fscache_read_or_alloc_pages() 797 cookie = object->cookie; in fscache_write_op() 810 if (!cookie) { in fscache_write_op() 1161 struct fscache_cookie *cookie = op->op.object->cookie; in fscache_mark_page_cached() local [all …]
|
A 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() 49 if (fscache_wait_for_deferred_lookup(cookie) < 0) 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() 65 __fscache_use_cookie(cookie); in __fscache_begin_read_operation() 71 spin_unlock(&cookie->lock); in __fscache_begin_read_operation() 105 wake_cookie = __fscache_unuse_cookie(cookie); in __fscache_begin_read_operation() 107 spin_unlock(&cookie->lock); in __fscache_begin_read_operation() [all …]
|
A D | object.c | 321 object->cookie = cookie; in fscache_object_init() 449 struct fscache_cookie *cookie = object->cookie; in fscache_look_up_object() local 507 struct fscache_cookie *cookie = object->cookie; in fscache_object_lookup_negative() local 539 struct fscache_cookie *cookie = object->cookie; in fscache_obtained_object() local 630 cookie = object->cookie; in fscache_lookup_failure() 696 struct fscache_cookie *cookie = object->cookie; in fscache_drop_object() local 702 ASSERT(cookie != NULL); in fscache_drop_object() 713 spin_lock(&cookie->lock); in fscache_drop_object() 797 object->cookie = NULL; in fscache_object_destroy() 927 result = object->cookie->def->check_aux(object->cookie->netfs_data, in fscache_check_aux() [all …]
|
A D | internal.h | 65 trace_fscache_cookie(cookie->debug_id, refcount_read(&cookie->ref), in fscache_cookie_see() 304 if (cookie->def->get_context) in fscache_get_context() 305 cookie->def->get_context(cookie->netfs_data, context); in fscache_get_context() 315 if (cookie->def->put_context) in fscache_put_context() 316 cookie->def->put_context(cookie->netfs_data, context); in fscache_put_context() 329 if (cookie->aux_len <= sizeof(cookie->inline_aux)) in fscache_update_aux() 330 p = cookie->inline_aux; in fscache_update_aux() 332 p = cookie->aux; in fscache_update_aux() 334 if (memcmp(p, aux_data, cookie->aux_len) != 0) { in fscache_update_aux() 335 memcpy(p, aux_data, cookie->aux_len); in fscache_update_aux() [all …]
|
/linux/include/linux/ |
A D | fscache.h | 26 #define fscache_cookie_valid(cookie) (cookie) argument 382 if (fscache_cookie_valid(cookie) && fscache_cookie_enabled(cookie)) in fscache_check_consistency() 403 if (fscache_cookie_valid(cookie) && fscache_cookie_enabled(cookie)) in fscache_update_cookie() 450 if (fscache_cookie_valid(cookie) && fscache_cookie_enabled(cookie)) in fscache_attr_changed() 472 if (fscache_cookie_valid(cookie) && fscache_cookie_enabled(cookie)) in fscache_invalidate() 533 if (fscache_cookie_valid(cookie) && fscache_cookie_enabled(cookie)) in fscache_begin_read_operation() 576 if (fscache_cookie_valid(cookie) && fscache_cookie_enabled(cookie)) in fscache_read_or_alloc_page() 627 if (fscache_cookie_valid(cookie) && fscache_cookie_enabled(cookie)) in fscache_read_or_alloc_pages() 658 if (fscache_cookie_valid(cookie) && fscache_cookie_enabled(cookie)) in fscache_alloc_page() 709 if (fscache_cookie_valid(cookie) && fscache_cookie_enabled(cookie)) in fscache_write_page() [all …]
|
A 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 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() 504 return atomic_dec_and_test(&cookie->n_active); in __fscache_unuse_cookie() 509 wake_up_var(&cookie->n_active); in __fscache_wake_unused_cookie() 521 struct fscache_cookie *cookie = object->cookie; in fscache_unuse_cookie() local 522 if (__fscache_unuse_cookie(cookie)) in fscache_unuse_cookie() [all …]
|
/linux/include/trace/events/ |
A D | fscache.h | 221 __entry->cookie = cookie->debug_id; 251 __entry->cookie = cookie->debug_id; 280 __entry->cookie = cookie->debug_id; 306 __entry->cookie = cookie->debug_id; 369 __entry->cookie = cookie->debug_id; 394 __entry->cookie = cookie->debug_id; 414 __entry->cookie = cookie->debug_id; 433 __entry->cookie = cookie ? cookie->debug_id : 0; 457 __entry->cookie = cookie->debug_id; 483 __entry->cookie = cookie->debug_id; [all …]
|
/linux/kernel/sched/ |
A D | core_sched.c | 43 return cookie; in sched_core_get_cookie() 57 unsigned long cookie) in sched_core_update_cookie() argument 79 p->core_cookie = cookie; in sched_core_update_cookie() 99 unsigned long cookie, flags; in sched_core_clone_cookie() local 105 return cookie; in sched_core_clone_cookie() 121 cookie = sched_core_get_cookie(cookie); in __sched_core_set() 122 cookie = sched_core_update_cookie(p, cookie); in __sched_core_set() 123 sched_core_put_cookie(cookie); in __sched_core_set() 175 if (cookie) { in sched_core_share_pid() 184 if (!cookie) { in sched_core_share_pid() [all …]
|
/linux/drivers/dma/ |
A 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/fs/ocfs2/dlm/ |
A D | dlmast.c | 267 __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/drivers/iommu/ |
A D | dma-iommu.c | 90 cookie = kzalloc(sizeof(*cookie), GFP_KERNEL); in cookie_alloc() 91 if (cookie) { in cookie_alloc() 93 cookie->type = type; in cookie_alloc() 95 return cookie; in cookie_alloc() 137 if (!cookie) in iommu_get_msi_cookie() 140 cookie->msi_iova = base; in iommu_get_msi_cookie() 156 if (!cookie) in iommu_put_dma_cookie() 159 if (cookie->type == IOMMU_DMA_IOVA_COOKIE && cookie->iovad.granule) in iommu_put_dma_cookie() 166 kfree(cookie); in iommu_put_dma_cookie() 324 if (cookie->fq_domain) in iommu_dma_init_fq() [all …]
|
/linux/drivers/net/wireguard/ |
A 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() 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/arch/arm/mach-omap2/ |
A D | pdata-quirks.c | 315 struct ti_sysc_cookie *cookie) in ti_sysc_clkdm_init() argument 319 if (cookie->clkdm) in ti_sysc_clkdm_init() 323 if (cookie->clkdm) in ti_sysc_clkdm_init() 332 if (cookie->clkdm) in ti_sysc_clkdm_deny_idle() 333 clkdm_deny_idle(cookie->clkdm); in ti_sysc_clkdm_deny_idle() 339 if (cookie->clkdm) in ti_sysc_clkdm_allow_idle() 340 clkdm_allow_idle(cookie->clkdm); in ti_sysc_clkdm_allow_idle() 347 if (!cookie->data) in ti_sysc_enable_module() 356 if (!cookie->data) in ti_sysc_idle_module() 359 return omap_hwmod_idle(cookie->data); in ti_sysc_idle_module() [all …]
|
/linux/fs/lockd/ |
A 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/drivers/media/platform/qcom/venus/ |
A D | hfi_cmds.c | 62 u32 addr, void *cookie) in pkt_sys_set_resource() argument 89 u32 size, void *cookie) in pkt_sys_unset_resource() argument 113 pkt->client_data = cookie; in pkt_sys_ping() 156 if (!pkt || !cookie || !codec) in pkt_session_init() 180 if (!cookie || !pkt || !bd) in pkt_session_set_buffers() 219 if (!cookie || !pkt || !bd) in pkt_session_unset_buffers() 258 if (!cookie) in pkt_session_etb_decoder() 407 if (!pkt || !cookie || !pdata) in pkt_session_set_property_1x() 1091 if (!pkt || !cookie) in pkt_session_get_property_3xx() 1118 if (!pkt || !cookie || !pdata) in pkt_session_set_property_3xx() [all …]
|
A D | hfi_cmds.h | 260 u32 addr, void *cookie); 262 u32 size, 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); 285 void *cookie, u32 seq_hdr, u32 seq_hdr_len); 287 void *cookie, u32 seq_hdr, u32 seq_hdr_len); 291 void *cookie, u32 ptype); [all …]
|
/linux/drivers/infiniband/core/ |
A D | roce_gid_mgmt.c | 159 real_dev = cookie; in is_eth_port_of_netdev_filter() 204 struct net_device *cookie_ndev = cookie; in is_ndev_for_default_gid_filter() 241 if (rdma_ndev == cookie) in upper_device_filter() 266 void *cookie) in is_upper_ndev_bond_master_filter() argument 432 _add_netdev_ips(ib_dev, port, cookie); in add_netdev_ips() 465 struct net_device *event_ndev = cookie; in add_default_gids() 476 void *cookie) in enum_all_gids_of_dev_cb() argument 521 void *cookie) in callback_for_addr_gid_device_scan() argument 552 void *cookie, in handle_netdev_upper() argument 557 struct net_device *ndev = cookie; in handle_netdev_upper() [all …]
|
/linux/tools/testing/selftests/bpf/progs/ |
A 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/drivers/net/dsa/sja1105/ |
A 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 119 rule->cookie = cookie; in sja1105_setup_tc_policer() 176 unsigned long cookie, in sja1105_flower_policer() argument 310 unsigned long cookie = cls->cookie; in sja1105_cls_flower_add() local 344 rc = sja1105_vl_redirect(priv, port, extack, cookie, in sja1105_cls_flower_add() [all …]
|
/linux/fs/cachefiles/ |
A D | interface.c | 24 struct fscache_cookie *cookie) in cachefiles_alloc_object() argument 64 keylen = cookie->key_len; 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() 86 p = cookie->inline_aux; in cachefiles_alloc_object() 88 p = cookie->aux; in cachefiles_alloc_object() 93 auxdata->type = cookie->type; in cachefiles_alloc_object() 225 cookie = object->fscache.cookie; in cachefiles_update_object() 226 auxlen = cookie->aux_len; in cachefiles_update_object() [all …]
|
/linux/tools/bpf/bpftool/ |
A D | net.c | 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() 233 dump_class_nlmsg, cookie); in netlink_get_class() 238 void *cookie) in __dump_qdisc_nlmsg() argument 272 dump_qdisc_nlmsg, cookie); in netlink_get_qdisc() 277 void *cookie) in __dump_filter_nlmsg() argument 312 dump_filter_nlmsg, cookie); in netlink_get_filter() 349 dump_link_nlmsg, cookie); in netlink_get_link() [all …]
|
/linux/drivers/dma/sh/ |
A D | shdma-base.c | 76 dma_cookie_t cookie; in shdma_tx_submit() local 104 chunk->cookie = cookie; in shdma_tx_submit() 153 return cookie; in shdma_tx_submit() 339 BUG_ON(tx->cookie > 0 && tx->cookie != desc->cookie); in __ld_cleanup() 350 desc->cookie != cookie) in __ld_cleanup() 353 if (tx->cookie > 0) in __ld_cleanup() 354 cookie = tx->cookie; in __ld_cleanup() 360 desc->cookie, in __ld_cleanup() 376 if (tx->cookie > 0 || tx->cookie == -EBUSY) { in __ld_cleanup() 394 tx, tx->cookie); in __ld_cleanup() [all …]
|
/linux/net/sctp/ |
A 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/arch/x86/kernel/ |
A 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()
|