Lines Matching refs:ops
59 if (hw->ops.llseek)
60 return hw->ops.llseek(hw, file, offset, orig);
68 if (hw->ops.read)
69 return hw->ops.read(hw, buf, count, offset);
77 if (hw->ops.write)
78 return hw->ops.write(hw, buf, count, offset);
113 if (!hw->ops.open) {
117 err = hw->ops.open(hw, file);
143 if (hw->ops.release)
144 hw->ops.release(hw, file);
160 if (hw->ops.release)
161 err = hw->ops.release(hw, file);
175 if (hw->ops.poll)
176 return hw->ops.poll(hw, file, wait);
201 if (! hw->ops.dsp_status)
205 if ((err = hw->ops.dsp_status(hw, &info)) < 0)
218 if (! hw->ops.dsp_load)
228 err = hw->ops.dsp_load(hw, &info);
250 if (hw->ops.ioctl)
251 return hw->ops.ioctl(hw, file, cmd, arg);
258 if (hw->ops.mmap)
259 return hw->ops.mmap(hw, file, vma);
341 * The callbacks (hwdep->ops) must be set on the returned instance
351 static struct snd_device_ops ops = {
373 if ((err = snd_device_new(card, SNDRV_DEV_HWDEP, hwdep, &ops)) < 0) {