Home
last modified time | relevance | path

Searched refs:arg (Results 1 – 25 of 81) sorted by relevance

1234

/sound/drivers/opl3/
Dopl3_oss.c11 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/
Demu10k1_synth.c24 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 …]
Demu10k1.c161 struct snd_emu10k1_synth_arg *arg; in snd_card_emu10k1_probe() local
162 arg = SNDRV_SEQ_DEVICE_ARGPTR(wave); in snd_card_emu10k1_probe()
164 arg->hwptr = emu; in snd_card_emu10k1_probe()
165 arg->index = 1; in snd_card_emu10k1_probe()
166 arg->seq_ports = seq_ports[dev]; in snd_card_emu10k1_probe()
167 arg->max_voices = max_synth_voices[dev]; in snd_card_emu10k1_probe()
/sound/synth/emux/
Demux_oss.c19 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 …]
Demux_hwdep.c20 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/
Dseq_oss_ioctl.c18 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 …]
Dseq_oss_synth.c218 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 …]
Dseq_oss_device.h56 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()
Dseq_oss_timer.c218 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()
Dseq_oss.c48 static long odev_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
168 odev_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in odev_ioctl() argument
180 rc = snd_seq_oss_ioctl(dp, cmd, arg); in odev_ioctl()
188 unsigned long arg) in odev_ioctl_compat() argument
190 return odev_ioctl(file, cmd, (unsigned long)compat_ptr(arg)); in odev_ioctl_compat()
/sound/pci/hda/
Dhda_hwdep.c22 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/
Dseq_clientmgr.c1151 static int snd_seq_ioctl_pversion(struct snd_seq_client *client, void *arg) in snd_seq_ioctl_pversion() argument
1153 int *pversion = arg; in snd_seq_ioctl_pversion()
1159 static int snd_seq_ioctl_client_id(struct snd_seq_client *client, void *arg) in snd_seq_ioctl_client_id() argument
1161 int *client_id = arg; in snd_seq_ioctl_client_id()
1168 static int snd_seq_ioctl_system_info(struct snd_seq_client *client, void *arg) in snd_seq_ioctl_system_info() argument
1170 struct snd_seq_system_info *info = arg; in snd_seq_ioctl_system_info()
1186 static int snd_seq_ioctl_running_mode(struct snd_seq_client *client, void *arg) in snd_seq_ioctl_running_mode() argument
1188 struct snd_seq_running_info *info = arg; in snd_seq_ioctl_running_mode()
1247 void *arg) in snd_seq_ioctl_get_client_info() argument
1249 struct snd_seq_client_info *client_info = arg; in snd_seq_ioctl_get_client_info()
[all …]
/sound/core/
Dcompress_offload.c231 snd_compr_ioctl_avail(struct snd_compr_stream *stream, unsigned long arg) in snd_compr_ioctl_avail() argument
248 if (copy_to_user((__u64 __user *)arg, in snd_compr_ioctl_avail()
451 snd_compr_get_caps(struct snd_compr_stream *stream, unsigned long arg) in snd_compr_get_caps() argument
463 if (copy_to_user((void __user *)arg, &caps, sizeof(caps))) in snd_compr_get_caps()
471 snd_compr_get_codec_caps(struct snd_compr_stream *stream, unsigned long arg) in snd_compr_get_codec_caps() argument
486 if (copy_to_user((void __user *)arg, caps, sizeof(*caps))) in snd_compr_get_codec_caps()
593 snd_compr_set_params(struct snd_compr_stream *stream, unsigned long arg) in snd_compr_set_params() argument
603 params = memdup_user((void __user *)arg, sizeof(*params)); in snd_compr_set_params()
634 snd_compr_get_params(struct snd_compr_stream *stream, unsigned long arg) in snd_compr_get_params() argument
648 if (copy_to_user((char __user *)arg, params, sizeof(*params))) in snd_compr_get_params()
[all …]
Dtimer_compat.c80 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()
Dhwdep_compat.c40 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/
Dtascam-hwdep.c147 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/
Ddmasound_core.c345 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
1000 return IOCTL_OUT(arg, fmt); in sq_ioctl()
1017 return IOCTL_OUT(arg, size); in sq_ioctl()
1044 return IOCTL_OUT(arg, dmasound.soft.speed); in sq_ioctl()
[all …]
Ddmasound_atari.c143 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 …]
Ddmasound_paula.c121 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/motu/
Dmotu-hwdep.c79 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/firewire/bebob/
Dbebob_hwdep.c73 hwdep_get_info(struct snd_bebob *bebob, void __user *arg) in hwdep_get_info() argument
86 if (copy_to_user(arg, &info, sizeof(info))) in hwdep_get_info()
145 unsigned int cmd, unsigned long arg) in hwdep_ioctl() argument
151 return hwdep_get_info(bebob, (void __user *)arg); in hwdep_ioctl()
164 unsigned int cmd, unsigned long arg) in hwdep_compat_ioctl() argument
167 (unsigned long)compat_ptr(arg)); in hwdep_compat_ioctl()
/sound/firewire/digi00x/
Ddigi00x-hwdep.c80 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/dice/
Ddice-hwdep.c72 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/oxfw/
Doxfw-hwdep.c72 static int hwdep_get_info(struct snd_oxfw *oxfw, 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(oxfw, (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/fireface/
Dff-hwdep.c72 static int hwdep_get_info(struct snd_ff *ff, 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(ff, (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()

1234