Lines Matching refs:dev
48 static int tda8444_read(dev_t dev, struct uio *uiop, cred_t *cred_p);
49 static int tda8444_write(dev_t dev, struct uio *uiop, cred_t *cred_p);
50 static int tda8444_io(dev_t dev, struct uio *uiop, int rw);
52 * dev ops
147 dev_t dev;
151 dev = (dev_t)arg;
152 instance = TDA8444_MINOR_TO_DEVINST(dev);
395 tda8444_close(dev_t dev, int flags, int otyp, cred_t *credp)
399 int instance = TDA8444_MINOR_TO_DEVINST(dev);
400 int channel = TDA8444_MINOR_TO_CHANNEL(dev);
425 tda8444_read(dev_t dev, struct uio *uiop, cred_t *cred_p)
428 return (tda8444_io(dev, uiop, B_READ));
432 tda8444_write(dev_t dev, struct uio *uiop, cred_t *cred_p)
435 return (tda8444_io(dev, uiop, B_WRITE));
439 tda8444_io(dev_t dev, struct uio *uiop, int rw)
442 int instance = TDA8444_MINOR_TO_DEVINST(getminor(dev));
443 int channel = TDA8444_MINOR_TO_CHANNEL(getminor(dev));