Lines Matching refs:md

283  * static void seq_midiinput(struct seq_softc * scp, void *md);
293 static int seq_chnvoice(struct seq_softc *scp, kobj_t md, u_char *event);
294 static int seq_chncommon(struct seq_softc *scp, kobj_t md, u_char *event);
295 static int seq_sysex(struct seq_softc *scp, kobj_t md, u_char *event);
297 static int seq_fetch_mid(struct seq_softc *scp, int unit, kobj_t *md);
728 seq_fetch_mid(struct seq_softc *scp, int unit, kobj_t *md)
734 *md = scp->midis[unit];
1018 ret = lookup_mididev(scp, midiunit, LOOKUP_OPEN, &md);
1025 ret = md->synth.loadpatch(md, *(short *)&event[0], buf,
1126 kobj_t md;
1268 ret = lookup_mididev(scp, *(int *)arg, LOOKUP_OPEN, &md);
1303 ret = lookup_mididev(scp, *(int *)arg, LOOKUP_OPEN, &md);
1330 if (seq_fetch_mid(scp, midiunit, &md) == 0) {
1353 if (seq_fetch_mid(scp, midiunit, &md) == 0) {
1467 sein_qtr(void *p, void /* mididev_info */ *md)
1480 seq_midiinput(scp, md);
1610 * SYNTH_AFTERTOUCH(md, event[3], event[4])
1614 * SYNTH_PANNING(md, event[3], (char)event[4])
1618 * SYNTH_CONTROLLER(md, event[3], event[4], *(short *)&event[5])
1622 * SYNTH_VOLUMEMETHOD(md, event[3])
1680 seq_chnvoice(struct seq_softc *scp, kobj_t md, u_char *event)
1697 voice = SYNTH_ALLOC(md, chn, note);
1712 if (SYNTH_SETINSTR(md, voice, 128 + note)
1725 if (SYNTH_SETUPVOICE(md, voice, chn)
1733 SYNTH_STARTNOTE(md, voice, note, parm);
1737 SYNTH_KILLNOTE(md, voice, note, parm);
1740 SYNTH_AFTERTOUCH(md, voice, parm);
1754 seq_chncommon(struct seq_softc *scp, kobj_t md, u_char *event)
1774 SYNTH_SETINSTR(md, chn, p1);
1779 SYNTH_CONTROLLER(md, chn, p1, w14);
1787 mtx_lock(&md->synth.vc_mtx);
1788 md->synth.chn_info[chn].bender_value = w14;
1789 if (md->midiunit >= 0) {
1795 for (i = 0; i < md->synth.alloc.max_voice; i++)
1796 if ((md->synth.alloc.map[i] & 0xff00) == key) {
1797 mtx_unlock(&md->synth.vc_mtx);
1799 if (md->synth.bender(md, i, w14) == EAGAIN) {
1806 mtx_unlock(&md->synth.vc_mtx);
1808 if (md->synth.bender(md, chn, w14) == EAGAIN) {
1816 SYNTH_BENDER(md, chn, w14);
1929 seq_sysex(struct seq_softc *scp, kobj_t md, u_char *event)
1941 if (SYNTH_SENDSYSEX(md, &event[2], l) == EAGAIN) {