/linux-6.3-rc2/fs/fscache/ |
A D | cookie.c | 51 k = (cookie->key_len <= sizeof(cookie->inline_key)) ? in fscache_print_cookie() 52 cookie->inline_key : cookie->key; in fscache_print_cookie() 74 if (cookie->aux_len > sizeof(cookie->inline_aux)) in fscache_free_cookie() 76 if (cookie->key_len > sizeof(cookie->inline_key)) in fscache_free_cookie() 336 if (!cookie) in fscache_alloc_cookie() 351 if (cookie->aux_len <= sizeof(cookie->inline_aux)) { in fscache_alloc_cookie() 352 memcpy(cookie->inline_aux, aux_data, cookie->aux_len); in fscache_alloc_cookie() 497 cookie->volume->cache->ops->prepare_to_write(cookie); in fscache_prepare_to_write() 776 cookie->volume->cache->ops->withdraw_cookie(cookie); in fscache_cookie_state_machine() 1139 cookie->inline_key : cookie->key; in fscache_cookies_seq_show() [all …]
|
A D | io.c | 35 state = fscache_cookie_state(cookie); in fscache_wait_for_operation() 46 wait_var_event(&cookie->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() 90 spin_lock(&cookie->lock); in fscache_begin_operation() 115 spin_unlock(&cookie->lock); in fscache_begin_operation() 121 spin_unlock(&cookie->lock); in fscache_begin_operation() 122 trace_fscache_access(cookie->debug_id, refcount_read(&cookie->ref), in fscache_begin_operation() 136 spin_unlock(&cookie->lock); in fscache_begin_operation() [all …]
|
/linux-6.3-rc2/include/linux/ |
A 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 271 if (fscache_cookie_valid(cookie)) in fscache_use_cookie() 288 if (fscache_cookie_valid(cookie)) in fscache_unuse_cookie() 307 if (fscache_cookie_valid(cookie)) in fscache_relinquish_cookie() 316 if (cookie->aux_len <= sizeof(cookie->inline_aux)) in fscache_get_aux() 317 return cookie->inline_aux; in fscache_get_aux() 319 return cookie->aux; in fscache_get_aux() 634 struct fscache_cookie *cookie); [all …]
|
A 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); 101 struct fscache_cookie *cookie, 106 extern void fscache_put_cookie(struct fscache_cookie *cookie, 112 extern void fscache_caching_failed(struct fscache_cookie *cookie); 126 return smp_load_acquire(&cookie->state); in fscache_cookie_state() 137 if (cookie->key_len <= sizeof(cookie->inline_key)) in fscache_get_key() 138 return cookie->inline_key; in fscache_get_key() [all …]
|
A 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.3-rc2/kernel/sched/ |
A D | core_sched.c | 40 return cookie; in sched_core_get_cookie() 54 unsigned long cookie) in sched_core_update_cookie() argument 74 p->core_cookie = cookie; in sched_core_update_cookie() 101 unsigned long cookie, flags; in sched_core_clone_cookie() local 107 return cookie; in sched_core_clone_cookie() 123 cookie = sched_core_get_cookie(cookie); in __sched_core_set() 124 cookie = sched_core_update_cookie(p, cookie); in __sched_core_set() 125 sched_core_put_cookie(cookie); in __sched_core_set() 177 if (cookie) { in sched_core_share_pid() 186 if (!cookie) { in sched_core_share_pid() [all …]
|
/linux-6.3-rc2/include/trace/events/ |
A D | fscache.h | 277 __entry->cookie, 308 __entry->cookie, 371 __entry->cookie, 400 __entry->cookie, 409 TP_ARGS(cookie), 419 __entry->cookie = cookie->debug_id; 426 __entry->cookie, 445 __entry->cookie = cookie->debug_id; 469 __entry->cookie = cookie->debug_id; 489 __entry->cookie = cookie->debug_id; [all …]
|
/linux-6.3-rc2/fs/cachefiles/ |
A D | interface.c | 40 object->cookie = fscache_get_cookie(cookie, fscache_cookie_get_attach_object); in cachefiles_alloc_object() 94 object->cookie = NULL; in cachefiles_put_object() 117 ni_size = object->cookie->object_size; in cachefiles_adjust_size() 179 object = cachefiles_alloc_object(cookie); in cachefiles_lookup_cookie() 188 cookie->cache_priv = object; in cachefiles_lookup_cookie() 210 fscache_caching_failed(cookie); in cachefiles_lookup_cookie() 278 struct fscache_cookie *cookie = object->cookie; in cachefiles_resize_cookie() local 281 loff_t old_size = cookie->object_size; in cachefiles_resize_cookie() 289 object->cookie->object_size = new_size; in cachefiles_resize_cookie() 297 cookie->object_size = new_size; in cachefiles_resize_cookie() [all …]
|
/linux-6.3-rc2/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-6.3-rc2/drivers/iommu/ |
A D | dma-iommu.c | 151 cookie->fq_domain->ops->flush_iotlb_all(cookie->fq_domain); in fq_flush_iotlb() 157 struct iommu_dma_cookie *cookie = from_timer(cookie, t, fq_timer); in fq_flush_timeout() local 226 if (!cookie->fq) in iommu_dma_free_fq() 272 cookie->fq = queue; in iommu_dma_init_fq() 296 cookie = kzalloc(sizeof(*cookie), GFP_KERNEL); in cookie_alloc() 297 if (cookie) { in cookie_alloc() 301 return cookie; in cookie_alloc() 344 if (!cookie) in iommu_get_msi_cookie() 363 if (!cookie) in iommu_put_dma_cookie() 375 kfree(cookie); in iommu_put_dma_cookie() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/microchip/lan966x/ |
A 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.3-rc2/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-6.3-rc2/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-6.3-rc2/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-6.3-rc2/arch/arm/mach-omap2/ |
A D | pdata-quirks.c | 303 struct ti_sysc_cookie *cookie) in ti_sysc_clkdm_init() argument 307 if (cookie->clkdm) in ti_sysc_clkdm_init() 311 if (cookie->clkdm) in ti_sysc_clkdm_init() 320 if (cookie->clkdm) in ti_sysc_clkdm_deny_idle() 321 clkdm_deny_idle(cookie->clkdm); in ti_sysc_clkdm_deny_idle() 327 if (cookie->clkdm) in ti_sysc_clkdm_allow_idle() 328 clkdm_allow_idle(cookie->clkdm); in ti_sysc_clkdm_allow_idle() 335 if (!cookie->data) in ti_sysc_enable_module() 344 if (!cookie->data) in ti_sysc_idle_module() 347 return omap_hwmod_idle(cookie->data); in ti_sysc_idle_module() [all …]
|
/linux-6.3-rc2/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-6.3-rc2/drivers/clocksource/ |
A D | timer-ti-dm.c | 120 struct omap_dm_timer cookie; member 388 if (!cookie) in to_dmtimer() 391 return container_of(cookie, struct dmtimer, cookie); in to_dmtimer() 402 timer = to_dmtimer(cookie); in omap_dm_timer_set_source() 591 return &timer->cookie; in omap_dm_timer_request() 609 return &timer->cookie; in omap_dm_timer_request_specific() 630 return &timer->cookie; in omap_dm_timer_request_by_node() 639 timer = to_dmtimer(cookie); in omap_dm_timer_free() 735 timer = to_dmtimer(cookie); in omap_dm_timer_start() 760 timer = to_dmtimer(cookie); in omap_dm_timer_stop() [all …]
|
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/ |
A 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() 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() 112 opts.cookie = COOKIE_KPROBE; in test_custom_sec_handlers() [all …]
|
/linux-6.3-rc2/Documentation/filesystems/caching/ |
A D | backend-api.rst | 23 Cache cookie struct fscache_cache 24 Volume cookie struct fscache_volume 25 Data storage cookie struct fscache_cookie 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. 111 on the cookie that each object belongs to. This schedules the specified cookie 229 Each cookie has an index key, which may be stored inline to the cookie or 315 struct fscache_cookie *cookie); 391 marked the cookie as in-use. [all …]
|
A D | netfs-api.rst | 14 cookie. 32 (4) Declaring a cookie to be in use 70 Once it has a cookie, the filesystem needs to mark the cookie as being in use. 77 truncate the cookie locally. It *also* needs to use the cookie when the 124 pass a NULL cookie to any function that takes a volume cookie. This will 146 cookie for data storage:: 174 volume cookie and pass the NULL cookie returned to any function that takes it. 231 The caller must have first marked the cookie in-use. The cookie and the new 243 struct fscache_cookie *cookie); 350 struct fscache_cookie *cookie); [all …]
|
/linux-6.3-rc2/drivers/media/platform/qcom/venus/ |
A D | hfi_cmds.h | 261 u32 addr, void *cookie); 263 u32 size, 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); 286 void *cookie, u32 seq_hdr, u32 seq_hdr_len); 288 void *cookie, u32 seq_hdr, u32 seq_hdr_len); 292 void *cookie, u32 ptype); [all …]
|
A D | hfi_cmds.c | 71 u32 addr, void *cookie) in pkt_sys_set_resource() argument 98 u32 size, void *cookie) in pkt_sys_unset_resource() argument 122 pkt->client_data = cookie; in pkt_sys_ping() 165 if (!pkt || !cookie || !codec) in pkt_session_init() 189 if (!cookie || !pkt || !bd) in pkt_session_set_buffers() 228 if (!cookie || !pkt || !bd) in pkt_session_unset_buffers() 267 if (!cookie) in pkt_session_etb_decoder() 416 if (!pkt || !cookie || !pdata) in pkt_session_set_property_1x() 1102 if (!pkt || !cookie) in pkt_session_get_property_3xx() 1129 if (!pkt || !cookie || !pdata) in pkt_session_set_property_3xx() [all …]
|
/linux-6.3-rc2/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()
|
/linux-6.3-rc2/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-6.3-rc2/arch/parisc/kernel/ |
A 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()
|