Lines Matching refs:dev
62 static dev_info_t *ptc_dip; /* for dev-to-dip conversions */
214 minor_t dev;
216 for (dev = 0; dev < npty; dev++) {
217 cv_init(&pty_softc[dev].pt_cv_flags, NULL, CV_DEFAULT, NULL);
218 cv_init(&pty_softc[dev].pt_cv_readq, NULL, CV_DEFAULT, NULL);
219 cv_init(&pty_softc[dev].pt_cv_writeq, NULL, CV_DEFAULT, NULL);
220 mutex_init(&pty_softc[dev].ptc_lock, NULL, MUTEX_DEFAULT, NULL);
227 minor_t dev;
229 for (dev = 0; dev < npty; dev++) {
230 cv_destroy(&pty_softc[dev].pt_cv_flags);
231 cv_destroy(&pty_softc[dev].pt_cv_readq);
232 cv_destroy(&pty_softc[dev].pt_cv_writeq);
233 mutex_destroy(&pty_softc[dev].ptc_lock);
247 dev_t dev = *devp;
251 if (getminor(dev) >= npty) {
254 pty = &pty_softc[getminor(dev)];
284 ptcclose(dev_t dev, int flag, int otyp, struct cred *cred)
290 pty = &pty_softc[getminor(dev)];
321 ptcread(dev_t dev, struct uio *uio, struct cred *cred)
323 struct pty *pty = &pty_softc[getminor(dev)];
522 ptcwrite(dev_t dev, struct uio *uio, struct cred *cred)
524 struct pty *pty = &pty_softc[getminor(dev)];
694 ptcioctl(dev_t dev, int cmd, intptr_t data, int flag, struct cred *cred,
697 struct pty *pty = &pty_softc[getminor(dev)];
977 ptcpoll(dev_t dev,
983 struct pty *pty = &pty_softc[getminor(dev)];