• Home
  • Raw
  • Download

Lines Matching refs:mmap_status

253     struct snd_pcm_mmap_status *mmap_status;  member
351 pcm->mmap_status = mmap(NULL, page_size, PROT_READ, MAP_FILE | MAP_SHARED, in pcm_hw_mmap_status()
353 if (pcm->mmap_status == MAP_FAILED) in pcm_hw_mmap_status()
354 pcm->mmap_status = NULL; in pcm_hw_mmap_status()
355 if (!pcm->mmap_status) in pcm_hw_mmap_status()
363 munmap(pcm->mmap_status, page_size); in pcm_hw_mmap_status()
364 pcm->mmap_status = NULL; in pcm_hw_mmap_status()
379 pcm->mmap_status = &pcm->sync_ptr->s.status; in pcm_hw_mmap_status()
397 if (pcm->mmap_status) in pcm_hw_munmap_status()
398 munmap(pcm->mmap_status, page_size); in pcm_hw_munmap_status()
402 pcm->mmap_status = NULL; in pcm_hw_munmap_status()
464 if ((pcm->mmap_status->state != PCM_STATE_RUNNING) && in pcm_get_htimestamp()
465 (pcm->mmap_status->state != PCM_STATE_DRAINING)) in pcm_get_htimestamp()
468 *tstamp = pcm->mmap_status->tstamp; in pcm_get_htimestamp()
472 hw_ptr = pcm->mmap_status->hw_ptr; in pcm_get_htimestamp()
503 if (pcm->mmap_status == NULL) in pcm_mmap_get_hw_ptr()
506 if ((pcm->mmap_status->state != PCM_STATE_RUNNING) && in pcm_mmap_get_hw_ptr()
507 (pcm->mmap_status->state != PCM_STATE_DRAINING)) in pcm_mmap_get_hw_ptr()
508 return oops(pcm, ENOSYS, "invalid stream state %d", pcm->mmap_status->state); in pcm_mmap_get_hw_ptr()
510 *tstamp = pcm->mmap_status->tstamp; in pcm_mmap_get_hw_ptr()
514 *hw_ptr = pcm->mmap_status->hw_ptr; in pcm_mmap_get_hw_ptr()
1090 avail = pcm->mmap_status->hw_ptr + pcm->buffer_size - pcm->mmap_control->appl_ptr; in pcm_mmap_playback_avail()
1102 int avail = pcm->mmap_status->hw_ptr - pcm->mmap_control->appl_ptr; in pcm_mmap_capture_avail()
1176 return pcm->mmap_status->state; in pcm_state()
1258 (unsigned int)pcm->mmap_status->hw_ptr, in pcm_mmap_transfer()
1288 (unsigned int)pcm->mmap_status->hw_ptr, in pcm_mmap_transfer()
1309 (unsigned int)pcm->mmap_status->hw_ptr, in pcm_mmap_transfer()