Home
last modified time | relevance | path

Searched refs:cookie (Results 1 – 200 of 588) sorted by relevance

123

/linux-4.4.14/fs/fscache/
Dcookie.c24 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,
35 struct fscache_cookie *cookie = _cookie; in fscache_cookie_init_once() local
37 memset(cookie, 0, sizeof(*cookie)); in fscache_cookie_init_once()
38 spin_lock_init(&cookie->lock); in fscache_cookie_init_once()
39 spin_lock_init(&cookie->stores_lock); in fscache_cookie_init_once()
40 INIT_HLIST_HEAD(&cookie->backing_objects); in fscache_cookie_init_once()
64 struct fscache_cookie *cookie; in __fscache_acquire_cookie() local
89 cookie = kmem_cache_alloc(fscache_cookie_jar, GFP_KERNEL); in __fscache_acquire_cookie()
[all …]
Dpage.c23 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()
38 void __fscache_wait_on_page_write(struct fscache_cookie *cookie, struct page *page) in __fscache_wait_on_page_write() argument
40 wait_queue_head_t *wq = bit_waitqueue(&cookie->flags, 0); in __fscache_wait_on_page_write()
42 wait_event(*wq, !__fscache_check_page_write(cookie, page)); in __fscache_wait_on_page_write()
51 bool release_page_wait_timeout(struct fscache_cookie *cookie, struct page *page) in release_page_wait_timeout() argument
53 wait_queue_head_t *wq = bit_waitqueue(&cookie->flags, 0); in release_page_wait_timeout()
55 return wait_event_timeout(*wq, !__fscache_check_page_write(cookie, page), in release_page_wait_timeout()
63 bool __fscache_maybe_release_page(struct fscache_cookie *cookie, in __fscache_maybe_release_page() argument
70 _enter("%p,%p,%x", cookie, page, gfp); in __fscache_maybe_release_page()
[all …]
Dnetfs.c25 struct fscache_cookie *cookie; in __fscache_register_netfs() local
33 cookie = kmem_cache_zalloc(fscache_cookie_jar, GFP_KERNEL); in __fscache_register_netfs()
35 if (!cookie) { in __fscache_register_netfs()
41 atomic_set(&cookie->usage, 1); in __fscache_register_netfs()
42 atomic_set(&cookie->n_children, 0); in __fscache_register_netfs()
43 atomic_set(&cookie->n_active, 1); in __fscache_register_netfs()
45 cookie->def = &fscache_fsdef_netfs_def; in __fscache_register_netfs()
46 cookie->parent = &fscache_fsdef_index; in __fscache_register_netfs()
47 cookie->netfs_data = netfs; in __fscache_register_netfs()
48 cookie->flags = 1 << FSCACHE_COOKIE_ENABLED; in __fscache_register_netfs()
[all …]
Dobject.c292 struct fscache_cookie *cookie, in fscache_object_init() argument
315 object->cookie = cookie; in fscache_object_init()
443 struct fscache_cookie *cookie = object->cookie; in fscache_look_up_object() local
466 cookie->def->name, object->cache->tag->name); in fscache_look_up_object()
501 struct fscache_cookie *cookie = object->cookie; in fscache_object_lookup_negative() local
511 set_bit(FSCACHE_COOKIE_NO_DATA_YET, &cookie->flags); in fscache_object_lookup_negative()
512 clear_bit(FSCACHE_COOKIE_UNAVAILABLE, &cookie->flags); in fscache_object_lookup_negative()
514 _debug("wake up lookup %p", &cookie->flags); in fscache_object_lookup_negative()
515 clear_bit_unlock(FSCACHE_COOKIE_LOOKING_UP, &cookie->flags); in fscache_object_lookup_negative()
516 wake_up_bit(&cookie->flags, FSCACHE_COOKIE_LOOKING_UP); in fscache_object_lookup_negative()
[all …]
Dobject-list.c170 struct fscache_cookie *cookie; in fscache_objlist_show() local
219 cookie = obj->cookie; in fscache_objlist_show()
221 FILTER(cookie->def, in fscache_objlist_show()
257 switch (cookie->def->type) { in fscache_objlist_show()
265 sprintf(_type, "%02u", cookie->def->type); in fscache_objlist_show()
271 cookie->def->name, in fscache_objlist_show()
273 cookie->flags, in fscache_objlist_show()
274 cookie->netfs_data); in fscache_objlist_show()
276 if (cookie->def->get_key && in fscache_objlist_show()
278 keylen = cookie->def->get_key(cookie->netfs_data, in fscache_objlist_show()
[all …]
Dcache.c95 struct fscache_cookie *cookie) in fscache_select_cache_for_object() argument
109 spin_lock(&cookie->lock); in fscache_select_cache_for_object()
113 if (!hlist_empty(&cookie->backing_objects)) { in fscache_select_cache_for_object()
114 object = hlist_entry(cookie->backing_objects.first, in fscache_select_cache_for_object()
122 spin_unlock(&cookie->lock); in fscache_select_cache_for_object()
128 if (cookie->def->type != FSCACHE_COOKIE_TYPE_INDEX) { in fscache_select_cache_for_object()
130 spin_unlock(&cookie->lock); in fscache_select_cache_for_object()
135 spin_unlock(&cookie->lock); in fscache_select_cache_for_object()
137 if (!cookie->def->select_cache) in fscache_select_cache_for_object()
141 tag = cookie->def->select_cache(cookie->parent->netfs_data, in fscache_select_cache_for_object()
[all …]
Dinternal.h319 static inline void fscache_cookie_put(struct fscache_cookie *cookie) in fscache_cookie_put() argument
321 BUG_ON(atomic_read(&cookie->usage) <= 0); in fscache_cookie_put()
322 if (atomic_dec_and_test(&cookie->usage)) in fscache_cookie_put()
323 __fscache_cookie_put(cookie); in fscache_cookie_put()
330 void *fscache_get_context(struct fscache_cookie *cookie, void *context) in fscache_get_context() argument
332 if (cookie->def->get_context) in fscache_get_context()
333 cookie->def->get_context(cookie->netfs_data, context); in fscache_get_context()
341 void fscache_put_context(struct fscache_cookie *cookie, void *context) in fscache_put_context() argument
343 if (cookie->def->put_context) in fscache_put_context()
344 cookie->def->put_context(cookie->netfs_data, context); in fscache_put_context()
DMakefile7 cookie.o \
/linux-4.4.14/include/linux/
Dfscache.h28 #define fscache_cookie_valid(cookie) (cookie) argument
31 #define fscache_cookie_valid(cookie) (0) argument
200 static inline bool fscache_cookie_enabled(struct fscache_cookie *cookie) in fscache_cookie_enabled() argument
202 return test_bit(FSCACHE_COOKIE_ENABLED, &cookie->flags); in fscache_cookie_enabled()
248 extern void __fscache_readpages_cancel(struct fscache_cookie *cookie,
367 void fscache_relinquish_cookie(struct fscache_cookie *cookie, bool retire) in fscache_relinquish_cookie() argument
369 if (fscache_cookie_valid(cookie)) in fscache_relinquish_cookie()
370 __fscache_relinquish_cookie(cookie, retire); in fscache_relinquish_cookie()
384 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 …]
Dfscache-cache.h136 struct fscache_cookie *cookie; /* The netfs cookie */ member
223 struct fscache_cookie *cookie);
367 struct fscache_cookie *cookie; /* netfs's file/index object */ member
473 static inline void __fscache_use_cookie(struct fscache_cookie *cookie) in __fscache_use_cookie() argument
475 atomic_inc(&cookie->n_active); in __fscache_use_cookie()
487 struct fscache_cookie *cookie = object->cookie; in fscache_use_cookie() local
488 return atomic_inc_not_zero(&cookie->n_active) != 0; in fscache_use_cookie()
491 static inline bool __fscache_unuse_cookie(struct fscache_cookie *cookie) in __fscache_unuse_cookie() argument
493 return atomic_dec_and_test(&cookie->n_active); in __fscache_unuse_cookie()
496 static inline void __fscache_wake_unused_cookie(struct fscache_cookie *cookie) in __fscache_wake_unused_cookie() argument
[all …]
Dvgaarb.h242 int vga_client_register(struct pci_dev *pdev, void *cookie,
243 void (*irq_set_state)(void *cookie, bool state),
244 unsigned int (*set_vga_decode)(void *cookie, bool state));
246 static inline int vga_client_register(struct pci_dev *pdev, void *cookie, in vga_client_register() argument
247 void (*irq_set_state)(void *cookie, bool state), in vga_client_register() argument
248 unsigned int (*set_vga_decode)(void *cookie, bool state)) in vga_client_register() argument
Dblk_types.h251 static inline bool blk_qc_t_valid(blk_qc_t cookie) in blk_qc_t_valid() argument
253 return cookie != BLK_QC_T_NONE; in blk_qc_t_valid()
261 static inline unsigned int blk_qc_t_to_queue_num(blk_qc_t cookie) in blk_qc_t_to_queue_num() argument
263 return cookie >> BLK_QC_T_SHIFT; in blk_qc_t_to_queue_num()
266 static inline unsigned int blk_qc_t_to_tag(blk_qc_t cookie) in blk_qc_t_to_tag() argument
268 return cookie & ((1u << BLK_QC_T_SHIFT) - 1); in blk_qc_t_to_tag()
Dasync.h19 typedef void (*async_func_t) (void *data, async_cookie_t cookie);
46 extern void async_synchronize_cookie(async_cookie_t cookie);
47 extern void async_synchronize_cookie_domain(async_cookie_t cookie,
Ddmaengine.h37 static inline int dma_submit_error(dma_cookie_t cookie) in dma_submit_error() argument
39 return cookie < 0 ? cookie : 0; in dma_submit_error()
264 dma_cookie_t cookie; member
472 dma_cookie_t cookie; member
742 dma_cookie_t cookie,
856 dma_cookie_t cookie, struct dma_tx_state *state) in dmaengine_tx_status() argument
858 return chan->device->device_tx_status(chan, cookie, state); in dmaengine_tx_status()
1091 dma_cookie_t cookie, dma_cookie_t *last, dma_cookie_t *used) in dma_async_is_tx_complete() argument
1096 status = chan->device->device_tx_status(chan, cookie, &state); in dma_async_is_tx_complete()
1113 static inline enum dma_status dma_async_is_complete(dma_cookie_t cookie, in dma_async_is_complete() argument
[all …]
Ddcookies.h47 int get_dcookie(struct path *path, unsigned long *cookie);
61 static inline int get_dcookie(struct path *path, unsigned long *cookie) in get_dcookie() argument
Dsock_diag.h26 int sock_diag_check_cookie(struct sock *sk, const __u32 *cookie);
27 void sock_diag_save_cookie(struct sock *sk, __u32 *cookie);
Dfsnotify_backend.h100 const unsigned char *file_name, u32 cookie);
250 const unsigned char *name, u32 cookie);
380 const unsigned char *name, u32 cookie) in fsnotify() argument
/linux-4.4.14/drivers/dma/
Ddmaengine.h17 chan->cookie = DMA_MIN_COOKIE; in dma_cookie_init()
31 dma_cookie_t cookie; in dma_cookie_assign() local
33 cookie = chan->cookie + 1; in dma_cookie_assign()
34 if (cookie < DMA_MIN_COOKIE) in dma_cookie_assign()
35 cookie = DMA_MIN_COOKIE; in dma_cookie_assign()
36 tx->cookie = chan->cookie = cookie; in dma_cookie_assign()
38 return cookie; in dma_cookie_assign()
53 BUG_ON(tx->cookie < DMA_MIN_COOKIE); in dma_cookie_complete()
54 tx->chan->completed_cookie = tx->cookie; in dma_cookie_complete()
55 tx->cookie = 0; in dma_cookie_complete()
[all …]
Diop-adma.c62 struct iop_adma_chan *iop_chan, dma_cookie_t cookie) in iop_adma_run_tx_complete_actions() argument
66 BUG_ON(tx->cookie < 0); in iop_adma_run_tx_complete_actions()
67 if (tx->cookie > 0) { in iop_adma_run_tx_complete_actions()
68 cookie = tx->cookie; in iop_adma_run_tx_complete_actions()
69 tx->cookie = 0; in iop_adma_run_tx_complete_actions()
85 return cookie; in iop_adma_run_tx_complete_actions()
117 dma_cookie_t cookie = 0; in __iop_adma_slot_cleanup() local
130 iter->async_tx.cookie, iter->idx, busy, in __iop_adma_slot_cleanup()
202 cookie = iop_adma_run_tx_complete_actions( in __iop_adma_slot_cleanup()
203 grp_iter, iop_chan, cookie); in __iop_adma_slot_cleanup()
[all …]
Dvirt-dma.c27 dma_cookie_t cookie; in vchan_tx_submit() local
30 cookie = dma_cookie_assign(tx); in vchan_tx_submit()
36 vc, vd, cookie); in vchan_tx_submit()
38 return cookie; in vchan_tx_submit()
43 dma_cookie_t cookie) in vchan_find_desc() argument
48 if (vd->tx.cookie == cookie) in vchan_find_desc()
Dmv_xor.c232 dma_cookie_t cookie) in mv_desc_run_tx_complete_actions() argument
234 BUG_ON(desc->async_tx.cookie < 0); in mv_desc_run_tx_complete_actions()
236 if (desc->async_tx.cookie > 0) { in mv_desc_run_tx_complete_actions()
237 cookie = desc->async_tx.cookie; in mv_desc_run_tx_complete_actions()
252 return cookie; in mv_desc_run_tx_complete_actions()
293 dma_cookie_t cookie = 0; in mv_chan_slot_cleanup() local
313 cookie = mv_desc_run_tx_complete_actions(iter, mv_chan, in mv_chan_slot_cleanup()
314 cookie); in mv_chan_slot_cleanup()
362 if (cookie > 0) in mv_chan_slot_cleanup()
363 mv_chan->dmachan.completed_cookie = cookie; in mv_chan_slot_cleanup()
[all …]
Dvirt-dma.h87 dma_cookie_t cookie; in vchan_cookie_complete() local
89 cookie = vd->tx.cookie; in vchan_cookie_complete()
92 vd, cookie); in vchan_cookie_complete()
Dmic_x100_dma.c105 if (tx->cookie) { in mic_dma_cleanup()
254 dma_cookie_t cookie; in mic_dma_tx_submit_unlock() local
257 cookie = tx->cookie; in mic_dma_tx_submit_unlock()
267 return cookie; in mic_dma_tx_submit_unlock()
349 mic_dma_tx_status(struct dma_chan *ch, dma_cookie_t cookie, in mic_dma_tx_status() argument
354 if (DMA_COMPLETE != dma_cookie_status(ch, cookie, txstate)) in mic_dma_tx_status()
357 return dma_cookie_status(ch, cookie, txstate); in mic_dma_tx_status()
481 ch->cookie = in mic_dma_setup_irq()
485 if (IS_ERR(ch->cookie)) in mic_dma_setup_irq()
486 return IS_ERR(ch->cookie); in mic_dma_setup_irq()
[all …]
Dfsldma.c413 dma_cookie_t cookie = -EINVAL; in fsl_dma_tx_submit() local
430 cookie = dma_cookie_assign(&child->async_tx); in fsl_dma_tx_submit()
438 return cookie; in fsl_dma_tx_submit()
510 struct fsl_desc_sw *desc, dma_cookie_t cookie) in fsldma_run_tx_complete_actions() argument
513 dma_cookie_t ret = cookie; in fsldma_run_tx_complete_actions()
515 BUG_ON(txd->cookie < 0); in fsldma_run_tx_complete_actions()
517 if (txd->cookie > 0) { in fsldma_run_tx_complete_actions()
518 ret = txd->cookie; in fsldma_run_tx_complete_actions()
643 dma_cookie_t cookie = 0; in fsldma_cleanup_descriptors() local
669 cookie = fsldma_run_tx_complete_actions(chan, desc, cookie); in fsldma_cleanup_descriptors()
[all …]
Dmmp_pdma.c345 dma_cookie_t cookie = -EBUSY; in mmp_pdma_tx_submit() local
350 cookie = dma_cookie_assign(&child->async_tx); in mmp_pdma_tx_submit()
358 return cookie; in mmp_pdma_tx_submit()
488 new->async_tx.cookie = 0; in mmp_pdma_prep_memcpy()
508 first->async_tx.cookie = -EBUSY; in mmp_pdma_prep_memcpy()
571 new->async_tx.cookie = 0; in mmp_pdma_prep_slave_sg()
584 first->async_tx.cookie = -EBUSY; in mmp_pdma_prep_slave_sg()
658 new->async_tx.cookie = 0; in mmp_pdma_prep_dma_cyclic()
674 first->async_tx.cookie = -EBUSY; in mmp_pdma_prep_dma_cyclic()
756 dma_cookie_t cookie) in mmp_pdma_residue() argument
[all …]
Dat_hdmac.c267 dma_cookie_t cookie) in atc_get_desc_by_cookie() argument
272 if (desc->txd.cookie == cookie) in atc_get_desc_by_cookie()
277 if (desc->txd.cookie == cookie) in atc_get_desc_by_cookie()
310 static int atc_get_bytes_left(struct dma_chan *chan, dma_cookie_t cookie) in atc_get_bytes_left() argument
323 desc = atc_get_desc_by_cookie(atchan, cookie); in atc_get_bytes_left()
454 "descriptor %u complete\n", txd->cookie); in atc_chain_complete()
582 " cookie: %d\n", bad_desc->txd.cookie); in atc_handle_error()
685 dma_cookie_t cookie; in atc_tx_submit() local
689 cookie = dma_cookie_assign(tx); in atc_tx_submit()
693 desc->txd.cookie); in atc_tx_submit()
[all …]
Dtimb_dma.c243 txd->cookie); in __td_finish()
299 __func__, td_desc->txd.cookie); in __td_start_next()
311 dma_cookie_t cookie; in td_tx_submit() local
314 cookie = dma_cookie_assign(txd); in td_tx_submit()
318 txd->cookie); in td_tx_submit()
323 txd->cookie); in td_tx_submit()
330 return cookie; in td_tx_submit()
471 static enum dma_status td_tx_status(struct dma_chan *chan, dma_cookie_t cookie, in td_tx_status() argument
478 ret = dma_cookie_status(chan, cookie, txstate); in td_tx_status()
Dnbpfaxi.c596 dma_cookie_t cookie, struct dma_tx_state *state) in nbpf_tx_status() argument
599 enum dma_status status = dma_cookie_status(dchan, cookie, state); in nbpf_tx_status()
606 running = chan->running ? chan->running->async_tx.cookie : -EINVAL; in nbpf_tx_status()
608 if (cookie == running) { in nbpf_tx_status()
617 if (desc->async_tx.cookie == cookie) { in nbpf_tx_status()
624 if (desc->async_tx.cookie == cookie) { in nbpf_tx_status()
647 dma_cookie_t cookie; in nbpf_tx_submit() local
650 cookie = dma_cookie_assign(tx); in nbpf_tx_submit()
654 dev_dbg(chan->dma_chan.device->dev, "Entry %s(%d)\n", __func__, cookie); in nbpf_tx_submit()
656 return cookie; in nbpf_tx_submit()
[all …]
Dep93xx_dma.c300 return !desc->txd.cookie; in ep93xx_dma_advance_active()
420 desc->txd.cookie, desc->src_addr, desc->dst_addr, in m2p_hw_interrupt()
609 last_done = !desc || desc->txd.cookie; in m2m_hw_interrupt()
681 desc->txd.cookie = 0; in ep93xx_dma_desc_get()
825 dma_cookie_t cookie; in ep93xx_dma_tx_submit() local
829 cookie = dma_cookie_assign(tx); in ep93xx_dma_tx_submit()
846 return cookie; in ep93xx_dma_tx_submit()
1004 first->txd.cookie = -EBUSY; in ep93xx_dma_prep_dma_memcpy()
1077 first->txd.cookie = -EBUSY; in ep93xx_dma_prep_slave_sg()
1156 first->txd.cookie = -EBUSY; in ep93xx_dma_prep_dma_cyclic()
[all …]
Dpxa_dma.c680 __func__, vd, vd->tx.cookie, is_desc_completed(vd)); in pxad_chan_handler()
830 dma_cookie_t cookie; in pxad_tx_submit() local
836 cookie = dma_cookie_assign(tx); in pxad_tx_submit()
842 __func__, vd, cookie); in pxad_tx_submit()
865 __func__, vd, cookie, vd_chained ? "cold" : "not"); in pxad_tx_submit()
871 return cookie; in pxad_tx_submit()
887 "%s(): txd %p[%x]", __func__, vd_first, vd_first->tx.cookie); in pxad_issue_pending()
908 vc, vd, vd->tx.cookie, in pxad_tx_prep()
1151 vd, vd->tx.cookie, is_desc_completed(vd)); in pxad_terminate_all()
1170 dma_cookie_t cookie) in pxad_residue() argument
[all …]
Dxgene-dma.c517 dma_cookie_t cookie; in xgene_dma_tx_submit() local
527 cookie = dma_cookie_assign(tx); in xgene_dma_tx_submit()
534 return cookie; in xgene_dma_tx_submit()
605 if (tx->cookie == 0) in xgene_dma_run_tx_complete_actions()
946 new->tx.cookie = 0; in xgene_dma_prep_sg()
992 new->tx.cookie = -EBUSY; in xgene_dma_prep_sg()
1031 new->tx.cookie = 0; in xgene_dma_prep_xor()
1039 new->tx.cookie = -EBUSY; in xgene_dma_prep_xor()
1089 new->tx.cookie = 0; in xgene_dma_prep_pq()
1116 new->tx.cookie = -EBUSY; in xgene_dma_prep_pq()
[all …]
Dmoxart-dma.c477 dma_cookie_t cookie, in moxart_tx_status() argument
489 ret = dma_cookie_status(chan, cookie, txstate); in moxart_tx_status()
492 vd = vchan_find_desc(&ch->vc, cookie); in moxart_tx_status()
496 } else if (ch->desc && ch->desc->vd.tx.cookie == cookie) { in moxart_tx_status()
Ddma-jz4740.c468 dma_cookie_t cookie, struct dma_tx_state *state) in jz4740_dma_tx_status() argument
475 status = dma_cookie_status(c, cookie, state); in jz4740_dma_tx_status()
480 vdesc = vchan_find_desc(&chan->vchan, cookie); in jz4740_dma_tx_status()
481 if (cookie == chan->desc->vdesc.tx.cookie) { in jz4740_dma_tx_status()
Dbcm2835-dma.c300 dma_cookie_t cookie, struct dma_tx_state *txstate) in bcm2835_dma_tx_status() argument
307 ret = dma_cookie_status(chan, cookie, txstate); in bcm2835_dma_tx_status()
312 vd = vchan_find_desc(&c->vc, cookie); in bcm2835_dma_tx_status()
316 } else if (c->desc && c->desc->vd.tx.cookie == cookie) { in bcm2835_dma_tx_status()
Dtxx9dmac.c341 first->txd.cookie, first); in txx9dmac_dostart()
411 txd->cookie, desc); in txx9dmac_descriptor_complete()
535 bad_desc->txd.cookie); in txx9dmac_handle_error()
701 dma_cookie_t cookie; in txx9dmac_tx_submit() local
704 cookie = dma_cookie_assign(tx); in txx9dmac_tx_submit()
707 desc->txd.cookie, desc); in txx9dmac_tx_submit()
712 return cookie; in txx9dmac_tx_submit()
929 txx9dmac_tx_status(struct dma_chan *chan, dma_cookie_t cookie, in txx9dmac_tx_status() argument
935 ret = dma_cookie_status(chan, cookie, txstate); in txx9dmac_tx_status()
943 return dma_cookie_status(chan, cookie, txstate); in txx9dmac_tx_status()
/linux-4.4.14/drivers/oprofile/
Dbuffer_sync.c211 unsigned long cookie; in fast_get_dcookie() local
215 get_dcookie(path, &cookie); in fast_get_dcookie()
216 return cookie; in fast_get_dcookie()
227 unsigned long cookie = NO_COOKIE; in get_exec_dcookie() local
237 cookie = fast_get_dcookie(&exe_file->f_path); in get_exec_dcookie()
240 return cookie; in get_exec_dcookie()
254 unsigned long cookie = NO_COOKIE; in lookup_dcookie() local
264 cookie = fast_get_dcookie(&vma->vm_file->f_path); in lookup_dcookie()
276 cookie = INVALID_COOKIE; in lookup_dcookie()
279 return cookie; in lookup_dcookie()
[all …]
/linux-4.4.14/arch/unicore32/include/asm/
Dio.h37 #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-4.4.14/fs/ocfs2/dlm/
Ddlmast.c106 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()
231 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in dlm_do_local_ast()
232 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie))); in dlm_do_local_ast()
[all …]
Ddlmconvert.c285 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in dlmconvert_remote()
286 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie)), in dlmconvert_remote()
297 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in dlmconvert_remote()
298 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie)), in dlmconvert_remote()
380 convert.cookie = lock->ml.cookie; in dlm_send_remote_convert_request()
494 if (tmp_lock->ml.cookie == cnv->cookie && in dlm_convert_lock_handler()
506 dlm_get_lock_cookie_node(be64_to_cpu(cnv->cookie)), in dlm_convert_lock_handler()
507 dlm_get_lock_cookie_seq(be64_to_cpu(cnv->cookie))); in dlm_convert_lock_handler()
Ddlmlock.c64 u8 node, u64 cookie);
312 create.cookie = lock->ml.cookie; in dlm_send_remote_lock_request()
395 u8 node, u64 cookie) in dlm_init_lock() argument
411 newlock->ml.cookie = cpu_to_be64(cookie); in dlm_init_lock()
423 struct dlm_lock * dlm_new_lock(int type, u8 node, u64 cookie, in dlm_new_lock() argument
443 dlm_init_lock(lock, type, node, cookie); in dlm_new_lock()
495 be64_to_cpu(create->cookie), NULL); in dlm_create_lock_handler()
542 static inline void dlm_get_next_cookie(u8 node_num, u64 *cookie) in dlm_get_next_cookie() argument
550 *cookie = (dlm_next_cookie | tmpnode); in dlm_get_next_cookie()
Ddlmunlock.c252 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in dlmunlock_common()
253 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie)), in dlmunlock_common()
338 unlock.cookie = lock->ml.cookie; in dlm_send_remote_unlock_request()
467 if (lock->ml.cookie == unlock->cookie && in dlm_unlock_lock_handler()
513 dlm_get_lock_cookie_node(be64_to_cpu(unlock->cookie)), in dlm_unlock_lock_handler()
514 dlm_get_lock_cookie_seq(be64_to_cpu(unlock->cookie))); in dlm_unlock_lock_handler()
Ddlmcommon.h340 __be64 cookie; member
605 __be64 cookie; member
618 __be64 cookie; member
634 __be64 cookie; member
649 __be64 cookie; member
813 static inline u8 dlm_get_lock_cookie_node(u64 cookie) in dlm_get_lock_cookie_node() argument
816 cookie >>= 56; in dlm_get_lock_cookie_node()
817 ret = (u8)(cookie & 0xffULL); in dlm_get_lock_cookie_node()
821 static inline unsigned long long dlm_get_lock_cookie_seq(u64 cookie) in dlm_get_lock_cookie_seq() argument
824 ret = ((unsigned long long)cookie) & 0x00ffffffffffffffULL; in dlm_get_lock_cookie_seq()
[all …]
Ddlmthread.c370 dlm_get_lock_cookie_node(be64_to_cpu(target->ml.cookie)), in dlm_shuffle_lists()
371 dlm_get_lock_cookie_seq(be64_to_cpu(target->ml.cookie)), in dlm_shuffle_lists()
432 dlm_get_lock_cookie_node(be64_to_cpu(target->ml.cookie)), in dlm_shuffle_lists()
433 dlm_get_lock_cookie_seq(be64_to_cpu(target->ml.cookie)), in dlm_shuffle_lists()
544 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in dlm_flush_asts()
545 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie)), in dlm_flush_asts()
603 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in dlm_flush_asts()
604 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie)), in dlm_flush_asts()
Ddlmrecovery.c70 int total_locks, u64 cookie,
1176 int total_locks, u64 cookie, in dlm_init_migratable_lockres() argument
1185 mres->mig_cookie = cpu_to_be64(cookie); in dlm_init_migratable_lockres()
1216 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in dlm_prepare_lvb_for_migration()
1217 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie)), in dlm_prepare_lvb_for_migration()
1233 ml->cookie = lock->ml.cookie; in dlm_add_lock_to_array()
1255 dummy.ml.cookie = 0; in dlm_add_dummy_lock()
1268 if (unlikely(ml->cookie == 0 && in dlm_is_dummy_lock()
1831 if (lock->ml.cookie == ml->cookie) in dlm_process_recovery_data()
1842 c = ml->cookie; in dlm_process_recovery_data()
[all …]
/linux-4.4.14/arch/arm/mach-iop13xx/
Dio.c26 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-4.4.14/fs/nfs/
Dfscache.c199 struct fscache_cookie *cookie = nfs_i_fscache(inode); in nfs_fscache_clear_inode() local
201 dfprintk(FSCACHE, "NFS: clear cookie (0x%p/0x%p)\n", nfsi, cookie); in nfs_fscache_clear_inode()
203 fscache_relinquish_cookie(cookie, false); in nfs_fscache_clear_inode()
236 struct fscache_cookie *cookie = nfs_i_fscache(inode); in nfs_fscache_open_file() local
238 if (!fscache_cookie_valid(cookie)) in nfs_fscache_open_file()
244 fscache_disable_cookie(cookie, true); in nfs_fscache_open_file()
245 fscache_uncache_all_inode_pages(cookie, inode); in nfs_fscache_open_file()
248 fscache_enable_cookie(cookie, nfs_fscache_can_enable, inode); in nfs_fscache_open_file()
249 if (fscache_cookie_enabled(cookie)) in nfs_fscache_open_file()
263 struct fscache_cookie *cookie = nfs_i_fscache(page->mapping->host); in nfs_fscache_release_page() local
[all …]
Dsymlink.c45 static const char *nfs_follow_link(struct dentry *dentry, void **cookie) in nfs_follow_link() argument
58 *cookie = page; in nfs_follow_link()
/linux-4.4.14/fs/cachefiles/
Dinterface.c28 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->def->get_key(cookie->netfs_data, buffer + 2, 512); in cachefiles_alloc_object()
84 if (cookie->def->get_aux) { in cachefiles_alloc_object()
85 auxlen = cookie->def->get_aux(cookie->netfs_data, in cachefiles_alloc_object()
91 auxdata->type = cookie->def->type; in cachefiles_alloc_object()
144 object->fscache.cookie->def->type != FSCACHE_COOKIE_TYPE_INDEX) in cachefiles_lookup_object()
203 struct fscache_cookie *cookie; in cachefiles_update_object() local
[all …]
Dxattr.c38 if (!object->fscache.cookie) in cachefiles_check_object_type()
41 snprintf(type, 3, "%02x", object->fscache.cookie->def->type); in cachefiles_check_object_type()
169 ASSERT(object->fscache.cookie->def->check_aux); in cachefiles_check_auxdata()
179 auxbuf->type != object->fscache.cookie->def->type) in cachefiles_check_auxdata()
242 if (object->fscache.cookie->def->check_aux) { in cachefiles_check_object_xattr()
249 object->fscache.cookie->def->name, dlen); in cachefiles_check_object_xattr()
Dnamei.c35 struct fscache_cookie *cookie; in __cachefiles_printk_object() local
50 cookie = object->fscache.cookie; in __cachefiles_printk_object()
51 if (cookie) { in __cachefiles_printk_object()
54 object->fscache.cookie, in __cachefiles_printk_object()
55 object->fscache.cookie->parent, in __cachefiles_printk_object()
56 object->fscache.cookie->netfs_data, in __cachefiles_printk_object()
57 object->fscache.cookie->flags); in __cachefiles_printk_object()
58 if (keybuf && cookie->def) in __cachefiles_printk_object()
59 keylen = cookie->def->get_key(cookie->netfs_data, keybuf, in __cachefiles_printk_object()
/linux-4.4.14/drivers/iommu/
Dio-pgtable.h28 void (*tlb_flush_all)(void *cookie);
30 void *cookie);
31 void (*tlb_sync)(void *cookie);
102 void *cookie);
129 void *cookie; member
142 struct io_pgtable *(*alloc)(struct io_pgtable_cfg *cfg, void *cookie);
Dio-pgtable.c40 void *cookie) in alloc_io_pgtable_ops() argument
52 iop = fns->alloc(cfg, cookie); in alloc_io_pgtable_ops()
57 iop->cookie = cookie; in alloc_io_pgtable_ops()
75 iop->cfg.tlb->tlb_flush_all(iop->cookie); in free_io_pgtable_ops()
Dio-pgtable-arm.c477 cfg->tlb->tlb_add_flush(iova, blk_size, true, data->iop.cookie); in arm_lpae_split_blk_unmap()
487 void *cookie = data->iop.cookie; in __arm_lpae_unmap() local
503 tlb->tlb_add_flush(iova, size, false, cookie); in __arm_lpae_unmap()
504 tlb->tlb_sync(cookie); in __arm_lpae_unmap()
508 tlb->tlb_add_flush(iova, size, true, cookie); in __arm_lpae_unmap()
538 iop->cfg.tlb->tlb_sync(iop->cookie); in arm_lpae_unmap()
659 arm_64_lpae_alloc_pgtable_s1(struct io_pgtable_cfg *cfg, void *cookie) in arm_64_lpae_alloc_pgtable_s1() argument
743 arm_64_lpae_alloc_pgtable_s2(struct io_pgtable_cfg *cfg, void *cookie) in arm_64_lpae_alloc_pgtable_s2() argument
831 arm_32_lpae_alloc_pgtable_s1(struct io_pgtable_cfg *cfg, void *cookie) in arm_32_lpae_alloc_pgtable_s1() argument
839 iop = arm_64_lpae_alloc_pgtable_s1(cfg, cookie); in arm_32_lpae_alloc_pgtable_s1()
[all …]
/linux-4.4.14/drivers/staging/lustre/lnet/klnds/socklnd/
Dsocklnd_proto.c74 ksock_tx_t *tx_ack, __u64 cookie) in ksocknal_queue_tx_zcack_v2() argument
109 cookie = tx_ack->tx_msg.ksm_zc_cookies[1]; in ksocknal_queue_tx_zcack_v2()
112 tx->tx_msg.ksm_zc_cookies[1] = cookie; in ksocknal_queue_tx_zcack_v2()
157 ksock_tx_t *tx_ack, __u64 cookie) in ksocknal_queue_tx_zcack_v3() argument
162 return ksocknal_queue_tx_zcack_v2(conn, tx_ack, cookie); in ksocknal_queue_tx_zcack_v3()
181 cookie = tx_ack->tx_msg.ksm_zc_cookies[1]; in ksocknal_queue_tx_zcack_v3()
183 if (cookie == SOCKNAL_KEEPALIVE_PING) /* ignore keepalive PING */ in ksocknal_queue_tx_zcack_v3()
189 tx->tx_msg.ksm_zc_cookies[1] = cookie; in ksocknal_queue_tx_zcack_v3()
193 if (cookie == tx->tx_msg.ksm_zc_cookies[0] || in ksocknal_queue_tx_zcack_v3()
194 cookie == tx->tx_msg.ksm_zc_cookies[1]) { in ksocknal_queue_tx_zcack_v3()
[all …]
/linux-4.4.14/include/linux/fsl/bestcomm/
Dbestcomm.h54 void **cookie; member
187 bcom_submit_next_buffer(struct bcom_task *tsk, void *cookie) in bcom_submit_next_buffer() argument
191 tsk->cookie[tsk->index] = cookie; in bcom_submit_next_buffer()
202 void *cookie = tsk->cookie[tsk->outdex]; in bcom_retrieve_buffer() local
210 return cookie; in bcom_retrieve_buffer()
/linux-4.4.14/drivers/dma/sh/
Dshdma-base.c79 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
341 BUG_ON(tx->cookie > 0 && tx->cookie != desc->cookie); in __ld_cleanup()
352 desc->cookie != cookie) in __ld_cleanup()
[all …]
Dusb-dmac.c491 dma_cookie_t cookie) in usb_dmac_chan_get_residue_if_complete() argument
497 if (desc->done_cookie == cookie) { in usb_dmac_chan_get_residue_if_complete()
507 dma_cookie_t cookie) in usb_dmac_chan_get_residue() argument
515 vd = vchan_find_desc(&chan->vc, cookie); in usb_dmac_chan_get_residue()
532 dma_cookie_t cookie, in usb_dmac_tx_status() argument
540 status = dma_cookie_status(chan, cookie, txstate); in usb_dmac_tx_status()
547 residue = usb_dmac_chan_get_residue_if_complete(uchan, cookie); in usb_dmac_tx_status()
549 residue = usb_dmac_chan_get_residue(uchan, cookie); in usb_dmac_tx_status()
591 desc->done_cookie = desc->vd.tx.cookie; in usb_dmac_isr_transfer_end()
Drcar-dmac.c438 dma_cookie_t cookie; in rcar_dmac_tx_submit() local
442 cookie = dma_cookie_assign(tx); in rcar_dmac_tx_submit()
445 chan->index, tx->cookie, desc); in rcar_dmac_tx_submit()
453 return cookie; in rcar_dmac_tx_submit()
847 desc->async_tx.cookie = -EBUSY; in rcar_dmac_chan_prep_sg()
1141 dma_cookie_t cookie) in rcar_dmac_chan_get_residue() argument
1157 if (cookie != desc->async_tx.cookie) in rcar_dmac_chan_get_residue()
1189 dma_cookie_t cookie, in rcar_dmac_tx_status() argument
1197 status = dma_cookie_status(chan, cookie, txstate); in rcar_dmac_tx_status()
1202 residue = rcar_dmac_chan_get_residue(rchan, cookie); in rcar_dmac_tx_status()
/linux-4.4.14/net/sctp/
DKconfig63 prompt "Default SCTP cookie HMAC encoding"
66 This option sets the default sctp cookie hmac algorithm
70 bool "Enable optional MD5 hmac cookie generation"
72 Enable optional MD5 hmac based SCTP cookie generation
76 bool "Enable optional SHA1 hmac cookie generation"
78 Enable optional SHA1 hmac based SCTP cookie generation
82 bool "Use no hmac alg in SCTP cookie generation"
84 Use no hmac algorithm in SCTP cookie generation
89 bool "Enable optional MD5 hmac cookie generation"
91 Enable optional MD5 hmac based SCTP cookie generation
[all …]
Dsm_make_chunk.c391 sctp_cookie_param_t *cookie; in sctp_make_init_ack() local
416 cookie = sctp_pack_cookie(asoc->ep, asoc, chunk, &cookie_len, in sctp_make_init_ack()
418 if (!cookie) in sctp_make_init_ack()
486 sctp_addto_chunk(retval, cookie_len, cookie); in sctp_make_init_ack()
522 kfree(cookie); in sctp_make_init_ack()
566 void *cookie; in sctp_make_cookie_echo() local
569 cookie = asoc->peer.cookie; in sctp_make_cookie_echo()
577 sctp_addto_chunk(retval, cookie_len, cookie); in sctp_make_cookie_echo()
1608 struct sctp_signed_cookie *cookie; in sctp_pack_cookie() local
1636 cookie = (struct sctp_signed_cookie *) retval->body; in sctp_pack_cookie()
[all …]
/linux-4.4.14/kernel/
Dasync.c75 async_cookie_t cookie; member
100 domain_list)->cookie; in lowest_in_progress()
119 (long long)entry->cookie, in async_run_entry_fn()
123 entry->func(entry->data, entry->cookie); in async_run_entry_fn()
128 (long long)entry->cookie, in async_run_entry_fn()
181 newcookie = entry->cookie = next_cookie++; in __async_schedule()
283 void async_synchronize_cookie_domain(async_cookie_t cookie, struct async_domain *domain) in async_synchronize_cookie_domain() argument
292 wait_event(async_done, lowest_in_progress(domain) >= cookie); in async_synchronize_cookie_domain()
312 void async_synchronize_cookie(async_cookie_t cookie) in async_synchronize_cookie() argument
314 async_synchronize_cookie_domain(cookie, &async_dfl_domain); in async_synchronize_cookie()
/linux-4.4.14/drivers/infiniband/core/
Droce_gid_mgmt.c121 struct net_device *rdma_ndev, void *cookie) in is_eth_port_of_netdev() argument
123 struct net_device *event_ndev = (struct net_device *)cookie; in is_eth_port_of_netdev()
145 struct net_device *rdma_ndev, void *cookie) in is_eth_port_inactive_slave() argument
163 struct net_device *rdma_ndev, void *cookie) in pass_all_filter() argument
169 struct net_device *rdma_ndev, void *cookie) in upper_device_filter() argument
171 struct net_device *event_ndev = (struct net_device *)cookie; in upper_device_filter()
350 struct net_device *rdma_ndev, void *cookie) in add_netdev_ips() argument
352 struct net_device *event_ndev = (struct net_device *)cookie; in add_netdev_ips()
359 struct net_device *rdma_ndev, void *cookie) in del_netdev_ips() argument
361 struct net_device *event_ndev = (struct net_device *)cookie; in del_netdev_ips()
[all …]
Dcore_priv.h53 struct net_device *idev, void *cookie);
56 struct net_device *idev, void *cookie);
62 void *cookie);
66 void *cookie);
Dumem_rbtree.c78 void *cookie) in rbt_ib_umem_for_each_in_range() argument
90 ret_val = cb(umem->umem, start, last, cookie) || ret_val; in rbt_ib_umem_for_each_in_range()
Dumem_odp.c124 u64 end, void *cookie) { in ib_umem_notifier_release_trampoline() argument
158 u64 end, void *cookie) in invalidate_page_trampoline() argument
185 u64 end, void *cookie) in invalidate_range_start_trampoline() argument
211 u64 end, void *cookie) in invalidate_range_end_trampoline() argument
/linux-4.4.14/fs/lockd/
Dsvc4proc.c83 resp->cookie = argp->cookie; in nlm4svc_proc_test()
90 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); in nlm4svc_proc_test()
111 resp->cookie = argp->cookie; in nlm4svc_proc_lock()
131 argp->block, &argp->cookie, in nlm4svc_proc_lock()
152 resp->cookie = argp->cookie; in nlm4svc_proc_cancel()
185 resp->cookie = argp->cookie; in nlm4svc_proc_unlock()
214 resp->cookie = argp->cookie; in nlm4svc_proc_granted()
323 resp->cookie = argp->cookie; in nlm4svc_proc_share()
356 resp->cookie = argp->cookie; in nlm4svc_proc_unshare()
440 nlmsvc_grant_reply(&argp->cookie, argp->status); in nlm4svc_proc_granted_res()
Dclntxdr.c151 const struct nlm_cookie *cookie) in encode_cookie() argument
153 encode_netobj(xdr, (u8 *)&cookie->data, cookie->len); in encode_cookie()
157 struct nlm_cookie *cookie) in decode_cookie() argument
174 cookie->len = length; in decode_cookie()
175 memcpy(cookie->data, p, length); in decode_cookie()
178 cookie->len = 4; in decode_cookie()
179 memset(cookie->data, 0, 4); in decode_cookie()
381 encode_cookie(xdr, &args->cookie); in nlm_xdr_enc_testargs()
402 encode_cookie(xdr, &args->cookie); in nlm_xdr_enc_lockargs()
424 encode_cookie(xdr, &args->cookie); in nlm_xdr_enc_cancargs()
[all …]
Dclnt4xdr.c154 const struct nlm_cookie *cookie) in encode_cookie() argument
156 encode_netobj(xdr, (u8 *)&cookie->data, cookie->len); in encode_cookie()
160 struct nlm_cookie *cookie) in decode_cookie() argument
177 cookie->len = length; in decode_cookie()
178 memcpy(cookie->data, p, length); in decode_cookie()
181 cookie->len = 4; in decode_cookie()
182 memset(cookie->data, 0, 4); in decode_cookie()
388 encode_cookie(xdr, &args->cookie); in nlm4_xdr_enc_testargs()
409 encode_cookie(xdr, &args->cookie); in nlm4_xdr_enc_lockargs()
431 encode_cookie(xdr, &args->cookie); in nlm4_xdr_enc_cancargs()
[all …]
Dsvcproc.c113 resp->cookie = argp->cookie; in nlmsvc_proc_test()
120 …>status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie)); in nlmsvc_proc_test()
142 resp->cookie = argp->cookie; in nlmsvc_proc_lock()
162 argp->block, &argp->cookie, in nlmsvc_proc_lock()
184 resp->cookie = argp->cookie; in nlmsvc_proc_cancel()
218 resp->cookie = argp->cookie; in nlmsvc_proc_unlock()
247 resp->cookie = argp->cookie; in nlmsvc_proc_granted()
366 resp->cookie = argp->cookie; in nlmsvc_proc_share()
399 resp->cookie = argp->cookie; in nlmsvc_proc_unshare()
483 nlmsvc_grant_reply(&argp->cookie, argp->status); in nlmsvc_proc_granted_res()
Dxdr.c153 if (!(p = nlm_encode_cookie(p, &resp->cookie))) in nlm_encode_testres()
189 if (!(p = nlm_decode_cookie(p, &argp->cookie))) in nlmsvc_decode_testargs()
214 if (!(p = nlm_decode_cookie(p, &argp->cookie))) in nlmsvc_decode_lockargs()
234 if (!(p = nlm_decode_cookie(p, &argp->cookie))) in nlmsvc_decode_cancargs()
248 if (!(p = nlm_decode_cookie(p, &argp->cookie)) in nlmsvc_decode_unlockargs()
265 if (!(p = nlm_decode_cookie(p, &argp->cookie)) in nlmsvc_decode_shareargs()
279 if (!(p = nlm_encode_cookie(p, &resp->cookie))) in nlmsvc_encode_shareres()
289 if (!(p = nlm_encode_cookie(p, &resp->cookie))) in nlmsvc_encode_res()
321 if (!(p = nlm_decode_cookie(p, &resp->cookie))) in nlmsvc_decode_res()
Dxdr4.c146 if (!(p = nlm4_encode_cookie(p, &resp->cookie))) in nlm4_encode_testres()
186 if (!(p = nlm4_decode_cookie(p, &argp->cookie))) in nlm4svc_decode_testargs()
211 if (!(p = nlm4_decode_cookie(p, &argp->cookie))) in nlm4svc_decode_lockargs()
231 if (!(p = nlm4_decode_cookie(p, &argp->cookie))) in nlm4svc_decode_cancargs()
245 if (!(p = nlm4_decode_cookie(p, &argp->cookie)) in nlm4svc_decode_unlockargs()
262 if (!(p = nlm4_decode_cookie(p, &argp->cookie)) in nlm4svc_decode_shareargs()
276 if (!(p = nlm4_encode_cookie(p, &resp->cookie))) in nlm4svc_encode_shareres()
286 if (!(p = nlm4_encode_cookie(p, &resp->cookie))) in nlm4svc_encode_res()
318 if (!(p = nlm4_decode_cookie(p, &resp->cookie))) in nlm4svc_decode_res()
Dsvclock.c57 static const char *nlmdbg_cookie2a(const struct nlm_cookie *cookie) in nlmdbg_cookie2a() argument
70 for (i = 0 ; i < cookie->len ; i++) { in nlmdbg_cookie2a()
75 sprintf(p, "%02x", cookie->data[i]); in nlmdbg_cookie2a()
159 nlmdbg_cookie2a(&block->b_call->a_args.cookie)); in nlmsvc_lookup_block()
182 nlmsvc_find_block(struct nlm_cookie *cookie) in nlmsvc_find_block() argument
187 if (nlm_cookie_match(&block->b_call->a_args.cookie,cookie)) in nlmsvc_find_block()
194 dprintk("nlmsvc_find_block(%s): block=%p\n", nlmdbg_cookie2a(cookie), block); in nlmsvc_find_block()
217 struct nlm_cookie *cookie) in nlmsvc_create_block() argument
240 nlmclnt_next_cookie(&call->a_args.cookie); in nlmsvc_create_block()
400 struct nlm_cookie *cookie, int reclaim) in nlmsvc_lock() argument
[all …]
/linux-4.4.14/drivers/net/wireless/ath/wil6210/
Dinterrupt.c205 static irqreturn_t wil6210_irq_rx(int irq, void *cookie) in wil6210_irq_rx() argument
207 struct wil6210_priv *wil = cookie; in wil6210_irq_rx()
266 static irqreturn_t wil6210_irq_tx(int irq, void *cookie) in wil6210_irq_tx() argument
268 struct wil6210_priv *wil = cookie; in wil6210_irq_tx()
332 static irqreturn_t wil6210_irq_misc(int irq, void *cookie) in wil6210_irq_misc() argument
334 struct wil6210_priv *wil = cookie; in wil6210_irq_misc()
385 static irqreturn_t wil6210_irq_misc_thread(int irq, void *cookie) in wil6210_irq_misc_thread() argument
387 struct wil6210_priv *wil = cookie; in wil6210_irq_misc_thread()
419 static irqreturn_t wil6210_thread_irq(int irq, void *cookie) in wil6210_thread_irq() argument
421 struct wil6210_priv *wil = cookie; in wil6210_thread_irq()
[all …]
Dcfg80211.c545 u64 *cookie) in wil_cfg80211_mgmt_tx() argument
576 cfg80211_mgmt_tx_status(wdev, cookie ? *cookie : 0, buf, len, in wil_cfg80211_mgmt_tx()
668 u64 *cookie) in wil_remain_on_channel() argument
687 u64 cookie) in wil_cancel_remain_on_channel() argument
964 cfg80211_probe_status(ndev, sta->addr, req->cookie, alive, GFP_KERNEL); in wil_probe_client_handle()
1016 const u8 *peer, u64 *cookie) in wil_cfg80211_probe_client() argument
1032 req->cookie = cid; in wil_cfg80211_probe_client()
1038 *cookie = req->cookie; in wil_cfg80211_probe_client()
/linux-4.4.14/arch/mips/math-emu/
Ddsemul.c30 mips_instruction cookie; member
85 err |= __put_user((mips_instruction)BD_COOKIE, &fr->cookie); in mips_dsemul()
105 u32 insn, cookie; in do_dsemulret() local
132 err |= __get_user(cookie, &fr->cookie); in do_dsemulret()
134 if (unlikely(err || (insn != BREAK_MATH) || (cookie != BD_COOKIE))) { in do_dsemulret()
/linux-4.4.14/Documentation/arm/Samsung/
DBootloader-interface.txt23 0x0c 0x00000bad (Magic cookie) System suspend
26 0x20 0xfcba0d10 (Magic cookie) AFTR
28 0x28 + 4*cpu 0x8 (Magic cookie, Exynos3250) AFTR
40 0x24 0xfcba0d10 (Magic cookie, Exynos4210 r1.0) AFTR
47 0x0804 0xfcba0d10 (Magic cookie) AFTR
48 0x0804 0x00000bad (Magic cookie) System suspend
50 0x0818 0xfcba0d10 (Magic cookie, Exynos4210 r1.1) AFTR
/linux-4.4.14/Documentation/filesystems/caching/
Dnetfs-api.txt13 (2) Every index, file or other object is represented by a cookie. This cookie
37 (14) Miscellaneous cookie operations
70 (3) The cookie representing the primary index will be allocated according to
195 cookie acquisition function and the maximum length of key data that it may
202 cookie acquisition function. It should return the size of the file if
211 cookie acquisition function and the maximum length of auxiliary data that
269 unbound from a cookie and that all the marks on the pages should be
332 be used to locate files. This is done by requesting a cookie for each index in
345 internally. It may, however, return NULL to indicate no cookie. It is quite
347 acquisition (or even to the relinquish cookie, read page and write page
[all …]
Dobject.txt35 There is a 1:N relationship between cookies and objects. A cookie may be
98 object->state. A cookie may point to a set of objects that are in different
244 cookie has been relinquished by the netfs or because the cache is being
262 cookie. In the first state, the cached data is expected to persist, and
287 netfs for details of the change through its cookie definition ops.
307 These are signalled when the netfs relinquishes a cookie it was using.
315 cookie.
Dfscache.txt104 netfs. The simplest cookie is just a NULL pointer - indicating nothing
113 indicates that page A is at index B of the data-file represented by cookie
228 Acquire n=N Number of acquire cookie requests seen
239 Updates n=N Number of update cookie requests seen
242 Relinqs n=N Number of relinquish cookie requests seen
372 and the second set of columns describe the object's cookie, if present:
376 NETFS_COOKIE_DEF Name of netfs cookie definition
379 NETFS_DATA Netfs private data stored in the cookie
395 C Show objects that have a cookie
396 c Show objects that don't have a cookie
/linux-4.4.14/drivers/mmc/host/
Dtmio_mmc_dma.c52 dma_cookie_t cookie; in tmio_mmc_start_dma_rx() local
92 cookie = dmaengine_submit(desc); in tmio_mmc_start_dma_rx()
93 if (cookie < 0) { in tmio_mmc_start_dma_rx()
95 ret = cookie; in tmio_mmc_start_dma_rx()
99 __func__, host->sg_len, ret, cookie, host->mrq); in tmio_mmc_start_dma_rx()
120 desc, cookie, host->sg_len); in tmio_mmc_start_dma_rx()
128 dma_cookie_t cookie; in tmio_mmc_start_dma_tx() local
172 cookie = dmaengine_submit(desc); in tmio_mmc_start_dma_tx()
173 if (cookie < 0) { in tmio_mmc_start_dma_tx()
175 ret = cookie; in tmio_mmc_start_dma_tx()
[all …]
/linux-4.4.14/net/ipv6/
Dsyncookies.c83 static __u32 check_tcp_syn_cookie(__u32 cookie, const struct in6_addr *saddr, in check_tcp_syn_cookie() argument
89 cookie -= cookie_hash(saddr, daddr, sport, dport, 0, 0) + sseq; in check_tcp_syn_cookie()
91 diff = (count - (cookie >> COOKIEBITS)) & ((__u32) -1 >> COOKIEBITS); in check_tcp_syn_cookie()
95 return (cookie - in check_tcp_syn_cookie()
126 __u32 cookie) in __cookie_v6_check() argument
129 __u32 mssind = check_tcp_syn_cookie(cookie, &iph->saddr, &iph->daddr, in __cookie_v6_check()
144 __u32 cookie = ntohl(th->ack_seq) - 1; in cookie_v6_check() local
157 mss = __cookie_v6_check(ipv6_hdr(skb), th, cookie); in cookie_v6_check()
212 treq->snt_isn = cookie; in cookie_v6_check()
/linux-4.4.14/arch/arm/include/asm/xen/
Dpage.h114 #define xen_remap(cookie, size) ioremap_cache((cookie), (size)) argument
115 #define xen_unmap(cookie) iounmap((cookie)) argument
/linux-4.4.14/include/uapi/linux/android/
Dbinder.h70 binder_uintptr_t cookie; member
140 binder_uintptr_t cookie; /* target object cookie */ member
167 binder_uintptr_t cookie; member
172 binder_uintptr_t cookie; member
183 binder_uintptr_t cookie; member
/linux-4.4.14/net/core/
Dsock_diag.c34 int sock_diag_check_cookie(struct sock *sk, const __u32 *cookie) in sock_diag_check_cookie() argument
38 if (cookie[0] == INET_DIAG_NOCOOKIE && cookie[1] == INET_DIAG_NOCOOKIE) in sock_diag_check_cookie()
42 if ((u32)res != cookie[0] || (u32)(res >> 32) != cookie[1]) in sock_diag_check_cookie()
49 void sock_diag_save_cookie(struct sock *sk, __u32 *cookie) in sock_diag_save_cookie() argument
53 cookie[0] = (u32)res; in sock_diag_save_cookie()
54 cookie[1] = (u32)(res >> 32); in sock_diag_save_cookie()
/linux-4.4.14/drivers/gpu/drm/i915/
Di915_guc_submission.c192 doorbell->cookie = 0; in guc_init_doorbell()
213 db_cmp.cookie = gc->cookie; in guc_ring_doorbell()
217 db_exc.cookie = gc->cookie + 1; in guc_ring_doorbell()
218 if (db_exc.cookie == 0) in guc_ring_doorbell()
219 db_exc.cookie = 1; in guc_ring_doorbell()
232 gc->cookie = db_exc.cookie; in guc_ring_doorbell()
242 db_cmp.cookie, db_ret.cookie); in guc_ring_doorbell()
245 db_cmp.cookie = db_ret.cookie; in guc_ring_doorbell()
246 db_exc.cookie = db_ret.cookie + 1; in guc_ring_doorbell()
247 if (db_exc.cookie == 0) in guc_ring_doorbell()
[all …]
Dintel_guc_fwif.h127 u32 cookie; member
134 u32 cookie; member
/linux-4.4.14/net/ipv4/
Dsyncookies.c137 static __u32 check_tcp_syn_cookie(__u32 cookie, __be32 saddr, __be32 daddr, in check_tcp_syn_cookie() argument
143 cookie -= cookie_hash(saddr, daddr, sport, dport, 0, 0) + sseq; in check_tcp_syn_cookie()
146 diff = (count - (cookie >> COOKIEBITS)) & ((__u32) -1 >> COOKIEBITS); in check_tcp_syn_cookie()
150 return (cookie - in check_tcp_syn_cookie()
208 u32 cookie) in __cookie_v4_check() argument
211 __u32 mssind = check_tcp_syn_cookie(cookie, iph->saddr, iph->daddr, in __cookie_v4_check()
302 __u32 cookie = ntohl(th->ack_seq) - 1; in cookie_v4_check() local
316 mss = __cookie_v4_check(ip_hdr(skb), th, cookie); in cookie_v4_check()
339 treq->snt_isn = cookie; in cookie_v4_check()
Dtcp_metrics.c34 struct tcp_fastopen_cookie cookie; member
132 tm->tcpm_fastopen.cookie.exp = false; in tcpm_suck_dst()
133 tm->tcpm_fastopen.cookie.len = 0; in tcpm_suck_dst()
687 struct tcp_fastopen_cookie *cookie, in tcp_fastopen_cache_get() argument
702 *cookie = tfom->cookie; in tcp_fastopen_cache_get()
703 if (cookie->len <= 0 && tfom->try_exp == 1) in tcp_fastopen_cache_get()
704 cookie->exp = true; in tcp_fastopen_cache_get()
713 struct tcp_fastopen_cookie *cookie, bool syn_lost, in tcp_fastopen_cache_set() argument
729 if (cookie && cookie->len > 0) in tcp_fastopen_cache_set()
730 tfom->cookie = *cookie; in tcp_fastopen_cache_set()
[all …]
/linux-4.4.14/sound/soc/sh/
Dsiu_pcm.c106 siu_stream->buf_bytes, siu_stream->cookie); in siu_dma_tx_complete()
123 dma_cookie_t cookie; in siu_pcm_wr_set() local
142 cookie = dmaengine_submit(desc); in siu_pcm_wr_set()
143 if (cookie < 0) { in siu_pcm_wr_set()
145 return cookie; in siu_pcm_wr_set()
149 siu_stream->cookie = cookie; in siu_pcm_wr_set()
171 dma_cookie_t cookie; in siu_pcm_rd_set() local
192 cookie = dmaengine_submit(desc); in siu_pcm_rd_set()
193 if (cookie < 0) { in siu_pcm_rd_set()
195 return cookie; in siu_pcm_rd_set()
[all …]
/linux-4.4.14/drivers/misc/mic/card/
Dmic_device.c96 unsigned long cookie; in mic_request_card_irq() local
106 cookie = index; in mic_request_card_irq()
107 return (struct mic_irq *)cookie; in mic_request_card_irq()
121 void mic_free_card_irq(struct mic_irq *cookie, void *data) in mic_free_card_irq() argument
126 index = (unsigned long)cookie & 0xFFFFU; in mic_free_card_irq()
196 struct mic_irq *cookie, void *data) in ___mic_free_irq() argument
198 return mic_free_card_irq(cookie, data); in ___mic_free_irq()
Dmic_x100.c214 unsigned long cookie = irq; in _mic_request_threaded_irq() local
222 return (struct mic_irq *)cookie; in _mic_request_threaded_irq()
226 struct mic_irq *cookie, void *data) in _mic_free_irq() argument
228 unsigned long irq = (unsigned long)cookie; in _mic_free_irq()
/linux-4.4.14/net/l2tp/
Dl2tp_debugfs.c188 session->cookie[0], session->cookie[1], in l2tp_dfs_seq_session_show()
189 session->cookie[2], session->cookie[3]); in l2tp_dfs_seq_session_show()
192 session->cookie[4], session->cookie[5], in l2tp_dfs_seq_session_show()
193 session->cookie[6], session->cookie[7]); in l2tp_dfs_seq_session_show()
/linux-4.4.14/drivers/staging/lustre/lustre/llite/
Dsymlink.c121 static const char *ll_follow_link(struct dentry *dentry, void **cookie) in ll_follow_link() argument
140 *cookie = request; in ll_follow_link()
144 static void ll_put_link(struct inode *unused, void *cookie) in ll_put_link() argument
146 ptlrpc_req_finished(cookie); in ll_put_link()
Dvvp_object.c56 static int vvp_object_print(const struct lu_env *env, void *cookie, in vvp_object_print() argument
63 (*p)(env, cookie, "(%s %d %d) inode: %p ", in vvp_object_print()
69 (*p)(env, cookie, "%lu/%u %o %u %d %p "DFID, in vvp_object_print()
Ddcache.c214 handle.cookie = it->d.lustre.it_lock_handle; in ll_intent_drop_lock()
217 handle.cookie, it); in ll_intent_drop_lock()
224 handle.cookie = it->d.lustre.it_remote_lock_handle; in ll_intent_drop_lock()
227 handle.cookie, it); in ll_intent_drop_lock()
Dvvp_page.c380 void *cookie, lu_printer_t printer) in vvp_page_print() argument
385 (*printer)(env, cookie, LUSTRE_VVP_NAME "-page@%p(%d:%d:%d) vm@%p ", in vvp_page_print()
389 (*printer)(env, cookie, "%lx %d:%d %lx %lu %slru", in vvp_page_print()
395 (*printer)(env, cookie, "\n"); in vvp_page_print()
/linux-4.4.14/drivers/misc/mic/scif/
Dscif_fence.c212 dma_cookie_t cookie; in _scif_prog_signal() local
222 cookie = tx->tx_submit(tx); in _scif_prog_signal()
223 if (dma_submit_error(cookie)) { in _scif_prog_signal()
224 err = (int)cookie; in _scif_prog_signal()
262 cookie = tx->tx_submit(tx); in _scif_prog_signal()
263 if (dma_submit_error(cookie)) { in _scif_prog_signal()
338 dma_cookie_t cookie = mark & ~SCIF_REMOTE_FENCE; in _scif_fence_wait() local
345 cookie, NULL, NULL) == in _scif_fence_wait()
588 dma_cookie_t cookie; in _scif_fence_mark() local
598 cookie = tx->tx_submit(tx); in _scif_fence_mark()
[all …]
Dscif_dma.c37 void (*dma_completion_func)(void *cookie);
448 dma_cookie_t cookie; in scif_sync_dma() local
466 cookie = tx->tx_submit(tx); in scif_sync_dma()
468 if (dma_submit_error(cookie)) { in scif_sync_dma()
477 if (dma_sync_wait(chan, cookie) == DMA_COMPLETE) { in scif_sync_dma()
515 dma_cookie_t cookie; in scif_async_dma() local
536 cookie = tx->tx_submit(tx); in scif_async_dma()
538 if (dma_submit_error(cookie)) { in scif_async_dma()
554 status = dma_async_is_tx_complete(chan, cookie, NULL, NULL); in scif_async_dma()
915 dma_cookie_t cookie; in scif_rma_list_dma_copy_unaligned() local
[all …]
Dscif_main.c171 scifdev->cookie = sdev->hw_ops->request_irq(sdev, scif_intr_handler, in scif_probe()
174 if (IS_ERR(scifdev->cookie)) { in scif_probe()
175 rc = PTR_ERR(scifdev->cookie); in scif_probe()
239 if (scifdev->cookie) { in scif_remove()
240 sdev->hw_ops->free_irq(sdev, scifdev->cookie, scifdev); in scif_remove()
241 scifdev->cookie = NULL; in scif_remove()
Dscif_nm.c124 if (dev->cookie) { in scif_cleanup_scifdev()
125 sdev->hw_ops->free_irq(sdev, dev->cookie, dev); in scif_cleanup_scifdev()
126 dev->cookie = NULL; in scif_cleanup_scifdev()
/linux-4.4.14/drivers/staging/lustre/include/linux/lnet/
Dtypes.h272 __u64 cookie; member
286 h->cookie = LNET_WIRE_HANDLE_COOKIE_NONE; in LNetInvalidateHandle()
296 return h1.cookie == h2.cookie; in LNetHandleIsEqual()
306 return h.cookie == LNET_WIRE_HANDLE_COOKIE_NONE; in LNetHandleIsInvalid()
Dlib-lnet.h101 lnet_cpt_of_cookie(__u64 cookie) in lnet_cpt_of_cookie() argument
103 unsigned int cpt = (cookie >> LNET_COOKIE_TYPE_BITS) & LNET_CPT_MASK; in lnet_cpt_of_cookie()
254 __u64 cookie);
272 handle->cookie = eq->eq_lh.lh_cookie; in lnet_eq2handle()
280 lh = lnet_res_lh_lookup(&the_lnet.ln_eq_container, handle->cookie); in lnet_handle2eq()
290 handle->cookie = md->md_lh.lh_cookie; in lnet_md2handle()
300 cpt = lnet_cpt_of_cookie(handle->cookie); in lnet_handle2md()
302 handle->cookie); in lnet_handle2md()
331 handle->cookie = me->me_lh.lh_cookie; in lnet_me2handle()
341 cpt = lnet_cpt_of_cookie(handle->cookie); in lnet_handle2me()
[all …]
/linux-4.4.14/drivers/misc/mic/host/
Dmic_intr.c404 #define GET_ENTRY(cookie) ((cookie) & 0xFFFF) argument
405 #define GET_OFFSET(cookie) ((cookie) >> COOKIE_ID_SHIFT) argument
440 unsigned long cookie = 0; in mic_request_threaded_irq() local
474 cookie = MK_COOKIE(entry, offset); in mic_request_threaded_irq()
493 cookie = MK_COOKIE(entry, intr_cb->cb_id); in mic_request_threaded_irq()
497 return (struct mic_irq *)cookie; in mic_request_threaded_irq()
514 struct mic_irq *cookie, void *data) in mic_free_irq() argument
522 entry = GET_ENTRY((unsigned long)cookie); in mic_free_irq()
523 offset = GET_OFFSET((unsigned long)cookie); in mic_free_irq()
Dmic_boot.c164 struct mic_irq *cookie, void *data) in ___mic_free_irq() argument
168 return mic_free_irq(mdev, cookie, data); in ___mic_free_irq()
256 struct mic_irq *cookie, void *data) in _mic_free_irq() argument
258 return mic_free_irq(mbdev_to_mdev(mbdev), cookie, data); in _mic_free_irq()
/linux-4.4.14/drivers/media/platform/s5p-tv/
Dsdo_drv.c40 unsigned int cookie; member
120 { V4L2_STD_PAL_N, .height = 576, .cookie = SDO_PAL_N },
121 { V4L2_STD_PAL_Nc, .height = 576, .cookie = SDO_PAL_NC },
122 { V4L2_STD_PAL_M, .height = 480, .cookie = SDO_PAL_M },
123 { V4L2_STD_PAL_60, .height = 480, .cookie = SDO_PAL_60 },
124 { V4L2_STD_NTSC_443, .height = 480, .cookie = SDO_NTSC_443 },
125 { V4L2_STD_PAL, .height = 576, .cookie = SDO_PAL_BGHID },
126 { V4L2_STD_NTSC_M, .height = 480, .cookie = SDO_NTSC_M },
314 sdo_write_mask(sdev, SDO_CONFIG, sdev->fmt->cookie, SDO_STANDARD_MASK); in sdo_runtime_resume()
Dmixer_vp_layer.c31 .cookie = VP_MODE_NV12 | VP_MODE_MEM_LINEAR,
44 .cookie = VP_MODE_NV21 | VP_MODE_MEM_LINEAR,
58 .cookie = VP_MODE_NV12 | VP_MODE_MEM_LINEAR,
72 .cookie = VP_MODE_NV12 | VP_MODE_MEM_TILED,
111 if (layer->fmt->cookie & VP_MODE_MEM_TILED) { in mxr_vp_buffer_set()
Dmixer.h69 unsigned long cookie; member
195 int cookie; member
205 int cookie; member
347 void mxr_reg_s_output(struct mxr_device *mdev, int cookie);
Dmixer_grp_layer.c29 .cookie = 4,
41 .cookie = 5,
53 .cookie = 6,
65 .cookie = 7,
Dmixer_drv.c36 .cookie = 1,
41 .cookie = 0,
76 if (to_output(mdev)->cookie == 0) in mxr_streamer_get()
80 mxr_reg_s_output(mdev, to_output(mdev)->cookie); in mxr_streamer_get()
/linux-4.4.14/fs/overlayfs/
Dinode.c152 void *cookie; member
155 static const char *ovl_follow_link(struct dentry *dentry, void **cookie) in ovl_follow_link() argument
175 ret = realinode->i_op->follow_link(realdentry, cookie); in ovl_follow_link()
182 data->cookie = *cookie; in ovl_follow_link()
184 *cookie = data; in ovl_follow_link()
198 realinode->i_op->put_link(realinode, data->cookie); in ovl_put_link()
/linux-4.4.14/fs/notify/
Dfsnotify.c129 int data_is, u32 cookie, in send_to_group() argument
174 data_is, cookie); in send_to_group()
181 file_name, cookie); in send_to_group()
191 const unsigned char *file_name, u32 cookie) in fsnotify() argument
276 data, data_is, cookie, file_name); in fsnotify()
/linux-4.4.14/drivers/net/wireless/b43legacy/
Dxmit.h37 __le16 cookie; member
86 u16 cookie);
91 u16 cookie; /* The cookie from the txhdr */ member
119 __le16 cookie; member
Dpio.c119 u16 cookie = 0x0000; in generate_cookie() local
130 cookie = 0x1000; in generate_cookie()
133 cookie = 0x2000; in generate_cookie()
136 cookie = 0x3000; in generate_cookie()
143 cookie |= (u16)packetindex; in generate_cookie()
145 return cookie; in generate_cookie()
150 u16 cookie, in parse_cookie() argument
157 switch (cookie & 0xF000) { in parse_cookie()
173 packetindex = (cookie & 0x0FFF); in parse_cookie()
496 queue = parse_cookie(dev, status->cookie, &packet); in b43legacy_pio_handle_txstatus()
Ddma.c495 txstat->cookie = 0; in setup_rx_descbuffer()
940 u16 cookie = 0x1000; in generate_cookie() local
950 cookie = 0xA000; in generate_cookie()
953 cookie = 0xB000; in generate_cookie()
956 cookie = 0xC000; in generate_cookie()
959 cookie = 0xD000; in generate_cookie()
962 cookie = 0xE000; in generate_cookie()
965 cookie = 0xF000; in generate_cookie()
969 cookie |= (u16)slot; in generate_cookie()
971 return cookie; in generate_cookie()
[all …]
Dxmit.c192 u16 cookie) in generate_txhdr_fw3() argument
349 txhdr->cookie = cpu_to_le16(cookie); in generate_txhdr_fw3()
363 u16 cookie) in b43legacy_generate_txhdr() argument
367 info, cookie); in b43legacy_generate_txhdr()
616 status.cookie = le16_to_cpu(hw->cookie); in b43legacy_handle_hwtxstatus()
/linux-4.4.14/samples/bpf/
Dtrace_output_kern.c18 u64 cookie; in bpf_prog1() member
22 data.cookie = 0x12345678; in bpf_prog1()
Dtrace_output_user.c135 __u64 cookie; in print_bpf_output() member
138 if (e->cookie != 0x12345678) { in print_bpf_output()
140 e->pid, e->cookie, size); in print_bpf_output()
/linux-4.4.14/drivers/staging/lustre/lustre/osc/
Dosc_internal.h112 void *cookie, struct ldlm_enqueue_info *einfo,
124 obd_enqueue_update_f upcall, void *cookie,
127 obd_enqueue_update_f upcall, void *cookie,
130 obd_enqueue_update_f upcall, void *cookie,
Dosc_object.c128 int osc_lvb_print(const struct lu_env *env, void *cookie, in osc_lvb_print() argument
131 return (*p)(env, cookie, "size: %llu mtime: %llu atime: %llu ctime: %llu blocks: %llu", in osc_lvb_print()
136 static int osc_object_print(const struct lu_env *env, void *cookie, in osc_object_print() argument
143 …(*p)(env, cookie, "id: " DOSTID " idx: %d gen: %d kms_valid: %u kms %llu rc: %d force_sync: %d min… in osc_object_print()
147 osc_lvb_print(env, cookie, p, &oinfo->loi_lvb); in osc_object_print()
Dosc_lock.c107 olock->l_handle.h_cookie == ols->ols_handle.cookie)) in osc_lock_invariant()
161 olck->ols_handle.cookie = 0ULL; in osc_lock_detach()
483 static int osc_lock_upcall(void *cookie, int errcode) in osc_lock_upcall() argument
485 struct osc_lock *olck = cookie; in osc_lock_upcall()
516 olck->ols_handle.cookie = 0ULL; in osc_lock_upcall()
1391 static int osc_lock_print(const struct lu_env *env, void *cookie, in osc_lock_print() argument
1399 (*p)(env, cookie, "%p %#16llx %#llx %d %p ", in osc_lock_print()
1400 lock->ols_lock, lock->ols_flags, lock->ols_handle.cookie, in osc_lock_print()
1402 osc_lvb_print(env, cookie, p, &lock->ols_lvb); in osc_lock_print()
/linux-4.4.14/drivers/infiniband/hw/cxgb3/
Diwch_cq.c52 u64 cookie; in iwch_poll_cq_one() local
67 ret = cxio_poll_cq(wq, &(chp->cq), &cqe, &cqe_flushed, &cookie, in iwch_poll_cq_one()
81 wc->wr_id = cookie; in iwch_poll_cq_one()
90 CQE_WRID_LOW(cqe), (unsigned long long) cookie); in iwch_poll_cq_one()
/linux-4.4.14/drivers/net/wireless/b43/
Dpio.c40 u16 cookie; in generate_cookie() local
50 cookie = (((u16)q->index + 1) << 12); in generate_cookie()
51 cookie |= pack->index; in generate_cookie()
53 return cookie; in generate_cookie()
58 u16 cookie, in parse_cookie() argument
65 switch (cookie & 0xF000) { in parse_cookie()
84 pack_index = (cookie & 0x0FFF); in parse_cookie()
459 u16 cookie; in pio_tx_frame() local
469 cookie = generate_cookie(q, pack); in pio_tx_frame()
474 info, cookie); in pio_tx_frame()
[all …]
Dxmit.h54 __le16 cookie; /* TX frame cookie */ member
71 __le16 cookie; /* TX frame cookie */ member
82 __le16 cookie; /* TX frame cookie */ member
208 struct ieee80211_tx_info *txctl, u16 cookie);
212 u16 cookie; /* The cookie from the txhdr */ member
Dxmit.c245 u16 cookie) in b43_generate_txhdr() argument
551 txhdr->format_598.cookie = cpu_to_le16(cookie); in b43_generate_txhdr()
554 txhdr->format_351.cookie = cpu_to_le16(cookie); in b43_generate_txhdr()
557 txhdr->format_410.cookie = cpu_to_le16(cookie); in b43_generate_txhdr()
Ddma.c1200 u16 cookie; in generate_cookie() local
1210 cookie = (((u16)ring->index + 1) << 12); in generate_cookie()
1212 cookie |= (u16)slot; in generate_cookie()
1214 return cookie; in generate_cookie()
1219 struct b43_dmaring *parse_cookie(struct b43_wldev *dev, u16 cookie, int *slot) in parse_cookie() argument
1224 switch (cookie & 0xF000) { in parse_cookie()
1241 *slot = (cookie & 0x0FFF); in parse_cookie()
1244 "invalid cookie: 0x%04X\n", cookie); in parse_cookie()
1263 u16 cookie; in dma_tx_fragment() local
1280 cookie = generate_cookie(ring, slot); in dma_tx_fragment()
[all …]
/linux-4.4.14/drivers/staging/lustre/lustre/lov/
Dlov_object.c67 int (*llo_print)(const struct lu_env *env, void *cookie,
393 static int lov_print_empty(const struct lu_env *env, void *cookie, in lov_print_empty() argument
396 (*p)(env, cookie, "empty %d\n", lu2lov(o)->lo_layout_invalid); in lov_print_empty()
400 static int lov_print_raid0(const struct lu_env *env, void *cookie, in lov_print_raid0() argument
408 (*p)(env, cookie, "stripes: %d, %s, lsm{%p 0x%08X %d %u %u}:\n", in lov_print_raid0()
417 lu_object_print(env, cookie, p, sub); in lov_print_raid0()
419 (*p)(env, cookie, "sub %d absent\n", i); in lov_print_raid0()
425 static int lov_print_released(const struct lu_env *env, void *cookie, in lov_print_released() argument
431 (*p)(env, cookie, in lov_print_released()
663 void *cookie; in lov_layout_change() local
[all …]
Dlovsub_lock.c422 static int lovsub_lock_print(const struct lu_env *env, void *cookie, in lovsub_lock_print() argument
431 (*p)(env, cookie, "[%d %p ", scan->lll_idx, lov); in lovsub_lock_print()
433 cl_lock_descr_print(env, cookie, p, in lovsub_lock_print()
435 (*p)(env, cookie, "] "); in lovsub_lock_print()
Dlovsub_object.c97 static int lovsub_object_print(const struct lu_env *env, void *cookie, in lovsub_object_print() argument
102 return (*p)(env, cookie, "[%d]", los->lso_index); in lovsub_object_print()
Dlov_request.c261 static int cb_getattr_update(void *cookie, int rc) in cb_getattr_update() argument
263 struct obd_info *oinfo = cookie; in cb_getattr_update()
463 static int cb_setattr_update(void *cookie, int rc) in cb_setattr_update() argument
465 struct obd_info *oinfo = cookie; in cb_setattr_update()
650 static int cb_statfs_update(void *cookie, int rc) in cb_statfs_update() argument
652 struct obd_info *oinfo = cookie; in cb_statfs_update()
/linux-4.4.14/drivers/crypto/qce/
Ddma.c88 dma_cookie_t cookie; in qce_dma_prep_sg() local
99 cookie = dmaengine_submit(desc); in qce_dma_prep_sg()
101 return dma_submit_error(cookie); in qce_dma_prep_sg()
/linux-4.4.14/arch/x86/include/asm/xen/
Dpage.h297 #define xen_remap(cookie, size) ioremap((cookie), (size)); argument
298 #define xen_unmap(cookie) iounmap((cookie)) argument
/linux-4.4.14/net/wireless/
Dtrace.h1174 struct wireless_dev *wdev, u64 cookie),
1175 TP_ARGS(wiphy, wdev, cookie),
1179 __field(u64, cookie)
1184 __entry->cookie = cookie;
1187 WIPHY_PR_ARG, WDEV_PR_ARG, __entry->cookie)
1735 TP_PROTO(struct wiphy *wiphy, int ret, u64 cookie),
1736 TP_ARGS(wiphy, ret, cookie),
1740 __field(u64, cookie)
1745 __entry->cookie = cookie;
1748 WIPHY_PR_ARG, __entry->ret, __entry->cookie)
[all …]
Drdev-ops.h89 u8 key_index, bool pairwise, const u8 *mac_addr, void *cookie, in rdev_get_key() argument
90 void (*callback)(void *cookie, struct key_params*)) in rdev_get_key() argument
95 mac_addr, cookie, callback); in rdev_get_key()
652 unsigned int duration, u64 *cookie) in rdev_remain_on_channel() argument
657 duration, cookie); in rdev_remain_on_channel()
658 trace_rdev_return_int_cookie(&rdev->wiphy, ret, *cookie); in rdev_remain_on_channel()
664 struct wireless_dev *wdev, u64 cookie) in rdev_cancel_remain_on_channel() argument
667 trace_rdev_cancel_remain_on_channel(&rdev->wiphy, wdev, cookie); in rdev_cancel_remain_on_channel()
668 ret = rdev->ops->cancel_remain_on_channel(&rdev->wiphy, wdev, cookie); in rdev_cancel_remain_on_channel()
676 u64 *cookie) in rdev_mgmt_tx() argument
[all …]
/linux-4.4.14/drivers/misc/cxl/
Dirq.c263 irq_handler_t handler, void *cookie, const char *name) in cxl_map_irq() argument
279 result = request_irq(virq, handler, 0, name, cookie); in cxl_map_irq()
288 void cxl_unmap_irq(unsigned int virq, void *cookie) in cxl_unmap_irq() argument
290 free_irq(virq, cookie); in cxl_unmap_irq()
295 void *cookie, in cxl_register_one_irq() argument
305 if (!(virq = cxl_map_irq(adapter, hwirq, handler, cookie, name))) in cxl_register_one_irq()
508 void afu_release_irqs(struct cxl_context *ctx, void *cookie) in afu_release_irqs() argument
519 cxl_unmap_irq(virq, cookie); in afu_release_irqs()
Dapi.c131 irq_handler_t handler, void *cookie, char *name) in cxl_map_afu_irq() argument
142 return cxl_map_irq(ctx->afu->adapter, hwirq, handler, cookie, name); in cxl_map_afu_irq()
146 void cxl_unmap_afu_irq(struct cxl_context *ctx, int num, void *cookie) in cxl_unmap_afu_irq() argument
157 cxl_unmap_irq(virq, cookie); in cxl_unmap_afu_irq()
/linux-4.4.14/include/uapi/linux/
Drds.h233 rds_rdma_cookie_t cookie; member
238 rds_rdma_cookie_t cookie; member
247 rds_rdma_cookie_t cookie; member
Dinotify.h23 __u32 cookie; /* cookie to synchronize two events */ member
Dif_arcnet.h88 __u8 cookie[sizeof(int)]; member
/linux-4.4.14/fs/cifs/
Dfscache.c236 struct fscache_cookie *cookie = cifsi->fscache; in __cifs_fscache_invalidate_page() local
238 cifs_dbg(FYI, "%s: (0x%p/0x%p)\n", __func__, page, cookie); in __cifs_fscache_invalidate_page()
239 fscache_wait_on_page_write(cookie, page); in __cifs_fscache_invalidate_page()
240 fscache_uncache_page(cookie, page); in __cifs_fscache_invalidate_page()
/linux-4.4.14/fs/
Ddcookies.c116 int get_dcookie(struct path *path, unsigned long *cookie) in get_dcookie() argument
138 *cookie = dcookie_value(dcs); in get_dcookie()
151 unsigned long cookie = (unsigned long)cookie64; in SYSCALL_DEFINE3() local
171 if (!(dcs = find_dcookie(cookie))) in SYSCALL_DEFINE3()
Deventpoll.c117 void *cookie; member
400 void *cookie, void *ctx) in ep_call_nested() argument
417 (tncur->cookie == cookie || ++call_nests > max_nests)) { in ep_call_nested()
429 tnode.cookie = cookie; in ep_call_nested()
435 error = (*nproc)(priv, cookie, call_nests); in ep_call_nested()
489 static int ep_poll_wakeup_proc(void *priv, void *cookie, int call_nests) in ep_poll_wakeup_proc() argument
491 ep_wake_up_nested((wait_queue_head_t *) cookie, POLLIN, in ep_poll_wakeup_proc()
836 static int ep_poll_readyevents_proc(void *priv, void *cookie, int call_nests) in ep_poll_readyevents_proc() argument
1162 static int reverse_path_check_proc(void *priv, void *cookie, int call_nests) in reverse_path_check_proc() argument
1679 static int ep_loop_check_proc(void *priv, void *cookie, int call_nests) in ep_loop_check_proc() argument
/linux-4.4.14/drivers/android/
Dbinder.c239 binder_uintptr_t cookie; member
252 binder_uintptr_t cookie; member
888 binder_uintptr_t cookie) in binder_new_node() argument
915 node->cookie = cookie; in binder_new_node()
922 (u64)node->ptr, (u64)node->cookie); in binder_new_node()
1544 node = binder_new_node(proc, fp->binder, fp->cookie); in binder_transaction()
1552 if (fp->cookie != node->cookie) { in binder_transaction()
1556 (u64)fp->cookie, (u64)node->cookie); in binder_transaction()
1606 fp->cookie = ref->node->cookie; in binder_transaction()
1831 binder_uintptr_t cookie; in binder_thread_write() local
[all …]
/linux-4.4.14/drivers/net/wireless/ath/carl9170/
Dtx.c194 int cookie = -1; in carl9170_alloc_dev_space() local
205 cookie = bitmap_find_free_region(ar->mem_bitmap, ar->fw.mem_blocks, 0); in carl9170_alloc_dev_space()
208 if (unlikely(cookie < 0)) { in carl9170_alloc_dev_space()
222 super->s.cookie = (u8) cookie + 1; in carl9170_alloc_dev_space()
229 int cookie; in carl9170_release_dev_space() local
232 cookie = super->s.cookie; in carl9170_release_dev_space()
234 super->s.cookie = 0; in carl9170_release_dev_space()
249 if (unlikely(WARN_ON_ONCE(cookie == 0) || in carl9170_release_dev_space()
250 WARN_ON_ONCE(cookie > ar->fw.mem_blocks))) in carl9170_release_dev_space()
257 bitmap_release_region(ar->mem_bitmap, cookie - 1, 0); in carl9170_release_dev_space()
[all …]
Dfwcmd.h257 u8 cookie; member
270 u8 cookie; member
/linux-4.4.14/arch/tile/gxio/
Diorpc_globals.c27 params->pollfd.kernel.cookie = pollfd_cookie; in __iorpc_arm_pollfd()
44 params->pollfd.kernel.cookie = pollfd_cookie; in __iorpc_close_pollfd()
/linux-4.4.14/net/rds/
Drdma.c182 rds_rdma_cookie_t cookie; in __rds_rdma_map() local
284 cookie = rds_rdma_make_cookie(mr->r_key, args->vec.addr & ~PAGE_MASK); in __rds_rdma_map()
286 *cookie_ret = cookie; in __rds_rdma_map()
288 if (args->cookie_addr && put_user(cookie, (u64 __user *)(unsigned long) args->cookie_addr)) { in __rds_rdma_map()
370 if (args.cookie == 0) { in rds_free_mr()
382 mr = rds_mr_tree_walk(&rs->rs_rdma_keys, rds_rdma_cookie_key(args.cookie), NULL); in rds_free_mr()
638 op->op_rkey = rds_rdma_cookie_key(args->cookie); in rds_cmsg_rdma_args()
639 op->op_remote_addr = args->remote_vec.addr + rds_rdma_cookie_offset(args->cookie); in rds_cmsg_rdma_args()
852 rm->atomic.op_rkey = rds_rdma_cookie_key(args->cookie); in rds_cmsg_atomic()
853 rm->atomic.op_remote_addr = args->remote_addr + rds_rdma_cookie_offset(args->cookie); in rds_cmsg_atomic()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/core/
Dramht.c99 nvkm_ramht_remove(struct nvkm_ramht *ramht, int cookie) in nvkm_ramht_remove() argument
101 if (--cookie >= 0) in nvkm_ramht_remove()
102 nvkm_ramht_update(ramht, cookie, NULL, -1, 0, 0, 0); in nvkm_ramht_remove()
/linux-4.4.14/fs/afs/
Ddir.c397 struct afs_lookup_cookie *cookie = in afs_lookup_filldir() local
401 cookie->name.name, cookie->name.len, name, nlen, in afs_lookup_filldir()
408 if (cookie->name.len != nlen || in afs_lookup_filldir()
409 memcmp(cookie->name.name, name, nlen) != 0) { in afs_lookup_filldir()
414 cookie->fid.vnode = ino; in afs_lookup_filldir()
415 cookie->fid.unique = dtype; in afs_lookup_filldir()
416 cookie->found = 1; in afs_lookup_filldir()
430 struct afs_lookup_cookie cookie = { in afs_do_lookup() local
440 ret = afs_dir_iterate(dir, &cookie.ctx, key); in afs_do_lookup()
447 if (!cookie.found) { in afs_do_lookup()
[all …]
/linux-4.4.14/include/rdma/
Dib_umem_odp.h112 void *cookie);
118 umem_call_back cb, void *cookie);
/linux-4.4.14/include/linux/lockd/
Dxdr.h62 struct nlm_cookie cookie; member
78 struct nlm_cookie cookie; member
/linux-4.4.14/include/misc/
Dcxl.h107 irq_handler_t handler, void *cookie, char *name);
109 void cxl_unmap_afu_irq(struct cxl_context *cxl, int num, void *cookie);
/linux-4.4.14/drivers/staging/lustre/lustre/obdclass/
Dlustre_handles.c137 void *class_handle2object(__u64 cookie) in class_handle2object() argument
147 bucket = handle_hash + (cookie & HANDLE_HASH_MASK); in class_handle2object()
151 if (h->h_cookie != cookie) in class_handle2object()
Dlu_object.c443 void *cookie, const char *format, ...) in lu_cdebug_printer() argument
445 struct libcfs_debug_msg_data *msgdata = cookie; in lu_cdebug_printer()
476 void lu_object_header_print(const struct lu_env *env, void *cookie, in lu_object_header_print() argument
480 (*printer)(env, cookie, "header@%p[%#lx, %d, "DFID"%s%s%s]", in lu_object_header_print()
493 void lu_object_print(const struct lu_env *env, void *cookie, in lu_object_print() argument
501 lu_object_header_print(env, cookie, printer, top); in lu_object_print()
502 (*printer)(env, cookie, "{\n"); in lu_object_print()
508 (*printer)(env, cookie, "%*.*s%s@%p", depth, depth, ruler, in lu_object_print()
512 (*o->lo_ops->loo_object_print)(env, cookie, printer, o); in lu_object_print()
514 (*printer)(env, cookie, "\n"); in lu_object_print()
[all …]
/linux-4.4.14/drivers/net/ethernet/qlogic/qed/
Dqed_sp_commands.c56 p_ent->comp_cb.cookie = &p_ent->comp_done; in qed_sp_init_request()
63 p_ent->comp_cb.cookie = p_params->p_comp_data->cookie; in qed_sp_init_request()
Dqed_spq.c42 void *cookie, in qed_spq_blocking_cb() argument
48 comp_done = (struct qed_spq_comp_done *)cookie; in qed_spq_blocking_cb()
65 comp_done = (struct qed_spq_comp_done *)p_ent->comp_cb.cookie; in qed_spq_block()
269 void *cookie) in qed_eq_completion() argument
272 struct qed_eq *p_eq = cookie; in qed_eq_completion()
834 p_ent->comp_cb.function, p_ent->comp_cb.cookie); in qed_spq_completion()
836 found->comp_cb.function(p_hwfn, found->comp_cb.cookie, p_data, in qed_spq_completion()
Dqed_sp.h32 void *cookie; member
251 void *cookie);
Dqed_int.h238 void *cookie);
261 void *cookie,
/linux-4.4.14/drivers/net/wireless/ath/ath6kl/
Dtxrx.c291 struct ath6kl_cookie *cookie = NULL; in ath6kl_control_tx() local
317 cookie = NULL; in ath6kl_control_tx()
321 cookie = ath6kl_alloc_cookie(ar); in ath6kl_control_tx()
324 if (cookie == NULL) { in ath6kl_control_tx()
337 cookie->skb = skb; in ath6kl_control_tx()
338 cookie->map_no = 0; in ath6kl_control_tx()
339 set_htc_pkt_info(&cookie->htc_pkt, cookie, skb->data, skb->len, in ath6kl_control_tx()
341 cookie->htc_pkt.skb = skb; in ath6kl_control_tx()
347 ath6kl_htc_tx(ar->htc_target, &cookie->htc_pkt); in ath6kl_control_tx()
359 struct ath6kl_cookie *cookie = NULL; in ath6kl_data_tx() local
[all …]
Drecovery.c57 void ath6kl_recovery_hb_event(struct ath6kl *ar, u32 cookie) in ath6kl_recovery_hb_event() argument
59 if (cookie == ar->fw_recovery.seq_num) in ath6kl_recovery_hb_event()
/linux-4.4.14/drivers/video/fbdev/
Dmx3fb.c270 dma_cookie_t cookie; member
395 dma_cookie_t cookie; in sdc_enable_channel() local
404 if (mx3_fbi->cookie < 0) { in sdc_enable_channel()
416 cookie = mx3_fbi->txd->tx_submit(mx3_fbi->txd); in sdc_enable_channel()
418 mx3_fbi->txd, cookie, list_empty(&ichan->queue) ? '-' : '+'); in sdc_enable_channel()
428 cookie = mx3_fbi->cookie; in sdc_enable_channel()
430 mx3_fbi->txd, cookie, list_empty(&ichan->queue) ? '-' : '+'); in sdc_enable_channel()
433 if (cookie >= 0) { in sdc_enable_channel()
436 mx3_fbi->cookie = cookie; in sdc_enable_channel()
465 mx3_fbi->cookie = -EINVAL; in sdc_disable_channel()
[all …]
/linux-4.4.14/drivers/scsi/csiostor/
Dt4fw_api_stor.h117 __be64 cookie; member
185 u64 cookie; member
210 u64 cookie; member
236 u64 cookie; member
262 u64 cookie; member
290 u64 cookie; member
/linux-4.4.14/arch/sparc/kernel/
Dirq_64.c256 unsigned long hv_err, cookie; in cookie_exists() local
260 hv_err = sun4v_vintr_get_cookie(devhandle, devino, &cookie); in cookie_exists()
266 if (cookie & ((1UL << 63UL))) { in cookie_exists()
267 cookie = ~cookie; in cookie_exists()
268 bucket = (struct ino_bucket *) __va(cookie); in cookie_exists()
682 unsigned long hv_error, cookie; in cookie_assign() local
688 cookie = ~__pa(&ihd->bucket); in cookie_assign()
690 hv_error = sun4v_vintr_set_cookie(devhandle, devino, cookie); in cookie_assign()
/linux-4.4.14/fs/proc/
Dself.c21 static const char *proc_self_follow_link(struct dentry *dentry, void **cookie) in proc_self_follow_link() argument
34 return *cookie = name; in proc_self_follow_link()
Dthread_self.c22 static const char *proc_thread_self_follow_link(struct dentry *dentry, void **cookie) in proc_thread_self_follow_link() argument
35 return *cookie = name; in proc_thread_self_follow_link()
/linux-4.4.14/drivers/staging/lustre/lustre/obdecho/
Decho_client.c166 u64 end, int mode, __u64 *cookie);
167 static int cl_echo_cancel(struct echo_device *d, __u64 cookie);
297 void *cookie, lu_printer_t printer) in echo_page_print() argument
301 (*printer)(env, cookie, LUSTRE_ECHO_CLIENT_NAME"-page@%p %d vm@%p\n", in echo_page_print()
536 static int echo_object_print(const struct lu_env *env, void *cookie, in echo_object_print() argument
541 return (*p)(env, cookie, "echoclient-object@%p", obj); in echo_object_print()
1035 __u64 *cookie, __u32 enqflags) in cl_echo_enqueue0() argument
1070 *cookie = el->el_cookie; in cl_echo_enqueue0()
1080 int mode, __u64 *cookie) in cl_echo_enqueue() argument
1101 result = cl_echo_enqueue0(env, eco, start, end, mode, cookie, 0); in cl_echo_enqueue()
[all …]
/linux-4.4.14/drivers/gpu/vga/
Dvgaarb.c69 void *cookie; member
70 void (*irq_set_state)(void *cookie, bool enable);
71 unsigned int (*set_vga_decode)(void *cookie, bool decode);
153 vgadev->irq_set_state(vgadev->cookie, state); in vga_irq_set_state()
720 int vga_client_register(struct pci_dev *pdev, void *cookie, in vga_client_register() argument
721 void (*irq_set_state)(void *cookie, bool state), in vga_client_register() argument
722 unsigned int (*set_vga_decode)(void *cookie, in vga_client_register() argument
736 vgadev->cookie = cookie; in vga_client_register()
1260 new_decodes = vgadev->set_vga_decode(vgadev->cookie, in vga_arbiter_notify_clients()
/linux-4.4.14/drivers/dma/ioat/
Dinit.c319 dma_cookie_t cookie; in ioat_dma_self_test() local
371 cookie = tx->tx_submit(tx); in ioat_dma_self_test()
372 if (cookie < 0) { in ioat_dma_self_test()
382 dma->device_tx_status(dma_chan, cookie, NULL) in ioat_dma_self_test()
783 dma_cookie_t cookie; in ioat_xor_val_self_test() local
867 cookie = tx->tx_submit(tx); in ioat_xor_val_self_test()
868 if (cookie < 0) { in ioat_xor_val_self_test()
878 dma->device_tx_status(dma_chan, cookie, NULL) != DMA_COMPLETE) { in ioat_xor_val_self_test()
935 cookie = tx->tx_submit(tx); in ioat_xor_val_self_test()
936 if (cookie < 0) { in ioat_xor_val_self_test()
[all …]
Ddma.c270 dma_cookie_t cookie; in ioat_tx_submit_unlock() local
272 cookie = dma_cookie_assign(tx); in ioat_tx_submit_unlock()
273 dev_dbg(to_dev(ioat_chan), "%s: cookie: %d\n", __func__, cookie); in ioat_tx_submit_unlock()
289 return cookie; in ioat_tx_submit_unlock()
659 if (tx->cookie) { in __cleanup()
796 if (tx->cookie) { in ioat_eh()
894 ioat_tx_status(struct dma_chan *c, dma_cookie_t cookie, in ioat_tx_status() argument
900 ret = dma_cookie_status(c, cookie, txstate); in ioat_tx_status()
906 return dma_cookie_status(c, cookie, txstate); in ioat_tx_status()
/linux-4.4.14/fs/ceph/
Dcache.c216 struct fscache_cookie* cookie; in ceph_fscache_unregister_inode_cookie() local
218 if ((cookie = ci->fscache) == NULL) in ceph_fscache_unregister_inode_cookie()
223 fscache_uncache_all_inode_pages(cookie, &ci->vfs_inode); in ceph_fscache_unregister_inode_cookie()
224 fscache_relinquish_cookie(cookie, 0); in ceph_fscache_unregister_inode_cookie()
/linux-4.4.14/arch/sparc/include/asm/
Dhypervisor.h1655 unsigned long *cookie);
1658 unsigned long cookie);
2552 unsigned long cookie; member
2670 unsigned long cookie,
2675 unsigned long cookie,
Debus_dma.h15 void (*callback)(struct ebus_dma_info *p, int event, void *cookie);
/linux-4.4.14/drivers/staging/lustre/lustre/include/
Dlu_object.h193 void *cookie, const char *format, ...)
242 int (*loo_object_print)(const struct lu_env *env, void *cookie,
714 void lu_site_print(const struct lu_env *env, struct lu_site *s, void *cookie,
776 void *cookie, const char *format, ...);
806 void lu_object_print (const struct lu_env *env, void *cookie,
808 void lu_object_header_print(const struct lu_env *env, void *cookie,
Dlustre_handles.h89 void *class_handle2object(__u64 cookie);
/linux-4.4.14/fs/kernfs/
Dsymlink.c115 static const char *kernfs_iop_follow_link(struct dentry *dentry, void **cookie) in kernfs_iop_follow_link() argument
126 return *cookie = (char *)page; in kernfs_iop_follow_link()
/linux-4.4.14/fs/ext4/
Dsymlink.c26 static const char *ext4_encrypted_follow_link(struct dentry *dentry, void **cookie) in ext4_encrypted_follow_link() argument
82 return *cookie = paddr; in ext4_encrypted_follow_link()
/linux-4.4.14/sound/core/
Dpcm_dmaengine.c33 dma_cookie_t cookie; member
169 prtd->cookie = dmaengine_submit(desc); in dmaengine_pcm_prepare_and_submit()
250 status = dmaengine_tx_status(prtd->dma_chan, prtd->cookie, &state); in snd_dmaengine_pcm_pointer()
/linux-4.4.14/drivers/net/arcnet/
Dcapmode.c107 *((int *)&pkt->soft.cap.cookie[0])); in build_header()
148 *((int *)&pkt->soft.cap.cookie[0])); in prepare_tx()
216 *((int *)&ackpkt->soft.cap.cookie[0])); in ack_tx()
/linux-4.4.14/drivers/staging/lustre/lustre/ldlm/
Dldlm_pool.c818 void *cookie; in ldlm_pools_count() local
826 cookie = cl_env_reenter(); in ldlm_pools_count()
836 cl_env_reexit(cookie); in ldlm_pools_count()
862 cl_env_reexit(cookie); in ldlm_pools_count()
871 void *cookie; in ldlm_pools_scan() local
876 cookie = cl_env_reenter(); in ldlm_pools_scan()
907 cl_env_reexit(cookie); in ldlm_pools_scan()
/linux-4.4.14/drivers/gpu/drm/exynos/
Dexynos_drm_gem.c67 exynos_gem->cookie = dma_alloc_attrs(dev->dev, exynos_gem->size, in exynos_drm_alloc_buf()
70 if (!exynos_gem->cookie) { in exynos_drm_alloc_buf()
75 ret = dma_get_sgtable_attrs(dev->dev, &sgt, exynos_gem->cookie, in exynos_drm_alloc_buf()
100 dma_free_attrs(dev->dev, exynos_gem->size, exynos_gem->cookie, in exynos_drm_alloc_buf()
120 dma_free_attrs(dev->dev, exynos_gem->size, exynos_gem->cookie, in exynos_drm_free_buf()
/linux-4.4.14/drivers/dma/hsu/
Dhsu.c278 dma_cookie_t cookie, struct dma_tx_state *state) in hsu_dma_tx_status() argument
286 status = dma_cookie_status(chan, cookie, state); in hsu_dma_tx_status()
291 vdesc = vchan_find_desc(&hsuc->vchan, cookie); in hsu_dma_tx_status()
292 if (hsuc->desc && cookie == hsuc->desc->vdesc.tx.cookie) { in hsu_dma_tx_status()
/linux-4.4.14/sound/soc/intel/skylake/
Dskl-pcm.c626 unsigned long cookie; in skl_coupled_trigger() local
662 spin_lock_irqsave(&bus->reg_lock, cookie); in skl_coupled_trigger()
676 spin_unlock_irqrestore(&bus->reg_lock, cookie); in skl_coupled_trigger()
680 spin_lock_irqsave(&bus->reg_lock, cookie); in skl_coupled_trigger()
686 spin_unlock_irqrestore(&bus->reg_lock, cookie); in skl_coupled_trigger()
700 unsigned long cookie; in skl_decoupled_trigger() local
728 spin_lock_irqsave(&bus->reg_lock, cookie); in skl_decoupled_trigger()
738 spin_unlock_irqrestore(&bus->reg_lock, cookie); in skl_decoupled_trigger()
/linux-4.4.14/drivers/net/wireless/ath/ath9k/
Dhtc_drv_txrx.c169 slot = tx_mhdr->cookie; in strip_drv_header()
178 slot = tx_fhdr->cookie; in strip_drv_header()
247 mgmt_hdr.cookie = slot; in ath9k_htc_tx_mgmt()
282 tx_hdr.cookie = slot; in ath9k_htc_tx_data()
589 u8 cookie, u8 epid) in check_cookie() argument
596 fcookie = hdr->cookie; in check_cookie()
604 fcookie = hdr->cookie; in check_cookie()
607 if (fcookie == cookie) in check_cookie()
628 if (check_cookie(priv, skb, txs->cookie, epid)) { in ath9k_htc_tx_get_packet()
637 txs->cookie, epid); in ath9k_htc_tx_get_packet()
[all …]
/linux-4.4.14/fs/notify/inotify/
Dinotify_fsnotify.c70 const unsigned char *file_name, u32 cookie) in inotify_handle_event() argument
106 event->sync_cookie = cookie; in inotify_handle_event()
Dinotify.h30 const unsigned char *file_name, u32 cookie);
/linux-4.4.14/drivers/scsi/
Dscsi_pm.c111 static void async_sdev_resume(void *dev, async_cookie_t cookie) in async_sdev_resume() argument
116 static void async_sdev_thaw(void *dev, async_cookie_t cookie) in async_sdev_thaw() argument
121 static void async_sdev_restore(void *dev, async_cookie_t cookie) in async_sdev_restore() argument
/linux-4.4.14/drivers/dma/bestcomm/
Dbestcomm.c90 tsk->cookie = kmalloc(sizeof(void*) * bd_count, GFP_KERNEL); in bcom_task_alloc()
91 if (!tsk->cookie) in bcom_task_alloc()
110 kfree(tsk->cookie); in bcom_task_alloc()
133 kfree(tsk->cookie); in bcom_task_free()
/linux-4.4.14/drivers/dma/ipu/
Dipu_idmac.c829 dma_cookie_t cookie; in idmac_tx_submit() local
855 cookie = ipu_init_channel_buffer(ichan, in idmac_tx_submit()
863 if (cookie < 0) in idmac_tx_submit()
869 cookie = dma_cookie_assign(tx); in idmac_tx_submit()
881 cookie = ret; in idmac_tx_submit()
888 cookie = ret; in idmac_tx_submit()
896 if (cookie < 0) { in idmac_tx_submit()
900 tx->cookie = cookie; in idmac_tx_submit()
901 ichan->dma_chan.cookie = cookie; in idmac_tx_submit()
907 return cookie; in idmac_tx_submit()
[all …]
/linux-4.4.14/net/mac80211/
Dcfg.c301 void *cookie, in ieee80211_get_key() argument
302 void (*callback)(void *cookie, in ieee80211_get_key() argument
406 callback(cookie, &params); in ieee80211_get_key()
2550 unsigned int duration, u64 *cookie, in ieee80211_start_roc_work() argument
2593 roc->cookie = ieee80211_mgmt_tx_cookie(local); in ieee80211_start_roc_work()
2594 *cookie = roc->cookie; in ieee80211_start_roc_work()
2596 roc->mgmt_tx_cookie = *cookie; in ieee80211_start_roc_work()
2698 u64 *cookie) in ieee80211_remain_on_channel() argument
2706 duration, cookie, NULL, in ieee80211_remain_on_channel()
2714 u64 cookie, bool mgmt_tx) in ieee80211_cancel_roc() argument
[all …]
/linux-4.4.14/drivers/infiniband/hw/cxgb4/
Dcq.c58 res_wr->cookie = (uintptr_t)&wr_wait; in destroy_cq()
128 res_wr->cookie = (uintptr_t)&wr_wait; in create_cq()
469 u8 *cqe_flushed, u64 *cookie, u32 *credit) in poll_cq() argument
640 *cookie = wq->sq.sw_sq[wq->sq.cidx].wr_id; in poll_cq()
646 *cookie = wq->rq.sw_rq[wq->rq.cidx].wr_id; in poll_cq()
689 u64 cookie = 0; in c4iw_poll_cq_one() local
704 ret = poll_cq(wq, &(chp->cq), &cqe, &cqe_flushed, &cookie, &credit); in c4iw_poll_cq_one()
708 wc->wr_id = cookie; in c4iw_poll_cq_one()
716 CQE_WRID_HI(&cqe), CQE_WRID_LOW(&cqe), (unsigned long long)cookie); in c4iw_poll_cq_one()
/linux-4.4.14/fs/autofs4/
Dsymlink.c15 static const char *autofs4_follow_link(struct dentry *dentry, void **cookie) in autofs4_follow_link() argument
/linux-4.4.14/drivers/dma/ppc4xx/
Dadma.c1478 dma_cookie_t cookie) in ppc440spe_adma_run_tx_complete_actions() argument
1480 BUG_ON(desc->async_tx.cookie < 0); in ppc440spe_adma_run_tx_complete_actions()
1481 if (desc->async_tx.cookie > 0) { in ppc440spe_adma_run_tx_complete_actions()
1482 cookie = desc->async_tx.cookie; in ppc440spe_adma_run_tx_complete_actions()
1483 desc->async_tx.cookie = 0; in ppc440spe_adma_run_tx_complete_actions()
1498 return cookie; in ppc440spe_adma_run_tx_complete_actions()
1553 dma_cookie_t cookie = 0; in __ppc440spe_adma_slot_cleanup() local
1576 iter->async_tx.cookie, iter->idx, busy, iter->phys, in __ppc440spe_adma_slot_cleanup()
1630 cookie = ppc440spe_adma_run_tx_complete_actions( in __ppc440spe_adma_slot_cleanup()
1631 grp_iter, chan, cookie); in __ppc440spe_adma_slot_cleanup()
[all …]
/linux-4.4.14/arch/arm/mach-ebsa110/
Dcore.c119 static void __iomem *ebsa110_ioremap_caller(phys_addr_t cookie, size_t size, in ebsa110_ioremap_caller() argument
122 return (void __iomem *)cookie; in ebsa110_ioremap_caller()
/linux-4.4.14/arch/x86/platform/uv/
Dbios_uv.c150 uv_bios_reserved_page_pa(u64 buf, u64 *cookie, u64 *addr, u64 *len) in uv_bios_reserved_page_pa() argument
154 ret = uv_bios_call_irqsave(UV_BIOS_GET_PARTITION_ADDR, (u64)cookie, in uv_bios_reserved_page_pa()
/linux-4.4.14/drivers/gpu/drm/nouveau/include/nvkm/core/
Dramht.h25 void nvkm_ramht_remove(struct nvkm_ramht *, int cookie);
/linux-4.4.14/drivers/misc/sgi-xp/
Dxpc_partition.c69 u64 cookie = 0; in xpc_get_rsvd_page_pa() local
87 ret = get_partition_rsvd_page_pa(buf, &cookie, &rp_pa, &len); in xpc_get_rsvd_page_pa()
91 (unsigned long)cookie, rp_pa, len); in xpc_get_rsvd_page_pa()
/linux-4.4.14/include/linux/ceph/
Dosd_client.h107 u64 cookie; member
184 u64 cookie; member
310 u64 cookie, u64 version, int flag);
/linux-4.4.14/arch/arm/include/asm/
DbL_switcher.h18 typedef void (*bL_switch_completion_handler)(void *cookie);
/linux-4.4.14/drivers/staging/lustre/lnet/lnet/
Dlib-me.c169 cpt = lnet_cpt_of_cookie(current_meh.cookie); in LNetMEInsert()
239 cpt = lnet_cpt_of_cookie(meh.cookie); in LNetMEUnlink()
/linux-4.4.14/Documentation/video4linux/cx2341x/
DREADME.vbi18 for a bitmask determining which lines are captured and 4 bytes for a magic cookie,
31 After these magic cookies (and the 8 byte bitmask in case of cookie 'itv0') the
/linux-4.4.14/Documentation/virtual/kvm/
Ds390-diag.txt67 kvm_io_bus cookie). If general register 4 does not contain a valid
71 a 64bit identifier (in the kvm_io_bus cookie case).

123