Lines Matching refs:hw_desc
52 struct mv_xor_desc *hw_desc = desc->hw_desc; in mv_desc_init() local
54 hw_desc->status = XOR_DESC_DMA_OWNED; in mv_desc_init()
55 hw_desc->phy_next_desc = 0; in mv_desc_init()
57 hw_desc->desc_command = (flags & DMA_PREP_INTERRUPT) ? in mv_desc_init()
59 hw_desc->phy_dest_addr = addr; in mv_desc_init()
60 hw_desc->byte_count = byte_count; in mv_desc_init()
65 struct mv_xor_desc *hw_desc = desc->hw_desc; in mv_desc_set_mode() local
70 hw_desc->desc_command |= XOR_DESC_OPERATION_XOR; in mv_desc_set_mode()
73 hw_desc->desc_command |= XOR_DESC_OPERATION_MEMCPY; in mv_desc_set_mode()
84 struct mv_xor_desc *hw_desc = desc->hw_desc; in mv_desc_set_next_desc() local
85 BUG_ON(hw_desc->phy_next_desc); in mv_desc_set_next_desc()
86 hw_desc->phy_next_desc = next_desc_addr; in mv_desc_set_next_desc()
92 struct mv_xor_desc *hw_desc = desc->hw_desc; in mv_desc_set_src_addr() local
93 hw_desc->phy_src_addr[mv_phy_src_idx(index)] = addr; in mv_desc_set_src_addr()
95 hw_desc->desc_command |= (1 << index); in mv_desc_set_src_addr()
270 struct mv_xor_desc *hw_desc; in mv_chan_slot_cleanup() local
284 hw_desc = iter->hw_desc; in mv_chan_slot_cleanup()
285 if (hw_desc->status & XOR_DESC_SUCCESS) { in mv_chan_slot_cleanup()
454 slot->hw_desc = virt_desc + idx * MV_XOR_SLOT_SIZE; in mv_xor_alloc_chan_resources()