/sound/drivers/opl3/ |
D | opl3_oss.c | 11 static int snd_opl3_open_seq_oss(struct snd_seq_oss_arg *arg, void *closure); 12 static int snd_opl3_close_seq_oss(struct snd_seq_oss_arg *arg); 13 static int snd_opl3_ioctl_seq_oss(struct snd_seq_oss_arg *arg, unsigned int cmd, unsigned long ioar… 14 static int snd_opl3_load_patch_seq_oss(struct snd_seq_oss_arg *arg, int format, const char __user *… 15 static int snd_opl3_reset_seq_oss(struct snd_seq_oss_arg *arg); 92 struct snd_seq_oss_reg *arg; in snd_opl3_init_seq_oss() local 101 arg = SNDRV_SEQ_DEVICE_ARGPTR(dev); in snd_opl3_init_seq_oss() 102 arg->type = SYNTH_TYPE_FM; in snd_opl3_init_seq_oss() 104 arg->subtype = FM_TYPE_ADLIB; in snd_opl3_init_seq_oss() 105 arg->nvoices = MAX_OPL2_VOICES; in snd_opl3_init_seq_oss() [all …]
|
/sound/pci/emu10k1/ |
D | emu10k1_synth.c | 24 struct snd_emu10k1_synth_arg *arg; in snd_emu10k1_synth_probe() local 27 arg = SNDRV_SEQ_DEVICE_ARGPTR(dev); in snd_emu10k1_synth_probe() 28 if (arg == NULL) in snd_emu10k1_synth_probe() 31 if (arg->seq_ports <= 0) in snd_emu10k1_synth_probe() 33 if (arg->max_voices < 1) in snd_emu10k1_synth_probe() 34 arg->max_voices = 1; in snd_emu10k1_synth_probe() 35 else if (arg->max_voices > 64) in snd_emu10k1_synth_probe() 36 arg->max_voices = 64; in snd_emu10k1_synth_probe() 42 hw = arg->hwptr; in snd_emu10k1_synth_probe() 44 emux->max_voices = arg->max_voices; in snd_emu10k1_synth_probe() [all …]
|
D | emu10k1.c | 170 struct snd_emu10k1_synth_arg *arg; in snd_card_emu10k1_probe() local 171 arg = SNDRV_SEQ_DEVICE_ARGPTR(wave); in snd_card_emu10k1_probe() 173 arg->hwptr = emu; in snd_card_emu10k1_probe() 174 arg->index = 1; in snd_card_emu10k1_probe() 175 arg->seq_ports = seq_ports[dev]; in snd_card_emu10k1_probe() 176 arg->max_voices = max_synth_voices[dev]; in snd_card_emu10k1_probe()
|
/sound/synth/emux/ |
D | emux_oss.c | 19 static int snd_emux_open_seq_oss(struct snd_seq_oss_arg *arg, void *closure); 20 static int snd_emux_close_seq_oss(struct snd_seq_oss_arg *arg); 21 static int snd_emux_ioctl_seq_oss(struct snd_seq_oss_arg *arg, unsigned int cmd, 23 static int snd_emux_load_patch_seq_oss(struct snd_seq_oss_arg *arg, int format, 25 static int snd_emux_reset_seq_oss(struct snd_seq_oss_arg *arg); 54 struct snd_seq_oss_reg *arg; in snd_emux_init_seq_oss() local 64 arg = SNDRV_SEQ_DEVICE_ARGPTR(dev); in snd_emux_init_seq_oss() 65 arg->type = SYNTH_TYPE_SAMPLE; in snd_emux_init_seq_oss() 66 arg->subtype = SAMPLE_TYPE_AWE32; in snd_emux_init_seq_oss() 67 arg->nvoices = emu->max_voices; in snd_emux_init_seq_oss() [all …]
|
D | emux_hwdep.c | 20 snd_emux_hwdep_load_patch(struct snd_emux *emu, void __user *arg) in snd_emux_hwdep_load_patch() argument 25 if (copy_from_user(&patch, arg, sizeof(patch))) in snd_emux_hwdep_load_patch() 29 return snd_soundfont_load_guspatch(emu->sflist, arg, in snd_emux_hwdep_load_patch() 35 err = snd_soundfont_load(emu->sflist, arg, patch.len + sizeof(patch), TMP_CLIENT_ID); in snd_emux_hwdep_load_patch() 40 return emu->ops.load_fx(emu, patch.type, patch.optarg, arg, patch.len + sizeof(patch)); in snd_emux_hwdep_load_patch() 51 snd_emux_hwdep_misc_mode(struct snd_emux *emu, void __user *arg) in snd_emux_hwdep_misc_mode() argument 56 if (copy_from_user(&info, arg, sizeof(info))) in snd_emux_hwdep_misc_mode() 80 unsigned int cmd, unsigned long arg) in snd_emux_hwdep_ioctl() argument 86 return put_user(SNDRV_EMUX_VERSION, (unsigned int __user *)arg); in snd_emux_hwdep_ioctl() 88 return snd_emux_hwdep_load_patch(emu, (void __user *)arg); in snd_emux_hwdep_ioctl() [all …]
|
/sound/core/seq/oss/ |
D | seq_oss_ioctl.c | 18 static int snd_seq_oss_synth_info_user(struct seq_oss_devinfo *dp, void __user *arg) in snd_seq_oss_synth_info_user() argument 22 if (copy_from_user(&info, arg, sizeof(info))) in snd_seq_oss_synth_info_user() 26 if (copy_to_user(arg, &info, sizeof(info))) in snd_seq_oss_synth_info_user() 31 static int snd_seq_oss_midi_info_user(struct seq_oss_devinfo *dp, void __user *arg) in snd_seq_oss_midi_info_user() argument 35 if (copy_from_user(&info, arg, sizeof(info))) in snd_seq_oss_midi_info_user() 39 if (copy_to_user(arg, &info, sizeof(info))) in snd_seq_oss_midi_info_user() 44 static int snd_seq_oss_oob_user(struct seq_oss_devinfo *dp, void __user *arg) in snd_seq_oss_oob_user() argument 49 if (copy_from_user(ev, arg, 8)) in snd_seq_oss_oob_user() 64 void __user *arg = (void __user *)carg; in snd_seq_oss_ioctl() local 65 int __user *p = arg; in snd_seq_oss_ioctl() [all …]
|
D | seq_oss_synth.c | 218 info->arg.app_index = dp->port; in snd_seq_oss_synth_setup() 219 info->arg.file_mode = dp->file_mode; in snd_seq_oss_synth_setup() 220 info->arg.seq_mode = dp->seq_mode; in snd_seq_oss_synth_setup() 222 info->arg.event_passing = SNDRV_SEQ_OSS_PROCESS_EVENTS; in snd_seq_oss_synth_setup() 224 info->arg.event_passing = SNDRV_SEQ_OSS_PASS_EVENTS; in snd_seq_oss_synth_setup() 230 if (rec->oper.open(&info->arg, rec->private_data) < 0) { in snd_seq_oss_synth_setup() 239 rec->oper.close(&info->arg); in snd_seq_oss_synth_setup() 271 info->arg.app_index = dp->port; in snd_seq_oss_synth_setup_midi() 272 info->arg.file_mode = dp->file_mode; in snd_seq_oss_synth_setup_midi() 273 info->arg.seq_mode = dp->seq_mode; in snd_seq_oss_synth_setup_midi() [all …]
|
D | seq_oss_device.h | 56 struct snd_seq_oss_arg arg; member 112 int snd_seq_oss_ioctl(struct seq_oss_devinfo *dp, unsigned int cmd, unsigned long arg); 143 snd_seq_oss_control(struct seq_oss_devinfo *dp, unsigned int type, void *arg) in snd_seq_oss_control() argument 148 err = snd_seq_kernel_client_ctl(dp->cseq, type, arg); in snd_seq_oss_control()
|
D | seq_oss_timer.c | 218 snd_seq_oss_timer_ioctl(struct seq_oss_timer *timer, unsigned int cmd, int __user *arg) in snd_seq_oss_timer_ioctl() argument 224 if (get_user(value, arg)) in snd_seq_oss_timer_ioctl() 229 return put_user(value, arg) ? -EFAULT : 0; in snd_seq_oss_timer_ioctl() 243 if (get_user(value, arg)) in snd_seq_oss_timer_ioctl() 247 if (get_user(value, arg)) in snd_seq_oss_timer_ioctl()
|
/sound/pci/hda/ |
D | hda_hwdep.c | 22 struct hda_verb_ioctl __user *arg) in verb_write_ioctl() argument 26 if (get_user(verb, &arg->verb)) in verb_write_ioctl() 30 if (put_user(res, &arg->res)) in verb_write_ioctl() 36 struct hda_verb_ioctl __user *arg) in get_wcap_ioctl() argument 40 if (get_user(verb, &arg->verb)) in get_wcap_ioctl() 52 if (put_user(res, &arg->res)) in get_wcap_ioctl() 61 unsigned int cmd, unsigned long arg) in hda_hwdep_ioctl() argument 64 void __user *argp = (void __user *)arg; in hda_hwdep_ioctl() 79 unsigned int cmd, unsigned long arg) in hda_hwdep_ioctl_compat() argument 81 return hda_hwdep_ioctl(hw, file, cmd, (unsigned long)compat_ptr(arg)); in hda_hwdep_ioctl_compat()
|
/sound/core/seq/ |
D | seq_clientmgr.c | 1154 static int snd_seq_ioctl_pversion(struct snd_seq_client *client, void *arg) in snd_seq_ioctl_pversion() argument 1156 int *pversion = arg; in snd_seq_ioctl_pversion() 1162 static int snd_seq_ioctl_client_id(struct snd_seq_client *client, void *arg) in snd_seq_ioctl_client_id() argument 1164 int *client_id = arg; in snd_seq_ioctl_client_id() 1171 static int snd_seq_ioctl_system_info(struct snd_seq_client *client, void *arg) in snd_seq_ioctl_system_info() argument 1173 struct snd_seq_system_info *info = arg; in snd_seq_ioctl_system_info() 1189 static int snd_seq_ioctl_running_mode(struct snd_seq_client *client, void *arg) in snd_seq_ioctl_running_mode() argument 1191 struct snd_seq_running_info *info = arg; in snd_seq_ioctl_running_mode() 1250 void *arg) in snd_seq_ioctl_get_client_info() argument 1252 struct snd_seq_client_info *client_info = arg; in snd_seq_ioctl_get_client_info() [all …]
|
/sound/core/ |
D | compress_offload.c | 225 snd_compr_ioctl_avail(struct snd_compr_stream *stream, unsigned long arg) in snd_compr_ioctl_avail() argument 242 if (copy_to_user((__u64 __user *)arg, in snd_compr_ioctl_avail() 445 snd_compr_get_caps(struct snd_compr_stream *stream, unsigned long arg) in snd_compr_get_caps() argument 457 if (copy_to_user((void __user *)arg, &caps, sizeof(caps))) in snd_compr_get_caps() 465 snd_compr_get_codec_caps(struct snd_compr_stream *stream, unsigned long arg) in snd_compr_get_codec_caps() argument 480 if (copy_to_user((void __user *)arg, caps, sizeof(*caps))) in snd_compr_get_codec_caps() 587 snd_compr_set_params(struct snd_compr_stream *stream, unsigned long arg) in snd_compr_set_params() argument 597 params = memdup_user((void __user *)arg, sizeof(*params)); in snd_compr_set_params() 628 snd_compr_get_params(struct snd_compr_stream *stream, unsigned long arg) in snd_compr_get_params() argument 642 if (copy_to_user((char __user *)arg, params, sizeof(*params))) in snd_compr_get_params() [all …]
|
D | timer_compat.c | 80 unsigned long arg) in __snd_timer_user_ioctl_compat() argument 82 void __user *argp = compat_ptr(arg); in __snd_timer_user_ioctl_compat() 115 unsigned long arg) in snd_timer_user_ioctl_compat() argument 121 ret = __snd_timer_user_ioctl_compat(file, cmd, arg); in snd_timer_user_ioctl_compat()
|
D | hwdep_compat.c | 40 unsigned long arg) in snd_hwdep_ioctl_compat() argument 43 void __user *argp = compat_ptr(arg); in snd_hwdep_ioctl_compat() 53 return hw->ops.ioctl_compat(hw, file, cmd, arg); in snd_hwdep_ioctl_compat()
|
/sound/firewire/tascam/ |
D | tascam-hwdep.c | 147 static int hwdep_get_info(struct snd_tscm *tscm, void __user *arg) in hwdep_get_info() argument 160 if (copy_to_user(arg, &info, sizeof(info))) in hwdep_get_info() 202 static int tscm_hwdep_state(struct snd_tscm *tscm, void __user *arg) in tscm_hwdep_state() argument 204 if (copy_to_user(arg, tscm->state, sizeof(tscm->state))) in tscm_hwdep_state() 223 unsigned int cmd, unsigned long arg) in hwdep_ioctl() argument 229 return hwdep_get_info(tscm, (void __user *)arg); in hwdep_ioctl() 235 return tscm_hwdep_state(tscm, (void __user *)arg); in hwdep_ioctl() 243 unsigned int cmd, unsigned long arg) in hwdep_compat_ioctl() argument 246 (unsigned long)compat_ptr(arg)); in hwdep_compat_ioctl()
|
/sound/oss/dmasound/ |
D | dmasound_core.c | 345 static int mixer_ioctl(struct file *file, u_int cmd, u_long arg) in mixer_ioctl() argument 351 return IOCTL_OUT(arg, SOUND_VERSION); in mixer_ioctl() 359 if (copy_to_user((void __user *)arg, &info, sizeof(info))) in mixer_ioctl() 365 return dmasound.mach.mixer_ioctl(cmd, arg); in mixer_ioctl() 369 static long mixer_unlocked_ioctl(struct file *file, u_int cmd, u_long arg) in mixer_unlocked_ioctl() argument 374 ret = mixer_ioctl(file, cmd, arg); in mixer_unlocked_ioctl() 985 static int sq_ioctl(struct file *file, u_int cmd, u_long arg) in sq_ioctl() argument 999 return IOCTL_OUT(arg, fmt); in sq_ioctl() 1015 return IOCTL_OUT(arg, size); in sq_ioctl() 1040 return IOCTL_OUT(arg, dmasound.soft.speed); in sq_ioctl() [all …]
|
D | dmasound_atari.c | 143 static int AtaMixerIoctl(u_int cmd, u_long arg); 144 static int TTMixerIoctl(u_int cmd, u_long arg); 145 static int FalconMixerIoctl(u_int cmd, u_long arg); 1361 static int AtaMixerIoctl(u_int cmd, u_long arg) in AtaMixerIoctl() argument 1373 return IOCTL_OUT(arg, porta & 0x40 ? 0 : 100); in AtaMixerIoctl() 1377 IOCTL_IN(arg, data); in AtaMixerIoctl() 1378 return IOCTL_OUT(arg, dmasound_set_volume(data)); in AtaMixerIoctl() 1382 IOCTL_IN(arg, data); in AtaMixerIoctl() 1389 return IOCTL_OUT(arg, porta & 0x40 ? 0 : 100); in AtaMixerIoctl() 1396 static int TTMixerIoctl(u_int cmd, u_long arg) in TTMixerIoctl() argument [all …]
|
D | dmasound_paula.c | 121 static int AmiMixerIoctl(u_int cmd, u_long arg); 619 static int AmiMixerIoctl(u_int cmd, u_long arg) in AmiMixerIoctl() argument 624 return IOCTL_OUT(arg, SOUND_MASK_VOLUME | SOUND_MASK_TREBLE); in AmiMixerIoctl() 626 return IOCTL_OUT(arg, 0); in AmiMixerIoctl() 628 return IOCTL_OUT(arg, SOUND_MASK_VOLUME); in AmiMixerIoctl() 630 return IOCTL_OUT(arg, in AmiMixerIoctl() 634 IOCTL_IN(arg, data); in AmiMixerIoctl() 635 return IOCTL_OUT(arg, dmasound_set_volume(data)); in AmiMixerIoctl() 637 return IOCTL_OUT(arg, dmasound.treble); in AmiMixerIoctl() 639 IOCTL_IN(arg, data); in AmiMixerIoctl() [all …]
|
/sound/firewire/bebob/ |
D | bebob_hwdep.c | 71 hwdep_get_info(struct snd_bebob *bebob, void __user *arg) in hwdep_get_info() argument 84 if (copy_to_user(arg, &info, sizeof(info))) in hwdep_get_info() 143 unsigned int cmd, unsigned long arg) in hwdep_ioctl() argument 149 return hwdep_get_info(bebob, (void __user *)arg); in hwdep_ioctl() 162 unsigned int cmd, unsigned long arg) in hwdep_compat_ioctl() argument 165 (unsigned long)compat_ptr(arg)); in hwdep_compat_ioctl()
|
/sound/firewire/oxfw/ |
D | oxfw-hwdep.c | 70 static int hwdep_get_info(struct snd_oxfw *oxfw, void __user *arg) in hwdep_get_info() argument 83 if (copy_to_user(arg, &info, sizeof(info))) in hwdep_get_info() 138 unsigned int cmd, unsigned long arg) in hwdep_ioctl() argument 144 return hwdep_get_info(oxfw, (void __user *)arg); in hwdep_ioctl() 156 unsigned int cmd, unsigned long arg) in hwdep_compat_ioctl() argument 159 (unsigned long)compat_ptr(arg)); in hwdep_compat_ioctl()
|
/sound/firewire/dice/ |
D | dice-hwdep.c | 72 static int hwdep_get_info(struct snd_dice *dice, void __user *arg) in hwdep_get_info() argument 85 if (copy_to_user(arg, &info, sizeof(info))) in hwdep_get_info() 140 unsigned int cmd, unsigned long arg) in hwdep_ioctl() argument 146 return hwdep_get_info(dice, (void __user *)arg); in hwdep_ioctl() 158 unsigned int cmd, unsigned long arg) in hwdep_compat_ioctl() argument 161 (unsigned long)compat_ptr(arg)); in hwdep_compat_ioctl()
|
/sound/firewire/digi00x/ |
D | digi00x-hwdep.c | 80 static int hwdep_get_info(struct snd_dg00x *dg00x, void __user *arg) in hwdep_get_info() argument 93 if (copy_to_user(arg, &info, sizeof(info))) in hwdep_get_info() 148 unsigned int cmd, unsigned long arg) in hwdep_ioctl() argument 154 return hwdep_get_info(dg00x, (void __user *)arg); in hwdep_ioctl() 166 unsigned int cmd, unsigned long arg) in hwdep_compat_ioctl() argument 169 (unsigned long)compat_ptr(arg)); in hwdep_compat_ioctl()
|
/sound/firewire/fireface/ |
D | ff-hwdep.c | 70 static int hwdep_get_info(struct snd_ff *ff, void __user *arg) in hwdep_get_info() argument 83 if (copy_to_user(arg, &info, sizeof(info))) in hwdep_get_info() 138 unsigned int cmd, unsigned long arg) in hwdep_ioctl() argument 144 return hwdep_get_info(ff, (void __user *)arg); in hwdep_ioctl() 156 unsigned int cmd, unsigned long arg) in hwdep_compat_ioctl() argument 159 (unsigned long)compat_ptr(arg)); in hwdep_compat_ioctl()
|
/sound/firewire/motu/ |
D | motu-hwdep.c | 79 static int hwdep_get_info(struct snd_motu *motu, void __user *arg) in hwdep_get_info() argument 92 if (copy_to_user(arg, &info, sizeof(info))) in hwdep_get_info() 147 unsigned int cmd, unsigned long arg) in hwdep_ioctl() argument 153 return hwdep_get_info(motu, (void __user *)arg); in hwdep_ioctl() 165 unsigned int cmd, unsigned long arg) in hwdep_compat_ioctl() argument 168 (unsigned long)compat_ptr(arg)); in hwdep_compat_ioctl()
|
/sound/pci/au88x0/ |
D | au88x0.c | 271 snd_vortex_synth_arg_t *arg; in __snd_vortex_probe() 273 arg = SNDRV_SEQ_DEVICE_ARGPTR(wave); in __snd_vortex_probe() 275 arg->hwptr = vortex; in __snd_vortex_probe() 276 arg->index = 1; in __snd_vortex_probe() 277 arg->seq_ports = seq_ports[dev]; in __snd_vortex_probe() 278 arg->max_voices = max_synth_voices[dev]; in __snd_vortex_probe()
|