Lines Matching refs:wc
1517 wavefront_control *wc) in wavefront_synth_control() argument
1525 "cmd 0x%x\n", wc->cmd); in wavefront_synth_control()
1529 switch (wc->cmd) { in wavefront_synth_control()
1544 wc->rbuf[0] = dev->interrupts_are_midi; in wavefront_synth_control()
1548 dev->rom_samples_rdonly = wc->wbuf[0]; in wavefront_synth_control()
1549 wc->status = 0; in wavefront_synth_control()
1553 i = wc->wbuf[0] | (wc->wbuf[1] << 7); in wavefront_synth_control()
1557 wc->status = EINVAL; in wavefront_synth_control()
1560 wc->rbuf[0] = dev->sample_status[i]; in wavefront_synth_control()
1561 wc->status = 0; in wavefront_synth_control()
1565 dev->debug = wc->wbuf[0]; in wavefront_synth_control()
1570 munge_int32 (*((u32 *) wc->wbuf), patchnumbuf, 2); in wavefront_synth_control()
1571 memcpy (wc->wbuf, patchnumbuf, 2); in wavefront_synth_control()
1578 wc->status = wavefront_fetch_multisample in wavefront_synth_control()
1579 (dev, (wavefront_patch_info *) wc->rbuf); in wavefront_synth_control()
1585 wc->status = EINVAL; in wavefront_synth_control()
1589 wc->status = snd_wavefront_cmd (dev, wc->cmd, wc->rbuf, wc->wbuf); in wavefront_synth_control()
1597 if (wc->status == 0) { in wavefront_synth_control()
1598 switch (wc->cmd) { 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()
1669 wavefront_control *wc; in snd_wavefront_synth_ioctl() local
1691 wc = memdup_user(argp, sizeof(*wc)); in snd_wavefront_synth_ioctl()
1692 if (IS_ERR(wc)) in snd_wavefront_synth_ioctl()
1693 return PTR_ERR(wc); in snd_wavefront_synth_ioctl()
1695 if (wavefront_synth_control (acard, wc) < 0) in snd_wavefront_synth_ioctl()
1697 else if (copy_to_user (argp, wc, sizeof (*wc))) in snd_wavefront_synth_ioctl()
1701 kfree(wc); in snd_wavefront_synth_ioctl()