Lines Matching refs:i_dev
132 sndstat_open(struct cdev *i_dev, int flags, int mode, struct thread *td)
134 if (sndstat_dev == NULL || i_dev != sndstat_dev)
138 if (SNDSTAT_PID(i_dev) != 0) {
142 SNDSTAT_PID_SET(i_dev, td->td_proc->p_pid);
144 SNDSTAT_PID_SET(i_dev, 0);
154 sndstat_close(struct cdev *i_dev, int flags, int mode, struct thread *td)
156 if (sndstat_dev == NULL || i_dev != sndstat_dev)
160 if (SNDSTAT_PID(i_dev) == 0) {
166 SNDSTAT_PID_SET(i_dev, 0);
174 sndstat_read(struct cdev *i_dev, struct uio *buf, int flag)
178 if (sndstat_dev == NULL || i_dev != sndstat_dev)
182 if (SNDSTAT_PID(i_dev) != buf->uio_td->td_proc->p_pid ||