Lines Matching refs:sw_desc
179 struct mv_xor_desc_slot *sw_desc) in mv_chan_start_new_chain() argument
182 __func__, __LINE__, sw_desc); in mv_chan_start_new_chain()
185 mv_chan_set_next_descriptor(mv_chan, sw_desc->async_tx.phys); in mv_chan_start_new_chain()
384 struct mv_xor_desc_slot *sw_desc = to_mv_xor_slot(tx); in mv_xor_tx_submit() local
392 __func__, sw_desc, &sw_desc->async_tx); in mv_xor_tx_submit()
398 list_move_tail(&sw_desc->node, &mv_chan->chain); in mv_xor_tx_submit()
405 list_move_tail(&sw_desc->node, &mv_chan->chain); in mv_xor_tx_submit()
411 mv_desc_set_next_desc(old_chain_tail, sw_desc->async_tx.phys); in mv_xor_tx_submit()
426 mv_chan_start_new_chain(mv_chan, sw_desc); in mv_xor_tx_submit()
559 struct mv_xor_desc_slot *sw_desc; in mv_xor_prep_dma_xor() local
576 sw_desc = mv_chan_alloc_slot(mv_chan); in mv_xor_prep_dma_xor()
577 if (sw_desc) { in mv_xor_prep_dma_xor()
578 sw_desc->type = DMA_XOR; in mv_xor_prep_dma_xor()
579 sw_desc->async_tx.flags = flags; in mv_xor_prep_dma_xor()
580 mv_desc_init(sw_desc, dest, len, flags); in mv_xor_prep_dma_xor()
582 mv_desc_set_mode(sw_desc); in mv_xor_prep_dma_xor()
588 mv_desc_set_src_addr(sw_desc, src_cnt, src[src_cnt]); in mv_xor_prep_dma_xor()
594 __func__, sw_desc, &sw_desc->async_tx); in mv_xor_prep_dma_xor()
595 return sw_desc ? &sw_desc->async_tx : NULL; in mv_xor_prep_dma_xor()