Lines Matching refs:pcm_file

2255 	struct snd_pcm_file *pcm_file;  in snd_pcm_link()  local
2267 pcm_file = f.file->private_data; in snd_pcm_link()
2268 substream1 = pcm_file->substream; in snd_pcm_link()
2776 struct snd_pcm_file *pcm_file; in snd_pcm_open_file() local
2784 pcm_file = kzalloc(sizeof(*pcm_file), GFP_KERNEL); in snd_pcm_open_file()
2785 if (pcm_file == NULL) { in snd_pcm_open_file()
2789 pcm_file->substream = substream; in snd_pcm_open_file()
2792 file->private_data = pcm_file; in snd_pcm_open_file()
2886 struct snd_pcm_file *pcm_file; in snd_pcm_release() local
2888 pcm_file = file->private_data; in snd_pcm_release()
2889 substream = pcm_file->substream; in snd_pcm_release()
2899 kfree(pcm_file); in snd_pcm_release()
3292 struct snd_pcm_file *pcm_file = file->private_data; in snd_pcm_common_ioctl() local
3315 if (get_user(pcm_file->user_pversion, in snd_pcm_common_ioctl()
3400 struct snd_pcm_file *pcm_file; in snd_pcm_ioctl() local
3402 pcm_file = file->private_data; in snd_pcm_ioctl()
3407 return snd_pcm_common_ioctl(file, pcm_file->substream, cmd, in snd_pcm_ioctl()
3464 struct snd_pcm_file *pcm_file; in snd_pcm_read() local
3469 pcm_file = file->private_data; in snd_pcm_read()
3470 substream = pcm_file->substream; in snd_pcm_read()
3489 struct snd_pcm_file *pcm_file; in snd_pcm_write() local
3494 pcm_file = file->private_data; in snd_pcm_write()
3495 substream = pcm_file->substream; in snd_pcm_write()
3513 struct snd_pcm_file *pcm_file; in snd_pcm_readv() local
3522 pcm_file = iocb->ki_filp->private_data; in snd_pcm_readv()
3523 substream = pcm_file->substream; in snd_pcm_readv()
3553 struct snd_pcm_file *pcm_file; in snd_pcm_writev() local
3562 pcm_file = iocb->ki_filp->private_data; in snd_pcm_writev()
3563 substream = pcm_file->substream; in snd_pcm_writev()
3592 struct snd_pcm_file *pcm_file; in snd_pcm_poll() local
3598 pcm_file = file->private_data; in snd_pcm_poll()
3600 substream = pcm_file->substream; in snd_pcm_poll()
3722 static bool pcm_status_mmap_allowed(struct snd_pcm_file *pcm_file) in pcm_status_mmap_allowed() argument
3728 if (pcm_file->substream->runtime->hw.info & SNDRV_PCM_INFO_EXPLICIT_SYNC) in pcm_status_mmap_allowed()
3734 if (pcm_file->user_pversion < SNDRV_PROTOCOL_VERSION(2, 0, 14) && in pcm_status_mmap_allowed()
3735 (pcm_file->substream->runtime->hw.info & SNDRV_PCM_INFO_SYNC_APPLPTR)) in pcm_status_mmap_allowed()
3740 static bool pcm_control_mmap_allowed(struct snd_pcm_file *pcm_file) in pcm_control_mmap_allowed() argument
3742 if (pcm_file->no_compat_mmap) in pcm_control_mmap_allowed()
3745 if (pcm_file->substream->runtime->hw.info & SNDRV_PCM_INFO_EXPLICIT_SYNC) in pcm_control_mmap_allowed()
3751 if (pcm_file->substream->runtime->hw.info & SNDRV_PCM_INFO_SYNC_APPLPTR) in pcm_control_mmap_allowed()
3760 #define pcm_status_mmap_allowed(pcm_file) false argument
3761 #define pcm_control_mmap_allowed(pcm_file) false argument
3919 struct snd_pcm_file * pcm_file; in snd_pcm_mmap() local
3923 pcm_file = file->private_data; in snd_pcm_mmap()
3924 substream = pcm_file->substream; in snd_pcm_mmap()
3933 if (pcm_file->no_compat_mmap || !IS_ENABLED(CONFIG_64BIT)) in snd_pcm_mmap()
3937 if (!pcm_status_mmap_allowed(pcm_file)) in snd_pcm_mmap()
3941 if (pcm_file->no_compat_mmap || !IS_ENABLED(CONFIG_64BIT)) in snd_pcm_mmap()
3945 if (!pcm_control_mmap_allowed(pcm_file)) in snd_pcm_mmap()
3956 struct snd_pcm_file * pcm_file; in snd_pcm_fasync() local
3960 pcm_file = file->private_data; in snd_pcm_fasync()
3961 substream = pcm_file->substream; in snd_pcm_fasync()
4100 struct snd_pcm_file *pcm_file = file->private_data; in snd_pcm_get_unmapped_area() local
4101 struct snd_pcm_substream *substream = pcm_file->substream; in snd_pcm_get_unmapped_area()