Lines Matching refs:cookie

76 	dma_cookie_t cookie;  in shdma_tx_submit()  local
83 cookie = dma_cookie_assign(tx); in shdma_tx_submit()
92 chunk->async_tx.cookie > 0 || in shdma_tx_submit()
93 chunk->async_tx.cookie == -EBUSY || in shdma_tx_submit()
104 chunk->cookie = cookie; in shdma_tx_submit()
108 tx->cookie, &chunk->async_tx, schan->id); in shdma_tx_submit()
153 return cookie; in shdma_tx_submit()
328 dma_cookie_t cookie = 0; in __ld_cleanup() local
339 BUG_ON(tx->cookie > 0 && tx->cookie != desc->cookie); in __ld_cleanup()
350 desc->cookie != cookie) in __ld_cleanup()
353 if (tx->cookie > 0) in __ld_cleanup()
354 cookie = tx->cookie; in __ld_cleanup()
357 if (schan->dma_chan.completed_cookie != desc->cookie - 1) in __ld_cleanup()
360 desc->cookie, in __ld_cleanup()
362 schan->dma_chan.completed_cookie = desc->cookie; in __ld_cleanup()
371 tx->cookie, tx, schan->id); in __ld_cleanup()
376 if (tx->cookie > 0 || tx->cookie == -EBUSY) { in __ld_cleanup()
378 BUG_ON(tx->cookie < 0); in __ld_cleanup()
394 tx, tx->cookie); in __ld_cleanup()
425 schan->dma_chan.completed_cookie = schan->dma_chan.cookie; in __ld_cleanup()
524 new->async_tx.cookie = -EBUSY; in shdma_add_desc()
528 new->async_tx.cookie = -EINVAL; in shdma_add_desc()
534 new->async_tx.cookie); in shdma_add_desc()
620 new->async_tx.cookie = -ENOSPC; in shdma_prep_sg()
819 dma_cookie_t cookie, in shdma_tx_status() argument
830 status = dma_cookie_status(chan, cookie, txstate); in shdma_tx_status()
840 if (sdesc->cookie == cookie) { in shdma_tx_status()
929 sdesc->async_tx.cookie, &sdesc->async_tx); in chan_irqt()