Lines Matching refs:hw_desc
96 struct pxad_desc_hw *hw_desc[]; /* DMA coherent descriptors */ member
579 sw_desc->hw_desc[sw_desc->nb_desc - 1]; in set_updater_desc()
580 dma_addr_t dma = sw_desc->hw_desc[sw_desc->nb_desc - 2]->ddadr; in set_updater_desc()
590 sw_desc->hw_desc[sw_desc->nb_desc - 2]->ddadr = sw_desc->first; in set_updater_desc()
597 sw_desc->hw_desc[sw_desc->nb_desc - 1]; in is_desc_completed()
610 desc1->hw_desc[desc1->nb_desc - 1]->ddadr = dma_to_chain; in pxad_desc_chain()
777 dma = sw_desc->hw_desc[i - 1]->ddadr; in pxad_free_desc()
781 sw_desc->hw_desc[i], dma); in pxad_free_desc()
802 sw_desc->hw_desc[i] = dma_pool_alloc(sw_desc->desc_pool, in pxad_alloc_desc()
804 if (!sw_desc->hw_desc[i]) { in pxad_alloc_desc()
814 sw_desc->hw_desc[i - 1]->ddadr = dma; in pxad_alloc_desc()
971 struct pxad_desc_hw *hw_desc; in pxad_prep_memcpy() local
997 hw_desc = sw_desc->hw_desc[i++]; in pxad_prep_memcpy()
999 hw_desc->dcmd = dcmd | (PXA_DCMD_LENGTH & copy); in pxad_prep_memcpy()
1000 hw_desc->dsadr = dma_src; in pxad_prep_memcpy()
1001 hw_desc->dtadr = dma_dst; in pxad_prep_memcpy()
1047 sw_desc->hw_desc[j]->dcmd = in pxad_prep_slave_sg()
1049 sw_desc->hw_desc[j]->dsadr = dsadr ? dsadr : dma; in pxad_prep_slave_sg()
1050 sw_desc->hw_desc[j++]->dtadr = dtadr ? dtadr : dma; in pxad_prep_slave_sg()
1099 phw_desc = sw_desc->hw_desc; in pxad_prep_dma_cyclic()
1167 struct pxad_desc_hw *hw_desc = NULL; in pxad_residue() local
1187 if (sw_desc->hw_desc[0]->dcmd & PXA_DCMD_INCSRCADDR) in pxad_residue()
1203 hw_desc = sw_desc->hw_desc[i]; in pxad_residue()
1204 if (sw_desc->hw_desc[0]->dcmd & PXA_DCMD_INCSRCADDR) in pxad_residue()
1205 start = hw_desc->dsadr; in pxad_residue()
1207 start = hw_desc->dtadr; in pxad_residue()
1208 len = hw_desc->dcmd & PXA_DCMD_LENGTH; in pxad_residue()