Lines Matching refs:control_block
281 struct bcm2835_dma_cb *control_block = d->cb_list[i].cb; in bcm2835_dma_desc_size_pos() local
282 size_t this_size = control_block->length; in bcm2835_dma_desc_size_pos()
286 dma = control_block->dst; in bcm2835_dma_desc_size_pos()
288 dma = control_block->src; in bcm2835_dma_desc_size_pos()
418 struct bcm2835_dma_cb *control_block = d->cb_list[frame].cb; in bcm2835_dma_prep_dma_cyclic() local
422 control_block->info = BCM2835_DMA_D_INC; in bcm2835_dma_prep_dma_cyclic()
423 control_block->src = dev_addr; in bcm2835_dma_prep_dma_cyclic()
424 control_block->dst = buf_addr + frame * period_len; in bcm2835_dma_prep_dma_cyclic()
426 control_block->info = BCM2835_DMA_S_INC; in bcm2835_dma_prep_dma_cyclic()
427 control_block->src = buf_addr + frame * period_len; in bcm2835_dma_prep_dma_cyclic()
428 control_block->dst = dev_addr; in bcm2835_dma_prep_dma_cyclic()
432 control_block->info |= BCM2835_DMA_INT_EN; in bcm2835_dma_prep_dma_cyclic()
436 control_block->info |= sync_type; in bcm2835_dma_prep_dma_cyclic()
440 control_block->info |= in bcm2835_dma_prep_dma_cyclic()
444 control_block->length = period_len; in bcm2835_dma_prep_dma_cyclic()
445 d->size += control_block->length; in bcm2835_dma_prep_dma_cyclic()
452 control_block->next = d->cb_list[((frame + 1) % d->frames)].paddr; in bcm2835_dma_prep_dma_cyclic()