/kernel/linux/linux-6.6/fs/fscache/ |
H A D | cookie.c | 2 /* netfs cookie management 21 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 39 pr_err("%c-cookie c=%08x [fl=%lx na=%u nA=%u s=%c]\n", in fscache_print_cookie() 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 in fscache_print_cookie() 56 fscache_free_cookie(struct fscache_cookie *cookie) fscache_free_cookie() argument 82 __fscache_queue_cookie(struct fscache_cookie *cookie) __fscache_queue_cookie() argument 88 fscache_queue_cookie(struct fscache_cookie *cookie, enum fscache_cookie_trace where) fscache_queue_cookie() argument 101 fscache_init_access_gate(struct fscache_cookie *cookie) fscache_init_access_gate() argument 121 fscache_end_cookie_access(struct fscache_cookie *cookie, enum fscache_access_trace why) fscache_end_cookie_access() argument 139 __fscache_begin_cookie_access(struct fscache_cookie *cookie, enum fscache_access_trace why) __fscache_begin_cookie_access() argument 178 fscache_begin_cookie_access(struct fscache_cookie *cookie, enum fscache_access_trace why) fscache_begin_cookie_access() argument 192 wake_up_cookie_state(struct fscache_cookie *cookie) wake_up_cookie_state() argument 208 __fscache_set_cookie_state(struct fscache_cookie *cookie, enum fscache_cookie_state state) __fscache_set_cookie_state() argument 214 fscache_set_cookie_state(struct fscache_cookie *cookie, enum fscache_cookie_state state) fscache_set_cookie_state() argument 233 fscache_cookie_lookup_negative(struct fscache_cookie *cookie) fscache_cookie_lookup_negative() argument 247 fscache_resume_after_invalidation(struct fscache_cookie *cookie) fscache_resume_after_invalidation() argument 262 fscache_caching_failed(struct fscache_cookie *cookie) fscache_caching_failed() argument 277 fscache_set_key(struct fscache_cookie *cookie, const void *index_key, size_t index_key_len) fscache_set_key() argument 332 struct fscache_cookie *cookie; fscache_alloc_cookie() local 377 fscache_cookie_is_dropped(struct fscache_cookie *cookie) fscache_cookie_is_dropped() argument 457 struct fscache_cookie *cookie; __fscache_acquire_cookie() local 495 fscache_prepare_to_write(struct fscache_cookie *cookie) fscache_prepare_to_write() argument 503 fscache_perform_lookup(struct fscache_cookie *cookie) fscache_perform_lookup() argument 548 fscache_begin_lookup(struct fscache_cookie *cookie, bool will_modify) fscache_begin_lookup() argument 569 __fscache_use_cookie(struct fscache_cookie *cookie, bool will_modify) __fscache_use_cookie() argument 643 fscache_unuse_cookie_locked(struct fscache_cookie *cookie) fscache_unuse_cookie_locked() argument 665 __fscache_unuse_cookie(struct fscache_cookie *cookie, const void *aux_data, const loff_t *object_size) __fscache_unuse_cookie() argument 700 fscache_cookie_state_machine(struct fscache_cookie *cookie) fscache_cookie_state_machine() argument 828 struct fscache_cookie *cookie = container_of(work, struct fscache_cookie, work); fscache_cookie_worker() local 840 __fscache_withdraw_cookie(struct fscache_cookie *cookie) __fscache_withdraw_cookie() argument 856 fscache_cookie_lru_do_one(struct fscache_cookie *cookie) fscache_cookie_lru_do_one() argument 879 struct fscache_cookie *cookie; fscache_cookie_lru_worker() local 908 fscache_cookie_drop_from_lru(struct fscache_cookie *cookie) fscache_cookie_drop_from_lru() argument 929 fscache_unhash_cookie(struct fscache_cookie *cookie) fscache_unhash_cookie() argument 944 fscache_drop_withdraw_cookie(struct fscache_cookie *cookie) fscache_drop_withdraw_cookie() argument 957 fscache_withdraw_cookie(struct fscache_cookie *cookie) fscache_withdraw_cookie() argument 968 __fscache_relinquish_cookie(struct fscache_cookie *cookie, bool retire) __fscache_relinquish_cookie() argument 1003 fscache_put_cookie(struct fscache_cookie *cookie, enum fscache_cookie_trace where) fscache_put_cookie() argument 1023 fscache_get_cookie(struct fscache_cookie *cookie, enum fscache_cookie_trace where) fscache_get_cookie() argument 1037 fscache_perform_invalidation(struct fscache_cookie *cookie) fscache_perform_invalidation() argument 1047 __fscache_invalidate(struct fscache_cookie *cookie, const void *aux_data, loff_t new_size, unsigned int flags) __fscache_invalidate() argument 1109 struct fscache_cookie *cookie; fscache_cookies_seq_show() local [all...] |
H A D | io.c | 26 struct fscache_cookie *cookie = fscache_cres_cookie(cres); in fscache_wait_for_operation() local 30 if (!fscache_cache_is_live(cookie->volume->cache)) { in fscache_wait_for_operation() 35 state = fscache_cookie_state(cookie); in fscache_wait_for_operation() 36 _enter("c=%08x{%u},%x", cookie->debug_id, state, want_state); in fscache_wait_for_operation() 46 wait_var_event(&cookie->state, in fscache_wait_for_operation() 47 fscache_cookie_state(cookie) != state); in fscache_wait_for_operation() 61 return cookie->volume->cache->ops->begin_operation(cres, want_state); in fscache_wait_for_operation() 72 struct fscache_cookie *cookie, in fscache_begin_operation() 81 cres->cache_priv = cookie; in fscache_begin_operation() 83 cres->debug_id = cookie in fscache_begin_operation() 71 fscache_begin_operation(struct netfs_cache_resources *cres, struct fscache_cookie *cookie, enum fscache_want_state want_state, enum fscache_access_trace why) fscache_begin_operation() argument 145 __fscache_begin_read_operation(struct netfs_cache_resources *cres, struct fscache_cookie *cookie) __fscache_begin_read_operation() argument 153 __fscache_begin_write_operation(struct netfs_cache_resources *cres, struct fscache_cookie *cookie) __fscache_begin_write_operation() argument 173 fscache_dirty_folio(struct address_space *mapping, struct folio *folio, struct fscache_cookie *cookie) fscache_dirty_folio() argument 248 __fscache_write_to_cache(struct fscache_cookie *cookie, struct address_space *mapping, loff_t start, size_t len, loff_t i_size, netfs_io_terminated_t term_func, void *term_func_priv, bool cond) __fscache_write_to_cache() argument 307 __fscache_resize_cookie(struct fscache_cookie *cookie, loff_t new_size) __fscache_resize_cookie() argument [all...] |
/kernel/linux/linux-5.10/fs/fscache/ |
H A D | cookie.c | 2 /* netfs cookie management 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 36 pr_err("%c-cookie c=%p [p=%p fl=%lx nc=%u na=%u]\n", in fscache_print_cookie() 37 prefix, cookie, cookie->parent, cookie->flags, in fscache_print_cookie() 38 atomic_read(&cookie in fscache_print_cookie() 56 fscache_free_cookie(struct fscache_cookie *cookie) fscache_free_cookie() argument 74 fscache_set_key(struct fscache_cookie *cookie, const void *index_key, size_t index_key_len) fscache_set_key() argument 131 struct fscache_cookie *cookie; fscache_alloc_cookie() local 246 struct fscache_cookie *candidate, *cookie; __fscache_acquire_cookie() local 340 __fscache_enable_cookie(struct fscache_cookie *cookie, const void *aux_data, loff_t object_size, bool (*can_enable)(void *data), void *data) __fscache_enable_cookie() argument 381 fscache_acquire_non_index_cookie(struct fscache_cookie *cookie, loff_t object_size) fscache_acquire_non_index_cookie() argument 465 fscache_alloc_object(struct fscache_cache *cache, struct fscache_cookie *cookie) fscache_alloc_object() argument 539 fscache_attach_object(struct fscache_cookie *cookie, struct fscache_object *object) fscache_attach_object() argument 604 __fscache_invalidate(struct fscache_cookie *cookie) __fscache_invalidate() argument 647 __fscache_wait_on_invalidate(struct fscache_cookie *cookie) __fscache_wait_on_invalidate() argument 661 __fscache_update_cookie(struct fscache_cookie *cookie, const void *aux_data) __fscache_update_cookie() argument 697 __fscache_disable_cookie(struct fscache_cookie *cookie, const void *aux_data, bool invalidate) __fscache_disable_cookie() argument 780 __fscache_relinquish_cookie(struct fscache_cookie *cookie, const void *aux_data, bool retire) __fscache_relinquish_cookie() argument 828 fscache_unhash_cookie(struct fscache_cookie *cookie) fscache_unhash_cookie() argument 844 fscache_cookie_put(struct fscache_cookie *cookie, enum fscache_cookie_trace where) fscache_cookie_put() argument 876 __fscache_check_consistency(struct fscache_cookie *cookie, const void *aux_data) __fscache_check_consistency() argument [all...] |
H A 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, pag in release_page_wait_timeout() 62 __fscache_maybe_release_page(struct fscache_cookie *cookie, struct page *page, gfp_t gfp) __fscache_maybe_release_page() argument 149 struct fscache_cookie *cookie; fscache_end_page_write() local 213 __fscache_attr_changed(struct fscache_cookie *cookie) __fscache_attr_changed() argument 302 fscache_alloc_retrieval( struct fscache_cookie *cookie, struct address_space *mapping, fscache_rw_complete_t end_io_func, void *context) fscache_alloc_retrieval() argument 341 fscache_wait_for_deferred_lookup(struct fscache_cookie *cookie) fscache_wait_for_deferred_lookup() argument 429 __fscache_read_or_alloc_page(struct fscache_cookie *cookie, struct page *page, fscache_rw_complete_t end_io_func, void *context, gfp_t gfp) __fscache_read_or_alloc_page() argument 558 __fscache_read_or_alloc_pages(struct fscache_cookie *cookie, struct address_space *mapping, struct list_head *pages, unsigned *nr_pages, fscache_rw_complete_t end_io_func, void *context, gfp_t gfp) __fscache_read_or_alloc_pages() argument 675 __fscache_alloc_page(struct fscache_cookie *cookie, struct page *page, gfp_t gfp) __fscache_alloc_page() argument 765 __fscache_readpages_cancel(struct fscache_cookie *cookie, struct list_head *pages) __fscache_readpages_cancel() argument 793 struct fscache_cookie *cookie; fscache_write_op() local 894 fscache_invalidate_writes(struct fscache_cookie *cookie) fscache_invalidate_writes() argument 960 __fscache_write_page(struct fscache_cookie *cookie, struct page *page, loff_t object_size, gfp_t gfp) __fscache_write_page() argument 1108 __fscache_uncache_page(struct fscache_cookie *cookie, struct page *page) __fscache_uncache_page() argument 1167 struct fscache_cookie *cookie = op->op.object->cookie; fscache_mark_page_cached() local 1215 __fscache_uncache_all_inode_pages(struct fscache_cookie *cookie, struct inode *inode) __fscache_uncache_all_inode_pages() argument [all...] |
H A D | object.c | 293 * @cookie: Cookie object will be attached to 302 struct fscache_cookie *cookie, in fscache_object_init() 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() 504 * fscache_object_lookup_negative - Note negative cookie lookup 505 * @object: Object pointing to cookie t 301 fscache_object_init(struct fscache_object *object, struct fscache_cookie *cookie, struct fscache_cache *cache) fscache_object_init() argument 512 struct fscache_cookie *cookie = object->cookie; fscache_object_lookup_negative() local 545 struct fscache_cookie *cookie = object->cookie; fscache_obtained_object() local 625 struct fscache_cookie *cookie; fscache_lookup_failure() local 703 struct fscache_cookie *cookie = object->cookie; fscache_drop_object() local 968 struct fscache_cookie *cookie = object->cookie; _fscache_invalidate_object() local [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | fscache.h | 25 #define fscache_cookie_valid(cookie) (cookie) 28 #define fscache_cookie_valid(cookie) (0) 62 * fscache cookie definition 65 /* name of cookie type */ 68 /* cookie type */ 85 * - the netfs data from the cookie being used as the target is 127 * data file or index object cookie 134 atomic_t usage; /* number of users of this cookie */ 135 atomic_t n_children; /* number of children of this cookie */ 174 fscache_cookie_enabled(struct fscache_cookie *cookie) fscache_cookie_enabled() argument 358 fscache_relinquish_cookie(struct fscache_cookie *cookie, const void *aux_data, bool retire) fscache_relinquish_cookie() argument 379 fscache_check_consistency(struct fscache_cookie *cookie, const void *aux_data) fscache_check_consistency() argument 401 fscache_update_cookie(struct fscache_cookie *cookie, const void *aux_data) fscache_update_cookie() argument 417 fscache_pin_cookie(struct fscache_cookie *cookie) fscache_pin_cookie() argument 432 fscache_unpin_cookie(struct fscache_cookie *cookie) fscache_unpin_cookie() argument 448 fscache_attr_changed(struct fscache_cookie *cookie) fscache_attr_changed() argument 470 fscache_invalidate(struct fscache_cookie *cookie) fscache_invalidate() argument 486 fscache_wait_on_invalidate(struct fscache_cookie *cookie) fscache_wait_on_invalidate() argument 505 fscache_reserve_space(struct fscache_cookie *cookie, loff_t size) fscache_reserve_space() argument 540 fscache_read_or_alloc_page(struct fscache_cookie *cookie, struct page *page, fscache_rw_complete_t end_io_func, void *context, gfp_t gfp) fscache_read_or_alloc_page() argument 589 fscache_read_or_alloc_pages(struct fscache_cookie *cookie, struct address_space *mapping, struct list_head *pages, unsigned *nr_pages, fscache_rw_complete_t end_io_func, void *context, gfp_t gfp) fscache_read_or_alloc_pages() argument 624 fscache_alloc_page(struct fscache_cookie *cookie, struct page *page, gfp_t gfp) fscache_alloc_page() argument 647 fscache_readpages_cancel(struct fscache_cookie *cookie, struct list_head *pages) fscache_readpages_cancel() argument 674 fscache_write_page(struct fscache_cookie *cookie, struct page *page, loff_t object_size, gfp_t gfp) fscache_write_page() argument 700 fscache_uncache_page(struct fscache_cookie *cookie, struct page *page) fscache_uncache_page() argument 718 fscache_check_page_write(struct fscache_cookie *cookie, struct page *page) fscache_check_page_write() argument 738 fscache_wait_on_page_write(struct fscache_cookie *cookie, struct page *page) fscache_wait_on_page_write() argument 761 fscache_maybe_release_page(struct fscache_cookie *cookie, struct page *page, gfp_t gfp) fscache_maybe_release_page() argument 782 fscache_uncache_all_inode_pages(struct fscache_cookie *cookie, struct inode *inode) fscache_uncache_all_inode_pages() argument 807 fscache_disable_cookie(struct fscache_cookie *cookie, const void *aux_data, bool invalidate) fscache_disable_cookie() argument 832 fscache_enable_cookie(struct fscache_cookie *cookie, const void *aux_data, loff_t object_size, bool (*can_enable)(void *data), void *data) fscache_enable_cookie() argument [all...] |
/kernel/linux/linux-5.10/include/trace/events/ |
H A 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, __entr [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | fscache.h | 25 #define fscache_cookie_valid(cookie) (cookie) 27 #define fscache_cookie_enabled(cookie) (cookie && !test_bit(FSCACHE_COOKIE_DISABLED, &cookie->flags)) 32 #define fscache_cookie_valid(cookie) (0) 34 #define fscache_cookie_enabled(cookie) (0) 56 FSCACHE_COOKIE_STATE_QUIESCENT, /* The cookie is uncached */ 62 FSCACHE_COOKIE_STATE_LRU_DISCARDING, /* The cookie is being discarded by the LRU */ 63 FSCACHE_COOKIE_STATE_WITHDRAWING, /* The cookie i 268 fscache_use_cookie(struct fscache_cookie *cookie, bool will_modify) fscache_use_cookie() argument 284 fscache_unuse_cookie(struct fscache_cookie *cookie, const void *aux_data, const loff_t *object_size) fscache_unuse_cookie() argument 305 fscache_relinquish_cookie(struct fscache_cookie *cookie, bool retire) fscache_relinquish_cookie() argument 314 fscache_get_aux(struct fscache_cookie *cookie) fscache_get_aux() argument 326 fscache_update_aux(struct fscache_cookie *cookie, const void *aux_data, const loff_t *object_size) fscache_update_aux() argument 342 __fscache_update_cookie(struct fscache_cookie *cookie, const void *aux_data, const loff_t *object_size) __fscache_update_cookie() argument 368 fscache_update_cookie(struct fscache_cookie *cookie, const void *aux_data, const loff_t *object_size) fscache_update_cookie() argument 386 fscache_resize_cookie(struct fscache_cookie *cookie, loff_t new_size) fscache_resize_cookie() argument 412 fscache_invalidate(struct fscache_cookie *cookie, const void *aux_data, loff_t size, unsigned int flags) fscache_invalidate() argument 453 fscache_begin_read_operation(struct netfs_cache_resources *cres, struct fscache_cookie *cookie) fscache_begin_read_operation() argument 538 fscache_begin_write_operation(struct netfs_cache_resources *cres, struct fscache_cookie *cookie) fscache_begin_write_operation() argument 617 fscache_write_to_cache(struct fscache_cookie *cookie, struct address_space *mapping, loff_t start, size_t len, loff_t i_size, netfs_io_terminated_t term_func, void *term_func_priv, bool caching) fscache_write_to_cache() argument 648 fscache_unpin_writeback(struct writeback_control *wbc, struct fscache_cookie *cookie) fscache_unpin_writeback() argument 664 fscache_clear_inode_writeback(struct fscache_cookie *cookie, struct inode *inode, const void *aux) fscache_clear_inode_writeback() argument 682 fscache_note_page_release(struct fscache_cookie *cookie) fscache_note_page_release() argument [all...] |
H A D | fscache-cache.h | 33 * Cache cookie. 61 /* Look up a cookie in the cache */ 62 bool (*lookup_cookie)(struct fscache_cookie *cookie); 64 /* Withdraw an object without any cookie access counts held */ 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); 96 extern void fscache_withdraw_cookie(struct fscache_cookie *cookie); 101 struct fscache_cookie *cookie, 104 extern struct fscache_cookie *fscache_get_cookie(struct fscache_cookie *cookie, 124 fscache_cookie_state(struct fscache_cookie *cookie) fscache_cookie_state() argument 135 fscache_get_key(struct fscache_cookie *cookie) fscache_get_key() argument [all...] |
/kernel/linux/linux-6.6/kernel/sched/ |
H A D | core_sched.c | 5 * address is used to compute the cookie of the task. 23 static void sched_core_put_cookie(unsigned long cookie) in sched_core_put_cookie() argument 25 struct sched_core_cookie *ptr = (void *)cookie; in sched_core_put_cookie() 33 static unsigned long sched_core_get_cookie(unsigned long cookie) in sched_core_get_cookie() argument 35 struct sched_core_cookie *ptr = (void *)cookie; in sched_core_get_cookie() 40 return cookie; in sched_core_get_cookie() 44 * sched_core_update_cookie - replace the cookie on a task 46 * @cookie: the new cookie 48 * Effectively exchange the task cookie; calle 53 sched_core_update_cookie(struct task_struct *p, unsigned long cookie) sched_core_update_cookie() argument 101 unsigned long cookie, flags; sched_core_clone_cookie() local 121 __sched_core_set(struct task_struct *p, unsigned long cookie) __sched_core_set() argument 132 unsigned long cookie = 0, id = 0; sched_core_share_pid() local [all...] |
/kernel/linux/linux-6.6/include/trace/events/ |
H A D | fscache.h | 265 __field(unsigned int, cookie ) 271 __entry->cookie = cookie_debug_id; 277 __entry->cookie, 292 __field(unsigned int, cookie ) 300 __entry->cookie = cookie_debug_id; 308 __entry->cookie, 355 __field(unsigned int, cookie ) 363 __entry->cookie = cookie_debug_id; 371 __entry->cookie, 386 __field(unsigned int, cookie ) [all...] |
/kernel/linux/linux-5.10/drivers/oprofile/ |
H A 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() 304 add_user_ctx_switch(struct task_struct const *task, unsigned long cookie) add_user_ctx_switch() argument 317 add_cookie_switch(unsigned long cookie) add_cookie_switch() argument 334 unsigned long cookie; add_data() local 383 unsigned long cookie; add_sample() local 499 unsigned long cookie = 0; sync_buffer() local [all...] |
/kernel/linux/linux-5.10/drivers/dma/ |
H A D | dmaengine.h | 18 chan->cookie = DMA_MIN_COOKIE; in dma_cookie_init() 23 * dma_cookie_assign - assign a DMA engine cookie to the descriptor 24 * @tx: descriptor needing cookie 26 * Assign a unique non-zero per-channel cookie to the descriptor. 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 in dma_cookie_assign() 68 dma_cookie_status(struct dma_chan *chan, dma_cookie_t cookie, struct dma_tx_state *state) dma_cookie_status() argument [all...] |
/kernel/linux/linux-6.6/drivers/dma/ |
H A D | dmaengine.h | 18 chan->cookie = DMA_MIN_COOKIE; in dma_cookie_init() 23 * dma_cookie_assign - assign a DMA engine cookie to the descriptor 24 * @tx: descriptor needing cookie 26 * Assign a unique non-zero per-channel cookie to the descriptor. 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 in dma_cookie_assign() 68 dma_cookie_status(struct dma_chan *chan, dma_cookie_t cookie, struct dma_tx_state *state) dma_cookie_status() argument [all...] |
/kernel/linux/linux-6.6/fs/cachefiles/ |
H A D | interface.c | 22 struct cachefiles_object *cachefiles_alloc_object(struct fscache_cookie *cookie) in cachefiles_alloc_object() argument 24 struct fscache_volume *vcookie = cookie->volume; in cachefiles_alloc_object() 28 _enter("{%s},%x,", vcookie->key, cookie->debug_id); in cachefiles_alloc_object() 40 object->cookie = fscache_get_cookie(cookie, fscache_cookie_get_attach_object); in cachefiles_alloc_object() 43 trace_cachefiles_ref(object->debug_id, cookie->debug_id, 1, in cachefiles_alloc_object() 54 trace_cachefiles_ref(object->debug_id, object->cookie->debug_id, in cachefiles_see_object() 67 trace_cachefiles_ref(object->debug_id, object->cookie->debug_id, r, why); in cachefiles_grab_object() 78 unsigned int cookie_debug_id = object->cookie->debug_id; in cachefiles_put_object() 93 fscache_put_cookie(object->cookie, fscache_cookie_put_objec in cachefiles_put_object() 172 cachefiles_lookup_cookie(struct fscache_cookie *cookie) cachefiles_lookup_cookie() argument 278 struct fscache_cookie *cookie = object->cookie; cachefiles_resize_cookie() local 349 cachefiles_withdraw_cookie(struct fscache_cookie *cookie) cachefiles_withdraw_cookie() argument 380 cachefiles_invalidate_cookie(struct fscache_cookie *cookie) cachefiles_invalidate_cookie() argument [all...] |
/kernel/linux/linux-5.10/fs/ocfs2/dlm/ |
H A 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() 279 __be64 cookie; dlm_proxy_ast_handler() local [all...] |
/kernel/linux/linux-6.6/fs/ocfs2/dlm/ |
H A 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() 267 __be64 cookie; dlm_proxy_ast_handler() local [all...] |
/kernel/linux/linux-6.6/fs/lockd/ |
H 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 in svcxdr_encode_cookie() [all...] |
/kernel/linux/linux-6.6/drivers/iommu/ |
H A D | dma-iommu.c | 128 static void fq_ring_free(struct iommu_dma_cookie *cookie, struct iova_fq *fq) in fq_ring_free() argument 130 u64 counter = atomic64_read(&cookie->fq_flush_finish_cnt); in fq_ring_free() 141 free_iova_fast(&cookie->iovad, in fq_ring_free() 149 static void fq_flush_iotlb(struct iommu_dma_cookie *cookie) in fq_flush_iotlb() argument 151 atomic64_inc(&cookie->fq_flush_start_cnt); in fq_flush_iotlb() 152 cookie->fq_domain->ops->flush_iotlb_all(cookie->fq_domain); in fq_flush_iotlb() 153 atomic64_inc(&cookie->fq_flush_finish_cnt); in fq_flush_iotlb() 158 struct iommu_dma_cookie *cookie = from_timer(cookie, in fq_flush_timeout() local 175 queue_iova(struct iommu_dma_cookie *cookie, unsigned long pfn, unsigned long pages, struct list_head *freelist) queue_iova() argument 223 iommu_dma_free_fq(struct iommu_dma_cookie *cookie) iommu_dma_free_fq() argument 245 struct iommu_dma_cookie *cookie = domain->iova_cookie; iommu_dma_init_fq() local 286 cookie_msi_granule(struct iommu_dma_cookie *cookie) cookie_msi_granule() argument 295 struct iommu_dma_cookie *cookie; cookie_alloc() local 336 struct iommu_dma_cookie *cookie; iommu_get_msi_cookie() local 361 struct iommu_dma_cookie *cookie = domain->iova_cookie; iommu_put_dma_cookie() local 401 cookie_init_hw_msi_region(struct iommu_dma_cookie *cookie, phys_addr_t start, phys_addr_t end) cookie_init_hw_msi_region() argument 484 struct iommu_dma_cookie *cookie = domain->iova_cookie; iova_reserve_iommu_regions() local 573 struct iommu_dma_cookie *cookie = domain->iova_cookie; iommu_dma_init_domain() local 662 struct iommu_dma_cookie *cookie = domain->iova_cookie; iommu_dma_alloc_iova() local 705 iommu_dma_free_iova(struct iommu_dma_cookie *cookie, dma_addr_t iova, size_t size, struct iommu_iotlb_gather *gather) iommu_dma_free_iova() argument 726 struct iommu_dma_cookie *cookie = domain->iova_cookie; __iommu_dma_unmap() local 749 struct iommu_dma_cookie *cookie = domain->iova_cookie; __iommu_dma_map() local 839 struct iommu_dma_cookie *cookie = domain->iova_cookie; __iommu_dma_alloc_noncontiguous() local 1038 struct iommu_dma_cookie *cookie = domain->iova_cookie; iommu_dma_map_page() local 1245 struct iommu_dma_cookie *cookie = domain->iova_cookie; iommu_dma_map_sg() local 1660 struct iommu_dma_cookie *cookie = domain->iova_cookie; iommu_dma_get_msi_page() local [all...] |
/kernel/linux/linux-6.6/drivers/clocksource/ |
H A D | timer-ti-dm.c | 119 struct omap_dm_timer cookie; member 401 static struct dmtimer *to_dmtimer(struct omap_dm_timer *cookie) in to_dmtimer() argument 403 if (!cookie) in to_dmtimer() 406 return container_of(cookie, struct dmtimer, cookie); in to_dmtimer() 409 static int omap_dm_timer_set_source(struct omap_dm_timer *cookie, int source) in omap_dm_timer_set_source() argument 417 timer = to_dmtimer(cookie); in omap_dm_timer_set_source() 467 static void omap_dm_timer_enable(struct omap_dm_timer *cookie) in omap_dm_timer_enable() argument 469 struct dmtimer *timer = to_dmtimer(cookie); in omap_dm_timer_enable() 478 static void omap_dm_timer_disable(struct omap_dm_timer *cookie) in omap_dm_timer_disable() argument 648 omap_dm_timer_free(struct omap_dm_timer *cookie) omap_dm_timer_free() argument 674 omap_dm_timer_get_irq(struct omap_dm_timer *cookie) omap_dm_timer_get_irq() argument 685 omap_dm_timer_get_fclk(struct omap_dm_timer *cookie) omap_dm_timer_get_fclk() argument 725 omap_dm_timer_get_fclk(struct omap_dm_timer *cookie) omap_dm_timer_get_fclk() argument 743 omap_dm_timer_start(struct omap_dm_timer *cookie) omap_dm_timer_start() argument 769 omap_dm_timer_stop(struct omap_dm_timer *cookie) omap_dm_timer_stop() argument 787 omap_dm_timer_set_load(struct omap_dm_timer *cookie, unsigned int load) omap_dm_timer_set_load() argument 810 omap_dm_timer_set_match(struct omap_dm_timer *cookie, int enable, unsigned int match) omap_dm_timer_set_match() argument 840 omap_dm_timer_set_pwm(struct omap_dm_timer *cookie, int def_on, int toggle, int trigger, int autoreload) omap_dm_timer_set_pwm() argument 874 omap_dm_timer_get_pwm_status(struct omap_dm_timer *cookie) omap_dm_timer_get_pwm_status() argument 897 omap_dm_timer_set_prescaler(struct omap_dm_timer *cookie, int prescaler) omap_dm_timer_set_prescaler() argument 927 omap_dm_timer_set_int_enable(struct omap_dm_timer *cookie, unsigned int value) omap_dm_timer_set_int_enable() argument 957 omap_dm_timer_set_int_disable(struct omap_dm_timer *cookie, u32 mask) omap_dm_timer_set_int_disable() argument 985 omap_dm_timer_read_status(struct omap_dm_timer *cookie) omap_dm_timer_read_status() argument 1001 omap_dm_timer_write_status(struct omap_dm_timer *cookie, unsigned int value) omap_dm_timer_write_status() argument 1014 omap_dm_timer_read_counter(struct omap_dm_timer *cookie) omap_dm_timer_read_counter() argument 1027 omap_dm_timer_write_counter(struct omap_dm_timer *cookie, unsigned int value) omap_dm_timer_write_counter() argument [all...] |
/kernel/linux/linux-5.10/drivers/iommu/ |
H A 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; iommu_get_msi_cookie() local 132 struct iommu_dma_cookie *cookie = domain->iova_cookie; iommu_put_dma_cookie() local 169 cookie_init_hw_msi_region(struct iommu_dma_cookie *cookie, phys_addr_t start, phys_addr_t end) cookie_init_hw_msi_region() argument 242 struct iommu_dma_cookie *cookie = domain->iova_cookie; iova_reserve_iommu_regions() local 279 struct iommu_dma_cookie *cookie; iommu_dma_flush_iotlb_all() local 306 struct iommu_dma_cookie *cookie = domain->iova_cookie; iommu_dma_init_domain() local 407 struct iommu_dma_cookie *cookie = domain->iova_cookie; iommu_dma_alloc_iova() local 444 iommu_dma_free_iova(struct iommu_dma_cookie *cookie, dma_addr_t iova, size_t size) iommu_dma_free_iova() argument 464 struct iommu_dma_cookie *cookie = domain->iova_cookie; __iommu_dma_unmap() local 486 struct iommu_dma_cookie *cookie = domain->iova_cookie; __iommu_dma_map() local 589 struct iommu_dma_cookie *cookie = domain->iova_cookie; iommu_dma_alloc_remap() local 837 struct iommu_dma_cookie *cookie = domain->iova_cookie; iommu_dma_map_sg() local 1204 struct iommu_dma_cookie *cookie = domain->iova_cookie; iommu_dma_get_msi_page() local [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/qcom/venus/ |
H A D | hfi_cmds.c | 61 u32 addr, void *cookie) in pkt_sys_set_resource() 65 pkt->resource_handle = hash32_ptr(cookie); in pkt_sys_set_resource() 88 u32 size, void *cookie) in pkt_sys_unset_resource() 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 60 pkt_sys_set_resource(struct hfi_sys_set_resource_pkt *pkt, u32 id, u32 size, u32 addr, void *cookie) pkt_sys_set_resource() argument 87 pkt_sys_unset_resource(struct hfi_sys_release_resource_pkt *pkt, u32 id, u32 size, void *cookie) pkt_sys_unset_resource() argument 174 pkt_session_set_buffers(struct hfi_session_set_buffers_pkt *pkt, void *cookie, struct hfi_buffer_desc *bd) pkt_session_set_buffers() argument 213 pkt_session_unset_buffers(struct hfi_session_release_buffer_pkt *pkt, void *cookie, struct hfi_buffer_desc *bd) pkt_session_unset_buffers() argument 254 pkt_session_etb_decoder(struct hfi_session_empty_buffer_compressed_pkt *pkt, void *cookie, struct hfi_frame_data *in_frame) pkt_session_etb_decoder() argument 277 pkt_session_etb_encoder( struct hfi_session_empty_buffer_uncompressed_plane0_pkt *pkt, void *cookie, struct hfi_frame_data *in_frame) pkt_session_etb_encoder() argument 303 pkt_session_ftb(struct hfi_session_fill_buffer_pkt *pkt, void *cookie, struct hfi_frame_data *out_frame) pkt_session_ftb() argument 329 pkt_session_parse_seq_header( struct hfi_session_parse_sequence_header_pkt *pkt, void *cookie, u32 seq_hdr, u32 seq_hdr_len) pkt_session_parse_seq_header() argument 345 pkt_session_get_seq_hdr(struct hfi_session_get_sequence_header_pkt *pkt, void *cookie, u32 seq_hdr, u32 seq_hdr_len) pkt_session_get_seq_hdr() argument 360 pkt_session_flush(struct hfi_session_flush_pkt *pkt, void *cookie, u32 type) pkt_session_flush() argument 380 pkt_session_get_property_1x(struct hfi_session_get_property_pkt *pkt, void *cookie, u32 ptype) pkt_session_get_property_1x() argument 400 pkt_session_set_property_1x(struct hfi_session_set_property_pkt *pkt, void *cookie, u32 ptype, void *pdata) pkt_session_set_property_1x() argument 1071 pkt_session_get_property_3xx(struct hfi_session_get_property_pkt *pkt, void *cookie, u32 ptype) pkt_session_get_property_3xx() argument 1097 pkt_session_set_property_3xx(struct hfi_session_set_property_pkt *pkt, void *cookie, u32 ptype, void *pdata) pkt_session_set_property_3xx() argument 1162 pkt_session_set_property_4xx(struct hfi_session_set_property_pkt *pkt, void *cookie, u32 ptype, void *pdata) pkt_session_set_property_4xx() argument 1223 pkt_session_set_property_6xx(struct hfi_session_set_property_pkt *pkt, void *cookie, u32 ptype, void *pdata) pkt_session_set_property_6xx() argument 1253 pkt_session_get_property(struct hfi_session_get_property_pkt *pkt, void *cookie, u32 ptype) pkt_session_get_property() argument 1262 pkt_session_set_property(struct hfi_session_set_property_pkt *pkt, void *cookie, u32 ptype, void *pdata) pkt_session_set_property() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/wireguard/ |
H A D | cookie.c | 6 #include "cookie.h" 30 static const u8 cookie_key_label[COOKIE_KEY_LABEL_LEN] = "cookie--"; 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_LE argument 83 compute_mac2(u8 mac2[COOKIE_LEN], const void *message, size_t len, const u8 cookie[COOKIE_LEN]) compute_mac2() argument 127 u8 cookie[COOKIE_LEN]; wg_cookie_validate_packet() local 186 u8 cookie[COOKIE_LEN]; wg_cookie_message_create() local 202 u8 cookie[COOKIE_LEN]; wg_cookie_message_consume() local [all...] |
/kernel/linux/linux-6.6/drivers/net/wireguard/ |
H A D | cookie.c | 6 #include "cookie.h" 30 static const u8 cookie_key_label[COOKIE_KEY_LABEL_LEN] = "cookie--"; 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_LE argument 83 compute_mac2(u8 mac2[COOKIE_LEN], const void *message, size_t len, const u8 cookie[COOKIE_LEN]) compute_mac2() argument 127 u8 cookie[COOKIE_LEN]; wg_cookie_validate_packet() local 186 u8 cookie[COOKIE_LEN]; wg_cookie_message_create() local 202 u8 cookie[COOKIE_LEN]; wg_cookie_message_consume() local [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H 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()
|