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);
105 struct snd_seq_oss_reg *arg; in snd_opl3_init_seq_oss() local
114 arg = SNDRV_SEQ_DEVICE_ARGPTR(dev); in snd_opl3_init_seq_oss()
115 arg->type = SYNTH_TYPE_FM; in snd_opl3_init_seq_oss()
117 arg->subtype = FM_TYPE_ADLIB; in snd_opl3_init_seq_oss()
118 arg->nvoices = MAX_OPL2_VOICES; in snd_opl3_init_seq_oss()
120 arg->subtype = FM_TYPE_OPL3; in snd_opl3_init_seq_oss()
121 arg->nvoices = MAX_OPL3_VOICES; in snd_opl3_init_seq_oss()
123 arg->oper = oss_callback; in snd_opl3_init_seq_oss()
124 arg->private_data = opl3; in snd_opl3_init_seq_oss()
144 static int snd_opl3_open_seq_oss(struct snd_seq_oss_arg *arg, void *closure) in snd_opl3_open_seq_oss() argument
149 if (snd_BUG_ON(!arg)) in snd_opl3_open_seq_oss()
156 arg->private_data = opl3; in snd_opl3_open_seq_oss()
157 arg->addr.client = opl3->oss_chset->client; in snd_opl3_open_seq_oss()
158 arg->addr.port = opl3->oss_chset->port; in snd_opl3_open_seq_oss()
168 static int snd_opl3_close_seq_oss(struct snd_seq_oss_arg *arg) in snd_opl3_close_seq_oss() argument
172 if (snd_BUG_ON(!arg)) in snd_opl3_close_seq_oss()
174 opl3 = arg->private_data; in snd_opl3_close_seq_oss()
187 static int snd_opl3_load_patch_seq_oss(struct snd_seq_oss_arg *arg, int format, in snd_opl3_load_patch_seq_oss() argument
195 if (snd_BUG_ON(!arg)) in snd_opl3_load_patch_seq_oss()
197 opl3 = arg->private_data; in snd_opl3_load_patch_seq_oss()
231 static int snd_opl3_ioctl_seq_oss(struct snd_seq_oss_arg *arg, unsigned int cmd, in snd_opl3_ioctl_seq_oss() argument
234 if (snd_BUG_ON(!arg)) in snd_opl3_ioctl_seq_oss()
257 static int snd_opl3_reset_seq_oss(struct snd_seq_oss_arg *arg) in snd_opl3_reset_seq_oss() argument
259 if (snd_BUG_ON(!arg)) in snd_opl3_reset_seq_oss()