Lines Matching refs:cmd
2077 int err, cmd; in snd_pcm_oss_set_trigger() local
2098 cmd = 0; in snd_pcm_oss_set_trigger()
2109 cmd = SNDRV_PCM_IOCTL_START; in snd_pcm_oss_set_trigger()
2115 cmd = SNDRV_PCM_IOCTL_DROP; in snd_pcm_oss_set_trigger()
2120 if (cmd) { in snd_pcm_oss_set_trigger()
2121 err = snd_pcm_kernel_ioctl(psubstream, cmd, NULL); in snd_pcm_oss_set_trigger()
2128 cmd = 0; in snd_pcm_oss_set_trigger()
2136 cmd = SNDRV_PCM_IOCTL_START; in snd_pcm_oss_set_trigger()
2142 cmd = SNDRV_PCM_IOCTL_DROP; in snd_pcm_oss_set_trigger()
2147 if (cmd) { in snd_pcm_oss_set_trigger()
2148 err = snd_pcm_kernel_ioctl(csubstream, cmd, NULL); in snd_pcm_oss_set_trigger()
2600 static long snd_pcm_oss_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in snd_pcm_oss_ioctl() argument
2607 if (cmd == OSS_GETVERSION) in snd_pcm_oss_ioctl()
2609 if (cmd == OSS_ALSAEMULVER) in snd_pcm_oss_ioctl()
2612 if (((cmd >> 8) & 0xff) == 'M') { /* mixer ioctl - for OSS compatibility */ in snd_pcm_oss_ioctl()
2622 return snd_mixer_oss_ioctl_card(substream->pcm->card, cmd, arg); in snd_pcm_oss_ioctl()
2625 if (((cmd >> 8) & 0xff) != 'P') in snd_pcm_oss_ioctl()
2628 pr_debug("pcm_oss: ioctl = 0x%x\n", cmd); in snd_pcm_oss_ioctl()
2630 switch (cmd) { in snd_pcm_oss_ioctl()
2708 cmd == SNDCTL_DSP_GETISPACE ? in snd_pcm_oss_ioctl()
2730 cmd == SNDCTL_DSP_GETIPTR ? in snd_pcm_oss_ioctl()
2736 cmd == SNDCTL_DSP_MAPINBUF ? in snd_pcm_oss_ioctl()
2757 pr_debug("pcm_oss: unknown command = 0x%x\n", cmd); in snd_pcm_oss_ioctl()
2764 static long snd_pcm_oss_ioctl_compat(struct file *file, unsigned int cmd, in snd_pcm_oss_ioctl_compat() argument
2771 return snd_pcm_oss_ioctl(file, cmd, (unsigned long)compat_ptr(arg)); in snd_pcm_oss_ioctl_compat()