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 err = hw->ops.dsp_status(hw, &info); in snd_hwdep_dsp_status()
211 if (! hw->ops.dsp_load) in snd_hwdep_dsp_load()
218 err = hw->ops.dsp_load(hw, info); in snd_hwdep_dsp_load()
251 if (hw->ops.ioctl) in snd_hwdep_ioctl()
252 return hw->ops.ioctl(hw, file, cmd, arg); in snd_hwdep_ioctl()
259 if (hw->ops.mmap) in snd_hwdep_mmap()
260 return hw->ops.mmap(hw, file, vma); in snd_hwdep_mmap()
364 static const struct snd_device_ops ops = { in snd_hwdep_new() local
392 err = snd_device_new(card, SNDRV_DEV_HWDEP, hwdep, &ops); in snd_hwdep_new()