Lines Matching refs:new
507 struct shdma_desc *new; in shdma_add_desc() local
514 new = shdma_get_desc(schan); in shdma_add_desc()
515 if (!new) { in shdma_add_desc()
520 ops->desc_setup(schan, new, *src, *dst, ©_size); in shdma_add_desc()
524 new->async_tx.cookie = -EBUSY; in shdma_add_desc()
525 *first = new; in shdma_add_desc()
528 new->async_tx.cookie = -EINVAL; in shdma_add_desc()
533 copy_size, *len, src, dst, &new->async_tx, in shdma_add_desc()
534 new->async_tx.cookie); in shdma_add_desc()
536 new->mark = DESC_PREPARED; in shdma_add_desc()
537 new->async_tx.flags = flags; in shdma_add_desc()
538 new->direction = direction; in shdma_add_desc()
539 new->partial = 0; in shdma_add_desc()
547 return new; in shdma_add_desc()
565 struct shdma_desc *first = NULL, *new = NULL /* compiler... */; in shdma_prep_sg() local
600 new = shdma_add_desc(schan, flags, in shdma_prep_sg()
604 new = shdma_add_desc(schan, flags, in shdma_prep_sg()
607 if (!new) in shdma_prep_sg()
610 new->cyclic = cyclic; in shdma_prep_sg()
612 new->chunks = 1; in shdma_prep_sg()
614 new->chunks = chunks--; in shdma_prep_sg()
615 list_add_tail(&new->node, &tx_list); in shdma_prep_sg()
619 if (new != first) in shdma_prep_sg()
620 new->async_tx.cookie = -ENOSPC; in shdma_prep_sg()
630 list_for_each_entry(new, &tx_list, node) in shdma_prep_sg()
631 new->mark = DESC_IDLE; in shdma_prep_sg()