Lines Matching refs:new

901 	struct xgene_dma_desc_sw *first = NULL, *new = NULL;  in xgene_dma_prep_sg()  local
936 new = xgene_dma_alloc_descriptor(chan); in xgene_dma_prep_sg()
937 if (!new) in xgene_dma_prep_sg()
941 xgene_dma_prep_cpy_desc(chan, new, dst, src, len); in xgene_dma_prep_sg()
944 first = new; in xgene_dma_prep_sg()
946 new->tx.cookie = 0; in xgene_dma_prep_sg()
947 async_tx_ack(&new->tx); in xgene_dma_prep_sg()
954 list_add_tail(&new->node, &first->tx_list); in xgene_dma_prep_sg()
988 if (!new) in xgene_dma_prep_sg()
991 new->tx.flags = flags; /* client is in control of this ack */ in xgene_dma_prep_sg()
992 new->tx.cookie = -EBUSY; in xgene_dma_prep_sg()
993 list_splice(&first->tx_list, &new->tx_list); in xgene_dma_prep_sg()
995 return &new->tx; in xgene_dma_prep_sg()
1008 struct xgene_dma_desc_sw *first = NULL, *new; in xgene_dma_prep_xor() local
1020 new = xgene_dma_alloc_descriptor(chan); in xgene_dma_prep_xor()
1021 if (!new) in xgene_dma_prep_xor()
1025 xgene_dma_prep_xor_desc(chan, new, &dst, src, in xgene_dma_prep_xor()
1029 first = new; in xgene_dma_prep_xor()
1031 new->tx.cookie = 0; in xgene_dma_prep_xor()
1032 async_tx_ack(&new->tx); in xgene_dma_prep_xor()
1035 list_add_tail(&new->node, &first->tx_list); in xgene_dma_prep_xor()
1038 new->tx.flags = flags; /* client is in control of this ack */ in xgene_dma_prep_xor()
1039 new->tx.cookie = -EBUSY; in xgene_dma_prep_xor()
1040 list_splice(&first->tx_list, &new->tx_list); in xgene_dma_prep_xor()
1042 return &new->tx; in xgene_dma_prep_xor()
1056 struct xgene_dma_desc_sw *first = NULL, *new; in xgene_dma_prep_pq() local
1082 new = xgene_dma_alloc_descriptor(chan); in xgene_dma_prep_pq()
1083 if (!new) in xgene_dma_prep_pq()
1087 first = new; in xgene_dma_prep_pq()
1089 new->tx.cookie = 0; in xgene_dma_prep_pq()
1090 async_tx_ack(&new->tx); in xgene_dma_prep_pq()
1093 list_add_tail(&new->node, &first->tx_list); in xgene_dma_prep_pq()
1100 xgene_dma_prep_xor_desc(chan, new, &dst[0], src, in xgene_dma_prep_pq()
1110 xgene_dma_prep_xor_desc(chan, new, &dst[1], _src, in xgene_dma_prep_pq()
1115 new->tx.flags = flags; /* client is in control of this ack */ in xgene_dma_prep_pq()
1116 new->tx.cookie = -EBUSY; in xgene_dma_prep_pq()
1117 list_splice(&first->tx_list, &new->tx_list); in xgene_dma_prep_pq()
1119 return &new->tx; in xgene_dma_prep_pq()