Lines Matching refs:new
412 struct sh_desc *new;
419 new = sh_dmae_get_desc(sh_chan);
420 if (!new) {
427 new->hw.sar = *src;
428 new->hw.dar = *dest;
429 new->hw.tcr = copy_size;
433 new->async_tx.cookie = -EBUSY;
434 *first = new;
437 new->async_tx.cookie = -EINVAL;
442 copy_size, *len, *src, *dest, &new->async_tx,
443 new->async_tx.cookie, sh_chan->xmit_shift);
445 new->mark = DESC_PREPARED;
446 new->async_tx.flags = flags;
447 new->direction = direction;
455 return new;
473 struct sh_desc *first = NULL, *new = NULL /* compiler... */;
511 new = sh_dmae_add_desc(sh_chan, flags,
515 new = sh_dmae_add_desc(sh_chan, flags,
518 if (!new)
521 new->chunks = chunks--;
522 list_add_tail(&new->node, &tx_list);
526 if (new != first)
527 new->async_tx.cookie = -ENOSPC;
537 list_for_each_entry(new, &tx_list, node)
538 new->mark = DESC_IDLE;