Lines Matching defs:dev
63 static dev_info_t *ptc_dip; /* for dev-to-dip conversions */
215 minor_t dev;
217 for (dev = 0; dev < npty; dev++) {
218 cv_init(&pty_softc[dev].pt_cv_flags, NULL, CV_DEFAULT, NULL);
219 cv_init(&pty_softc[dev].pt_cv_readq, NULL, CV_DEFAULT, NULL);
220 cv_init(&pty_softc[dev].pt_cv_writeq, NULL, CV_DEFAULT, NULL);
221 mutex_init(&pty_softc[dev].ptc_lock, NULL, MUTEX_DEFAULT, NULL);
228 minor_t dev;
230 for (dev = 0; dev < npty; dev++) {
231 cv_destroy(&pty_softc[dev].pt_cv_flags);
232 cv_destroy(&pty_softc[dev].pt_cv_readq);
233 cv_destroy(&pty_softc[dev].pt_cv_writeq);
234 mutex_destroy(&pty_softc[dev].ptc_lock);
248 dev_t dev = *devp;
252 if (getminor(dev) >= npty) {
255 pty = &pty_softc[getminor(dev)];
285 ptcclose(dev_t dev, int flag, int otyp, struct cred *cred)
291 pty = &pty_softc[getminor(dev)];
322 ptcread(dev_t dev, struct uio *uio, struct cred *cred)
324 struct pty *pty = &pty_softc[getminor(dev)];
523 ptcwrite(dev_t dev, struct uio *uio, struct cred *cred)
525 struct pty *pty = &pty_softc[getminor(dev)];
695 ptcioctl(dev_t dev, int cmd, intptr_t data, int flag, struct cred *cred,
698 struct pty *pty = &pty_softc[getminor(dev)];
978 ptcpoll(dev_t dev,
984 struct pty *pty = &pty_softc[getminor(dev)];