Home
last modified time | relevance | path

Searched refs:argp (Results 1 – 17 of 17) sorted by relevance

/sound/core/seq/
Dseq_compat.c77 void __user *argp = compat_ptr(arg); in snd_seq_ioctl_compat() local
111 return snd_seq_call_port_info_ioctl(client, SNDRV_SEQ_IOCTL_CREATE_PORT, argp); in snd_seq_ioctl_compat()
113 return snd_seq_call_port_info_ioctl(client, SNDRV_SEQ_IOCTL_DELETE_PORT, argp); in snd_seq_ioctl_compat()
115 return snd_seq_call_port_info_ioctl(client, SNDRV_SEQ_IOCTL_GET_PORT_INFO, argp); in snd_seq_ioctl_compat()
117 return snd_seq_call_port_info_ioctl(client, SNDRV_SEQ_IOCTL_SET_PORT_INFO, argp); in snd_seq_ioctl_compat()
119 return snd_seq_call_port_info_ioctl(client, SNDRV_SEQ_IOCTL_QUERY_NEXT_PORT, argp); in snd_seq_ioctl_compat()
/sound/core/
Dpcm_compat.c573 void __user *argp = compat_ptr(arg); in snd_pcm_ioctl_compat() local
608 return snd_pcm_common_ioctl(file, substream, cmd, argp); in snd_pcm_ioctl_compat()
612 return snd_pcm_ioctl_sync_ptr_x32(substream, argp); in snd_pcm_ioctl_compat()
614 return snd_pcm_ioctl_sync_ptr_buggy(substream, argp); in snd_pcm_ioctl_compat()
616 return snd_pcm_ioctl_hw_params_compat(substream, 1, argp); in snd_pcm_ioctl_compat()
618 return snd_pcm_ioctl_hw_params_compat(substream, 0, argp); in snd_pcm_ioctl_compat()
620 return snd_pcm_ioctl_sw_params_compat(substream, argp); in snd_pcm_ioctl_compat()
622 return snd_pcm_status_user32(substream, argp, false); in snd_pcm_ioctl_compat()
624 return snd_pcm_status_user32(substream, argp, true); in snd_pcm_ioctl_compat()
626 return snd_pcm_ioctl_channel_info_compat(substream, argp); in snd_pcm_ioctl_compat()
[all …]
Dtimer_compat.c82 void __user *argp = compat_ptr(arg); in __snd_timer_user_ioctl_compat() local
101 return __snd_timer_user_ioctl(file, cmd, (unsigned long)argp, true); in __snd_timer_user_ioctl_compat()
103 return snd_timer_user_gparams_compat(file, argp); in __snd_timer_user_ioctl_compat()
105 return snd_timer_user_info_compat(file, argp); in __snd_timer_user_ioctl_compat()
107 return snd_timer_user_status32(file, argp); in __snd_timer_user_ioctl_compat()
109 return snd_timer_user_status64(file, argp); in __snd_timer_user_ioctl_compat()
Drawmidi_compat.c106 void __user *argp = compat_ptr(arg); in snd_rawmidi_ioctl_compat() local
114 return snd_rawmidi_ioctl(file, cmd, (unsigned long)argp); in snd_rawmidi_ioctl_compat()
116 return snd_rawmidi_ioctl_params_compat(rfile, argp); in snd_rawmidi_ioctl_compat()
118 return snd_rawmidi_ioctl_status32(rfile, argp); in snd_rawmidi_ioctl_compat()
120 return snd_rawmidi_ioctl_status_compat64(rfile, argp); in snd_rawmidi_ioctl_compat()
Dcontrol_compat.c431 void __user *argp = compat_ptr(arg); in snd_ctl_ioctl_compat() local
450 return snd_ctl_ioctl(file, cmd, (unsigned long)argp); in snd_ctl_ioctl_compat()
452 return snd_ctl_elem_list_compat(ctl->card, argp); in snd_ctl_ioctl_compat()
454 return snd_ctl_elem_info_compat(ctl, argp); in snd_ctl_ioctl_compat()
456 return snd_ctl_elem_read_user_compat(ctl->card, argp); in snd_ctl_ioctl_compat()
458 return snd_ctl_elem_write_user_compat(ctl, argp); in snd_ctl_ioctl_compat()
460 return snd_ctl_elem_add_compat(ctl, argp, 0); in snd_ctl_ioctl_compat()
462 return snd_ctl_elem_add_compat(ctl, argp, 1); in snd_ctl_ioctl_compat()
465 return snd_ctl_elem_read_user_x32(ctl->card, argp); in snd_ctl_ioctl_compat()
467 return snd_ctl_elem_write_user_x32(ctl, argp); in snd_ctl_ioctl_compat()
Dhwdep_compat.c43 void __user *argp = compat_ptr(arg); in snd_hwdep_ioctl_compat() local
48 return snd_hwdep_ioctl(file, cmd, (unsigned long)argp); in snd_hwdep_ioctl_compat()
50 return snd_hwdep_dsp_load_compat(hw, argp); in snd_hwdep_ioctl_compat()
Drawmidi.c777 struct snd_rawmidi_status32 __user *argp) in snd_rawmidi_ioctl_status32() argument
780 struct snd_rawmidi_status32 __user *status = argp; in snd_rawmidi_ioctl_status32()
784 if (copy_from_user(&status32, argp, in snd_rawmidi_ioctl_status32()
820 struct snd_rawmidi_status64 __user *argp) in snd_rawmidi_ioctl_status64() argument
825 if (copy_from_user(&status, argp, sizeof(struct snd_rawmidi_status64))) in snd_rawmidi_ioctl_status64()
844 if (copy_to_user(argp, &status, in snd_rawmidi_ioctl_status64()
853 void __user *argp = (void __user *)arg; in snd_rawmidi_ioctl() local
860 return put_user(SNDRV_RAWMIDI_VERSION, (int __user *)argp) ? -EFAULT : 0; in snd_rawmidi_ioctl()
864 struct snd_rawmidi_info __user *info = argp; in snd_rawmidi_ioctl()
886 if (copy_from_user(&params, argp, sizeof(struct snd_rawmidi_params))) in snd_rawmidi_ioctl()
[all …]
Dhwdep.c240 void __user *argp = (void __user *)arg; in snd_hwdep_ioctl() local
243 return put_user(SNDRV_HWDEP_VERSION, (int __user *)argp); in snd_hwdep_ioctl()
245 return snd_hwdep_info(hw, argp); in snd_hwdep_ioctl()
247 return snd_hwdep_dsp_status(hw, argp); in snd_hwdep_ioctl()
249 return snd_hwdep_dsp_load_user(hw, argp); in snd_hwdep_ioctl()
Dcontrol.c1887 void __user *argp = (void __user *)arg; in snd_ctl_ioctl() local
1888 int __user *ip = argp; in snd_ctl_ioctl()
1899 return snd_ctl_card_info(card, ctl, cmd, argp); in snd_ctl_ioctl()
1901 return snd_ctl_elem_list_user(card, argp); in snd_ctl_ioctl()
1903 return snd_ctl_elem_info_user(ctl, argp); in snd_ctl_ioctl()
1905 return snd_ctl_elem_read_user(card, argp); in snd_ctl_ioctl()
1907 return snd_ctl_elem_write_user(ctl, argp); in snd_ctl_ioctl()
1909 return snd_ctl_elem_lock(ctl, argp); in snd_ctl_ioctl()
1911 return snd_ctl_elem_unlock(ctl, argp); in snd_ctl_ioctl()
1913 return snd_ctl_elem_add_user(ctl, argp, 0); in snd_ctl_ioctl()
[all …]
Dtimer.c2037 static int snd_timer_user_tread(void __user *argp, struct snd_timer_user *tu, in snd_timer_user_tread() argument
2040 int __user *p = argp; in snd_timer_user_tread()
2078 void __user *argp = (void __user *)arg; in __snd_timer_user_ioctl() local
2079 int __user *p = argp; in __snd_timer_user_ioctl()
2086 return snd_timer_user_next_device(argp); in __snd_timer_user_ioctl()
2089 return snd_timer_user_tread(argp, tu, cmd, compat); in __snd_timer_user_ioctl()
2091 return snd_timer_user_ginfo(file, argp); in __snd_timer_user_ioctl()
2093 return snd_timer_user_gparams(file, argp); in __snd_timer_user_ioctl()
2095 return snd_timer_user_gstatus(file, argp); in __snd_timer_user_ioctl()
2097 return snd_timer_user_tselect(file, argp); in __snd_timer_user_ioctl()
[all …]
/sound/pci/hda/
Dhda_hwdep.c64 void __user *argp = (void __user *)arg; in hda_hwdep_ioctl() local
68 return put_user(HDA_HWDEP_VERSION, (int __user *)argp); in hda_hwdep_ioctl()
70 return verb_write_ioctl(codec, argp); in hda_hwdep_ioctl()
72 return get_wcap_ioctl(codec, argp); in hda_hwdep_ioctl()
/sound/drivers/opl3/
Dopl3_synth.c83 void __user *argp = (void __user *)arg; in snd_opl3_ioctl() local
98 if (copy_to_user(argp, &info, sizeof(struct snd_dm_fm_info))) in snd_opl3_ioctl()
116 if (copy_from_user(&note, argp, sizeof(struct snd_dm_fm_note))) in snd_opl3_ioctl()
127 if (copy_from_user(&voice, argp, sizeof(struct snd_dm_fm_voice))) in snd_opl3_ioctl()
138 if (copy_from_user(&params, argp, sizeof(struct snd_dm_fm_params))) in snd_opl3_ioctl()
/sound/pci/emu10k1/
Demufx.c2460 void __user *argp = (void __user *)arg; in snd_emu10k1_fx8010_ioctl() local
2466 return put_user(SNDRV_EMU10K1_VERSION, (int __user *)argp); in snd_emu10k1_fx8010_ioctl()
2472 if (copy_to_user(argp, info, sizeof(*info))) { in snd_emu10k1_fx8010_ioctl()
2482 icode = memdup_user(argp, sizeof(*icode)); in snd_emu10k1_fx8010_ioctl()
2489 icode = memdup_user(argp, sizeof(*icode)); in snd_emu10k1_fx8010_ioctl()
2493 if (res == 0 && copy_to_user(argp, icode, sizeof(*icode))) { in snd_emu10k1_fx8010_ioctl()
2500 ipcm = memdup_user(argp, sizeof(*ipcm)); in snd_emu10k1_fx8010_ioctl()
2507 ipcm = memdup_user(argp, sizeof(*ipcm)); in snd_emu10k1_fx8010_ioctl()
2511 if (res == 0 && copy_to_user(argp, ipcm, sizeof(*ipcm))) { in snd_emu10k1_fx8010_ioctl()
2520 if (get_user(addr, (unsigned int __user *)argp)) in snd_emu10k1_fx8010_ioctl()
[all …]
/sound/isa/wavefront/
Dwavefront_synth.c1670 void __user *argp = (void __user *)arg; in snd_wavefront_synth_ioctl() local
1685 if (wavefront_load_patch (dev, argp) != 0) { in snd_wavefront_synth_ioctl()
1691 wc = memdup_user(argp, sizeof(*wc)); in snd_wavefront_synth_ioctl()
1697 else if (copy_to_user (argp, wc, sizeof (*wc))) in snd_wavefront_synth_ioctl()
/sound/core/oss/
Dmixer_oss.c322 void __user *argp = (void __user *)arg; in snd_mixer_oss_ioctl1() local
323 int __user *p = argp; in snd_mixer_oss_ioctl1()
331 return snd_mixer_oss_info(fmixer, argp); in snd_mixer_oss_ioctl1()
333 return snd_mixer_oss_info_obsolete(fmixer, argp); in snd_mixer_oss_ioctl1()
/sound/pci/rme9652/
Dhdspm.c6158 void __user *argp = (void __user *)arg; in snd_hdspm_hwdep_ioctl() local
6211 s = copy_to_user(argp, levels, sizeof(*levels)); in snd_hdspm_hwdep_ioctl()
6256 s = copy_to_user(argp, &ltc, sizeof(ltc)); in snd_hdspm_hwdep_ioctl()
6281 if (copy_to_user(argp, &info, sizeof(info))) in snd_hdspm_hwdep_ioctl()
6321 if (copy_to_user(argp, &status, sizeof(status))) in snd_hdspm_hwdep_ioctl()
6339 if (copy_to_user(argp, &hdspm_version, in snd_hdspm_hwdep_ioctl()
6345 if (copy_from_user(&mixer, argp, sizeof(mixer))) in snd_hdspm_hwdep_ioctl()
Dhdsp.c4759 void __user *argp = (void __user *)arg; in snd_hdsp_hwdep_ioctl() local
4845 if (copy_to_user(argp, &info, sizeof(info))) in snd_hdsp_hwdep_ioctl()
4855 if (copy_to_user(argp, &h9632_aeb, sizeof(h9632_aeb))) in snd_hdsp_hwdep_ioctl()
4872 if (copy_to_user(argp, &hdsp_version, sizeof(hdsp_version))) in snd_hdsp_hwdep_ioctl()
4890 if (copy_from_user(&firmware, argp, sizeof(firmware))) in snd_hdsp_hwdep_ioctl()
4934 struct hdsp_mixer __user *mixer = (struct hdsp_mixer __user *)argp; in snd_hdsp_hwdep_ioctl()