Lines Matching refs:nb_desc
84 int nb_desc; /* Number of hw. descriptors */ member
93 struct pxad_desc_hw *hw_desc[] __counted_by(nb_desc);
520 sw_desc->hw_desc[sw_desc->nb_desc - 1]; in set_updater_desc()
521 dma_addr_t dma = sw_desc->hw_desc[sw_desc->nb_desc - 2]->ddadr; in set_updater_desc()
531 sw_desc->hw_desc[sw_desc->nb_desc - 2]->ddadr = sw_desc->first; in set_updater_desc()
538 sw_desc->hw_desc[sw_desc->nb_desc - 1]; in is_desc_completed()
551 desc1->hw_desc[desc1->nb_desc - 1]->ddadr = dma_to_chain; in pxad_desc_chain()
725 for (i = sw_desc->nb_desc - 1; i >= 0; i--) { in pxad_free_desc()
733 sw_desc->nb_desc = 0; in pxad_free_desc()
760 sw_desc->nb_desc++; in pxad_alloc_desc()
924 unsigned int i, nb_desc = 0; in pxad_prep_memcpy() local
936 nb_desc = DIV_ROUND_UP(len, PDMA_MAX_DESC_BYTES); in pxad_prep_memcpy()
937 sw_desc = pxad_alloc_desc(chan, nb_desc + 1); in pxad_prep_memcpy()
973 unsigned int nb_desc = 0, i, j = 0; in pxad_prep_slave_sg() local
983 nb_desc += DIV_ROUND_UP(sg_dma_len(sg), PDMA_MAX_DESC_BYTES); in pxad_prep_slave_sg()
984 sw_desc = pxad_alloc_desc(chan, nb_desc + 1); in pxad_prep_slave_sg()
1022 unsigned int nb_desc = 0; in pxad_prep_dma_cyclic() local
1042 nb_desc = DIV_ROUND_UP(period_len, PDMA_MAX_DESC_BYTES); in pxad_prep_dma_cyclic()
1043 nb_desc *= DIV_ROUND_UP(len, period_len); in pxad_prep_dma_cyclic()
1044 sw_desc = pxad_alloc_desc(chan, nb_desc + 1); in pxad_prep_dma_cyclic()
1153 for (i = 0; i < sw_desc->nb_desc - 1; i++) { in pxad_residue()