Searched defs:drive (Results 1 - 25 of 29) sorted by relevance

12

/external/grub/stage2/
H A Dcommon.c146 int drive; local
249 /* Get the drive info. */
258 for (drive = 0x80; drive < 0x88; drive++)
264 /* Get the geometry. This ensures that the drive is present. */
265 if (get_diskinfo (drive, &geom))
276 track_int13 (drive);
280 info->drive_number = drive;
319 /* Set boot drive an
[all...]
H A Dbios.c27 extern int biosdisk_int13_extensions (int ax, int drive, void *dap);
28 extern int biosdisk_standard (int ah, int drive,
31 extern int check_int13_extensions (int drive);
32 extern int get_diskinfo_standard (int drive,
37 extern int get_diskinfo_floppy (int drive,
51 biosdisk (int read, int drive, struct geometry *geometry,
85 err = biosdisk_int13_extensions ((read + 0x42) << 8, drive, &dap);
98 return biosdisk (read, drive, geometry, sector, nsec, segment);
118 err = biosdisk_standard (read + 0x02, drive,
128 get_cdinfo (int drive, struc
49 biosdisk(int read, int drive, struct geometry *geometry, int sector, int nsec, int segment) argument
126 get_cdinfo(int drive, struct geometry *geometry) argument
184 get_diskinfo(int drive, struct geometry *geometry) argument
[all...]
/external/qemu/distrib/sdl-1.2.15/src/cdrom/dc/
H A DSDL_syscdrom.c35 static const char *SDL_SYS_CDName(int drive);
36 static int SDL_SYS_CDOpen(int drive);
64 static const char *SDL_SYS_CDName(int drive) argument
69 static int SDL_SYS_CDOpen(int drive) argument
71 return(drive);
/external/qemu/distrib/sdl-1.2.15/test/
H A Dtestcdrom.c81 fprintf(stderr, "Usage: %s [drive#] [command] [command] ...\n", argv0);
95 int drive; local
116 drive = 0;
119 drive = atoi(argv[i++]);
121 cdrom = SDL_CDOpen(drive);
123 fprintf(stderr, "Couldn't open drive %d: %s\n", drive,
134 /* PrintStatus(drive, cdrom); */
167 fprintf(stderr, "No CD in drive!\n");
204 PrintStatus(drive, cdro
[all...]
/external/chromium/base/test/
H A Dtest_file_util_win.cc180 wchar_t drive[MAX_PATH] = {0}; local
181 wcscpy_s(drive, MAX_PATH, path.value().c_str());
183 if (!PathStripToRootW(drive))
187 if (!GetVolumeInformationW(drive, NULL, 0, 0, NULL, &fs_flags, NULL, 0))
/external/chromium/third_party/libjingle/source/talk/base/
H A Dpathutils.cc245 bool Pathname::GetDrive(char *drive, uint32 bytes) const { argument
246 return GetDrive(drive, bytes, folder_);
250 bool Pathname::GetDrive(char *drive, uint32 bytes, argument
257 memcpy(drive, pathname.c_str(), 3);
258 drive[3] = 0;
260 return (isalpha(drive[0]) &&
261 drive[1] == ':' &&
262 drive[2] == '\\');
H A Dwin32filesystem.cc402 char drive[4]; local
405 if (path.GetDrive(drive, sizeof(drive))) {
406 drive16 = ToUtf16(drive);
414 // use the current drive if NULL is passed as the drive name.
420 LOG(LS_VERBOSE) << " remove or unknown drive " << drive;
/external/qemu/distrib/sdl-1.2.15/src/cdrom/
H A DSDL_cdrom.c91 const char *SDL_CDName(int drive) argument
96 if ( drive >= SDL_numcds ) {
97 SDL_SetError("Invalid CD-ROM drive index");
101 return(SDL_CDcaps.Name(drive));
107 SDL_CD *SDL_CDOpen(int drive) argument
114 if ( drive >= SDL_numcds ) {
115 SDL_SetError("Invalid CD-ROM drive index");
124 cdrom->id = SDL_CDcaps.Open(drive);
144 /* Get the current status of the drive */
157 /* If the drive i
[all...]
/external/qemu/distrib/sdl-1.2.15/src/cdrom/mint/
H A DSDL_syscdrom.c53 metaopen_t metaopen; /* Infos on opened drive */
59 static const char *SDL_SYS_CDName(int drive);
60 static int SDL_SYS_CDOpen(int drive);
136 static const char *SDL_SYS_CDName(int drive) argument
138 return(metados_drives[drive].device);
141 static int SDL_SYS_CDOpen(int drive) argument
145 handle = Metaopen(metados_drives[drive].device[0], &(metados_drives[drive].metaopen));
147 return drive;
250 /* Workaround buggy CD-ROM drive */
[all...]
/external/qemu/distrib/sdl-1.2.15/src/cdrom/os2/
H A DSDL_syscdrom.c46 static const char *SDL_SYS_CDName(int drive);
47 static int SDL_SYS_CDOpen(int drive);
111 static const char *SDL_SYS_CDName(int drive) argument
113 return(SDL_cdlist[drive]);
117 static int SDL_SYS_CDOpen(int drive) argument
126 mop.pszDeviceType = (PSZ)SDL_cdlist[drive]; // CDAudio Device
/external/qemu/distrib/sdl-1.2.15/src/video/symbian/EKA1/
H A DSDL_epocevents.cpp307 TInt drive = -1; local
309 for(TInt i = 'z'; drive < 0 && i >= 'a'; i--)
313 drive = i;
315 if(drive < 0)
/external/qemu/distrib/sdl-1.2.15/src/cdrom/aix/
H A DSDL_syscdrom.c57 static const char *SDL_SYS_CDName(int drive);
58 static int SDL_SYS_CDOpen(int drive);
69 /* Check a drive to see if it is a CD-ROM */
70 static int CheckDrive(char *drive, struct stat *stbuf) argument
78 if ( stat(drive, stbuf) < 0 ) {
85 cdfd = open(drive, (O_RDONLY|O_EXCL|O_NONBLOCK), 0);
103 fprintf(stderr, "Could not open drive %s (%s)\n", drive, strerror(errno));
110 /* Add a CD-ROM drive to our list of valid drives */
111 static void AddDrive(char *drive, struc argument
356 SDL_SYS_CDName(int drive) argument
361 SDL_SYS_CDOpen(int drive) argument
[all...]
/external/qemu/distrib/sdl-1.2.15/src/cdrom/freebsd/
H A DSDL_syscdrom.c47 static const char *SDL_SYS_CDName(int drive);
48 static int SDL_SYS_CDOpen(int drive);
62 /* Check a drive to see if it is a CD-ROM */
63 static int CheckDrive(char *drive, struct stat *stbuf) argument
69 if ( stat(drive, stbuf) < 0 ) {
76 cdfd = open(drive, (O_RDONLY|O_EXCL|O_NONBLOCK), 0);
96 /* Add a CD-ROM drive to our list of valid drives */
97 static void AddDrive(char *drive, struct stat *stbuf) argument
103 This can happen when we see a drive via symbolic link.
108 fprintf(stderr, "Duplicate drive detecte
138 char drive[32]; local
232 SDL_SYS_CDName(int drive) argument
237 SDL_SYS_CDOpen(int drive) argument
[all...]
/external/qemu/distrib/sdl-1.2.15/src/cdrom/macos/
H A DSDL_syscdrom.c56 static const char *SDL_SYS_CDName(int drive);
57 static int SDL_SYS_CDOpen(int drive);
119 /* Record the basic info for each drive */
129 static const char *SDL_SYS_CDName(int drive) argument
131 return(SDL_cdlist[drive].name);
134 static int get_drivenum(int drive) argument
139 /* Update the drive number */
140 SDL_cdlist[drive].driveNum = 0;
146 if ( driveElem->dQRefNum == SDL_cdlist[drive].dRefNum ) {
147 SDL_cdlist[drive]
154 SDL_SYS_CDOpen(int drive) argument
[all...]
/external/qemu/distrib/sdl-1.2.15/src/cdrom/macosx/
H A DSDL_syscdrom.c39 static int currentDrive; /* Only allow 1 drive in use at a time */
43 static const char *SDL_SYS_CDName (int drive);
44 static int SDL_SYS_CDOpen (int drive);
264 static const char *SDL_SYS_CDName (int drive) argument
282 pb.ioParam.ioVRefNum = volumes[drive];
297 static int SDL_SYS_CDOpen (int drive) argument
305 currentDrive = drive;
307 return drive;
/external/qemu/distrib/sdl-1.2.15/src/cdrom/openbsd/
H A DSDL_syscdrom.c49 static const char *SDL_SYS_CDName(int drive);
50 static int SDL_SYS_CDOpen(int drive);
65 /* Check a drive to see if it is a CD-ROM */
66 static int CheckDrive(char *drive, struct stat *stbuf) argument
72 if ( stat(drive, stbuf) < 0 ) {
79 cdfd = open(drive, (O_RDONLY|O_EXCL|O_NONBLOCK), 0);
101 /* Add a CD-ROM drive to our list of valid drives */
102 static void AddDrive(char *drive, struct stat *stbuf) argument
108 This can happen when we see a drive via symbolic link.
113 fprintf(stderr, "Duplicate drive detecte
147 char drive[32]; local
241 SDL_SYS_CDName(int drive) argument
246 SDL_SYS_CDOpen(int drive) argument
[all...]
/external/qemu/distrib/sdl-1.2.15/src/cdrom/osf/
H A DSDL_syscdrom.c48 static const char *SDL_SYS_CDName(int drive);
49 static int SDL_SYS_CDOpen(int drive);
59 /* Check a drive to see if it is a CD-ROM */
61 static int CheckDrive(char *drive, struct stat *stbuf) argument
76 if ( stat(drive, stbuf) < 0 ) {
80 if ( (cdfd = open(drive, (O_RDWR|O_NDELAY), 0)) >= 0 ) {
103 /* Add a CD-ROM drive to our list of valid drives */
104 static void AddDrive(char *drive, struct stat *stbuf) argument
110 * This can happen when we see a drive via symbolic link.
116 fprintf(stderr, "Duplicate drive detecte
155 char drive[32]; local
233 SDL_SYS_CDName(int drive) argument
238 SDL_SYS_CDOpen(int drive) argument
[all...]
/external/qemu/distrib/sdl-1.2.15/src/cdrom/qnx/
H A DSDL_syscdrom.c52 static const char *SDL_SYS_CDName(int drive);
53 static int SDL_SYS_CDOpen(int drive);
63 /* Check a drive to see if it is a CD-ROM */
64 static int CheckDrive(char *drive, struct stat *stbuf) argument
75 if (stat(drive, stbuf) < 0)
85 cdfd = open(drive, QNX_CD_OPENMODE);
109 /* Add a CD-ROM drive to our list of valid drives */
110 static void AddDrive(char *drive, struct stat *stbuf) argument
117 This can happen when we see a drive via symbolic link. */
127 /* Add this drive t
148 char drive[32]; local
253 SDL_SYS_CDName(int drive) argument
258 SDL_SYS_CDOpen(int drive) argument
324 int drive=-1; local
[all...]
/external/qemu/distrib/sdl-1.2.15/src/cdrom/win32/
H A DSDL_syscdrom.c50 static const char *SDL_SYS_CDName(int drive);
51 static int SDL_SYS_CDOpen(int drive);
62 /* Add a CD-ROM drive to our list of valid drives */
63 static void AddDrive(char *drive) argument
68 /* Add this drive to our list */
70 SDL_cdlist[i] = SDL_strdup(drive);
77 fprintf(stderr, "Added CD-ROM drive: %s\n", drive);
86 char drive[4]; local
102 SDL_snprintf(drive, SDL_arraysiz
126 SDL_SYS_CDName(int drive) argument
131 SDL_SYS_CDOpen(int drive) argument
[all...]
/external/grub/lib/
H A Ddevice.c134 /* Get the geometry of a drive DRIVE. */
136 get_drive_geometry (struct geometry *geom, char **map, int drive) argument
142 fd = open (map[drive], O_RDONLY);
237 if (drive & 0x80)
400 get_dac960_disk_name (char *name, int controller, int drive) argument
402 sprintf (name, "/dev/rd/c%dd%d", controller, drive);
456 /* Check if DEVICE is a CD-ROM drive by the HDIO_GETGEO ioctl. */
522 int drive; local
550 show_error (line_number, "Bad drive name");
558 drive
781 int controller, drive; local
831 is_disk_device(char **map, int drive) argument
842 write_to_partition(char **map, int drive, int partition, int sector, int size, const char *buf) argument
[all...]
/external/qemu/distrib/sdl-1.2.15/src/cdrom/beos/
H A DSDL_syscdrom.cc68 static const char *SDL_SYS_CDName(int drive);
69 static int SDL_SYS_CDOpen(int drive);
81 /* Check a drive to see if it is a CD-ROM */
82 static int CheckDrive(char *drive) argument
89 if ( stat(drive, &stbuf) < 0 ) {
95 cdfd = open(drive, 0);
104 /* This can happen when the drive is open .. (?) */;
110 /* Add a CD-ROM drive to our list of valid drives */
111 static void AddDrive(char *drive) argument
117 /* Add this drive t
273 SDL_SYS_CDName(int drive) argument
278 SDL_SYS_CDOpen(int drive) argument
[all...]
/external/qemu/distrib/sdl-1.2.15/src/cdrom/bsdi/
H A DSDL_syscdrom.c76 static const char *SDL_SYS_CDName(int drive);
77 static int SDL_SYS_CDOpen(int drive);
188 /* Check a drive to see if it is a CD-ROM */
189 static int CheckDrive(char *drive, struct stat *stbuf) argument
195 if ( stat(drive, stbuf) < 0 ) {
200 cdfd = open(drive, (O_RDONLY|O_EXCL|O_NONBLOCK), 0);
210 /* Add a CD-ROM drive to our list of valid drives */
211 static void AddDrive(char *drive, struct stat *stbuf) argument
217 This can happen when we see a drive via symbolic link.
222 fprintf(stderr, "Duplicate drive detecte
251 char drive[32]; local
333 SDL_SYS_CDName(int drive) argument
338 SDL_SYS_CDOpen(int drive) argument
[all...]
/external/qemu/distrib/sdl-1.2.15/src/cdrom/linux/
H A DSDL_syscdrom.c99 static const char *SDL_SYS_CDName(int drive);
100 static int SDL_SYS_CDOpen(int drive);
118 /* Check a drive to see if it is a CD-ROM */
119 static int CheckDrive(char *drive, char *mnttype, struct stat *stbuf) argument
125 if ( stat(drive, stbuf) < 0 ) {
132 cdfd = open(drive, (O_RDONLY|O_NONBLOCK), 0);
153 /* Add a CD-ROM drive to our list of valid drives */
154 static void AddDrive(char *drive, struct stat *stbuf) argument
160 This can happen when we see a drive via symbolic link.
165 fprintf(stderr, "Duplicate drive detecte
267 char drive[32]; local
390 SDL_SYS_CDName(int drive) argument
395 SDL_SYS_CDOpen(int drive) argument
[all...]
/external/chromium/base/
H A Dfile_util_win.cc41 // Get the mapping of drive letters to device paths.
45 LOG(ERROR) << "Failed to get drive mapping.";
49 // The drive mapping is a sequence of null terminated strings.
53 wchar_t drive[] = L" :"; local
55 // For each string in the drive mapping, get the junction that links
57 // know that |drive| is the real path prefix.
59 drive[0] = drive_map_ptr[0]; // Copy the drive letter.
61 if (QueryDosDevice(drive, device_name, MAX_PATH) &&
63 *drive_letter_path = FilePath(drive
[all...]
/external/grub/grub/
H A Dasmstub.c233 assign_device_name (int drive, const char *device) argument
236 if (device_map[drive])
237 free (device_map[drive]);
240 if (disks[drive].flags != -1)
242 close (disks[drive].flags);
243 disks[drive].flags = -1;
248 device_map[drive] = 0;
250 device_map[drive] = strdup (device);
341 /* Copy MAP to the drive map and set up the int13 handler. */
440 track_int13 (int drive) argument
757 get_diskinfo(int drive, struct geometry *geometry) argument
928 biosdisk(int subfunc, int drive, struct geometry *geometry, int sector, int nsec, int segment) argument
[all...]

Completed in 1759 milliseconds

12