Searched refs:drive (Results 1 - 25 of 49) sorted by relevance

12

/freebsd-9.3-release/sys/boot/i386/common/
H A Ddrv.h33 unsigned int drive; member in struct:dsk
H A Ddrv.c43 v86.edx = dskp->drive;
75 v86.edx = dskp->drive;
85 v86.edx = nblk << 8 | dskp->drive;
109 v86.edx = dskp->drive;
/freebsd-9.3-release/sys/dev/ida/
H A Didaio.h9 int drive; member in struct:ida_user_command
H A Didavar.h51 u_int8_t drive; /* logical drive */ member in struct:ida_hdr
94 #define IDA_CONTROLLER 0 /* drive "number" for controller */
170 * drive flags
178 int drive; /* per controller */ member in struct:idad_softc
202 int datasize, int drive, u_int32_t pblkno, int flags);
H A Dida_disk.c140 length, drv->drive, offset / DEV_BSIZE, DMA_DATA_OUT);
182 drv->drive = drv->controller->num_drives;
186 &dinfo, sizeof(dinfo), drv->drive, 0, DMA_DATA_IN);
H A Dida.c355 int drive, u_int32_t pblkno, int flags)
380 hwqcb->hdr.drive = drive;
438 hwqcb->hdr.drive = drv->drive;
665 uc->drive, uc->blkno, flags);
354 ida_command(struct ida_softc *ida, int command, void *data, int datasize, int drive, u_int32_t pblkno, int flags) argument
/freebsd-9.3-release/sys/geom/vinum/
H A Dgeom_vinum_create.c46 * Create a new drive object, either by user request, during taste of the drive
66 /* The drive already has a consumer if it was tasted before. */
73 G_VINUM_DEBUG(0, "drive '%s' already exists", d->name);
97 G_VINUM_DEBUG(0, "create drive '%s': unable to attach",
109 * If this was just a "referenced" drive, we're almost finished, but
110 * insert this drive not on the head of the drives list, as
111 * gv_drive_is_newer() expects a "real" drive from LIST_FIRST().
117 LIST_INSERT_HEAD(&sc->drives, d, drive);
119 LIST_INSERT_AFTER(d2, d, drive);
316 char *drive, buf[30], *vol; local
381 char *drive, buf[30], *vol; local
474 char *vol, *drive, buf[30]; local
551 char *drive, buf[30], *vol; local
[all...]
H A Dgeom_vinum_rm.c135 gctl_error(req, "drive '%s' is open", d->name);
139 /* A drive with subdisks needs a recursive removal. */
142 gctl_error(req, "drive '%s' still has subdisks"
170 LIST_FOREACH_SAFE(d, &sc->drives, drive, d2) {
185 LIST_FOREACH_SAFE(d, &sc->drives, drive, d2)
299 /* Remove a drive. */
360 LIST_REMOVE(d, drive);
377 LIST_REMOVE(d, drive);
380 LIST_INSERT_HEAD(&sc->drives, d, drive);
382 LIST_INSERT_AFTER(d2, d, drive);
[all...]
H A Dgeom_vinum_move.c69 gctl_error(req, "destination '%s' is not a drive", destination);
76 * destination drive.
119 G_VINUM_DEBUG(0, "consumers on current and destination drive "
131 G_VINUM_DEBUG(1, "subdisk '%s' already on drive '%s'",
163 strlcpy(newsd->drive, destination->name, sizeof(newsd->drive));
H A Dgeom_vinum_share.c437 /* Get a new drive object. */
471 /* We assume this is the drive name. */
624 } else if (!strcmp(token[j], "drive")) {
630 strlcpy(s->drive, token[j], sizeof(s->drive));
684 if (strlen(s->drive) == 0)
H A Dgeom_vinum_events.c111 G_VINUM_DEBUG(2, "tasted drive on '%s'", pp->name);
146 * Setup the drive before we parse the on-disk configuration, so that
147 * we already know about the drive then.
158 G_VINUM_DEBUG(2, "drive '%s' is already known", d->name);
162 /* Add the consumer and header to the new drive. */
195 * When losing a drive (e.g. hardware failure), we cut down the consumer
196 * attached to the underlying device and bring the drive itself to a
215 G_VINUM_DEBUG(0, "dead drive '%s' has still active "
243 /* Put the subdisk in tasted mode, and remove from drive list. */
250 * Don't forget that gv_is_newer wants a "real" drive a
[all...]
H A Dgeom_vinum_subr.c153 * possibly reference a drive that isn't in our config
188 * We don't need the drive configuration if we're not writing the
192 LIST_FOREACH(d, &sc->drives, drive) {
224 sbuf_printf(sb, "sd name %s drive %s len %jds driveoffset "
225 "%jds", s->name, s->drive, s->size / 512,
563 * Give a subdisk to a drive, check and adjust several parameters, adjust
582 /* Check if this subdisk was already given to this drive. */
630 /* Assign drive offset, if not given. */
646 /* No drive offset given, try to calculate it. */
649 /* Add offsets and sizes from other subdisks on this drive
[all...]
/freebsd-9.3-release/contrib/less/
H A Dlglob.h51 #define DECL_GLOB_NAME(fnd,drive,dir,fname,ext,handle) \
53 char drive[_MAX_DRIVE]; \
66 #define DECL_GLOB_NAME(fnd,drive,dir,fname,ext,handle) \
68 char drive[_MAX_DRIVE]; \
82 #define DECL_GLOB_NAME(fnd,drive,dir,fname,ext,handle) \
84 char drive[MAXDRIVE]; \
H A Dmain.c97 char *drive = getenv("HOMEDRIVE"); local
99 if (drive != NULL && path != NULL)
101 char *env = (char *) ecalloc(strlen(drive) +
104 strcat(env, drive);
H A Dlesskey.c782 char *drive = getenv("HOMEDRIVE"); local
784 if (drive != NULL && path != NULL)
786 char *env = (char *) calloc(strlen(drive) +
789 strcat(env, drive);
/freebsd-9.3-release/contrib/ntp/lib/isc/win32/
H A Dfsaccess.c61 char drive[255]; local
81 strncpy(drive, filename, 3);
82 drive[3] = '\0';
90 strcpy(drive, "\\\\");
91 strcat(drive, machinename);
92 strcat(drive, "\\");
93 strcat(drive, sharename);
94 strcat(drive, "\\");
100 GetVolumeInformation(drive, NULL, 0, NULL, 0, NULL, FSType,
/freebsd-9.3-release/contrib/file/src/
H A Dapptype.c49 char path[_MAX_PATH], drive[_MAX_DRIVE], dir[_MAX_DIR], local
61 _splitpath(filename, drive, dir, fname, ext);
62 (void)sprintf(path, "%s%s%s%s", drive,
/freebsd-9.3-release/usr.sbin/mfiutil/
H A Dmfi_drive.c47 MFI_TABLE(top, drive);
50 * Print the name of a drive either by drive number as %2u or by enclosure:slot
81 /* Get the info for this drive. */
83 warn("Failed to fetch info for drive %2u", device_id);
161 mfi_lookup_drive(int fd, char *drive, uint16_t *device_id) argument
171 val = strtol(drive, &cp, 0);
180 if (toupper(drive[0]) == 'E' || toupper(drive[0]) == 'S') {
181 if (drive[
382 drive_set_state(char *drive, uint16_t new_state) argument
[all...]
/freebsd-9.3-release/sys/boot/i386/boot0/
H A Dboot0.S68 * (called 'packet') or CHS mode, whether to force a drive number,
93 * %dl drive number (0x80, 0x81, ... )
103 * to store the original drive number (%dl) passed to us, and to construct a
154 .set _NXTDRV, B0_OFF+6 # Next drive
220 * If the 'setdrv' flag is set in the boot sector, use the drive
224 * or a ZIP/flash drive in floppy emulation).
227 testb $SETDRV,_FLAGS(%bp) # Set drive number?
228 #ifndef CHECK_DRIVE /* disable drive checks */
236 * Disable updates if the drive number is forced.
239 movb _SETDRV(%bp),%dl # Use stored drive numbe
665 drive: .ascii "Drive " label
[all...]
H A Dboot0ext.S44 .set FL_SETDRV,0x20 # Override drive number
50 .set _NXTDRV,-(_PRT_END+0x48) # Next drive
94 testb $FL_SETDRV,LOAD+flags-start # Set number drive?
104 push %dx # Save drive number
118 main: movb %dl,_FAKE(%bp) # Save drive number
120 pushw %dx # Save drive number
170 * Add one to the drive number and check it is valid,
174 cmpb NHRDRV,%al # drive exist? (from BIOS?)
177 * If not then if there is only one drive,
178 * Don't display drive a
421 drive: .ascii "Drive " label
[all...]
/freebsd-9.3-release/sys/boot/i386/gptboot/
H A Dgptboot.c146 dsk.drive = *(uint8_t *)PTOV(ARGS);
147 dsk.type = dsk.drive & DRV_HARD ? TYPE_AD : TYPE_FD;
148 dsk.unit = dsk.drive & DRV_MASK;
213 dsk.drive & DRV_MASK, dev_nm[dsk.type], dsk.unit,
257 kname, dsk.drive & DRV_MASK, dev_nm[dsk.type], dsk.unit,
332 bootinfo.bi_bios_dev = dsk.drive;
418 dsk.drive = (dsk.type <= TYPE_MAXHARD
/freebsd-9.3-release/usr.sbin/mptutil/
H A Dmpt_drive.c93 * drives that are not part of a volume nor a spare drive. It
99 * found via IOC2, 2) a drive that is neither a volume member nor a spare
104 * routine to add each drive encountered. It quietly succeeds if the
105 * drive is already present in the list. It also sorts the list as it
115 * seen this drive.
125 * 'i' is our slot for the 'new' drive. Make room and then
126 * read the drive info.
162 warn("Failed to fetch drive list");
240 mpt_lookup_drive(struct mpt_drive_list *list, const char *drive, argument
248 val = strtol(drive,
310 drive_set_state(char *drive, U8 Action, U8 State, const char *name) argument
[all...]
/freebsd-9.3-release/sys/boot/i386/zfsboot/
H A Dzfsboot.c315 int13probe(int drive) argument
320 v86.edx = drive;
324 ((v86.edx & 0xff) != (drive & DRV_MASK))) { /* unit # OK */
457 dsk->drive = *(uint8_t *)PTOV(ARGS);
458 dsk->type = dsk->drive & DRV_HARD ? TYPE_AD : TYPE_FD;
459 dsk->unit = dsk->drive & DRV_MASK;
470 bootinfo.bi_bios_dev = dsk->drive;
482 * Probe the boot drive first - we will try to boot from whatever
483 * pool we find on that drive.
505 dsk->drive
[all...]
/freebsd-9.3-release/sys/boot/i386/boot2/
H A Dboot2.c123 unsigned drive; member in struct:dsk
231 dsk.drive = *(uint8_t *)PTOV(ARGS);
232 dsk.type = dsk.drive & DRV_HARD ? TYPE_AD : TYPE_FD;
233 dsk.unit = dsk.drive & DRV_MASK;
278 dsk.drive & DRV_MASK, dev_nm[dsk.type], dsk.unit,
369 bootinfo.bi_bios_dev = dsk.drive;
460 dsk.drive = (dsk.type <= TYPE_MAXHARD
598 v86.edx = nblk << 8 | dsk.drive;
/freebsd-9.3-release/sys/boot/i386/pmbr/
H A Dpmbr.s86 # Validate drive number in %dl.
91 addb $0x80,%dh # drive number available
94 main.1: movb $0x80,%dl # Assume drive 0x80
99 main.2: call getdrvparams # Read drive parameters
194 # Check the number of LBAs on the drive index %dx. Trashes %ax and %si.

Completed in 145 milliseconds

12