Lines Matching refs:new
510 struct shdma_desc *new; in shdma_add_desc() local
517 new = shdma_get_desc(schan); in shdma_add_desc()
518 if (!new) { in shdma_add_desc()
523 ops->desc_setup(schan, new, *src, *dst, ©_size); in shdma_add_desc()
527 new->async_tx.cookie = -EBUSY; in shdma_add_desc()
528 *first = new; in shdma_add_desc()
531 new->async_tx.cookie = -EINVAL; in shdma_add_desc()
536 copy_size, *len, src, dst, &new->async_tx, in shdma_add_desc()
537 new->async_tx.cookie); in shdma_add_desc()
539 new->mark = DESC_PREPARED; in shdma_add_desc()
540 new->async_tx.flags = flags; in shdma_add_desc()
541 new->direction = direction; in shdma_add_desc()
542 new->partial = 0; in shdma_add_desc()
550 return new; in shdma_add_desc()
568 struct shdma_desc *first = NULL, *new = NULL /* compiler... */; in shdma_prep_sg() local
603 new = shdma_add_desc(schan, flags, in shdma_prep_sg()
607 new = shdma_add_desc(schan, flags, in shdma_prep_sg()
610 if (!new) in shdma_prep_sg()
613 new->cyclic = cyclic; in shdma_prep_sg()
615 new->chunks = 1; in shdma_prep_sg()
617 new->chunks = chunks--; in shdma_prep_sg()
618 list_add_tail(&new->node, &tx_list); in shdma_prep_sg()
622 if (new != first) in shdma_prep_sg()
623 new->async_tx.cookie = -ENOSPC; in shdma_prep_sg()
633 list_for_each_entry(new, &tx_list, node) in shdma_prep_sg()
634 new->mark = DESC_IDLE; in shdma_prep_sg()