/Linux-v4.19/fs/fscache/ |
D | cookie.c | 27 static int fscache_acquire_non_index_cookie(struct fscache_cookie *cookie, 30 struct fscache_cookie *cookie); 31 static int fscache_attach_object(struct fscache_cookie *cookie, 34 static void fscache_print_cookie(struct fscache_cookie *cookie, char prefix) in fscache_print_cookie() argument 41 prefix, cookie, cookie->parent, cookie->flags, in fscache_print_cookie() 42 atomic_read(&cookie->n_children), in fscache_print_cookie() 43 atomic_read(&cookie->n_active)); in fscache_print_cookie() 45 prefix, cookie->def, cookie->netfs_data); in fscache_print_cookie() 47 object = READ_ONCE(cookie->backing_objects.first); in fscache_print_cookie() 52 pr_err("%c-key=[%u] '", prefix, cookie->key_len); in fscache_print_cookie() [all …]
|
D | page.c | 23 bool __fscache_check_page_write(struct fscache_cookie *cookie, struct page *page) in __fscache_check_page_write() argument 28 val = radix_tree_lookup(&cookie->stores, page->index); in __fscache_check_page_write() 30 trace_fscache_check_page(cookie, page, val, 0); in __fscache_check_page_write() 39 void __fscache_wait_on_page_write(struct fscache_cookie *cookie, struct page *page) in __fscache_wait_on_page_write() argument 41 wait_queue_head_t *wq = bit_waitqueue(&cookie->flags, 0); in __fscache_wait_on_page_write() 43 trace_fscache_page(cookie, page, fscache_page_write_wait); in __fscache_wait_on_page_write() 45 wait_event(*wq, !__fscache_check_page_write(cookie, page)); in __fscache_wait_on_page_write() 54 bool release_page_wait_timeout(struct fscache_cookie *cookie, struct page *page) in release_page_wait_timeout() argument 56 wait_queue_head_t *wq = bit_waitqueue(&cookie->flags, 0); in release_page_wait_timeout() 58 return wait_event_timeout(*wq, !__fscache_check_page_write(cookie, page), in release_page_wait_timeout() [all …]
|
D | object.c | 306 struct fscache_cookie *cookie, in fscache_object_init() argument 329 object->cookie = cookie; in fscache_object_init() 330 fscache_cookie_get(cookie, fscache_cookie_get_attach_object); in fscache_object_init() 458 struct fscache_cookie *cookie = object->cookie; in fscache_look_up_object() local 481 cookie->def->name, object->cache->tag->name); in fscache_look_up_object() 516 struct fscache_cookie *cookie = object->cookie; in fscache_object_lookup_negative() local 526 set_bit(FSCACHE_COOKIE_NO_DATA_YET, &cookie->flags); in fscache_object_lookup_negative() 527 clear_bit(FSCACHE_COOKIE_UNAVAILABLE, &cookie->flags); in fscache_object_lookup_negative() 529 _debug("wake up lookup %p", &cookie->flags); in fscache_object_lookup_negative() 530 clear_bit_unlock(FSCACHE_COOKIE_LOOKING_UP, &cookie->flags); in fscache_object_lookup_negative() [all …]
|
D | netfs.c | 22 struct fscache_cookie *candidate, *cookie; in __fscache_register_netfs() local 40 cookie = fscache_hash_cookie(candidate); in __fscache_register_netfs() 41 if (!cookie) in __fscache_register_netfs() 43 if (cookie != candidate) { in __fscache_register_netfs() 48 fscache_cookie_get(cookie->parent, fscache_cookie_get_register_netfs); in __fscache_register_netfs() 49 atomic_inc(&cookie->parent->n_children); in __fscache_register_netfs() 51 netfs->primary_index = cookie; in __fscache_register_netfs()
|
D | internal.h | 323 static inline void fscache_cookie_get(struct fscache_cookie *cookie, in fscache_cookie_get() argument 326 int usage = atomic_inc_return(&cookie->usage); in fscache_cookie_get() 328 trace_fscache_cookie(cookie, where, usage); in fscache_cookie_get() 335 void *fscache_get_context(struct fscache_cookie *cookie, void *context) in fscache_get_context() argument 337 if (cookie->def->get_context) in fscache_get_context() 338 cookie->def->get_context(cookie->netfs_data, context); in fscache_get_context() 346 void fscache_put_context(struct fscache_cookie *cookie, void *context) in fscache_put_context() argument 348 if (cookie->def->put_context) in fscache_put_context() 349 cookie->def->put_context(cookie->netfs_data, context); in fscache_put_context() 356 void fscache_update_aux(struct fscache_cookie *cookie, const void *aux_data) in fscache_update_aux() argument [all …]
|
D | object-list.c | 168 struct fscache_cookie *cookie; in fscache_objlist_show() local 217 cookie = obj->cookie; in fscache_objlist_show() 219 FILTER(cookie->def, in fscache_objlist_show() 255 switch (cookie->type) { in fscache_objlist_show() 264 cookie->type); in fscache_objlist_show() 270 cookie->def->name, in fscache_objlist_show() 272 cookie->flags, in fscache_objlist_show() 273 cookie->netfs_data); in fscache_objlist_show() 276 keylen = cookie->key_len; in fscache_objlist_show() 279 auxlen = cookie->aux_len; in fscache_objlist_show() [all …]
|
/Linux-v4.19/include/linux/ |
D | fscache.h | 29 #define fscache_cookie_valid(cookie) (cookie) argument 32 #define fscache_cookie_valid(cookie) (0) argument 178 static inline bool fscache_cookie_enabled(struct fscache_cookie *cookie) in fscache_cookie_enabled() argument 180 return test_bit(FSCACHE_COOKIE_ENABLED, &cookie->flags); in fscache_cookie_enabled() 228 extern void __fscache_readpages_cancel(struct fscache_cookie *cookie, 362 void fscache_relinquish_cookie(struct fscache_cookie *cookie, in fscache_relinquish_cookie() argument 366 if (fscache_cookie_valid(cookie)) in fscache_relinquish_cookie() 367 __fscache_relinquish_cookie(cookie, aux_data, retire); in fscache_relinquish_cookie() 383 int fscache_check_consistency(struct fscache_cookie *cookie, in fscache_check_consistency() argument 386 if (fscache_cookie_valid(cookie) && fscache_cookie_enabled(cookie)) in fscache_check_consistency() [all …]
|
D | fscache-cache.h | 149 struct fscache_cookie *cookie; /* The netfs cookie */ member 236 struct fscache_cookie *cookie); 383 struct fscache_cookie *cookie; /* netfs's file/index object */ member 489 static inline void __fscache_use_cookie(struct fscache_cookie *cookie) in __fscache_use_cookie() argument 491 atomic_inc(&cookie->n_active); in __fscache_use_cookie() 503 struct fscache_cookie *cookie = object->cookie; in fscache_use_cookie() local 504 return atomic_inc_not_zero(&cookie->n_active) != 0; in fscache_use_cookie() 507 static inline bool __fscache_unuse_cookie(struct fscache_cookie *cookie) in __fscache_unuse_cookie() argument 509 return atomic_dec_and_test(&cookie->n_active); in __fscache_unuse_cookie() 512 static inline void __fscache_wake_unused_cookie(struct fscache_cookie *cookie) in __fscache_wake_unused_cookie() argument [all …]
|
D | vgaarb.h | 146 int vga_client_register(struct pci_dev *pdev, void *cookie, 147 void (*irq_set_state)(void *cookie, bool state), 148 unsigned int (*set_vga_decode)(void *cookie, bool state)); 150 static inline int vga_client_register(struct pci_dev *pdev, void *cookie, in vga_client_register() argument 151 void (*irq_set_state)(void *cookie, bool state), in vga_client_register() argument 152 unsigned int (*set_vga_decode)(void *cookie, bool state)) in vga_client_register() argument
|
/Linux-v4.19/include/trace/events/ |
D | fscache.h | 167 TP_PROTO(struct fscache_cookie *cookie, 171 TP_ARGS(cookie, where, usage), 174 __field(struct fscache_cookie *, cookie ) 184 __entry->cookie = cookie; 185 __entry->parent = cookie->parent; 188 __entry->n_children = atomic_read(&cookie->n_children); 189 __entry->n_active = atomic_read(&cookie->n_active); 190 __entry->flags = cookie->flags; 195 __entry->cookie, __entry->usage, 206 __field(struct fscache_cookie *, cookie ) [all …]
|
/Linux-v4.19/drivers/dma/ |
D | dmaengine.h | 18 chan->cookie = DMA_MIN_COOKIE; in dma_cookie_init() 32 dma_cookie_t cookie; in dma_cookie_assign() local 34 cookie = chan->cookie + 1; in dma_cookie_assign() 35 if (cookie < DMA_MIN_COOKIE) in dma_cookie_assign() 36 cookie = DMA_MIN_COOKIE; in dma_cookie_assign() 37 tx->cookie = chan->cookie = cookie; in dma_cookie_assign() 39 return cookie; in dma_cookie_assign() 54 BUG_ON(tx->cookie < DMA_MIN_COOKIE); in dma_cookie_complete() 55 tx->chan->completed_cookie = tx->cookie; in dma_cookie_complete() 56 tx->cookie = 0; in dma_cookie_complete() [all …]
|
/Linux-v4.19/drivers/iommu/ |
D | dma-iommu.c | 60 static inline size_t cookie_msi_granule(struct iommu_dma_cookie *cookie) in cookie_msi_granule() argument 62 if (cookie->type == IOMMU_DMA_IOVA_COOKIE) in cookie_msi_granule() 63 return cookie->iovad.granule; in cookie_msi_granule() 69 struct iommu_dma_cookie *cookie; in cookie_alloc() local 71 cookie = kzalloc(sizeof(*cookie), GFP_KERNEL); in cookie_alloc() 72 if (cookie) { in cookie_alloc() 73 spin_lock_init(&cookie->msi_lock); in cookie_alloc() 74 INIT_LIST_HEAD(&cookie->msi_page_list); in cookie_alloc() 75 cookie->type = type; in cookie_alloc() 77 return cookie; in cookie_alloc() [all …]
|
D | io-pgtable.h | 31 void (*tlb_flush_all)(void *cookie); 33 bool leaf, void *cookie); 34 void (*tlb_sync)(void *cookie); 140 void *cookie); 167 void *cookie; member 176 iop->cfg.tlb->tlb_flush_all(iop->cookie); in io_pgtable_tlb_flush_all() 182 iop->cfg.tlb->tlb_add_flush(iova, size, granule, leaf, iop->cookie); in io_pgtable_tlb_add_flush() 187 iop->cfg.tlb->tlb_sync(iop->cookie); in io_pgtable_tlb_sync() 198 struct io_pgtable *(*alloc)(struct io_pgtable_cfg *cfg, void *cookie);
|
/Linux-v4.19/drivers/oprofile/ |
D | buffer_sync.c | 213 unsigned long cookie; in fast_get_dcookie() local 217 get_dcookie(path, &cookie); in fast_get_dcookie() 218 return cookie; in fast_get_dcookie() 229 unsigned long cookie = NO_COOKIE; in get_exec_dcookie() local 239 cookie = fast_get_dcookie(&exe_file->f_path); in get_exec_dcookie() 242 return cookie; in get_exec_dcookie() 256 unsigned long cookie = NO_COOKIE; in lookup_dcookie() local 266 cookie = fast_get_dcookie(&vma->vm_file->f_path); in lookup_dcookie() 278 cookie = INVALID_COOKIE; in lookup_dcookie() 281 return cookie; in lookup_dcookie() [all …]
|
/Linux-v4.19/arch/unicore32/include/asm/ |
D | io.h | 37 #define ioremap(cookie, size) __uc32_ioremap(cookie, size) argument 38 #define ioremap_cached(cookie, size) __uc32_ioremap_cached(cookie, size) argument 39 #define ioremap_nocache(cookie, size) __uc32_ioremap(cookie, size) argument 40 #define iounmap(cookie) __uc32_iounmap(cookie) argument
|
/Linux-v4.19/fs/ocfs2/dlm/ |
D | dlmast.c | 106 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in __dlm_queue_ast() 107 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie)), in __dlm_queue_ast() 114 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in __dlm_queue_ast() 115 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie))); in __dlm_queue_ast() 125 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in __dlm_queue_ast() 126 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie))); in __dlm_queue_ast() 172 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in __dlm_queue_bast() 173 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie))); in __dlm_queue_bast() 230 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in dlm_do_local_ast() 231 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie))); in dlm_do_local_ast() [all …]
|
/Linux-v4.19/fs/afs/ |
D | dir.c | 495 struct afs_lookup_one_cookie *cookie = in afs_lookup_one_filldir() local 499 cookie->name.name, cookie->name.len, name, nlen, in afs_lookup_one_filldir() 506 if (cookie->name.len != nlen || in afs_lookup_one_filldir() 507 memcmp(cookie->name.name, name, nlen) != 0) { in afs_lookup_one_filldir() 512 cookie->fid.vnode = ino; in afs_lookup_one_filldir() 513 cookie->fid.unique = dtype; in afs_lookup_one_filldir() 514 cookie->found = 1; in afs_lookup_one_filldir() 528 struct afs_lookup_one_cookie cookie = { in afs_do_lookup_one() local 538 ret = afs_dir_iterate(dir, &cookie.ctx, key); in afs_do_lookup_one() 545 if (!cookie.found) { in afs_do_lookup_one() [all …]
|
/Linux-v4.19/drivers/media/platform/qcom/venus/ |
D | hfi_cmds.h | 269 u32 addr, void *cookie); 271 u32 size, void *cookie); 275 void pkt_sys_ping(struct hfi_sys_ping_pkt *pkt, u32 cookie); 278 int pkt_session_init(struct hfi_session_init_pkt *pkt, void *cookie, 280 void pkt_session_cmd(struct hfi_session_pkt *pkt, u32 pkt_type, void *cookie); 282 void *cookie, struct hfi_buffer_desc *bd); 284 void *cookie, struct hfi_buffer_desc *bd); 286 void *cookie, struct hfi_frame_data *input_frame); 289 void *cookie, struct hfi_frame_data *input_frame); 291 void *cookie, struct hfi_frame_data *output_frame); [all …]
|
D | hfi_cmds.c | 70 u32 addr, void *cookie) in pkt_sys_set_resource() argument 74 pkt->resource_handle = hash32_ptr(cookie); in pkt_sys_set_resource() 97 u32 size, void *cookie) in pkt_sys_unset_resource() argument 101 pkt->resource_handle = hash32_ptr(cookie); in pkt_sys_unset_resource() 117 void pkt_sys_ping(struct hfi_sys_ping_pkt *pkt, u32 cookie) in pkt_sys_ping() argument 121 pkt->client_data = cookie; in pkt_sys_ping() 161 int pkt_session_init(struct hfi_session_init_pkt *pkt, void *cookie, in pkt_session_init() argument 164 if (!pkt || !cookie || !codec) in pkt_session_init() 169 pkt->shdr.session_id = hash32_ptr(cookie); in pkt_session_init() 176 void pkt_session_cmd(struct hfi_session_pkt *pkt, u32 pkt_type, void *cookie) in pkt_session_cmd() argument [all …]
|
/Linux-v4.19/arch/arm/mach-iop13xx/ |
D | io.c | 26 static void __iomem *__iop13xx_ioremap_caller(phys_addr_t cookie, in __iop13xx_ioremap_caller() argument 31 switch (cookie) { in __iop13xx_ioremap_caller() 37 (cookie - IOP13XX_PCIX_LOWER_MEM_RA)); in __iop13xx_ioremap_caller() 44 (cookie - IOP13XX_PCIE_LOWER_MEM_RA)); in __iop13xx_ioremap_caller() 48 (cookie - IOP13XX_PBI_LOWER_MEM_RA), in __iop13xx_ioremap_caller() 52 retval = IOP13XX_PMMR_PHYS_TO_VIRT(cookie); in __iop13xx_ioremap_caller() 55 retval = __arm_ioremap_caller(cookie, size, mtype, in __iop13xx_ioremap_caller()
|
/Linux-v4.19/drivers/infiniband/core/ |
D | roce_gid_mgmt.c | 148 struct net_device *rdma_ndev, void *cookie) in is_eth_port_of_netdev_filter() argument 157 real_dev = rdma_vlan_dev_real_dev(cookie); in is_eth_port_of_netdev_filter() 159 real_dev = cookie; in is_eth_port_of_netdev_filter() 161 res = ((rdma_is_upper_dev_rcu(rdma_ndev, cookie) && in is_eth_port_of_netdev_filter() 172 struct net_device *rdma_ndev, void *cookie) in is_eth_port_inactive_slave_filter() argument 201 struct net_device *rdma_ndev, void *cookie) in is_ndev_for_default_gid_filter() argument 203 struct net_device *cookie_ndev = cookie; in is_ndev_for_default_gid_filter() 227 struct net_device *rdma_ndev, void *cookie) in pass_all_filter() argument 233 struct net_device *rdma_ndev, void *cookie) in upper_device_filter() argument 240 if (rdma_ndev == cookie) in upper_device_filter() [all …]
|
/Linux-v4.19/net/sctp/ |
D | Kconfig | 51 prompt "Default SCTP cookie HMAC encoding" 54 This option sets the default sctp cookie hmac algorithm 58 bool "Enable optional MD5 hmac cookie generation" 60 Enable optional MD5 hmac based SCTP cookie generation 64 bool "Enable optional SHA1 hmac cookie generation" 66 Enable optional SHA1 hmac based SCTP cookie generation 70 bool "Use no hmac alg in SCTP cookie generation" 72 Use no hmac algorithm in SCTP cookie generation 77 bool "Enable optional MD5 hmac cookie generation" 79 Enable optional MD5 hmac based SCTP cookie generation [all …]
|
/Linux-v4.19/fs/cachefiles/ |
D | interface.c | 28 struct fscache_cookie *cookie) in cachefiles_alloc_object() argument 40 _enter("{%s},%p,", cache->cache.identifier, cookie); in cachefiles_alloc_object() 56 fscache_object_init(&object->fscache, cookie, &cache->cache); in cachefiles_alloc_object() 58 object->type = cookie->def->type; in cachefiles_alloc_object() 68 keylen = cookie->key_len; in cachefiles_alloc_object() 69 if (keylen <= sizeof(cookie->inline_key)) in cachefiles_alloc_object() 70 p = cookie->inline_key; in cachefiles_alloc_object() 72 p = cookie->key; in cachefiles_alloc_object() 87 auxlen = cookie->aux_len; in cachefiles_alloc_object() 89 if (auxlen <= sizeof(cookie->inline_aux)) in cachefiles_alloc_object() [all …]
|
/Linux-v4.19/drivers/infiniband/hw/bnxt_re/ |
D | roce_hsi.h | 960 __le16 cookie; member 972 __le16 cookie; member 1044 __le16 cookie; member 1058 __le16 cookie; member 1170 __le16 cookie; member 1184 __le16 cookie; member 1219 __le16 cookie; member 1233 __le16 cookie; member 1247 __le16 cookie; member 1282 __le16 cookie; member [all …]
|
/Linux-v4.19/drivers/dma/sh/ |
D | shdma-base.c | 79 dma_cookie_t cookie; in shdma_tx_submit() local 86 cookie = dma_cookie_assign(tx); in shdma_tx_submit() 95 chunk->async_tx.cookie > 0 || in shdma_tx_submit() 96 chunk->async_tx.cookie == -EBUSY || in shdma_tx_submit() 107 chunk->cookie = cookie; in shdma_tx_submit() 111 tx->cookie, &chunk->async_tx, schan->id); in shdma_tx_submit() 156 return cookie; in shdma_tx_submit() 331 dma_cookie_t cookie = 0; in __ld_cleanup() local 342 BUG_ON(tx->cookie > 0 && tx->cookie != desc->cookie); in __ld_cleanup() 353 desc->cookie != cookie) in __ld_cleanup() [all …]
|