Lines Matching defs:chunk
207 struct sh_desc *desc = tx_to_sh_desc(tx), *chunk, *last = desc, *c;
223 list_for_each_entry_safe(chunk, c, desc->node.prev, node) {
228 if (chunk != desc && (chunk->mark == DESC_IDLE ||
229 chunk->async_tx.cookie > 0 ||
230 chunk->async_tx.cookie == -EBUSY ||
231 &chunk->node == &sh_chan->ld_free))
233 chunk->mark = DESC_SUBMITTED;
234 /* Callback goes to the last chunk */
235 chunk->async_tx.callback = NULL;
236 chunk->cookie = cookie;
237 list_move_tail(&chunk->node, &sh_chan->ld_queue);
238 last = chunk;
493 * if more than one chunk is needed further chunks have cookie = -EINVAL
494 * the last chunk, if not equal to the first, has cookie = -ENOSPC
670 /* Call callback on the last chunk */