Lines Matching refs:wc
1501 wavefront_control *wc) in wavefront_synth_control() argument
1509 "cmd 0x%x\n", wc->cmd); in wavefront_synth_control()
1513 switch (wc->cmd) { in wavefront_synth_control()
1528 wc->rbuf[0] = dev->interrupts_are_midi; in wavefront_synth_control()
1532 dev->rom_samples_rdonly = wc->wbuf[0]; in wavefront_synth_control()
1533 wc->status = 0; in wavefront_synth_control()
1537 i = wc->wbuf[0] | (wc->wbuf[1] << 7); in wavefront_synth_control()
1541 wc->status = EINVAL; in wavefront_synth_control()
1544 wc->rbuf[0] = dev->sample_status[i]; in wavefront_synth_control()
1545 wc->status = 0; in wavefront_synth_control()
1549 dev->debug = wc->wbuf[0]; in wavefront_synth_control()
1554 munge_int32 (*((u32 *) wc->wbuf), patchnumbuf, 2); in wavefront_synth_control()
1555 memcpy (wc->wbuf, patchnumbuf, 2); in wavefront_synth_control()
1562 wc->status = wavefront_fetch_multisample in wavefront_synth_control()
1563 (dev, (wavefront_patch_info *) wc->rbuf); in wavefront_synth_control()
1569 wc->status = EINVAL; in wavefront_synth_control()
1573 wc->status = snd_wavefront_cmd (dev, wc->cmd, wc->rbuf, wc->wbuf); in wavefront_synth_control()
1581 if (wc->status == 0) { in wavefront_synth_control()
1582 switch (wc->cmd) { in wavefront_synth_control()
1589 dev->freemem = demunge_int32 (wc->rbuf, 4); in wavefront_synth_control()
1593 demunge_buf (wc->rbuf, wc->rbuf, WF_PATCH_BYTES); in wavefront_synth_control()
1597 demunge_buf (wc->rbuf, wc->rbuf, WF_PROGRAM_BYTES); in wavefront_synth_control()
1601 demunge_buf (wc->rbuf, wc->rbuf, WF_DRUM_BYTES - 1); in wavefront_synth_control()
1605 process_sample_hdr (wc->rbuf); in wavefront_synth_control()
1653 wavefront_control *wc; in snd_wavefront_synth_ioctl() local
1675 wc = memdup_user(argp, sizeof(*wc)); in snd_wavefront_synth_ioctl()
1676 if (IS_ERR(wc)) in snd_wavefront_synth_ioctl()
1677 return PTR_ERR(wc); in snd_wavefront_synth_ioctl()
1679 if (wavefront_synth_control (acard, wc) < 0) in snd_wavefront_synth_ioctl()
1681 else if (copy_to_user (argp, wc, sizeof (*wc))) in snd_wavefront_synth_ioctl()
1685 kfree(wc); in snd_wavefront_synth_ioctl()