Lines Matching refs:dsw

349 	struct cdevsw *dsw;  in giant_open()  local
352 dsw = dev_refthread(dev, &ref); in giant_open()
353 if (dsw == NULL) in giant_open()
356 retval = dsw->d_gianttrick->d_open(dev, oflags, devtype, td); in giant_open()
365 struct cdevsw *dsw; in giant_fdopen() local
368 dsw = dev_refthread(dev, &ref); in giant_fdopen()
369 if (dsw == NULL) in giant_fdopen()
372 retval = dsw->d_gianttrick->d_fdopen(dev, oflags, td, fp); in giant_fdopen()
381 struct cdevsw *dsw; in giant_close() local
384 dsw = dev_refthread(dev, &ref); in giant_close()
385 if (dsw == NULL) in giant_close()
388 retval = dsw->d_gianttrick->d_close(dev, fflag, devtype, td); in giant_close()
397 struct cdevsw *dsw; in giant_strategy() local
402 dsw = dev_refthread(dev, &ref); in giant_strategy()
403 if (dsw == NULL) { in giant_strategy()
408 dsw->d_gianttrick->d_strategy(bp); in giant_strategy()
416 struct cdevsw *dsw; in giant_ioctl() local
419 dsw = dev_refthread(dev, &ref); in giant_ioctl()
420 if (dsw == NULL) in giant_ioctl()
423 retval = dsw->d_gianttrick->d_ioctl(dev, cmd, data, fflag, td); in giant_ioctl()
432 struct cdevsw *dsw; in giant_read() local
435 dsw = dev_refthread(dev, &ref); in giant_read()
436 if (dsw == NULL) in giant_read()
439 retval = dsw->d_gianttrick->d_read(dev, uio, ioflag); in giant_read()
448 struct cdevsw *dsw; in giant_write() local
451 dsw = dev_refthread(dev, &ref); in giant_write()
452 if (dsw == NULL) in giant_write()
455 retval = dsw->d_gianttrick->d_write(dev, uio, ioflag); in giant_write()
464 struct cdevsw *dsw; in giant_poll() local
467 dsw = dev_refthread(dev, &ref); in giant_poll()
468 if (dsw == NULL) in giant_poll()
471 retval = dsw->d_gianttrick->d_poll(dev, events, td); in giant_poll()
480 struct cdevsw *dsw; in giant_kqfilter() local
483 dsw = dev_refthread(dev, &ref); in giant_kqfilter()
484 if (dsw == NULL) in giant_kqfilter()
487 retval = dsw->d_gianttrick->d_kqfilter(dev, kn); in giant_kqfilter()
497 struct cdevsw *dsw; in giant_mmap() local
500 dsw = dev_refthread(dev, &ref); in giant_mmap()
501 if (dsw == NULL) in giant_mmap()
504 retval = dsw->d_gianttrick->d_mmap(dev, offset, paddr, nprot, in giant_mmap()
515 struct cdevsw *dsw; in giant_mmap_single() local
518 dsw = dev_refthread(dev, &ref); in giant_mmap_single()
519 if (dsw == NULL) in giant_mmap_single()
522 retval = dsw->d_gianttrick->d_mmap_single(dev, offset, size, object, in giant_mmap_single()