Lines Matching refs:ops
45 if (hw->ops.llseek) in snd_hwdep_llseek()
46 return hw->ops.llseek(hw, file, offset, orig); in snd_hwdep_llseek()
54 if (hw->ops.read) in snd_hwdep_read()
55 return hw->ops.read(hw, buf, count, offset); in snd_hwdep_read()
63 if (hw->ops.write) in snd_hwdep_write()
64 return hw->ops.write(hw, buf, count, offset); in snd_hwdep_write()
101 if (!hw->ops.open) { in snd_hwdep_open()
105 err = hw->ops.open(hw, file); in snd_hwdep_open()
135 if (hw->ops.release) in snd_hwdep_open()
136 hw->ops.release(hw, file); in snd_hwdep_open()
153 if (hw->ops.release) in snd_hwdep_release()
154 err = hw->ops.release(hw, file); in snd_hwdep_release()
168 if (hw->ops.poll) in snd_hwdep_poll()
169 return hw->ops.poll(hw, file, wait); in snd_hwdep_poll()
194 if (! hw->ops.dsp_status) in snd_hwdep_dsp_status()
198 if ((err = hw->ops.dsp_status(hw, &info)) < 0) in snd_hwdep_dsp_status()
210 if (! hw->ops.dsp_load) in snd_hwdep_dsp_load()
217 err = hw->ops.dsp_load(hw, info); in snd_hwdep_dsp_load()
250 if (hw->ops.ioctl) in snd_hwdep_ioctl()
251 return hw->ops.ioctl(hw, file, cmd, arg); in snd_hwdep_ioctl()
258 if (hw->ops.mmap) in snd_hwdep_mmap()
259 return hw->ops.mmap(hw, file, vma); in snd_hwdep_mmap()
363 static const struct snd_device_ops ops = { in snd_hwdep_new() local
391 err = snd_device_new(card, SNDRV_DEV_HWDEP, hwdep, &ops); in snd_hwdep_new()