Lines Matching refs:first
201 static void atc_desc_chain(struct at_desc **first, struct at_desc **prev, in atc_desc_chain() argument
204 if (!(*first)) { in atc_desc_chain()
205 *first = desc; in atc_desc_chain()
211 &(*first)->tx_list); in atc_desc_chain()
223 static void atc_dostart(struct at_dma_chan *atchan, struct at_desc *first) in atc_dostart() argument
249 channel_writel(atchan, DSCR, first->txd.phys); in atc_dostart()
529 struct at_desc *first = atc_first_active(atchan); in atc_handle_cyclic() local
530 struct dma_async_tx_descriptor *txd = &first->txd; in atc_handle_cyclic()
651 struct at_desc *first = NULL; in atc_prep_dma_memcpy() local
698 atc_desc_chain(&first, &prev, desc); in atc_prep_dma_memcpy()
702 first->txd.cookie = -EBUSY; in atc_prep_dma_memcpy()
703 first->total_len = len; in atc_prep_dma_memcpy()
706 first->tx_width = src_width; in atc_prep_dma_memcpy()
712 first->txd.flags = flags; /* client is in control of this ack */ in atc_prep_dma_memcpy()
714 return &first->txd; in atc_prep_dma_memcpy()
717 atc_desc_put(atchan, first); in atc_prep_dma_memcpy()
739 struct at_desc *first = NULL; in atc_prep_slave_sg() local
801 atc_desc_chain(&first, &prev, desc); in atc_prep_slave_sg()
842 atc_desc_chain(&first, &prev, desc); in atc_prep_slave_sg()
854 first->txd.cookie = -EBUSY; in atc_prep_slave_sg()
855 first->total_len = total_len; in atc_prep_slave_sg()
858 first->tx_width = reg_width; in atc_prep_slave_sg()
862 first->txd.flags = flags; /* client is in control of this ack */ in atc_prep_slave_sg()
864 return &first->txd; in atc_prep_slave_sg()
869 atc_desc_put(atchan, first); in atc_prep_slave_sg()
890 struct at_desc *first = NULL; in atc_prep_dma_sg() local
984 atc_desc_chain(&first, &prev, desc); in atc_prep_dma_sg()
996 first->txd.cookie = -EBUSY; in atc_prep_dma_sg()
997 first->total_len = total_len; in atc_prep_dma_sg()
1002 first->txd.flags = flags; /* client is in control of this ack */ in atc_prep_dma_sg()
1004 return &first->txd; in atc_prep_dma_sg()
1007 atc_desc_put(atchan, first); in atc_prep_dma_sg()
1101 struct at_desc *first = NULL; in atc_prep_dma_cyclic() local
1148 atc_desc_chain(&first, &prev, desc); in atc_prep_dma_cyclic()
1152 prev->lli.dscr = first->txd.phys; in atc_prep_dma_cyclic()
1155 first->txd.cookie = -EBUSY; in atc_prep_dma_cyclic()
1156 first->total_len = buf_len; in atc_prep_dma_cyclic()
1157 first->tx_width = reg_width; in atc_prep_dma_cyclic()
1159 return &first->txd; in atc_prep_dma_cyclic()
1163 atc_desc_put(atchan, first); in atc_prep_dma_cyclic()