Lines Matching refs:dev
68 * $FreeBSD: src/sys/dev/vn/vn.c,v 1.105.2.4 2001/11/18 07:11:00 dillon Exp $
108 static int mdevbioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p);
109 static int mdevcioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p);
110 static int mdevrw(dev_t dev, struct uio *uio, int ioflag);
177 static int mdevioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p, int is_char);
182 static int mdevclose(__unused dev_t dev, __unused int flags,
188 static int mdevopen(dev_t dev, int flags, __unused int devtype, __unused struct proc *p) {
192 devid = minor(dev); /* Get minor device number */
201 static int mdevrw(dev_t dev, struct uio *uio, __unused int ioflag) {
207 devid = minor(dev); /* Get minor device number */
343 static int mdevbioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) {
344 return (mdevioctl(dev, cmd, data, flag, p, 0));
347 static int mdevcioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) {
348 return (mdevioctl(dev, cmd, data, flag, p, 1));
351 static int mdevioctl(dev_t dev, u_long cmd, caddr_t data, __unused int flag,
358 devid = minor(dev); /* Get minor device number */
420 static int mdevsize(dev_t dev) {
424 devid = minor(dev); /* Get minor device number */
442 dev_t dev;
479 dev = mdevadd(devid, base >> 12, (unsigned)size >> 12, phys); /* Go add the device */