Lines Matching refs:rbuf

334 		   int cmd, unsigned char *rbuf, unsigned char *wbuf)  in snd_wavefront_cmd()  argument
355 wfcmd->write_cnt = (unsigned long) rbuf; in snd_wavefront_cmd()
356 rbuf = NULL; in snd_wavefront_cmd()
421 rbuf[0] = WF_ST_EMPTY; in snd_wavefront_cmd()
450 rbuf[i] = c; in snd_wavefront_cmd()
453 DPRINT (WF_DEBUG_DATA, "read[%d] = 0x%x\n",i, rbuf[i]); in snd_wavefront_cmd()
620 unsigned char rbuf[32], wbuf[32]; in wavefront_get_sample_status() local
625 if (snd_wavefront_cmd (dev, WFC_GET_NSAMPLES, rbuf, wbuf)) { in wavefront_get_sample_status()
637 if (snd_wavefront_cmd (dev, WFC_IDENTIFY_SAMPLE_TYPE, rbuf, wbuf)) { in wavefront_get_sample_status()
644 dev->sample_status[i] = (WF_SLOT_FILLED|rbuf[0]); in wavefront_get_sample_status()
650 switch (rbuf[0] & WF_ST_MASK) { in wavefront_get_sample_status()
666 i, rbuf[0]); in wavefront_get_sample_status()
669 if (rbuf[0] != WF_ST_EMPTY) { in wavefront_get_sample_status()
853 char rbuf[8]; in wavefront_freemem() local
855 if (snd_wavefront_cmd (dev, WFC_REPORT_FREE_MEMORY, rbuf, NULL)) { in wavefront_freemem()
859 return demunge_int32 (rbuf, 4); in wavefront_freemem()
1544 wc->rbuf[0] = dev->interrupts_are_midi; in wavefront_synth_control()
1560 wc->rbuf[0] = dev->sample_status[i]; in wavefront_synth_control()
1579 (dev, (wavefront_patch_info *) wc->rbuf); in wavefront_synth_control()
1589 wc->status = snd_wavefront_cmd (dev, wc->cmd, wc->rbuf, wc->wbuf); in wavefront_synth_control()
1605 dev->freemem = demunge_int32 (wc->rbuf, 4); in wavefront_synth_control()
1609 demunge_buf (wc->rbuf, wc->rbuf, WF_PATCH_BYTES); in wavefront_synth_control()
1613 demunge_buf (wc->rbuf, wc->rbuf, WF_PROGRAM_BYTES); in wavefront_synth_control()
1617 demunge_buf (wc->rbuf, wc->rbuf, WF_DRUM_BYTES - 1); in wavefront_synth_control()
1621 process_sample_hdr (wc->rbuf); in wavefront_synth_control()
2171 unsigned char rbuf[4], wbuf[4]; in snd_wavefront_detect() local
2185 if (snd_wavefront_cmd (dev, WFC_FIRMWARE_VERSION, rbuf, wbuf) == 0) { in snd_wavefront_detect()
2187 dev->fw_version[0] = rbuf[0]; in snd_wavefront_detect()
2188 dev->fw_version[1] = rbuf[1]; in snd_wavefront_detect()
2191 rbuf[0], rbuf[1]); in snd_wavefront_detect()
2196 rbuf, wbuf) == 0) { in snd_wavefront_detect()
2197 dev->hw_version[0] = rbuf[0]; in snd_wavefront_detect()
2198 dev->hw_version[1] = rbuf[1]; in snd_wavefront_detect()