Lines Matching defs:mode

83 #define STMINOR(unit, mode)	(((unit) << 4) + (mode))
99 struct mode {
108 #define ST_Q_UNIMODAL 0x0004 /* unimode drive rejects mode select */
109 struct mode mode;
181 u_int quirks; /* quirks for the open mode */
198 struct mode mode;
281 /* Get any quirks and mode information. */
289 st->mode = finger->quirkdata.mode;
291 if (st->mode.blksize != 0)
293 if (st->mode.density != 0)
428 * Make sure that a tape opened in write-only mode will have
447 stclose(dev_t dev, int flags, int mode, struct proc *p)
553 st->density = st->mode.density;
563 st->blksize = st->mode.blksize;
571 printf("%s: cannot set selected mode\n", st->sc_dev.dv_xname);
621 * Given all we know about the device, media, mode, 'quirks' and
630 SC_DEBUG(link, SDEV_DB2, ("starting block mode decision\n"));
702 ("Give up and default to variable mode\n"));
921 * Handle "fixed-block-mode" tape drives by using the
1099 g->mt_mblksiz = st->mode.blksize;
1100 g->mt_mdensity = st->mode.density;
1168 case MTSETBSIZ: /* Set block size for device and mode. */
1183 case MTSETDNSTY: /* Set density for device and mode. */
1226 * Check that the mode being asked for is aggreeable to the
1230 printf("%s: cannot set selected mode\n", st->sc_dev.dv_xname);
1245 st->mode.blksize = st->blksize;
1249 st->mode.density = st->density;
1371 * Ask for page 0 (vendor specific) mode sense data.
1414 * set it into the desire mode etc.
1437 * This quirk deals with drives that have only one valid mode and think
1438 * this gives them license to reject all mode selects, even if the
1439 * selected mode is the one that is supported.
1461 * Ask for page 0 (vendor specific) mode sense data.
1488 * Set up for a mode select.