Lines Matching defs:arg
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;
64 arg = SNDRV_SEQ_DEVICE_ARGPTR(dev);
65 arg->type = SYNTH_TYPE_SAMPLE;
66 arg->subtype = SAMPLE_TYPE_AWE32;
67 arg->nvoices = emu->max_voices;
68 arg->oper = oss_callback;
69 arg->private_data = emu;
96 snd_emux_open_seq_oss(struct snd_seq_oss_arg *arg, void *closure)
104 if (snd_BUG_ON(!arg || !emu))
124 arg->private_data = p;
125 arg->addr.client = p->chset.client;
126 arg->addr.port = p->chset.port;
127 p->oss_arg = arg;
129 reset_port_mode(p, arg->seq_mode);
162 snd_emux_close_seq_oss(struct snd_seq_oss_arg *arg)
167 if (snd_BUG_ON(!arg))
169 p = arg->private_data;
190 snd_emux_load_patch_seq_oss(struct snd_seq_oss_arg *arg, int format,
197 if (snd_BUG_ON(!arg))
199 p = arg->private_data;
235 snd_emux_ioctl_seq_oss(struct snd_seq_oss_arg *arg, unsigned int cmd, unsigned long ioarg)
240 if (snd_BUG_ON(!arg))
242 p = arg->private_data;
269 snd_emux_reset_seq_oss(struct snd_seq_oss_arg *arg)
273 if (snd_BUG_ON(!arg))
275 p = arg->private_data;