• Home
  • Raw
  • Download

Lines Matching refs:ctrl

56 	volatile snd_pcm_shm_ctrl_t *ctrl;  member
65 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; in snd_pcm_shm_action_fd0() local
73 if (ctrl->cmd) { in snd_pcm_shm_action_fd0()
77 return ctrl->result; in snd_pcm_shm_action_fd0()
94 shm->ctrl->cmd = &pcm->hw == rbptr ? SND_PCM_IOCTL_HW_PTR_FD : SND_PCM_IOCTL_APPL_PTR_FD; in snd_pcm_shm_new_rbptr()
117 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; in snd_pcm_shm_action() local
119 if (ctrl->hw.changed || ctrl->appl.changed) in snd_pcm_shm_action()
127 if (ctrl->cmd) { in snd_pcm_shm_action()
131 result = ctrl->result; in snd_pcm_shm_action()
132 if (ctrl->hw.changed) { in snd_pcm_shm_action()
133 err = snd_pcm_shm_new_rbptr(pcm, shm, &pcm->hw, &ctrl->hw); in snd_pcm_shm_action()
136 ctrl->hw.changed = 0; in snd_pcm_shm_action()
138 if (ctrl->appl.changed) { in snd_pcm_shm_action()
139 err = snd_pcm_shm_new_rbptr(pcm, shm, &pcm->appl, &ctrl->appl); in snd_pcm_shm_action()
142 ctrl->appl.changed = 0; in snd_pcm_shm_action()
152 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; in snd_pcm_shm_action_fd() local
154 if (ctrl->hw.changed || ctrl->appl.changed) in snd_pcm_shm_action_fd()
162 if (ctrl->cmd) { in snd_pcm_shm_action_fd()
166 if (ctrl->hw.changed) { in snd_pcm_shm_action_fd()
167 err = snd_pcm_shm_new_rbptr(pcm, shm, &pcm->hw, &ctrl->hw); in snd_pcm_shm_action_fd()
170 ctrl->hw.changed = 0; in snd_pcm_shm_action_fd()
172 if (ctrl->appl.changed) { in snd_pcm_shm_action_fd()
173 err = snd_pcm_shm_new_rbptr(pcm, shm, &pcm->appl, &ctrl->appl); in snd_pcm_shm_action_fd()
176 ctrl->appl.changed = 0; in snd_pcm_shm_action_fd()
178 return ctrl->result; in snd_pcm_shm_action_fd()
189 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; in snd_pcm_shm_async() local
190 ctrl->cmd = SND_PCM_IOCTL_ASYNC; in snd_pcm_shm_async()
191 ctrl->u.async.sig = sig; in snd_pcm_shm_async()
192 ctrl->u.async.pid = pid; in snd_pcm_shm_async()
199 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; in snd_pcm_shm_info() local
202 ctrl->cmd = SNDRV_PCM_IOCTL_INFO; in snd_pcm_shm_info()
206 *info = ctrl->u.info; in snd_pcm_shm_info()
266 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; in snd_pcm_shm_hw_refine_slave() local
268 ctrl->u.hw_refine = *params; in snd_pcm_shm_hw_refine_slave()
269 ctrl->cmd = SNDRV_PCM_IOCTL_HW_REFINE; in snd_pcm_shm_hw_refine_slave()
271 *params = ctrl->u.hw_refine; in snd_pcm_shm_hw_refine_slave()
289 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; in snd_pcm_shm_hw_params_slave() local
292 ctrl->cmd = SNDRV_PCM_IOCTL_HW_PARAMS; in snd_pcm_shm_hw_params_slave()
293 ctrl->u.hw_params = *params; in snd_pcm_shm_hw_params_slave()
295 *params = ctrl->u.hw_params; in snd_pcm_shm_hw_params_slave()
311 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; in snd_pcm_shm_hw_free() local
312 ctrl->cmd = SNDRV_PCM_IOCTL_HW_FREE; in snd_pcm_shm_hw_free()
319 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; in snd_pcm_shm_sw_params() local
321 ctrl->cmd = SNDRV_PCM_IOCTL_SW_PARAMS; in snd_pcm_shm_sw_params()
322 ctrl->u.sw_params = *params; in snd_pcm_shm_sw_params()
324 *params = ctrl->u.sw_params; in snd_pcm_shm_sw_params()
366 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; in snd_pcm_shm_channel_info() local
369 ctrl->cmd = SNDRV_PCM_IOCTL_CHANNEL_INFO; in snd_pcm_shm_channel_info()
370 ctrl->u.channel_info = *info; in snd_pcm_shm_channel_info()
374 *info = ctrl->u.channel_info; in snd_pcm_shm_channel_info()
392 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; in snd_pcm_shm_status() local
394 ctrl->cmd = SNDRV_PCM_IOCTL_STATUS; in snd_pcm_shm_status()
399 *status = ctrl->u.status; in snd_pcm_shm_status()
406 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; in snd_pcm_shm_state() local
407 ctrl->cmd = SND_PCM_IOCTL_STATE; in snd_pcm_shm_state()
414 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; in snd_pcm_shm_hwsync() local
415 ctrl->cmd = SND_PCM_IOCTL_HWSYNC; in snd_pcm_shm_hwsync()
422 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; in snd_pcm_shm_delay() local
424 ctrl->cmd = SNDRV_PCM_IOCTL_DELAY; in snd_pcm_shm_delay()
428 *delayp = ctrl->u.delay.frames; in snd_pcm_shm_delay()
435 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; in snd_pcm_shm_avail_update() local
437 ctrl->cmd = SND_PCM_IOCTL_AVAIL_UPDATE; in snd_pcm_shm_avail_update()
454 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; in snd_pcm_shm_prepare() local
455 ctrl->cmd = SNDRV_PCM_IOCTL_PREPARE; in snd_pcm_shm_prepare()
462 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; in snd_pcm_shm_reset() local
463 ctrl->cmd = SNDRV_PCM_IOCTL_RESET; in snd_pcm_shm_reset()
470 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; in snd_pcm_shm_start() local
471 ctrl->cmd = SNDRV_PCM_IOCTL_START; in snd_pcm_shm_start()
478 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; in snd_pcm_shm_drop() local
479 ctrl->cmd = SNDRV_PCM_IOCTL_DROP; in snd_pcm_shm_drop()
486 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; in snd_pcm_shm_drain() local
489 ctrl->cmd = SNDRV_PCM_IOCTL_DRAIN; in snd_pcm_shm_drain()
505 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; in snd_pcm_shm_pause() local
506 ctrl->cmd = SNDRV_PCM_IOCTL_PAUSE; in snd_pcm_shm_pause()
507 ctrl->u.pause.enable = enable; in snd_pcm_shm_pause()
519 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; in snd_pcm_shm_rewind() local
520 ctrl->cmd = SNDRV_PCM_IOCTL_REWIND; in snd_pcm_shm_rewind()
521 ctrl->u.rewind.frames = frames; in snd_pcm_shm_rewind()
533 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; in snd_pcm_shm_forward() local
534 ctrl->cmd = SND_PCM_IOCTL_FORWARD; in snd_pcm_shm_forward()
535 ctrl->u.forward.frames = frames; in snd_pcm_shm_forward()
542 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; in snd_pcm_shm_resume() local
543 ctrl->cmd = SNDRV_PCM_IOCTL_RESUME; in snd_pcm_shm_resume()
552 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; in snd_pcm_shm_mmap_commit() local
553 ctrl->cmd = SND_PCM_IOCTL_MMAP_COMMIT; in snd_pcm_shm_mmap_commit()
554 ctrl->u.mmap_commit.offset = offset; in snd_pcm_shm_mmap_commit()
555 ctrl->u.mmap_commit.frames = size; in snd_pcm_shm_mmap_commit()
562 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; in snd_pcm_shm_poll_descriptor() local
564 ctrl->cmd = SND_PCM_IOCTL_POLL_DESCRIPTOR; in snd_pcm_shm_poll_descriptor()
574 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; in snd_pcm_shm_close() local
576 ctrl->cmd = SND_PCM_IOCTL_CLOSE; in snd_pcm_shm_close()
578 shmdt((void *)ctrl); in snd_pcm_shm_close()
681 snd_pcm_shm_ctrl_t *ctrl = NULL; in snd_pcm_shm_open() local
728 ctrl = shmat(ans.cookie, 0, 0); in snd_pcm_shm_open()
729 if (!ctrl) { in snd_pcm_shm_open()
742 shm->ctrl = ctrl; in snd_pcm_shm_open()
760 snd_pcm_set_hw_ptr(pcm, &ctrl->hw.ptr, -1, 0); in snd_pcm_shm_open()
761 snd_pcm_set_appl_ptr(pcm, &ctrl->appl.ptr, -1, 0); in snd_pcm_shm_open()
767 if (ctrl) in snd_pcm_shm_open()
768 shmdt(ctrl); in snd_pcm_shm_open()