Lines Matching refs:ops
44 static void snd_seq_simple_instr_free(struct snd_simple_ops *ops,
48 if (ops->remove_sample)
49 ops->remove_sample(ops->private_data, ip, atomic);
56 struct snd_simple_ops *ops = private_data;
93 if (ops->put_sample) {
94 err = ops->put_sample(ops->private_data, ip,
106 struct snd_simple_ops *ops = private_data;
140 if (ops->get_sample) {
141 err = ops->get_sample(ops->private_data, ip,
163 struct snd_simple_ops *ops = private_data;
167 snd_seq_simple_instr_free(ops, ip, atomic);
175 struct snd_simple_ops *ops = private_data;
177 if (ops->notify)
178 ops->notify(ops->private_data, instr, what);
181 int snd_seq_simple_init(struct snd_simple_ops *ops,
185 memset(ops, 0, sizeof(*ops));
186 ops->private_data = private_data;
187 ops->kops.private_data = ops;
188 ops->kops.add_len = sizeof(struct simple_instrument);
189 ops->kops.instr_type = SNDRV_SEQ_INSTR_ID_SIMPLE;
190 ops->kops.put = snd_seq_simple_put;
191 ops->kops.get = snd_seq_simple_get;
192 ops->kops.get_size = snd_seq_simple_get_size;
193 ops->kops.remove = snd_seq_simple_remove;
194 ops->kops.notify = snd_seq_simple_notify;
195 ops->kops.next = next;