Lines Matching refs:arg

24 static int snd_opl3_open_seq_oss(struct snd_seq_oss_arg *arg, void *closure);
25 static int snd_opl3_close_seq_oss(struct snd_seq_oss_arg *arg);
26 static int snd_opl3_ioctl_seq_oss(struct snd_seq_oss_arg *arg, unsigned int cmd, unsigned long ioar…
27 static int snd_opl3_load_patch_seq_oss(struct snd_seq_oss_arg *arg, int format, const char __user *…
28 static int snd_opl3_reset_seq_oss(struct snd_seq_oss_arg *arg);
121 struct snd_seq_oss_reg *arg; in snd_opl3_init_seq_oss() local
130 arg = SNDRV_SEQ_DEVICE_ARGPTR(dev); in snd_opl3_init_seq_oss()
131 arg->type = SYNTH_TYPE_FM; in snd_opl3_init_seq_oss()
133 arg->subtype = FM_TYPE_ADLIB; in snd_opl3_init_seq_oss()
134 arg->nvoices = MAX_OPL2_VOICES; in snd_opl3_init_seq_oss()
136 arg->subtype = FM_TYPE_OPL3; in snd_opl3_init_seq_oss()
137 arg->nvoices = MAX_OPL3_VOICES; in snd_opl3_init_seq_oss()
139 arg->oper = oss_callback; in snd_opl3_init_seq_oss()
140 arg->private_data = opl3; in snd_opl3_init_seq_oss()
160 static int snd_opl3_open_seq_oss(struct snd_seq_oss_arg *arg, void *closure) in snd_opl3_open_seq_oss() argument
165 if (snd_BUG_ON(!arg)) in snd_opl3_open_seq_oss()
172 arg->private_data = opl3; in snd_opl3_open_seq_oss()
173 arg->addr.client = opl3->oss_chset->client; in snd_opl3_open_seq_oss()
174 arg->addr.port = opl3->oss_chset->port; in snd_opl3_open_seq_oss()
184 static int snd_opl3_close_seq_oss(struct snd_seq_oss_arg *arg) in snd_opl3_close_seq_oss() argument
188 if (snd_BUG_ON(!arg)) in snd_opl3_close_seq_oss()
190 opl3 = arg->private_data; in snd_opl3_close_seq_oss()
203 static int snd_opl3_load_patch_seq_oss(struct snd_seq_oss_arg *arg, int format, in snd_opl3_load_patch_seq_oss() argument
211 if (snd_BUG_ON(!arg)) in snd_opl3_load_patch_seq_oss()
213 opl3 = arg->private_data; in snd_opl3_load_patch_seq_oss()
247 static int snd_opl3_ioctl_seq_oss(struct snd_seq_oss_arg *arg, unsigned int cmd, in snd_opl3_ioctl_seq_oss() argument
252 if (snd_BUG_ON(!arg)) in snd_opl3_ioctl_seq_oss()
254 opl3 = arg->private_data; in snd_opl3_ioctl_seq_oss()
276 static int snd_opl3_reset_seq_oss(struct snd_seq_oss_arg *arg) in snd_opl3_reset_seq_oss() argument
280 if (snd_BUG_ON(!arg)) in snd_opl3_reset_seq_oss()
282 opl3 = arg->private_data; in snd_opl3_reset_seq_oss()