Lines Matching refs:pcm_file
1952 struct snd_pcm_file *pcm_file; in snd_pcm_link() local
1963 pcm_file = f.file->private_data; in snd_pcm_link()
1964 substream1 = pcm_file->substream; in snd_pcm_link()
2444 struct snd_pcm_file *pcm_file; in snd_pcm_open_file() local
2452 pcm_file = kzalloc(sizeof(*pcm_file), GFP_KERNEL); in snd_pcm_open_file()
2453 if (pcm_file == NULL) { in snd_pcm_open_file()
2457 pcm_file->substream = substream; in snd_pcm_open_file()
2459 substream->file = pcm_file; in snd_pcm_open_file()
2462 file->private_data = pcm_file; in snd_pcm_open_file()
2556 struct snd_pcm_file *pcm_file; in snd_pcm_release() local
2558 pcm_file = file->private_data; in snd_pcm_release()
2559 substream = pcm_file->substream; in snd_pcm_release()
2565 kfree(pcm_file); in snd_pcm_release()
2846 struct snd_pcm_file *pcm_file = file->private_data; in snd_pcm_common_ioctl() local
2866 if (get_user(pcm_file->user_pversion, in snd_pcm_common_ioctl()
2947 struct snd_pcm_file *pcm_file; in snd_pcm_ioctl() local
2949 pcm_file = file->private_data; in snd_pcm_ioctl()
2954 return snd_pcm_common_ioctl(file, pcm_file->substream, cmd, in snd_pcm_ioctl()
3006 struct snd_pcm_file *pcm_file; in snd_pcm_read() local
3011 pcm_file = file->private_data; in snd_pcm_read()
3012 substream = pcm_file->substream; in snd_pcm_read()
3030 struct snd_pcm_file *pcm_file; in snd_pcm_write() local
3035 pcm_file = file->private_data; in snd_pcm_write()
3036 substream = pcm_file->substream; in snd_pcm_write()
3053 struct snd_pcm_file *pcm_file; in snd_pcm_readv() local
3061 pcm_file = iocb->ki_filp->private_data; in snd_pcm_readv()
3062 substream = pcm_file->substream; in snd_pcm_readv()
3089 struct snd_pcm_file *pcm_file; in snd_pcm_writev() local
3097 pcm_file = iocb->ki_filp->private_data; in snd_pcm_writev()
3098 substream = pcm_file->substream; in snd_pcm_writev()
3124 struct snd_pcm_file *pcm_file; in snd_pcm_poll() local
3130 pcm_file = file->private_data; in snd_pcm_poll()
3132 substream = pcm_file->substream; in snd_pcm_poll()
3249 static bool pcm_status_mmap_allowed(struct snd_pcm_file *pcm_file) in pcm_status_mmap_allowed() argument
3251 if (pcm_file->no_compat_mmap) in pcm_status_mmap_allowed()
3257 if (pcm_file->user_pversion < SNDRV_PROTOCOL_VERSION(2, 0, 14) && in pcm_status_mmap_allowed()
3258 (pcm_file->substream->runtime->hw.info & SNDRV_PCM_INFO_SYNC_APPLPTR)) in pcm_status_mmap_allowed()
3263 static bool pcm_control_mmap_allowed(struct snd_pcm_file *pcm_file) in pcm_control_mmap_allowed() argument
3265 if (pcm_file->no_compat_mmap) in pcm_control_mmap_allowed()
3271 if (pcm_file->substream->runtime->hw.info & SNDRV_PCM_INFO_SYNC_APPLPTR) in pcm_control_mmap_allowed()
3280 #define pcm_status_mmap_allowed(pcm_file) false argument
3281 #define pcm_control_mmap_allowed(pcm_file) false argument
3454 struct snd_pcm_file * pcm_file; in snd_pcm_mmap() local
3458 pcm_file = file->private_data; in snd_pcm_mmap()
3459 substream = pcm_file->substream; in snd_pcm_mmap()
3466 if (!pcm_status_mmap_allowed(pcm_file)) in snd_pcm_mmap()
3470 if (!pcm_control_mmap_allowed(pcm_file)) in snd_pcm_mmap()
3481 struct snd_pcm_file * pcm_file; in snd_pcm_fasync() local
3485 pcm_file = file->private_data; in snd_pcm_fasync()
3486 substream = pcm_file->substream; in snd_pcm_fasync()
3623 struct snd_pcm_file *pcm_file = file->private_data; in snd_pcm_get_unmapped_area() local
3624 struct snd_pcm_substream *substream = pcm_file->substream; in snd_pcm_get_unmapped_area()