Lines Matching refs:arg

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()
107 arg->subtype = FM_TYPE_OPL3; in snd_opl3_init_seq_oss()
108 arg->nvoices = MAX_OPL3_VOICES; in snd_opl3_init_seq_oss()
110 arg->oper = oss_callback; in snd_opl3_init_seq_oss()
111 arg->private_data = opl3; in snd_opl3_init_seq_oss()
131 static int snd_opl3_open_seq_oss(struct snd_seq_oss_arg *arg, void *closure) in snd_opl3_open_seq_oss() argument
136 if (snd_BUG_ON(!arg)) in snd_opl3_open_seq_oss()
144 arg->private_data = opl3; in snd_opl3_open_seq_oss()
145 arg->addr.client = opl3->oss_chset->client; in snd_opl3_open_seq_oss()
146 arg->addr.port = opl3->oss_chset->port; in snd_opl3_open_seq_oss()
157 static int snd_opl3_close_seq_oss(struct snd_seq_oss_arg *arg) in snd_opl3_close_seq_oss() argument
161 if (snd_BUG_ON(!arg)) in snd_opl3_close_seq_oss()
163 opl3 = arg->private_data; in snd_opl3_close_seq_oss()
176 static int snd_opl3_load_patch_seq_oss(struct snd_seq_oss_arg *arg, int format, in snd_opl3_load_patch_seq_oss() argument
184 if (snd_BUG_ON(!arg)) in snd_opl3_load_patch_seq_oss()
186 opl3 = arg->private_data; in snd_opl3_load_patch_seq_oss()
220 static int snd_opl3_ioctl_seq_oss(struct snd_seq_oss_arg *arg, unsigned int cmd, in snd_opl3_ioctl_seq_oss() argument
223 if (snd_BUG_ON(!arg)) in snd_opl3_ioctl_seq_oss()
246 static int snd_opl3_reset_seq_oss(struct snd_seq_oss_arg *arg) in snd_opl3_reset_seq_oss() argument
248 if (snd_BUG_ON(!arg)) in snd_opl3_reset_seq_oss()