Lines Matching refs:sw_desc
307 struct mv_xor_v2_sw_desc *sw_desc = in mv_xor_v2_tx_submit() local
314 __func__, sw_desc, &sw_desc->async_tx); in mv_xor_v2_tx_submit()
323 memcpy(dest_hw_desc, &sw_desc->hw_desc, xor_dev->desc_size); in mv_xor_v2_tx_submit()
341 struct mv_xor_v2_sw_desc *sw_desc; in mv_xor_v2_prep_sw_desc() local
354 list_for_each_entry(sw_desc, &xor_dev->free_sw_desc, free_list) { in mv_xor_v2_prep_sw_desc()
355 if (async_tx_test_ack(&sw_desc->async_tx)) { in mv_xor_v2_prep_sw_desc()
366 list_del(&sw_desc->free_list); in mv_xor_v2_prep_sw_desc()
371 return sw_desc; in mv_xor_v2_prep_sw_desc()
381 struct mv_xor_v2_sw_desc *sw_desc; in mv_xor_v2_prep_dma_memcpy() local
391 sw_desc = mv_xor_v2_prep_sw_desc(xor_dev); in mv_xor_v2_prep_dma_memcpy()
392 if (!sw_desc) in mv_xor_v2_prep_dma_memcpy()
395 sw_desc->async_tx.flags = flags; in mv_xor_v2_prep_dma_memcpy()
398 hw_descriptor = &sw_desc->hw_desc; in mv_xor_v2_prep_dma_memcpy()
401 hw_descriptor->desc_id = sw_desc->idx; in mv_xor_v2_prep_dma_memcpy()
424 return &sw_desc->async_tx; in mv_xor_v2_prep_dma_memcpy()
434 struct mv_xor_v2_sw_desc *sw_desc; in mv_xor_v2_prep_dma_xor() local
447 sw_desc = mv_xor_v2_prep_sw_desc(xor_dev); in mv_xor_v2_prep_dma_xor()
448 if (!sw_desc) in mv_xor_v2_prep_dma_xor()
451 sw_desc->async_tx.flags = flags; in mv_xor_v2_prep_dma_xor()
454 hw_descriptor = &sw_desc->hw_desc; in mv_xor_v2_prep_dma_xor()
457 hw_descriptor->desc_id = sw_desc->idx; in mv_xor_v2_prep_dma_xor()
483 return &sw_desc->async_tx; in mv_xor_v2_prep_dma_xor()
492 struct mv_xor_v2_sw_desc *sw_desc; in mv_xor_v2_prep_dma_interrupt() local
497 sw_desc = mv_xor_v2_prep_sw_desc(xor_dev); in mv_xor_v2_prep_dma_interrupt()
498 if (!sw_desc) in mv_xor_v2_prep_dma_interrupt()
502 hw_descriptor = &sw_desc->hw_desc; in mv_xor_v2_prep_dma_interrupt()
505 hw_descriptor->desc_id = sw_desc->idx; in mv_xor_v2_prep_dma_interrupt()
513 return &sw_desc->async_tx; in mv_xor_v2_prep_dma_interrupt()
719 struct mv_xor_v2_sw_desc *sw_desc; in mv_xor_v2_probe() local
785 MV_XOR_V2_DESC_NUM, sizeof(*sw_desc), in mv_xor_v2_probe()
799 struct mv_xor_v2_sw_desc *sw_desc = in mv_xor_v2_probe() local
801 sw_desc->idx = i; in mv_xor_v2_probe()
802 dma_async_tx_descriptor_init(&sw_desc->async_tx, in mv_xor_v2_probe()
804 sw_desc->async_tx.tx_submit = mv_xor_v2_tx_submit; in mv_xor_v2_probe()
805 async_tx_ack(&sw_desc->async_tx); in mv_xor_v2_probe()
807 list_add(&sw_desc->free_list, in mv_xor_v2_probe()