Lines Matching refs:ops
59 if (hw->ops.llseek) in snd_hwdep_llseek()
60 return hw->ops.llseek(hw, file, offset, orig); in snd_hwdep_llseek()
68 if (hw->ops.read) in snd_hwdep_read()
69 return hw->ops.read(hw, buf, count, offset); in snd_hwdep_read()
77 if (hw->ops.write) in snd_hwdep_write()
78 return hw->ops.write(hw, buf, count, offset); in snd_hwdep_write()
115 if (!hw->ops.open) { in snd_hwdep_open()
119 err = hw->ops.open(hw, file); in snd_hwdep_open()
149 if (hw->ops.release) in snd_hwdep_open()
150 hw->ops.release(hw, file); in snd_hwdep_open()
167 if (hw->ops.release) in snd_hwdep_release()
168 err = hw->ops.release(hw, file); in snd_hwdep_release()
182 if (hw->ops.poll) in snd_hwdep_poll()
183 return hw->ops.poll(hw, file, wait); in snd_hwdep_poll()
208 if (! hw->ops.dsp_status) in snd_hwdep_dsp_status()
212 if ((err = hw->ops.dsp_status(hw, &info)) < 0) in snd_hwdep_dsp_status()
225 if (! hw->ops.dsp_load) in snd_hwdep_dsp_load()
235 err = hw->ops.dsp_load(hw, &info); in snd_hwdep_dsp_load()
257 if (hw->ops.ioctl) in snd_hwdep_ioctl()
258 return hw->ops.ioctl(hw, file, cmd, arg); in snd_hwdep_ioctl()
265 if (hw->ops.mmap) in snd_hwdep_mmap()
266 return hw->ops.mmap(hw, file, vma); in snd_hwdep_mmap()
370 static struct snd_device_ops ops = { in snd_hwdep_new() local
398 err = snd_device_new(card, SNDRV_DEV_HWDEP, hwdep, &ops); in snd_hwdep_new()