Lines Matching defs:driver
43 struct driver {
44 char *name; /* driver name (from DKIOCINFO) */
47 int (*choosefunc)(); /* driver specific chooser */
48 void *data; /* driver private data */
52 int drvid; /* index in driver array */
76 /* the version of the driver interface we support */
79 /* the "build" entry point for a driver specific object is named this */
85 static struct driver *dlist;
228 struct driver *drvp;
258 * add the given driver/unit reference to the `rawdev' structure identified
260 * If a new `driver' structure needs to be created, associate the given
261 * choosing function and driver private data with it.
266 char *dname, /* driver name */
268 void *datap, /* driver private data */
272 struct driver *dp;
277 * locate the driver struct
289 * driver struct doesn't exist yet -- create one
299 * see if this device already references the given driver
325 struct driver *dp;
330 (struct driver *)
331 realloc(dlist, sizeof (struct driver) * DRIVER_ALLOC) :
332 (struct driver *)
333 malloc(sizeof (struct driver) * DRIVER_ALLOC);
408 * mark the given driver/unit pair as busy. This is called from
415 struct driver *drvp = &dlist[dev->drvid];
446 struct driver *drvp;