msynth 62 drivers/clk/clk-si5351.c struct si5351_hw_data *msynth; msynth 1557 drivers/clk/clk-si5351.c drvdata->msynth = devm_kcalloc(&client->dev, num_clocks, msynth 1558 drivers/clk/clk-si5351.c sizeof(*drvdata->msynth), GFP_KERNEL); msynth 1563 drivers/clk/clk-si5351.c if (WARN_ON(!drvdata->msynth || !drvdata->clkout)) { msynth 1569 drivers/clk/clk-si5351.c drvdata->msynth[n].num = n; msynth 1570 drivers/clk/clk-si5351.c drvdata->msynth[n].drvdata = drvdata; msynth 1571 drivers/clk/clk-si5351.c drvdata->msynth[n].hw.init = &init; msynth 1581 drivers/clk/clk-si5351.c &drvdata->msynth[n].hw); msynth 64 sound/core/seq/seq_midi.c struct seq_midisynth *msynth; msynth 72 sound/core/seq/seq_midi.c msynth = runtime->private_data; msynth 73 sound/core/seq/seq_midi.c if (msynth == NULL) msynth 80 sound/core/seq/seq_midi.c if (msynth->parser == NULL) msynth 84 sound/core/seq/seq_midi.c if (!snd_midi_event_encode_byte(msynth->parser, msynth 87 sound/core/seq/seq_midi.c ev.source.port = msynth->seq_port; msynth 89 sound/core/seq/seq_midi.c snd_seq_kernel_client_dispatch(msynth->seq_client, &ev, 1, 0); msynth 117 sound/core/seq/seq_midi.c struct seq_midisynth *msynth = private_data; msynth 122 sound/core/seq/seq_midi.c if (snd_BUG_ON(!msynth)) msynth 124 sound/core/seq/seq_midi.c substream = msynth->output_rfile.output; msynth 134 sound/core/seq/seq_midi.c snd_midi_event_reset_decode(msynth->parser); msynth 136 sound/core/seq/seq_midi.c if (msynth->parser == NULL) msynth 138 sound/core/seq/seq_midi.c len = snd_midi_event_decode(msynth->parser, msg, sizeof(msg), ev); msynth 142 sound/core/seq/seq_midi.c snd_midi_event_reset_decode(msynth->parser); msynth 148 sound/core/seq/seq_midi.c static int snd_seq_midisynth_new(struct seq_midisynth *msynth, msynth 153 sound/core/seq/seq_midi.c if (snd_midi_event_new(MAX_MIDI_EVENT_BUF, &msynth->parser) < 0) msynth 155 sound/core/seq/seq_midi.c msynth->card = card; msynth 156 sound/core/seq/seq_midi.c msynth->device = device; msynth 157 sound/core/seq/seq_midi.c msynth->subdevice = subdevice; msynth 165 sound/core/seq/seq_midi.c struct seq_midisynth *msynth = private_data; msynth 170 sound/core/seq/seq_midi.c if ((err = snd_rawmidi_kernel_open(msynth->card, msynth->device, msynth 171 sound/core/seq/seq_midi.c msynth->subdevice, msynth 173 sound/core/seq/seq_midi.c &msynth->input_rfile)) < 0) { msynth 177 sound/core/seq/seq_midi.c runtime = msynth->input_rfile.input->runtime; msynth 181 sound/core/seq/seq_midi.c if ((err = snd_rawmidi_input_params(msynth->input_rfile.input, ¶ms)) < 0) { msynth 182 sound/core/seq/seq_midi.c snd_rawmidi_kernel_release(&msynth->input_rfile); msynth 185 sound/core/seq/seq_midi.c snd_midi_event_reset_encode(msynth->parser); msynth 187 sound/core/seq/seq_midi.c runtime->private_data = msynth; msynth 188 sound/core/seq/seq_midi.c snd_rawmidi_kernel_read(msynth->input_rfile.input, NULL, 0); msynth 196 sound/core/seq/seq_midi.c struct seq_midisynth *msynth = private_data; msynth 198 sound/core/seq/seq_midi.c if (snd_BUG_ON(!msynth->input_rfile.input)) msynth 200 sound/core/seq/seq_midi.c err = snd_rawmidi_kernel_release(&msynth->input_rfile); msynth 208 sound/core/seq/seq_midi.c struct seq_midisynth *msynth = private_data; msynth 212 sound/core/seq/seq_midi.c if ((err = snd_rawmidi_kernel_open(msynth->card, msynth->device, msynth 213 sound/core/seq/seq_midi.c msynth->subdevice, msynth 215 sound/core/seq/seq_midi.c &msynth->output_rfile)) < 0) { msynth 223 sound/core/seq/seq_midi.c if ((err = snd_rawmidi_output_params(msynth->output_rfile.output, ¶ms)) < 0) { msynth 224 sound/core/seq/seq_midi.c snd_rawmidi_kernel_release(&msynth->output_rfile); msynth 227 sound/core/seq/seq_midi.c snd_midi_event_reset_decode(msynth->parser); msynth 234 sound/core/seq/seq_midi.c struct seq_midisynth *msynth = private_data; msynth 236 sound/core/seq/seq_midi.c if (snd_BUG_ON(!msynth->output_rfile.output)) msynth 238 sound/core/seq/seq_midi.c snd_rawmidi_drain_output(msynth->output_rfile.output); msynth 239 sound/core/seq/seq_midi.c return snd_rawmidi_kernel_release(&msynth->output_rfile); msynth 243 sound/core/seq/seq_midi.c static void snd_seq_midisynth_delete(struct seq_midisynth *msynth) msynth 245 sound/core/seq/seq_midi.c if (msynth == NULL) msynth 248 sound/core/seq/seq_midi.c if (msynth->seq_client > 0) { msynth 250 sound/core/seq/seq_midi.c snd_seq_event_port_detach(msynth->seq_client, msynth->seq_port); msynth 253 sound/core/seq/seq_midi.c snd_midi_event_free(msynth->parser); msynth 262 sound/core/seq/seq_midi.c struct seq_midisynth *msynth, *ms; msynth 319 sound/core/seq/seq_midi.c msynth = kcalloc(ports, sizeof(struct seq_midisynth), GFP_KERNEL); msynth 321 sound/core/seq/seq_midi.c if (msynth == NULL || port == NULL) msynth 325 sound/core/seq/seq_midi.c ms = &msynth[p]; msynth 386 sound/core/seq/seq_midi.c client->ports[device] = msynth; msynth 396 sound/core/seq/seq_midi.c if (msynth != NULL) { msynth 398 sound/core/seq/seq_midi.c snd_seq_midisynth_delete(&msynth[p]); msynth 399 sound/core/seq/seq_midi.c kfree(msynth); msynth 417 sound/core/seq/seq_midi.c struct seq_midisynth *msynth; msynth 429 sound/core/seq/seq_midi.c msynth = client->ports[device]; msynth 432 sound/core/seq/seq_midi.c snd_seq_midisynth_delete(&msynth[p]); msynth 433 sound/core/seq/seq_midi.c kfree(msynth);