Lines Matching refs:wc

1516 			 wavefront_control *wc)  in wavefront_synth_control()  argument
1524 "cmd 0x%x\n", wc->cmd); in wavefront_synth_control()
1528 switch (wc->cmd) { in wavefront_synth_control()
1543 wc->rbuf[0] = dev->interrupts_are_midi; in wavefront_synth_control()
1547 dev->rom_samples_rdonly = wc->wbuf[0]; in wavefront_synth_control()
1548 wc->status = 0; in wavefront_synth_control()
1552 i = wc->wbuf[0] | (wc->wbuf[1] << 7); in wavefront_synth_control()
1556 wc->status = EINVAL; in wavefront_synth_control()
1559 wc->rbuf[0] = dev->sample_status[i]; in wavefront_synth_control()
1560 wc->status = 0; in wavefront_synth_control()
1564 dev->debug = wc->wbuf[0]; in wavefront_synth_control()
1569 munge_int32 (*((u32 *) wc->wbuf), patchnumbuf, 2); in wavefront_synth_control()
1570 memcpy (wc->wbuf, patchnumbuf, 2); in wavefront_synth_control()
1577 wc->status = wavefront_fetch_multisample in wavefront_synth_control()
1578 (dev, (wavefront_patch_info *) wc->rbuf); in wavefront_synth_control()
1584 wc->status = EINVAL; in wavefront_synth_control()
1588 wc->status = snd_wavefront_cmd (dev, wc->cmd, wc->rbuf, wc->wbuf); in wavefront_synth_control()
1596 if (wc->status == 0) { in wavefront_synth_control()
1597 switch (wc->cmd) { in wavefront_synth_control()
1604 dev->freemem = demunge_int32 (wc->rbuf, 4); in wavefront_synth_control()
1608 demunge_buf (wc->rbuf, wc->rbuf, WF_PATCH_BYTES); in wavefront_synth_control()
1612 demunge_buf (wc->rbuf, wc->rbuf, WF_PROGRAM_BYTES); in wavefront_synth_control()
1616 demunge_buf (wc->rbuf, wc->rbuf, WF_DRUM_BYTES - 1); in wavefront_synth_control()
1620 process_sample_hdr (wc->rbuf); in wavefront_synth_control()
1668 wavefront_control *wc; in snd_wavefront_synth_ioctl() local
1690 wc = memdup_user(argp, sizeof(*wc)); in snd_wavefront_synth_ioctl()
1691 if (IS_ERR(wc)) in snd_wavefront_synth_ioctl()
1692 return PTR_ERR(wc); in snd_wavefront_synth_ioctl()
1694 if (wavefront_synth_control (acard, wc) < 0) in snd_wavefront_synth_ioctl()
1696 else if (copy_to_user (argp, wc, sizeof (*wc))) in snd_wavefront_synth_ioctl()
1700 kfree(wc); in snd_wavefront_synth_ioctl()