Lines Matching refs:cookie
79 dma_cookie_t cookie; in shdma_tx_submit() local
86 cookie = dma_cookie_assign(tx); in shdma_tx_submit()
95 chunk->async_tx.cookie > 0 || in shdma_tx_submit()
96 chunk->async_tx.cookie == -EBUSY || in shdma_tx_submit()
107 chunk->cookie = cookie; in shdma_tx_submit()
111 tx->cookie, &chunk->async_tx, schan->id); in shdma_tx_submit()
156 return cookie; in shdma_tx_submit()
331 dma_cookie_t cookie = 0; in __ld_cleanup() local
341 BUG_ON(tx->cookie > 0 && tx->cookie != desc->cookie); in __ld_cleanup()
352 desc->cookie != cookie) in __ld_cleanup()
355 if (tx->cookie > 0) in __ld_cleanup()
356 cookie = tx->cookie; in __ld_cleanup()
359 if (schan->dma_chan.completed_cookie != desc->cookie - 1) in __ld_cleanup()
362 desc->cookie, in __ld_cleanup()
364 schan->dma_chan.completed_cookie = desc->cookie; in __ld_cleanup()
373 tx->cookie, tx, schan->id); in __ld_cleanup()
378 if (tx->cookie > 0 || tx->cookie == -EBUSY) { in __ld_cleanup()
380 BUG_ON(tx->cookie < 0); in __ld_cleanup()
396 tx, tx->cookie); in __ld_cleanup()
427 schan->dma_chan.completed_cookie = schan->dma_chan.cookie; in __ld_cleanup()
527 new->async_tx.cookie = -EBUSY; in shdma_add_desc()
531 new->async_tx.cookie = -EINVAL; in shdma_add_desc()
537 new->async_tx.cookie); in shdma_add_desc()
623 new->async_tx.cookie = -ENOSPC; in shdma_prep_sg()
822 dma_cookie_t cookie, in shdma_tx_status() argument
833 status = dma_cookie_status(chan, cookie, txstate); in shdma_tx_status()
843 if (sdesc->cookie == cookie) { in shdma_tx_status()
932 sdesc->async_tx.cookie, &sdesc->async_tx); in chan_irqt()