Lines Matching refs:cookie
76 dma_cookie_t cookie;
83 cookie = dma_cookie_assign(tx);
92 chunk->async_tx.cookie > 0 ||
93 chunk->async_tx.cookie == -EBUSY ||
104 chunk->cookie = cookie;
108 tx->cookie, &chunk->async_tx, schan->id);
153 return cookie;
328 dma_cookie_t cookie = 0;
339 BUG_ON(tx->cookie > 0 && tx->cookie != desc->cookie);
350 desc->cookie != cookie)
353 if (tx->cookie > 0)
354 cookie = tx->cookie;
357 if (schan->dma_chan.completed_cookie != desc->cookie - 1)
359 "Completing cookie %d, expected %d\n",
360 desc->cookie,
362 schan->dma_chan.completed_cookie = desc->cookie;
371 tx->cookie, tx, schan->id);
376 if (tx->cookie > 0 || tx->cookie == -EBUSY) {
378 BUG_ON(tx->cookie < 0);
394 tx, tx->cookie);
425 schan->dma_chan.completed_cookie = schan->dma_chan.cookie;
495 * @first: if NULL, set to the current descriptor and cookie set to -EBUSY
524 new->async_tx.cookie = -EBUSY;
528 new->async_tx.cookie = -EINVAL;
532 "chaining (%zu/%zu)@%pad -> %pad with %p, cookie %d\n",
534 new->async_tx.cookie);
580 * cookie is at first set to -EBUSY, at tx-submit to a positive
582 * if more than one chunk is needed further chunks have cookie = -EINVAL
583 * the last chunk, if not equal to the first, has cookie = -ENOSPC
620 new->async_tx.cookie = -ENOSPC;
811 dma_cookie_t cookie,
822 status = dma_cookie_status(chan, cookie, txstate);
825 * If we don't find cookie on the queue, it has been aborted and we have
832 if (sdesc->cookie == cookie) {
921 sdesc->async_tx.cookie, &sdesc->async_tx);