/drivers/dma/ |
D | dmaengine.h | 17 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 …]
|
D | iop-adma.c | 140 struct iop_adma_chan *iop_chan, dma_cookie_t cookie) in iop_adma_run_tx_complete_actions() argument 144 BUG_ON(tx->cookie < 0); in iop_adma_run_tx_complete_actions() 145 if (tx->cookie > 0) { in iop_adma_run_tx_complete_actions() 146 cookie = tx->cookie; in iop_adma_run_tx_complete_actions() 147 tx->cookie = 0; in iop_adma_run_tx_complete_actions() 169 return cookie; in iop_adma_run_tx_complete_actions() 201 dma_cookie_t cookie = 0; in __iop_adma_slot_cleanup() local 214 iter->async_tx.cookie, iter->idx, busy, in __iop_adma_slot_cleanup() 286 cookie = iop_adma_run_tx_complete_actions( in __iop_adma_slot_cleanup() 287 grp_iter, iop_chan, cookie); in __iop_adma_slot_cleanup() [all …]
|
D | shdma.c | 291 dma_cookie_t cookie; in sh_dmae_tx_submit() local 301 cookie = dma_cookie_assign(tx); in sh_dmae_tx_submit() 310 chunk->async_tx.cookie > 0 || in sh_dmae_tx_submit() 311 chunk->async_tx.cookie == -EBUSY || in sh_dmae_tx_submit() 317 chunk->cookie = cookie; in sh_dmae_tx_submit() 326 tx->cookie, &last->async_tx, sh_chan->id, in sh_dmae_tx_submit() 364 return cookie; in sh_dmae_tx_submit() 534 new->async_tx.cookie = -EBUSY; in sh_dmae_add_desc() 538 new->async_tx.cookie = -EINVAL; in sh_dmae_add_desc() 544 new->async_tx.cookie, sh_chan->xmit_shift); in sh_dmae_add_desc() [all …]
|
D | mv_xor.c | 291 struct mv_xor_chan *mv_chan, dma_cookie_t cookie) in mv_xor_run_tx_complete_actions() argument 293 BUG_ON(desc->async_tx.cookie < 0); in mv_xor_run_tx_complete_actions() 295 if (desc->async_tx.cookie > 0) { in mv_xor_run_tx_complete_actions() 296 cookie = desc->async_tx.cookie; in mv_xor_run_tx_complete_actions() 347 return cookie; in mv_xor_run_tx_complete_actions() 390 dma_cookie_t cookie = 0; in __mv_xor_slot_cleanup() local 424 cookie = mv_xor_run_tx_complete_actions(iter, mv_chan, cookie); in __mv_xor_slot_cleanup() 439 if (cookie > 0) in __mv_xor_slot_cleanup() 440 mv_chan->common.completed_cookie = cookie; in __mv_xor_slot_cleanup() 509 iter->async_tx.cookie = 0; in mv_xor_alloc_slots() [all …]
|
D | dmaengine.c | 255 enum dma_status dma_sync_wait(struct dma_chan *chan, dma_cookie_t cookie) in dma_sync_wait() argument 262 status = dma_async_is_tx_complete(chan, cookie, NULL, NULL); in dma_sync_wait() 871 dma_cookie_t cookie; in dma_async_memcpy_buf_to_buf() local 888 cookie = tx->tx_submit(tx); in dma_async_memcpy_buf_to_buf() 895 return cookie; in dma_async_memcpy_buf_to_buf() 919 dma_cookie_t cookie; in dma_async_memcpy_buf_to_pg() local 934 cookie = tx->tx_submit(tx); in dma_async_memcpy_buf_to_pg() 941 return cookie; in dma_async_memcpy_buf_to_pg() 967 dma_cookie_t cookie; in dma_async_memcpy_pg_to_pg() local 983 cookie = tx->tx_submit(tx); in dma_async_memcpy_pg_to_pg() [all …]
|
D | fsldma.c | 409 dma_cookie_t cookie; in fsl_dma_tx_submit() local 418 cookie = dma_cookie_assign(&child->async_tx); in fsl_dma_tx_submit() 426 return cookie; in fsl_dma_tx_submit() 562 new->async_tx.cookie = -EBUSY; in fsl_dma_prep_interrupt() 611 new->async_tx.cookie = 0; in fsl_dma_prep_memcpy() 624 new->async_tx.cookie = -EBUSY; in fsl_dma_prep_memcpy() 694 new->async_tx.cookie = 0; in fsl_dma_prep_sg() 740 new->async_tx.cookie = -EBUSY; in fsl_dma_prep_sg() 979 dma_cookie_t cookie, in fsl_tx_status() argument 987 ret = dma_cookie_status(dchan, cookie, txstate); in fsl_tx_status() [all …]
|
D | sa11x0-dma.c | 164 p->num, txd, txd->tx.cookie, txd->ddar); in sa11x0_dma_start_desc() 235 p->num, p->txd_done, p->txd_done->tx.cookie); in sa11x0_dma_complete() 237 c->lc = txd->tx.cookie; in sa11x0_dma_complete() 350 c, txd, txd->tx.cookie); in sa11x0_dma_tasklet() 407 txd, txd->tx.cookie); in sa11x0_dma_tasklet() 470 dma_cookie_t cookie, struct dma_tx_state *state) in sa11x0_dma_tx_status() argument 481 last_used = c->chan.cookie; in sa11x0_dma_tx_status() 484 ret = dma_async_is_complete(cookie, last_complete, last_used); in sa11x0_dma_tx_status() 572 c->chan.cookie += 1; in sa11x0_dma_tx_submit() 573 if (c->chan.cookie < 0) in sa11x0_dma_tx_submit() [all …]
|
/drivers/oprofile/ |
D | buffer_sync.c | 210 unsigned long cookie; in fast_get_dcookie() local 214 get_dcookie(path, &cookie); in fast_get_dcookie() 215 return cookie; in fast_get_dcookie() 226 unsigned long cookie = NO_COOKIE; in get_exec_dcookie() local 237 cookie = fast_get_dcookie(&vma->vm_file->f_path); in get_exec_dcookie() 242 return cookie; in get_exec_dcookie() 254 unsigned long cookie = NO_COOKIE; in lookup_dcookie() local 263 cookie = fast_get_dcookie(&vma->vm_file->f_path); in lookup_dcookie() 275 cookie = INVALID_COOKIE; in lookup_dcookie() 277 return cookie; in lookup_dcookie() [all …]
|
/drivers/mmc/host/ |
D | tmio_mmc_dma.c | 55 dma_cookie_t cookie; in tmio_mmc_start_dma_rx() local 95 cookie = dmaengine_submit(desc); in tmio_mmc_start_dma_rx() 96 if (cookie < 0) { in tmio_mmc_start_dma_rx() 98 ret = cookie; in tmio_mmc_start_dma_rx() 102 __func__, host->sg_len, ret, cookie, host->mrq); in tmio_mmc_start_dma_rx() 123 desc, cookie, host->sg_len); in tmio_mmc_start_dma_rx() 132 dma_cookie_t cookie; in tmio_mmc_start_dma_tx() local 176 cookie = dmaengine_submit(desc); in tmio_mmc_start_dma_tx() 177 if (cookie < 0) { in tmio_mmc_start_dma_tx() 179 ret = cookie; in tmio_mmc_start_dma_tx() [all …]
|
/drivers/infiniband/hw/ipath/ |
D | ipath_wc_x86_64.c | 125 int cookie; in ipath_enable_wc() local 130 cookie = mtrr_add(pioaddr, piolen, MTRR_TYPE_WRCOMB, 0); in ipath_enable_wc() 131 if (cookie < 0) { in ipath_enable_wc() 136 cookie); in ipath_enable_wc() 141 "cookie is %d\n", cookie); in ipath_enable_wc() 142 dd->ipath_wc_cookie = cookie; in ipath_enable_wc()
|
/drivers/infiniband/hw/qib/ |
D | qib_wc_x86_64.c | 117 int cookie; in qib_enable_wc() local 119 cookie = mtrr_add(pioaddr, piolen, MTRR_TYPE_WRCOMB, 0); in qib_enable_wc() 120 if (cookie < 0) { in qib_enable_wc() 125 cookie); in qib_enable_wc() 129 dd->wc_cookie = cookie; in qib_enable_wc()
|
/drivers/media/video/s5p-tv/ |
D | sdo_drv.c | 40 unsigned int cookie; member 118 { V4L2_STD_PAL_N, .height = 576, .cookie = SDO_PAL_N }, 119 { V4L2_STD_PAL_Nc, .height = 576, .cookie = SDO_PAL_NC }, 120 { V4L2_STD_PAL_M, .height = 480, .cookie = SDO_PAL_M }, 121 { V4L2_STD_PAL_60, .height = 480, .cookie = SDO_PAL_60 }, 122 { V4L2_STD_NTSC_443, .height = 480, .cookie = SDO_NTSC_443 }, 123 { V4L2_STD_PAL, .height = 576, .cookie = SDO_PAL_BGHID }, 124 { V4L2_STD_NTSC_M, .height = 480, .cookie = SDO_NTSC_M }, 277 sdo_write_mask(sdev, SDO_CONFIG, sdev->fmt->cookie, SDO_STANDARD_MASK); in sdo_runtime_resume()
|
D | mixer_vp_layer.c | 31 .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, 110 if (layer->fmt->cookie & VP_MODE_MEM_TILED) { in mxr_vp_buffer_set()
|
D | mixer.h | 68 unsigned long cookie; member 194 int cookie; member 204 int cookie; member 345 void mxr_reg_s_output(struct mxr_device *mdev, int cookie);
|
/drivers/staging/android/ |
D | binder.h | 61 void *cookie; member 125 void *cookie; /* target object cookie */ member 152 void *cookie; member 163 void *cookie; member
|
D | binder.c | 230 void __user *cookie; member 243 void __user *cookie; member 971 void __user *cookie) in binder_new_node() argument 998 node->cookie = cookie; in binder_new_node() 1005 node->ptr, node->cookie); in binder_new_node() 1631 node = binder_new_node(proc, fp->binder, fp->cookie); in binder_transaction() 1639 if (fp->cookie != node->cookie) { in binder_transaction() 1644 fp->cookie, node->cookie); in binder_transaction() 1691 fp->cookie = ref->node->cookie; in binder_transaction() 1914 void *cookie; in binder_thread_write() local [all …]
|
/drivers/net/wireless/b43/ |
D | pio.c | 40 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 …]
|
D | xmit.h | 54 __le16 cookie; /* TX frame cookie */ member 71 __le16 cookie; /* TX frame cookie */ member 82 __le16 cookie; /* TX frame cookie */ member 204 struct ieee80211_tx_info *txctl, u16 cookie); 208 u16 cookie; /* The cookie from the txhdr */ member
|
/drivers/net/wireless/b43legacy/ |
D | pio.c | 119 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()
|
D | xmit.h | 37 __le16 cookie; member 86 u16 cookie); 91 u16 cookie; /* The cookie from the txhdr */ member 119 __le16 cookie; member
|
D | dma.c | 500 txstat->cookie = 0; in setup_rx_descbuffer() 948 u16 cookie = 0x1000; in generate_cookie() local 958 cookie = 0xA000; in generate_cookie() 961 cookie = 0xB000; in generate_cookie() 964 cookie = 0xC000; in generate_cookie() 967 cookie = 0xD000; in generate_cookie() 970 cookie = 0xE000; in generate_cookie() 973 cookie = 0xF000; in generate_cookie() 977 cookie |= (u16)slot; in generate_cookie() 979 return cookie; in generate_cookie() [all …]
|
/drivers/net/wireless/ath/carl9170/ |
D | tx.c | 195 int cookie = -1; in carl9170_alloc_dev_space() local 206 cookie = bitmap_find_free_region(ar->mem_bitmap, ar->fw.mem_blocks, 0); in carl9170_alloc_dev_space() 209 if (unlikely(cookie < 0)) { in carl9170_alloc_dev_space() 223 super->s.cookie = (u8) cookie + 1; in carl9170_alloc_dev_space() 230 int cookie; in carl9170_release_dev_space() local 233 cookie = super->s.cookie; in carl9170_release_dev_space() 235 super->s.cookie = 0; in carl9170_release_dev_space() 250 if (unlikely(WARN_ON_ONCE(cookie == 0) || in carl9170_release_dev_space() 251 WARN_ON_ONCE(cookie > ar->fw.mem_blocks))) in carl9170_release_dev_space() 258 bitmap_release_region(ar->mem_bitmap, cookie - 1, 0); in carl9170_release_dev_space() [all …]
|
/drivers/infiniband/hw/cxgb3/ |
D | iwch_cq.c | 52 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()
|
/drivers/dma/ioat/ |
D | dma_v3.c | 280 if (tx->cookie) { in __cleanup() 410 ioat3_tx_status(struct dma_chan *c, dma_cookie_t cookie, in ioat3_tx_status() argument 416 ret = dma_cookie_status(c, cookie, txstate); in ioat3_tx_status() 422 return dma_cookie_status(c, cookie, txstate); in ioat3_tx_status() 857 dma_cookie_t cookie; in ioat_xor_val_self_test() local 929 cookie = tx->tx_submit(tx); in ioat_xor_val_self_test() 930 if (cookie < 0) { in ioat_xor_val_self_test() 939 if (dma->device_tx_status(dma_chan, cookie, NULL) != DMA_SUCCESS) { in ioat_xor_val_self_test() 983 cookie = tx->tx_submit(tx); in ioat_xor_val_self_test() 984 if (cookie < 0) { in ioat_xor_val_self_test() [all …]
|
/drivers/video/ |
D | mx3fb.c | 269 dma_cookie_t cookie; member 330 dma_cookie_t cookie; in sdc_enable_channel() local 339 if (mx3_fbi->cookie < 0) { in sdc_enable_channel() 351 cookie = mx3_fbi->txd->tx_submit(mx3_fbi->txd); in sdc_enable_channel() 353 mx3_fbi->txd, cookie, list_empty(&ichan->queue) ? '-' : '+'); in sdc_enable_channel() 363 cookie = mx3_fbi->cookie; in sdc_enable_channel() 365 mx3_fbi->txd, cookie, list_empty(&ichan->queue) ? '-' : '+'); in sdc_enable_channel() 368 if (cookie >= 0) { in sdc_enable_channel() 371 mx3_fbi->cookie = cookie; in sdc_enable_channel() 401 mx3_fbi->cookie = -EINVAL; in sdc_disable_channel() [all …]
|