/external/bluetooth/glib/gio/ |
D | gdrive.c | 165 g_drive_get_name (GDrive *drive) in g_drive_get_name() argument 169 g_return_val_if_fail (G_IS_DRIVE (drive), NULL); in g_drive_get_name() 171 iface = G_DRIVE_GET_IFACE (drive); in g_drive_get_name() 173 return (* iface->get_name) (drive); in g_drive_get_name() 186 g_drive_get_icon (GDrive *drive) in g_drive_get_icon() argument 190 g_return_val_if_fail (G_IS_DRIVE (drive), NULL); in g_drive_get_icon() 192 iface = G_DRIVE_GET_IFACE (drive); in g_drive_get_icon() 194 return (* iface->get_icon) (drive); in g_drive_get_icon() 206 g_drive_has_volumes (GDrive *drive) in g_drive_has_volumes() argument 210 g_return_val_if_fail (G_IS_DRIVE (drive), FALSE); in g_drive_has_volumes() [all …]
|
D | gdrive.h | 73 void (* changed) (GDrive *drive); 74 void (* disconnected) (GDrive *drive); 75 void (* eject_button) (GDrive *drive); 78 char * (* get_name) (GDrive *drive); 79 GIcon * (* get_icon) (GDrive *drive); 80 gboolean (* has_volumes) (GDrive *drive); 81 GList * (* get_volumes) (GDrive *drive); 82 gboolean (* is_media_removable) (GDrive *drive); 83 gboolean (* has_media) (GDrive *drive); 84 gboolean (* is_media_check_automatic) (GDrive *drive); [all …]
|
D | gvolumemonitor.h | 91 GDrive *drive); 93 GDrive *drive); 95 GDrive *drive); 118 GDrive *drive);
|
/external/grub/stage2/ |
D | bios.c | 26 extern int biosdisk_int13_extensions (int ax, int drive, void *dap); 27 extern int biosdisk_standard (int ah, int drive, 30 extern int check_int13_extensions (int drive); 31 extern int get_diskinfo_standard (int drive, 36 extern int get_diskinfo_floppy (int drive, 49 biosdisk (int read, int drive, struct geometry *geometry, in biosdisk() argument 83 err = biosdisk_int13_extensions ((read + 0x42) << 8, drive, &dap); in biosdisk() 96 return biosdisk (read, drive, geometry, sector, nsec, segment); in biosdisk() 116 err = biosdisk_standard (read + 0x02, drive, in biosdisk() 126 get_cdinfo (int drive, struct geometry *geometry) in get_cdinfo() argument [all …]
|
D | common.c | 146 int drive; in init_bios_info() local 258 for (drive = 0x80; drive < 0x88; drive++) in init_bios_info() 265 if (get_diskinfo (drive, &geom)) in init_bios_info() 276 track_int13 (drive); in init_bios_info() 280 info->drive_number = drive; in init_bios_info()
|
D | disk_io.c | 140 rawread (int drive, int sector, int byte_offset, int byte_len, char *buf) in rawread() argument 157 if (buf_drive != drive) in rawread() 159 if (get_diskinfo (drive, &buf_geom)) in rawread() 164 buf_drive = drive; in rawread() 208 bios_err = biosdisk (BIOSDISK_READ, drive, &buf_geom, in rawread() 223 || biosdisk (BIOSDISK_READ, drive, &buf_geom, in rawread() 249 if (biosdisk (BIOSDISK_READ, drive, &buf_geom, in rawread() 333 rawwrite (int drive, int sector, char *buf) in rawwrite() argument 337 if (biosdisk (BIOSDISK_READ, drive, &buf_geom, 0, 1, SCRATCHSEG)) in rawwrite() 351 if (biosdisk (BIOSDISK_WRITE, drive, &buf_geom, in rawwrite() [all …]
|
/external/qemu/distrib/sdl-1.2.12/src/cdrom/qnx/ |
D | SDL_syscdrom.c | 52 static const char *SDL_SYS_CDName(int drive); 53 static int SDL_SYS_CDOpen(int drive); 64 static int CheckDrive(char *drive, struct stat *stbuf) in CheckDrive() argument 75 if (stat(drive, stbuf) < 0) in CheckDrive() 85 cdfd = open(drive, QNX_CD_OPENMODE); in CheckDrive() 110 static void AddDrive(char *drive, struct stat *stbuf) in AddDrive() argument 130 SDL_cdlist[i] = SDL_strdup(drive); in AddDrive() 148 char drive[32]; in SDL_SYS_CDInit() local 219 SDL_snprintf(drive, SDL_arraysize(drive), "/dev/%s", &checklist[i][3]); in SDL_SYS_CDInit() 220 insert = SDL_strchr(drive, '?'); in SDL_SYS_CDInit() [all …]
|
/external/qemu/distrib/sdl-1.2.12/src/cdrom/openbsd/ |
D | SDL_syscdrom.c | 49 static const char *SDL_SYS_CDName(int drive); 50 static int SDL_SYS_CDOpen(int drive); 66 static int CheckDrive(char *drive, struct stat *stbuf) in CheckDrive() argument 72 if ( stat(drive, stbuf) < 0 ) { in CheckDrive() 79 cdfd = open(drive, (O_RDONLY|O_EXCL|O_NONBLOCK), 0); in CheckDrive() 102 static void AddDrive(char *drive, struct stat *stbuf) in AddDrive() argument 113 fprintf(stderr, "Duplicate drive detected: %s == %s\n", drive, SDL_cdlist[i]); in AddDrive() 121 SDL_cdlist[i] = SDL_strdup(drive); in AddDrive() 129 fprintf(stderr, "Added CD-ROM drive: %s\n", drive); in AddDrive() 147 char drive[32]; in SDL_SYS_CDInit() local [all …]
|
/external/qemu/distrib/sdl-1.2.12/src/cdrom/freebsd/ |
D | SDL_syscdrom.c | 47 static const char *SDL_SYS_CDName(int drive); 48 static int SDL_SYS_CDOpen(int drive); 63 static int CheckDrive(char *drive, struct stat *stbuf) in CheckDrive() argument 69 if ( stat(drive, stbuf) < 0 ) { in CheckDrive() 76 cdfd = open(drive, (O_RDONLY|O_EXCL|O_NONBLOCK), 0); in CheckDrive() 97 static void AddDrive(char *drive, struct stat *stbuf) in AddDrive() argument 108 fprintf(stderr, "Duplicate drive detected: %s == %s\n", drive, SDL_cdlist[i]); in AddDrive() 116 SDL_cdlist[i] = SDL_strdup(drive); in AddDrive() 124 fprintf(stderr, "Added CD-ROM drive: %s\n", drive); in AddDrive() 138 char drive[32]; in SDL_SYS_CDInit() local [all …]
|
/external/grub/grub/ |
D | asmstub.c | 233 assign_device_name (int drive, const char *device) in assign_device_name() argument 236 if (device_map[drive]) in assign_device_name() 237 free (device_map[drive]); in assign_device_name() 240 if (disks[drive].flags != -1) in assign_device_name() 242 close (disks[drive].flags); in assign_device_name() 243 disks[drive].flags = -1; in assign_device_name() 248 device_map[drive] = 0; in assign_device_name() 250 device_map[drive] = strdup (device); in assign_device_name() 440 track_int13 (int drive) in track_int13() argument 757 get_diskinfo (int drive, struct geometry *geometry) in get_diskinfo() argument [all …]
|
/external/qemu/distrib/sdl-1.2.12/src/cdrom/linux/ |
D | SDL_syscdrom.c | 99 static const char *SDL_SYS_CDName(int drive); 100 static int SDL_SYS_CDOpen(int drive); 119 static int CheckDrive(char *drive, char *mnttype, struct stat *stbuf) in CheckDrive() argument 125 if ( stat(drive, stbuf) < 0 ) { in CheckDrive() 132 cdfd = open(drive, (O_RDONLY|O_NONBLOCK), 0); in CheckDrive() 154 static void AddDrive(char *drive, struct stat *stbuf) in AddDrive() argument 165 fprintf(stderr, "Duplicate drive detected: %s == %s\n", drive, SDL_cdlist[i]); in AddDrive() 173 SDL_cdlist[i] = SDL_strdup(drive); in AddDrive() 181 fprintf(stderr, "Added CD-ROM drive: %s\n", drive); in AddDrive() 267 char drive[32]; in SDL_SYS_CDInit() local [all …]
|
/external/qemu/distrib/sdl-1.2.12/src/cdrom/bsdi/ |
D | SDL_syscdrom.c | 76 static const char *SDL_SYS_CDName(int drive); 77 static int SDL_SYS_CDOpen(int drive); 189 static int CheckDrive(char *drive, struct stat *stbuf) in CheckDrive() argument 195 if ( stat(drive, stbuf) < 0 ) { in CheckDrive() 200 cdfd = open(drive, (O_RDONLY|O_EXCL|O_NONBLOCK), 0); in CheckDrive() 211 static void AddDrive(char *drive, struct stat *stbuf) in AddDrive() argument 222 fprintf(stderr, "Duplicate drive detected: %s == %s\n", drive, SDL_cdlist[i]); in AddDrive() 230 SDL_cdlist[i] = SDL_strdup(drive); in AddDrive() 238 fprintf(stderr, "Added CD-ROM drive: %s\n", drive); in AddDrive() 251 char drive[32]; in SDL_SYS_CDInit() local [all …]
|
/external/grub/lib/ |
D | device.c | 136 get_drive_geometry (struct geometry *geom, char **map, int drive) in get_drive_geometry() argument 142 fd = open (map[drive], O_RDONLY); in get_drive_geometry() 237 if (drive & 0x80) in get_drive_geometry() 400 get_dac960_disk_name (char *name, int controller, int drive) in get_dac960_disk_name() argument 402 sprintf (name, "/dev/rd/c%dd%d", controller, drive); in get_dac960_disk_name() 522 int drive; in read_device_map() local 558 drive = strtoul (ptr, &ptr, 10); in read_device_map() 559 if (drive < 0) in read_device_map() 564 else if (drive > 127) in read_device_map() 568 is_floppy ? 'f' : 'h', drive); in read_device_map() [all …]
|
D | device.h | 36 extern void get_drive_geometry (struct geometry *geom, char **map, int drive); 43 extern int is_disk_device (char **map, int drive); 44 extern int write_to_partition (char **map, int drive, int partition,
|
/external/qemu/distrib/sdl-1.2.12/src/cdrom/win32/ |
D | SDL_syscdrom.c | 50 static const char *SDL_SYS_CDName(int drive); 51 static int SDL_SYS_CDOpen(int drive); 63 static void AddDrive(char *drive) in AddDrive() argument 70 SDL_cdlist[i] = SDL_strdup(drive); in AddDrive() 77 fprintf(stderr, "Added CD-ROM drive: %s\n", drive); in AddDrive() 86 char drive[4]; in SDL_SYS_CDInit() local 102 SDL_snprintf(drive, SDL_arraysize(drive), "%c:\\", i); in SDL_SYS_CDInit() 103 if ( GetDriveType(drive) == DRIVE_CDROM ) { in SDL_SYS_CDInit() 104 AddDrive(drive); in SDL_SYS_CDInit() 126 static const char *SDL_SYS_CDName(int drive) in SDL_SYS_CDName() argument [all …]
|
/external/qemu/distrib/sdl-1.2.12/src/cdrom/osf/ |
D | SDL_syscdrom.c | 48 static const char *SDL_SYS_CDName(int drive); 49 static int SDL_SYS_CDOpen(int drive); 61 static int CheckDrive(char *drive, struct stat *stbuf) in CheckDrive() argument 76 if ( stat(drive, stbuf) < 0 ) { in CheckDrive() 80 if ( (cdfd = open(drive, (O_RDWR|O_NDELAY), 0)) >= 0 ) { in CheckDrive() 104 static void AddDrive(char *drive, struct stat *stbuf) in AddDrive() argument 116 fprintf(stderr, "Duplicate drive detected: %s == %s\n", drive, SDL_cdlist[i]); in AddDrive() 124 SDL_cdlist[i] = SDL_strdup(drive); in AddDrive() 132 fprintf(stderr, "Added CD-ROM drive: %s\n", drive); in AddDrive() 155 char drive[32]; in SDL_SYS_CDInit() local [all …]
|
/external/qemu-pc-bios/bochs/bios/ |
D | notes | 16 dl (bit 0) --> bit 4 # drive number 24 * drive sets the busy bit in Status Reg to 1 26 > drive sets the aborted-command bit in the Error register and 31 > drive executes an implied seek to desired track and 34 transferred, the drive sets the data-request bit to 1, sets 37 the data, the drive sets the data-request bit and the busy bit to 0. 39 the first sector of data, the drive sets the data-request bit to 0, 41 transferred, the drive sets the data-request bit to 1, the busy bit to 0, 43 the drive sets the data-request bit and busy bit to 0.
|
/external/qemu/distrib/sdl-1.2.12/src/cdrom/beos/ |
D | SDL_syscdrom.cc | 68 static const char *SDL_SYS_CDName(int drive); 69 static int SDL_SYS_CDOpen(int drive); 82 static int CheckDrive(char *drive) in CheckDrive() argument 89 if ( stat(drive, &stbuf) < 0 ) { in CheckDrive() 95 cdfd = open(drive, 0); in CheckDrive() 111 static void AddDrive(char *drive) in AddDrive() argument 119 len = SDL_strlen(drive)+1; in AddDrive() 125 SDL_strlcpy(SDL_cdlist[i], drive, len); in AddDrive() 128 fprintf(stderr, "Added CD-ROM drive: %s\n", drive); in AddDrive() 275 static const char *SDL_SYS_CDName(int drive) in SDL_SYS_CDName() argument [all …]
|
/external/qemu/distrib/sdl-1.2.12/src/cdrom/aix/ |
D | SDL_syscdrom.c | 57 static const char *SDL_SYS_CDName(int drive); 58 static int SDL_SYS_CDOpen(int drive); 70 static int CheckDrive(char *drive, struct stat *stbuf) in CheckDrive() argument 78 if ( stat(drive, stbuf) < 0 ) { in CheckDrive() 85 cdfd = open(drive, (O_RDONLY|O_EXCL|O_NONBLOCK), 0); in CheckDrive() 103 fprintf(stderr, "Could not open drive %s (%s)\n", drive, strerror(errno)); in CheckDrive() 111 static void AddDrive(char *drive, struct stat *stbuf) in AddDrive() argument 122 fprintf(stderr, "Duplicate drive detected: %s == %s\n", drive, SDL_cdlist[i]); in AddDrive() 130 SDL_cdlist[i] = SDL_strdup(drive); in AddDrive() 138 fprintf(stderr, "Added CD-ROM drive: %s\n", drive); in AddDrive() [all …]
|
/external/chromium/third_party/libjingle/source/talk/base/ |
D | pathutils.cc | 245 bool Pathname::GetDrive(char *drive, uint32 bytes) const { in GetDrive() argument 246 return GetDrive(drive, bytes, folder_); in GetDrive() 250 bool Pathname::GetDrive(char *drive, uint32 bytes, in GetDrive() argument 257 memcpy(drive, pathname.c_str(), 3); in GetDrive() 258 drive[3] = 0; in GetDrive() 260 return (isalpha(drive[0]) && in GetDrive() 261 drive[1] == ':' && in GetDrive() 262 drive[2] == '\\'); in GetDrive()
|
/external/qemu/distrib/sdl-1.2.12/src/cdrom/mint/ |
D | SDL_syscdrom.c | 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) in SDL_SYS_CDName() argument 138 return(metados_drives[drive].device); in SDL_SYS_CDName() 141 static int SDL_SYS_CDOpen(int drive) in SDL_SYS_CDOpen() argument 145 handle = Metaopen(metados_drives[drive].device[0], &(metados_drives[drive].metaopen)); in SDL_SYS_CDOpen() 147 return drive; in SDL_SYS_CDOpen()
|
/external/qemu/distrib/sdl-1.2.12/src/cdrom/dc/ |
D | SDL_syscdrom.c | 35 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) in SDL_SYS_CDName() argument 69 static int SDL_SYS_CDOpen(int drive) in SDL_SYS_CDOpen() argument 71 return(drive); in SDL_SYS_CDOpen()
|
/external/qemu/distrib/sdl-1.2.12/src/cdrom/ |
D | SDL_cdrom.c | 91 const char *SDL_CDName(int drive) in SDL_CDName() argument 96 if ( drive >= SDL_numcds ) { in SDL_CDName() 101 return(SDL_CDcaps.Name(drive)); in SDL_CDName() 107 SDL_CD *SDL_CDOpen(int drive) in SDL_CDOpen() argument 114 if ( drive >= SDL_numcds ) { in SDL_CDOpen() 124 cdrom->id = SDL_CDcaps.Open(drive); in SDL_CDOpen()
|
/external/qemu/distrib/sdl-1.2.12/src/cdrom/macosx/ |
D | SDL_syscdrom.c | 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) in SDL_SYS_CDName() argument 274 pb.ioParam.ioVRefNum = volumes[drive]; in SDL_SYS_CDName() 288 static int SDL_SYS_CDOpen (int drive) in SDL_SYS_CDOpen() argument 296 currentDrive = drive; in SDL_SYS_CDOpen() 298 return drive; in SDL_SYS_CDOpen()
|
/external/qemu/distrib/sdl-1.2.12/src/cdrom/macos/ |
D | SDL_syscdrom.c | 56 static const char *SDL_SYS_CDName(int drive); 57 static int SDL_SYS_CDOpen(int drive); 129 static const char *SDL_SYS_CDName(int drive) in SDL_SYS_CDName() argument 131 return(SDL_cdlist[drive].name); in SDL_SYS_CDName() 134 static int get_drivenum(int drive) in get_drivenum() argument 140 SDL_cdlist[drive].driveNum = 0; in get_drivenum() 146 if ( driveElem->dQRefNum == SDL_cdlist[drive].dRefNum ) { in get_drivenum() 147 SDL_cdlist[drive].driveNum = driveElem->dQDrive; in get_drivenum() 151 return(SDL_cdlist[drive].driveNum); in get_drivenum() 154 static int SDL_SYS_CDOpen(int drive) in SDL_SYS_CDOpen() argument [all …]
|