Lines Matching refs:rbuf

336 		   int cmd, unsigned char *rbuf, unsigned char *wbuf)  in snd_wavefront_cmd()  argument
356 wfcmd->write_cnt = (unsigned long) rbuf; in snd_wavefront_cmd()
357 rbuf = NULL; in snd_wavefront_cmd()
420 rbuf[0] = WF_ST_EMPTY; in snd_wavefront_cmd()
449 rbuf[i] = c; in snd_wavefront_cmd()
452 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()
844 char rbuf[8]; in wavefront_freemem() local
846 if (snd_wavefront_cmd (dev, WFC_REPORT_FREE_MEMORY, rbuf, NULL)) { in wavefront_freemem()
850 return demunge_int32 (rbuf, 4); in wavefront_freemem()
1522 wc->rbuf[0] = dev->interrupts_are_midi; in wavefront_synth_control()
1538 wc->rbuf[0] = dev->sample_status[i]; in wavefront_synth_control()
1557 (dev, (wavefront_patch_info *) wc->rbuf); in wavefront_synth_control()
1567 wc->status = snd_wavefront_cmd (dev, wc->cmd, wc->rbuf, wc->wbuf); in wavefront_synth_control()
1583 dev->freemem = demunge_int32 (wc->rbuf, 4); in wavefront_synth_control()
1587 demunge_buf (wc->rbuf, wc->rbuf, WF_PATCH_BYTES); in wavefront_synth_control()
1591 demunge_buf (wc->rbuf, wc->rbuf, WF_PROGRAM_BYTES); in wavefront_synth_control()
1595 demunge_buf (wc->rbuf, wc->rbuf, WF_DRUM_BYTES - 1); in wavefront_synth_control()
1599 process_sample_hdr (wc->rbuf); in wavefront_synth_control()
2148 unsigned char rbuf[4], wbuf[4]; in snd_wavefront_detect() local
2162 if (snd_wavefront_cmd (dev, WFC_FIRMWARE_VERSION, rbuf, wbuf) == 0) { in snd_wavefront_detect()
2164 dev->fw_version[0] = rbuf[0]; in snd_wavefront_detect()
2165 dev->fw_version[1] = rbuf[1]; in snd_wavefront_detect()
2168 rbuf[0], rbuf[1]); in snd_wavefront_detect()
2173 rbuf, wbuf) == 0) { in snd_wavefront_detect()
2174 dev->hw_version[0] = rbuf[0]; in snd_wavefront_detect()
2175 dev->hw_version[1] = rbuf[1]; in snd_wavefront_detect()