Home
last modified time | relevance | path

Searched refs:cookie (Results 1 – 25 of 707) sorted by relevance

12345678910>>...29

/linux/fs/netfs/
H A Dfscache_cookie.c21 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 …]
H A Dfscache_io.c25 struct fscache_cookie *cookie = fscache_cres_cookie(cres); in fscache_wait_for_operation() local
29 if (!fscache_cache_is_live(cookie->volume->cache)) { in fscache_wait_for_operation()
34 state = fscache_cookie_state(cookie); in fscache_wait_for_operation()
35 _enter("c=%08x{%u},%x", cookie->debug_id, state, want_state); in fscache_wait_for_operation()
45 wait_var_event(&cookie->state, in fscache_wait_for_operation()
46 fscache_cookie_state(cookie) != state); in fscache_wait_for_operation()
60 return cookie->volume->cache->ops->begin_operation(cres, want_state); in fscache_wait_for_operation()
71 struct fscache_cookie *cookie, in fscache_begin_operation() argument
80 cres->cache_priv = cookie; in fscache_begin_operation()
82 cres->debug_id = cookie->debug_id; in fscache_begin_operation()
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dexceptions.c144 __noinline int exception_cb_mod_global(u64 cookie) in exception_cb_mod_global() argument
159 __noinline int exception_cb_mod(u64 cookie) in exception_cb_mod() argument
161 return exception_cb_mod_global(cookie) + cookie + 10; in exception_cb_mod()
221 __noinline int exception_cb_stack(u64 cookie) in exception_cb_stack() argument
247 volatile u64 cookie = c; in assert_nz_gfunc() local
249 bpf_assert(cookie != 0); in assert_nz_gfunc()
255 volatile u64 cookie = c; in assert_zero_gfunc() local
257 bpf_assert(bpf_cmp_unlikely(cookie, ==, 0)); in assert_zero_gfunc()
263 volatile s64 cookie = c; in assert_neg_gfunc() local
265 bpf_assert(bpf_cmp_unlikely(cookie, <, 0)); in assert_neg_gfunc()
[all …]
/linux/include/trace/events/
H A Dfscache.h269 __field(unsigned int, cookie )
275 __entry->cookie = cookie_debug_id;
281 __entry->cookie,
296 __field(unsigned int, cookie )
304 __entry->cookie = cookie_debug_id;
312 __entry->cookie,
359 __field(unsigned int, cookie )
367 __entry->cookie = cookie_debug_id;
375 __entry->cookie,
390 __field(unsigned int, cookie )
[all …]
/linux/include/linux/
H A Dfscache-cache.h63 bool (*lookup_cookie)(struct fscache_cookie *cookie);
66 void (*withdraw_cookie)(struct fscache_cookie *cookie);
73 bool (*invalidate_cookie)(struct fscache_cookie *cookie);
80 void (*prepare_to_write)(struct fscache_cookie *cookie);
97 extern void fscache_withdraw_cookie(struct fscache_cookie *cookie);
107 struct fscache_cookie *cookie,
110 extern struct fscache_cookie *fscache_get_cookie(struct fscache_cookie *cookie,
112 extern void fscache_put_cookie(struct fscache_cookie *cookie,
114 extern void fscache_end_cookie_access(struct fscache_cookie *cookie,
116 extern void fscache_cookie_lookup_negative(struct fscache_cookie *cookie);
[all …]
H A Dadreno-smmu-priv.h69 const void *cookie; member
70 const struct io_pgtable_cfg *(*get_ttbr1_cfg)(const void *cookie);
71 int (*set_ttbr0_cfg)(const void *cookie, const struct io_pgtable_cfg *cfg);
72 void (*get_fault_info)(const void *cookie, struct adreno_smmu_fault_info *info);
73 void (*set_stall)(const void *cookie, bool enabled);
74 void (*resume_translation)(const void *cookie, bool terminate);
75 void (*set_prr_bit)(const void *cookie, bool set);
76 void (*set_prr_addr)(const void *cookie, phys_addr_t page_addr);
H A Dio-pgtable.h40 void (*tlb_flush_all)(void *cookie);
42 void *cookie);
44 unsigned long iova, size_t granule, void *cookie);
127 void *(*alloc)(void *cookie, size_t size, gfp_t gfp);
136 void (*free)(void *cookie, void *pages, size_t size);
244 void *cookie);
271 void *cookie; member
281 iop->cfg.tlb->tlb_flush_all(iop->cookie); in io_pgtable_tlb_flush_all()
289 iop->cfg.tlb->tlb_flush_walk(iova, size, granule, iop->cookie); in io_pgtable_tlb_flush_walk()
298 iop->cfg.tlb->tlb_add_page(gather, iova, granule, iop->cookie); in io_pgtable_tlb_add_page()
[all …]
/linux/drivers/dma/
H A Ddmaengine.h18 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/arch/arm64/kernel/
H A Dstacktrace.c280 typedef bool (*kunwind_consume_fn)(const struct kunwind_state *state, void *cookie);
284 void *cookie) in do_kunwind() argument
293 if (!consume_state(state, cookie)) in do_kunwind()
334 void *cookie, struct task_struct *task, in kunwind_stack_walk() argument
366 return do_kunwind(&state, consume_state, cookie); in kunwind_stack_walk()
371 void *cookie; member
375 arch_kunwind_consume_entry(const struct kunwind_state *state, void *cookie) in arch_kunwind_consume_entry() argument
377 struct kunwind_consume_entry_data *data = cookie; in arch_kunwind_consume_entry()
378 return data->consume_entry(data->cookie, state->common.pc); in arch_kunwind_consume_entry()
382 void *cookie, struct task_struct *task, in arch_stack_walk() argument
[all …]
/linux/drivers/iommu/
H A Ddma-iommu.c142 static void fq_ring_free_locked(struct iommu_dma_cookie *cookie, struct iova_fq *fq) in fq_ring_free_locked() argument
144 u64 counter = atomic64_read(&cookie->fq_flush_finish_cnt); in fq_ring_free_locked()
155 free_iova_fast(&cookie->iovad, in fq_ring_free_locked()
165 static void fq_ring_free(struct iommu_dma_cookie *cookie, struct iova_fq *fq) in fq_ring_free() argument
170 fq_ring_free_locked(cookie, fq); in fq_ring_free()
174 static void fq_flush_iotlb(struct iommu_dma_cookie *cookie) in fq_flush_iotlb() argument
176 atomic64_inc(&cookie->fq_flush_start_cnt); in fq_flush_iotlb()
177 cookie->fq_domain->ops->flush_iotlb_all(cookie->fq_domain); in fq_flush_iotlb()
178 atomic64_inc(&cookie in fq_flush_iotlb()
183 struct iommu_dma_cookie *cookie = timer_container_of(cookie, t, fq_flush_timeout() local
198 queue_iova(struct iommu_dma_cookie * cookie,unsigned long pfn,unsigned long pages,struct iommu_pages_list * freelist) queue_iova() argument
274 iommu_dma_free_fq(struct iommu_dma_cookie * cookie) iommu_dma_free_fq() argument
301 iommu_dma_init_fq_single(struct iommu_dma_cookie * cookie) iommu_dma_init_fq_single() argument
315 iommu_dma_init_fq_percpu(struct iommu_dma_cookie * cookie) iommu_dma_init_fq_percpu() argument
335 struct iommu_dma_cookie *cookie = domain->iova_cookie; iommu_dma_init_fq() local
371 struct iommu_dma_cookie *cookie; iommu_get_dma_cookie() local
400 struct iommu_dma_msi_cookie *cookie; iommu_get_msi_cookie() local
426 struct iommu_dma_cookie *cookie = domain->iova_cookie; iommu_put_dma_cookie() local
444 struct iommu_dma_msi_cookie *cookie = domain->msi_cookie; iommu_put_msi_cookie() local
473 cookie_init_hw_msi_region(struct iommu_dma_cookie * cookie,phys_addr_t start,phys_addr_t end) cookie_init_hw_msi_region() argument
556 struct iommu_dma_cookie *cookie = domain->iova_cookie; iova_reserve_iommu_regions() local
672 struct iommu_dma_cookie *cookie = domain->iova_cookie; iommu_dma_init_domain() local
763 struct iommu_dma_cookie *cookie = domain->iova_cookie; iommu_dma_alloc_iova() local
827 struct iommu_dma_cookie *cookie = domain->iova_cookie; __iommu_dma_unmap() local
850 struct iommu_dma_cookie *cookie = domain->iova_cookie; __iommu_dma_map() local
944 struct iommu_dma_cookie *cookie = domain->iova_cookie; __iommu_dma_alloc_noncontiguous() local
1223 struct iommu_dma_cookie *cookie = domain->iova_cookie; iommu_dma_map_phys() local
1416 struct iommu_dma_cookie *cookie = domain->iova_cookie; iommu_dma_map_sg() local
1797 struct iommu_dma_cookie *cookie; dma_iova_try_alloc() local
1854 struct iommu_dma_cookie *cookie = domain->iova_cookie; dma_iova_free() local
1906 struct iommu_dma_cookie *cookie = domain->iova_cookie; iommu_dma_iova_link_swiotlb() local
1980 struct iommu_dma_cookie *cookie = domain->iova_cookie; dma_iova_link() local
2029 struct iommu_dma_cookie *cookie = domain->iova_cookie; dma_iova_sync() local
2046 struct iommu_dma_cookie *cookie = domain->iova_cookie; iommu_dma_iova_unlink_range_slow() local
2095 struct iommu_dma_cookie *cookie = domain->iova_cookie; dma_iova_unlink() local
[all...]
/linux/fs/ocfs2/dlm/
H A Ddlmast.c89 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/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_tc_matchall.c21 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/tools/testing/selftests/bpf/prog_tests/
H A Dbpf_cookie.c511 static int verify_tracing_link_info(int fd, u64 cookie) in tracing_subtest()
524 ASSERT_EQ(info.tracing.cookie, cookie, "tracing_cookie"); in tracing_subtest()
531 __u64 cookie; in tracing_subtest()
540 cookie = 0x10000000000000L; in tracing_subtest()
542 link_opts.tracing.cookie = cookie; in tracing_subtest()
547 err = verify_tracing_link_info(fentry_fd, cookie); in tracing_subtest()
551 cookie = 0x20000000000000L; in tracing_subtest()
553 link_opts.tracing.cookie in tracing_subtest()
492 verify_tracing_link_info(int fd,u64 cookie) verify_tracing_link_info() argument
512 __u64 cookie; tracing_subtest() local
569 __u64 cookie; lsm_subtest() local
600 __u64 cookie; tp_btf_subtest() local
660 verify_raw_tp_link_info(int fd,u64 cookie) verify_raw_tp_link_info() argument
681 __u64 cookie; raw_tp_subtest() local
[all...]
H A Dcustom_sec_handlers.c13 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/drivers/net/wireguard/
H A Dcookie.c69 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(cookie, COOKIE_LEN, message, len, mac2, COOKIE_LEN); in compute_mac2()
91 static void make_cookie(u8 cookie[COOKIE_LEN], struct sk_buff *skb, in make_cookie()
114 blake2s_final(&blake, 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/arch/s390/kernel/
H A Dstacktrace.c17 void arch_stack_walk(stack_trace_consume_fn consume_entry, void *cookie, in arch_stack_walk() argument
25 if (!addr || !consume_entry(cookie, addr)) in arch_stack_walk()
31 void *cookie, struct task_struct *task) in arch_stack_walk_reliable() argument
56 if (!consume_entry(cookie, addr)) in arch_stack_walk_reliable()
66 static inline bool store_ip(stack_trace_consume_fn consume_entry, void *cookie, in store_ip() argument
77 return consume_entry(cookie, ip); in store_ip()
100 void arch_stack_walk_user_common(stack_trace_consume_fn consume_entry, void *cookie, in arch_stack_walk_user_common() argument
111 if (!store_ip(consume_entry, cookie, entry, perf, ip)) in arch_stack_walk_user_common()
138 if (!store_ip(consume_entry, cookie, entry, perf, ip)) in arch_stack_walk_user_common()
144 void arch_stack_walk_user(stack_trace_consume_fn consume_entry, void *cookie, in arch_stack_walk_user() argument
[all …]
/linux/arch/arm/mach-omap2/
H A Dpdata-quirks.c332 struct ti_sysc_cookie *cookie) in ti_sysc_clkdm_init() argument
335 cookie->clkdm = ti_sysc_find_one_clockdomain(fck); in ti_sysc_clkdm_init()
336 if (cookie->clkdm) in ti_sysc_clkdm_init()
339 cookie->clkdm = ti_sysc_find_one_clockdomain(ick); in ti_sysc_clkdm_init()
340 if (cookie->clkdm) in ti_sysc_clkdm_init()
347 const struct ti_sysc_cookie *cookie) in ti_sysc_clkdm_deny_idle() argument
349 if (cookie->clkdm) in ti_sysc_clkdm_deny_idle()
350 clkdm_deny_idle(cookie->clkdm); in ti_sysc_clkdm_deny_idle()
354 const struct ti_sysc_cookie *cookie) in ti_sysc_clkdm_allow_idle() argument
356 if (cookie->clkdm) in ti_sysc_clkdm_allow_idle()
[all …]
/linux/Documentation/filesystems/caching/
H A Dbackend-api.rst18 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 …]
H A Dnetfs-api.rst14 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/fs/xfs/scrub/
H A Dxfblob.c74 xfblob_cookie cookie, in xfblob_load() argument
81 error = xfile_load(blob->xfile, &key, sizeof(key), cookie); in xfblob_load()
85 if (key.xb_magic != XB_KEY_MAGIC || key.xb_offset != cookie) { in xfblob_load()
95 cookie + sizeof(key)); in xfblob_load()
102 xfblob_cookie *cookie, in xfblob_store() argument
123 *cookie = blob->last_offset; in xfblob_store()
135 xfblob_cookie cookie) in xfblob_free() argument
140 error = xfile_load(blob->xfile, &key, sizeof(key), cookie); in xfblob_free()
144 if (key.xb_magic != XB_KEY_MAGIC || key.xb_offset != cookie) { in xfblob_free()
149 xfile_discard(blob->xfile, cookie, sizeof(key) + key.xb_size); in xfblob_free()
/linux/drivers/media/platform/qcom/venus/
H A Dhfi_cmds.c71 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 …]
H A Dhfi_cmds.h261 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 …]
/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_tc_matchall.c15 sparx5_tc_matchall_entry_find(struct list_head *entries, unsigned long cookie) in sparx5_tc_matchall_entry_find() argument
20 if (entry->cookie == cookie) in sparx5_tc_matchall_entry_find()
31 unsigned long cookie) in sparx5_tc_matchall_parse_action() argument
36 entry->cookie = cookie; in sparx5_tc_matchall_parse_action()
71 tmo->cookie); in sparx5_tc_matchall_replace()
105 action->chain_index, tmo->cookie, in sparx5_tc_matchall_replace()
148 tmo->cookie); in sparx5_tc_matchall_destroy()
156 0, 0, tmo->cookie, fals in sparx5_tc_matchall_destroy()
[all...]
/linux/arch/x86/kernel/
H A Dstacktrace.c15 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/drivers/dma/sh/
H A Dshdma-base.c76 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()
139 if (chunk->cookie == cookie) { in shdma_tx_submit()
166 return cookie; in shdma_tx_submit()
341 dma_cookie_t cookie = 0; in __ld_cleanup() local
352 BUG_ON(tx->cookie > 0 && tx->cookie != desc->cookie); in __ld_cleanup()
[all …]

12345678910>>...29