Lines Matching refs:dev
109 static int nsmb_close(dev_t dev, int flag, int otyp, cred_t *credp);
110 static int nsmb_ioctl(dev_t dev, int cmd, intptr_t arg, int mode,
356 nsmb_ioctl(dev_t dev, int cmd, intptr_t arg, int flags, /* model.h */
362 sdp = ddi_get_soft_state(statep, getminor(dev));
460 nsmb_open(dev_t *dev, int flags, int otyp, cred_t *cr)
470 if (nsmb_major == getmajor(*dev))
504 * drivers to dynamically create minor instances of the dev-
533 *dev = makedevice(nsmb_major, nsmb_minor);
540 nsmb_close(dev_t dev, int flags, int otyp, cred_t *cr)
542 minor_t inst = getminor(dev);
582 * If this dev minor was opened by smbiod,
602 dev_t dev;
609 dev = vp->v_rdev;
610 if (dev == 0 || dev == NODEV ||
611 getmajor(dev) != nsmb_major) {
616 sdp = ddi_get_soft_state(statep, getminor(dev));