Lines Matching refs:vm_block
143 apcm->vm_block = vm->map(vm, apcm->substream, runtime->dma_bytes); in ct_map_audio_buffer()
145 if (!apcm->vm_block) in ct_map_audio_buffer()
155 if (!apcm->vm_block) in ct_unmap_audio_buffer()
160 vm->unmap(vm, apcm->vm_block); in ct_unmap_audio_buffer()
162 apcm->vm_block = NULL; in ct_unmap_audio_buffer()
365 if (apcm->vm_block) { in atc_pcm_release_resources()
368 apcm->vm_block = NULL; in atc_pcm_release_resources()
386 src->ops->set_sa(src, apcm->vm_block->addr); in atc_pcm_playback_start()
387 src->ops->set_la(src, apcm->vm_block->addr + apcm->vm_block->size); in atc_pcm_playback_start()
388 src->ops->set_ca(src, apcm->vm_block->addr + max_cisz); in atc_pcm_playback_start()
436 if (position < apcm->vm_block->addr) { in atc_pcm_playback_position()
439 position, apcm->vm_block->addr, apcm->vm_block->size); in atc_pcm_playback_position()
440 position = apcm->vm_block->addr; in atc_pcm_playback_position()
443 size = apcm->vm_block->size; in atc_pcm_playback_position()
447 return (position + size - max_cisz - apcm->vm_block->addr) % size; in atc_pcm_playback_position()
743 src->ops->set_sa(src, apcm->vm_block->addr); in atc_pcm_capture_start()
744 src->ops->set_la(src, apcm->vm_block->addr + apcm->vm_block->size); in atc_pcm_capture_start()
745 src->ops->set_ca(src, apcm->vm_block->addr); in atc_pcm_capture_start()
778 return src->ops->get_ca(src) - apcm->vm_block->addr; in atc_pcm_capture_position()