Lines Matching refs:first
942 struct xgene_dma_desc_sw *first = NULL, *new; in xgene_dma_prep_memcpy() local
963 if (!first) in xgene_dma_prep_memcpy()
964 first = new; in xgene_dma_prep_memcpy()
975 list_add_tail(&new->node, &first->tx_list); in xgene_dma_prep_memcpy()
980 list_splice(&first->tx_list, &new->tx_list); in xgene_dma_prep_memcpy()
985 if (!first) in xgene_dma_prep_memcpy()
988 xgene_dma_free_tx_desc_list(chan, &first->tx_list); in xgene_dma_prep_memcpy()
997 struct xgene_dma_desc_sw *first = NULL, *new = NULL; in xgene_dma_prep_sg() local
1039 if (!first) in xgene_dma_prep_sg()
1040 first = new; in xgene_dma_prep_sg()
1050 list_add_tail(&new->node, &first->tx_list); in xgene_dma_prep_sg()
1089 list_splice(&first->tx_list, &new->tx_list); in xgene_dma_prep_sg()
1093 if (!first) in xgene_dma_prep_sg()
1096 xgene_dma_free_tx_desc_list(chan, &first->tx_list); in xgene_dma_prep_sg()
1104 struct xgene_dma_desc_sw *first = NULL, *new; in xgene_dma_prep_xor() local
1124 if (!first) in xgene_dma_prep_xor()
1125 first = new; in xgene_dma_prep_xor()
1131 list_add_tail(&new->node, &first->tx_list); in xgene_dma_prep_xor()
1136 list_splice(&first->tx_list, &new->tx_list); in xgene_dma_prep_xor()
1141 if (!first) in xgene_dma_prep_xor()
1144 xgene_dma_free_tx_desc_list(chan, &first->tx_list); in xgene_dma_prep_xor()
1152 struct xgene_dma_desc_sw *first = NULL, *new; in xgene_dma_prep_pq() local
1182 if (!first) in xgene_dma_prep_pq()
1183 first = new; in xgene_dma_prep_pq()
1189 list_add_tail(&new->node, &first->tx_list); in xgene_dma_prep_pq()
1213 list_splice(&first->tx_list, &new->tx_list); in xgene_dma_prep_pq()
1218 if (!first) in xgene_dma_prep_pq()
1221 xgene_dma_free_tx_desc_list(chan, &first->tx_list); in xgene_dma_prep_pq()