Lines Matching refs:rbuf

334 		   int cmd, unsigned char *rbuf, unsigned char *wbuf)  in snd_wavefront_cmd()  argument
354 wfcmd->write_cnt = (unsigned long) rbuf; in snd_wavefront_cmd()
355 rbuf = NULL; in snd_wavefront_cmd()
418 rbuf[0] = WF_ST_EMPTY; in snd_wavefront_cmd()
447 rbuf[i] = c; in snd_wavefront_cmd()
450 DPRINT (WF_DEBUG_DATA, "read[%d] = 0x%x\n",i, rbuf[i]); in snd_wavefront_cmd()
618 unsigned char rbuf[32], wbuf[32]; in wavefront_get_sample_status() local
623 if (snd_wavefront_cmd (dev, WFC_GET_NSAMPLES, rbuf, wbuf)) { in wavefront_get_sample_status()
635 if (snd_wavefront_cmd (dev, WFC_IDENTIFY_SAMPLE_TYPE, rbuf, wbuf)) { in wavefront_get_sample_status()
642 dev->sample_status[i] = (WF_SLOT_FILLED|rbuf[0]); in wavefront_get_sample_status()
648 switch (rbuf[0] & WF_ST_MASK) { in wavefront_get_sample_status()
664 i, rbuf[0]); in wavefront_get_sample_status()
667 if (rbuf[0] != WF_ST_EMPTY) { in wavefront_get_sample_status()
847 char rbuf[8]; in wavefront_freemem() local
849 if (snd_wavefront_cmd (dev, WFC_REPORT_FREE_MEMORY, rbuf, NULL)) { in wavefront_freemem()
853 return demunge_int32 (rbuf, 4); in wavefront_freemem()
1535 wc->rbuf[0] = dev->interrupts_are_midi; in wavefront_synth_control()
1551 wc->rbuf[0] = dev->sample_status[i]; in wavefront_synth_control()
1570 (dev, (wavefront_patch_info *) wc->rbuf); in wavefront_synth_control()
1580 wc->status = snd_wavefront_cmd (dev, wc->cmd, wc->rbuf, wc->wbuf); in wavefront_synth_control()
1596 dev->freemem = demunge_int32 (wc->rbuf, 4); in wavefront_synth_control()
1600 demunge_buf (wc->rbuf, wc->rbuf, WF_PATCH_BYTES); in wavefront_synth_control()
1604 demunge_buf (wc->rbuf, wc->rbuf, WF_PROGRAM_BYTES); in wavefront_synth_control()
1608 demunge_buf (wc->rbuf, wc->rbuf, WF_DRUM_BYTES - 1); in wavefront_synth_control()
1612 process_sample_hdr (wc->rbuf); in wavefront_synth_control()
2161 unsigned char rbuf[4], wbuf[4]; in snd_wavefront_detect() local
2175 if (snd_wavefront_cmd (dev, WFC_FIRMWARE_VERSION, rbuf, wbuf) == 0) { in snd_wavefront_detect()
2177 dev->fw_version[0] = rbuf[0]; in snd_wavefront_detect()
2178 dev->fw_version[1] = rbuf[1]; in snd_wavefront_detect()
2181 rbuf[0], rbuf[1]); in snd_wavefront_detect()
2186 rbuf, wbuf) == 0) { in snd_wavefront_detect()
2187 dev->hw_version[0] = rbuf[0]; in snd_wavefront_detect()
2188 dev->hw_version[1] = rbuf[1]; in snd_wavefront_detect()