Lines Matching defs:new
841 struct xgene_dma_desc_sw *first = NULL, *new;
853 new = xgene_dma_alloc_descriptor(chan);
854 if (!new)
858 xgene_dma_prep_xor_desc(chan, new, &dst, src,
862 first = new;
864 new->tx.cookie = 0;
865 async_tx_ack(&new->tx);
868 list_add_tail(&new->node, &first->tx_list);
871 new->tx.flags = flags; /* client is in control of this ack */
872 new->tx.cookie = -EBUSY;
873 list_splice(&first->tx_list, &new->tx_list);
875 return &new->tx;
889 struct xgene_dma_desc_sw *first = NULL, *new;
915 new = xgene_dma_alloc_descriptor(chan);
916 if (!new)
920 first = new;
922 new->tx.cookie = 0;
923 async_tx_ack(&new->tx);
926 list_add_tail(&new->node, &first->tx_list);
933 xgene_dma_prep_xor_desc(chan, new, &dst[0], src,
943 xgene_dma_prep_xor_desc(chan, new, &dst[1], _src,
948 new->tx.flags = flags; /* client is in control of this ack */
949 new->tx.cookie = -EBUSY;
950 list_splice(&first->tx_list, &new->tx_list);
952 return &new->tx;
1003 * transaction. It will start a new transaction if there is