Lines Matching refs:first
213 static void dwc_dostart(struct dw_dma_chan *dwc, struct dw_desc *first) in dwc_dostart() argument
240 dwc->residue = first->total_len; in dwc_dostart()
241 dwc->tx_node_active = &first->tx_list; in dwc_dostart()
244 dwc_do_single_block(dwc, first); in dwc_dostart()
251 channel_writel(dwc, LLP, first->txd.phys); in dwc_dostart()
687 struct dw_desc *first; in dwc_prep_dma_memcpy() local
719 prev = first = NULL; in dwc_prep_dma_memcpy()
735 if (!first) { in dwc_prep_dma_memcpy()
736 first = desc; in dwc_prep_dma_memcpy()
740 &first->tx_list); in dwc_prep_dma_memcpy()
750 first->txd.flags = flags; in dwc_prep_dma_memcpy()
751 first->total_len = len; in dwc_prep_dma_memcpy()
753 return &first->txd; in dwc_prep_dma_memcpy()
756 dwc_desc_put(dwc, first); in dwc_prep_dma_memcpy()
769 struct dw_desc *first; in dwc_prep_slave_sg() local
786 prev = first = NULL; in dwc_prep_slave_sg()
832 if (!first) { in dwc_prep_slave_sg()
833 first = desc; in dwc_prep_slave_sg()
837 &first->tx_list); in dwc_prep_slave_sg()
888 if (!first) { in dwc_prep_slave_sg()
889 first = desc; in dwc_prep_slave_sg()
893 &first->tx_list); in dwc_prep_slave_sg()
911 first->total_len = total_len; in dwc_prep_slave_sg()
913 return &first->txd; in dwc_prep_slave_sg()
918 dwc_desc_put(dwc, first); in dwc_prep_slave_sg()