Lines Matching refs:cookie
18 chan->cookie = DMA_MIN_COOKIE;
23 * dma_cookie_assign - assign a DMA engine cookie to the descriptor
24 * @tx: descriptor needing cookie
26 * Assign a unique non-zero per-channel cookie to the descriptor.
32 dma_cookie_t cookie;
34 cookie = chan->cookie + 1;
35 if (cookie < DMA_MIN_COOKIE)
36 cookie = DMA_MIN_COOKIE;
37 tx->cookie = chan->cookie = cookie;
39 return cookie;
47 * cookie marker. Zero the descriptors cookie to prevent accidental
54 BUG_ON(tx->cookie < DMA_MIN_COOKIE);
55 tx->chan->completed_cookie = tx->cookie;
56 tx->cookie = 0;
60 * dma_cookie_status - report cookie status
62 * @cookie: cookie we are interested in
65 * Report the status of the cookie, filling in the state structure if
69 dma_cookie_t cookie, struct dma_tx_state *state)
73 used = chan->cookie;
82 return dma_async_is_complete(cookie, complete, used);