Lines Matching refs:wc

1515 			 wavefront_control *wc)  in wavefront_synth_control()  argument
1523 "cmd 0x%x\n", wc->cmd); in wavefront_synth_control()
1527 switch (wc->cmd) { in wavefront_synth_control()
1542 wc->rbuf[0] = dev->interrupts_are_midi; in wavefront_synth_control()
1546 dev->rom_samples_rdonly = wc->wbuf[0]; in wavefront_synth_control()
1547 wc->status = 0; in wavefront_synth_control()
1551 i = wc->wbuf[0] | (wc->wbuf[1] << 7); in wavefront_synth_control()
1555 wc->status = EINVAL; in wavefront_synth_control()
1558 wc->rbuf[0] = dev->sample_status[i]; in wavefront_synth_control()
1559 wc->status = 0; in wavefront_synth_control()
1563 dev->debug = wc->wbuf[0]; in wavefront_synth_control()
1568 munge_int32 (*((u32 *) wc->wbuf), patchnumbuf, 2); in wavefront_synth_control()
1569 memcpy (wc->wbuf, patchnumbuf, 2); in wavefront_synth_control()
1576 wc->status = wavefront_fetch_multisample in wavefront_synth_control()
1577 (dev, (wavefront_patch_info *) wc->rbuf); in wavefront_synth_control()
1583 wc->status = EINVAL; in wavefront_synth_control()
1587 wc->status = snd_wavefront_cmd (dev, wc->cmd, wc->rbuf, wc->wbuf); in wavefront_synth_control()
1595 if (wc->status == 0) { in wavefront_synth_control()
1596 switch (wc->cmd) { in wavefront_synth_control()
1603 dev->freemem = demunge_int32 (wc->rbuf, 4); in wavefront_synth_control()
1607 demunge_buf (wc->rbuf, wc->rbuf, WF_PATCH_BYTES); in wavefront_synth_control()
1611 demunge_buf (wc->rbuf, wc->rbuf, WF_PROGRAM_BYTES); in wavefront_synth_control()
1615 demunge_buf (wc->rbuf, wc->rbuf, WF_DRUM_BYTES - 1); in wavefront_synth_control()
1619 process_sample_hdr (wc->rbuf); in wavefront_synth_control()
1667 wavefront_control *wc; in snd_wavefront_synth_ioctl() local
1689 wc = memdup_user(argp, sizeof(*wc)); in snd_wavefront_synth_ioctl()
1690 if (IS_ERR(wc)) in snd_wavefront_synth_ioctl()
1691 return PTR_ERR(wc); in snd_wavefront_synth_ioctl()
1693 if (wavefront_synth_control (acard, wc) < 0) in snd_wavefront_synth_ioctl()
1695 else if (copy_to_user (argp, wc, sizeof (*wc))) in snd_wavefront_synth_ioctl()
1699 kfree(wc); in snd_wavefront_synth_ioctl()