Lines Matching defs:chunk
72 struct shdma_desc *chunk, *c, *desc =
86 list_for_each_entry_safe(chunk, c, desc->node.prev, node) {
91 if (chunk != desc && (chunk->mark == DESC_IDLE ||
92 chunk->async_tx.cookie > 0 ||
93 chunk->async_tx.cookie == -EBUSY ||
94 &chunk->node == &schan->ld_free))
96 chunk->mark = DESC_SUBMITTED;
97 if (chunk->chunks == 1) {
98 chunk->async_tx.callback = callback;
99 chunk->async_tx.callback_param = tx->callback_param;
101 /* Callback goes to the last chunk */
102 chunk->async_tx.callback = NULL;
104 chunk->cookie = cookie;
105 list_move_tail(&chunk->node, &schan->ld_queue);
108 tx->cookie, &chunk->async_tx, schan->id);
365 /* Call callback on the last chunk */
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