Lines Matching refs:runtime

110 static snd_pcm_uframes_t recalculate_boundary(struct snd_pcm_runtime *runtime)  in recalculate_boundary()  argument
114 if (! runtime->buffer_size) in recalculate_boundary()
116 boundary = runtime->buffer_size; in recalculate_boundary()
117 while (boundary * 2 <= 0x7fffffffUL - runtime->buffer_size) in recalculate_boundary()
146 boundary = recalculate_boundary(substream->runtime); in snd_pcm_ioctl_sw_params_compat()
148 params.silence_size = substream->runtime->boundary; in snd_pcm_ioctl_sw_params_compat()
325 struct snd_pcm_runtime *runtime; in snd_pcm_ioctl_hw_params_compat() local
328 if (! (runtime = substream->runtime)) in snd_pcm_ioctl_hw_params_compat()
354 unsigned int new_boundary = recalculate_boundary(runtime); in snd_pcm_ioctl_hw_params_compat()
356 runtime->boundary = new_boundary; in snd_pcm_ioctl_hw_params_compat()
379 if (! substream->runtime) in snd_pcm_ioctl_xferi_compat()
383 if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) in snd_pcm_ioctl_xferi_compat()
425 if (! substream->runtime) in snd_pcm_ioctl_xfern_compat()
430 if ((ch = substream->runtime->channels) > 128) in snd_pcm_ioctl_xfern_compat()
490 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_ioctl_sync_ptr_compat() local
499 if (snd_BUG_ON(!runtime)) in snd_pcm_ioctl_sync_ptr_compat()
511 status = runtime->status; in snd_pcm_ioctl_sync_ptr_compat()
512 control = runtime->control; in snd_pcm_ioctl_sync_ptr_compat()
513 boundary = recalculate_boundary(runtime); in snd_pcm_ioctl_sync_ptr_compat()
578 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_ioctl_sync_ptr_x32() local
587 if (snd_BUG_ON(!runtime)) in snd_pcm_ioctl_sync_ptr_x32()
599 status = runtime->status; in snd_pcm_ioctl_sync_ptr_x32()
600 control = runtime->control; in snd_pcm_ioctl_sync_ptr_x32()
601 boundary = recalculate_boundary(runtime); in snd_pcm_ioctl_sync_ptr_x32()