Lines Matching refs:new

942 	struct xgene_dma_desc_sw *first = NULL, *new;  in xgene_dma_prep_memcpy()  local
953 new = xgene_dma_alloc_descriptor(chan); in xgene_dma_prep_memcpy()
954 if (!new) in xgene_dma_prep_memcpy()
961 xgene_dma_prep_cpy_desc(chan, new, dst, src, copy); in xgene_dma_prep_memcpy()
964 first = new; in xgene_dma_prep_memcpy()
966 new->tx.cookie = 0; in xgene_dma_prep_memcpy()
967 async_tx_ack(&new->tx); in xgene_dma_prep_memcpy()
975 list_add_tail(&new->node, &first->tx_list); in xgene_dma_prep_memcpy()
978 new->tx.flags = flags; /* client is in control of this ack */ in xgene_dma_prep_memcpy()
979 new->tx.cookie = -EBUSY; in xgene_dma_prep_memcpy()
980 list_splice(&first->tx_list, &new->tx_list); in xgene_dma_prep_memcpy()
982 return &new->tx; in xgene_dma_prep_memcpy()
997 struct xgene_dma_desc_sw *first = NULL, *new = NULL; in xgene_dma_prep_sg() local
1032 new = xgene_dma_alloc_descriptor(chan); in xgene_dma_prep_sg()
1033 if (!new) in xgene_dma_prep_sg()
1037 xgene_dma_prep_cpy_desc(chan, new, dst, src, len); in xgene_dma_prep_sg()
1040 first = new; in xgene_dma_prep_sg()
1042 new->tx.cookie = 0; in xgene_dma_prep_sg()
1043 async_tx_ack(&new->tx); in xgene_dma_prep_sg()
1050 list_add_tail(&new->node, &first->tx_list); in xgene_dma_prep_sg()
1084 if (!new) in xgene_dma_prep_sg()
1087 new->tx.flags = flags; /* client is in control of this ack */ in xgene_dma_prep_sg()
1088 new->tx.cookie = -EBUSY; in xgene_dma_prep_sg()
1089 list_splice(&first->tx_list, &new->tx_list); in xgene_dma_prep_sg()
1091 return &new->tx; in xgene_dma_prep_sg()
1104 struct xgene_dma_desc_sw *first = NULL, *new; in xgene_dma_prep_xor() local
1116 new = xgene_dma_alloc_descriptor(chan); in xgene_dma_prep_xor()
1117 if (!new) in xgene_dma_prep_xor()
1121 xgene_dma_prep_xor_desc(chan, new, &dst, src, in xgene_dma_prep_xor()
1125 first = new; in xgene_dma_prep_xor()
1127 new->tx.cookie = 0; in xgene_dma_prep_xor()
1128 async_tx_ack(&new->tx); in xgene_dma_prep_xor()
1131 list_add_tail(&new->node, &first->tx_list); in xgene_dma_prep_xor()
1134 new->tx.flags = flags; /* client is in control of this ack */ in xgene_dma_prep_xor()
1135 new->tx.cookie = -EBUSY; in xgene_dma_prep_xor()
1136 list_splice(&first->tx_list, &new->tx_list); in xgene_dma_prep_xor()
1138 return &new->tx; in xgene_dma_prep_xor()
1152 struct xgene_dma_desc_sw *first = NULL, *new; in xgene_dma_prep_pq() local
1178 new = xgene_dma_alloc_descriptor(chan); in xgene_dma_prep_pq()
1179 if (!new) in xgene_dma_prep_pq()
1183 first = new; in xgene_dma_prep_pq()
1185 new->tx.cookie = 0; in xgene_dma_prep_pq()
1186 async_tx_ack(&new->tx); in xgene_dma_prep_pq()
1189 list_add_tail(&new->node, &first->tx_list); in xgene_dma_prep_pq()
1196 xgene_dma_prep_xor_desc(chan, new, &dst[0], src, in xgene_dma_prep_pq()
1206 xgene_dma_prep_xor_desc(chan, new, &dst[1], _src, in xgene_dma_prep_pq()
1211 new->tx.flags = flags; /* client is in control of this ack */ in xgene_dma_prep_pq()
1212 new->tx.cookie = -EBUSY; in xgene_dma_prep_pq()
1213 list_splice(&first->tx_list, &new->tx_list); in xgene_dma_prep_pq()
1215 return &new->tx; in xgene_dma_prep_pq()