/external/grub/stage2/ |
H A D | stage1_5.c | 25 disk_read_savesect_func (int sector, int offset, int length) argument 27 saved_sector = sector; 50 grub_printf ("internal error: the second sector of Stage 2 is unknown.");
|
H A D | fsys_iso9660.c | 69 iso9660_devread (int sector, int byte_offset, int byte_len, char *buf) argument 76 if (sector < 0) 84 sector += (byte_offset >> sector_size_lg2); 87 : "=r"(sector) 89 "0"(sector)); 93 printf ("<%d, %d, %d>", sector, byte_offset, byte_len); 96 return rawread(current_drive, part_start + sector, byte_offset, byte_len, buf); 102 unsigned int sector; local 117 for (sector = 16 ; sector < 3 410 int sector, blkoffset, size, ret; local [all...] |
H A D | fsys_vstafs.c | 27 static void get_file_info (int sector); 28 static struct dir_entry *vstafs_readdir (long sector); 39 * In f_sector we store the sector number in which the information about 60 get_file_info (int sector) argument 62 devread (sector, 0, BLOCK_SIZE, (char *) FILE_INFO); 69 vstafs_readdir (long sector) argument 74 get_file_info (sector);
|
H A D | bios.c | 52 int sector, int nsec, int segment) 71 if (sector >= geometry->total_sectors) 78 dap.block = sector; 98 return biosdisk (read, drive, geometry, sector, nsec, segment); 110 sector_offset = sector % geometry->sectors + 1; 111 head = sector / geometry->sectors; 49 biosdisk(int read, int drive, struct geometry *geometry, int sector, int nsec, int segment) argument
|
H A D | fsys_fat.c | 52 #define FAT_BUF ( FSYS_BUF + 30208 ) /* 4 sector FAT buffer */ 227 int sector; local 241 sector = FAT_SUPER->fat_offset 243 if (!devread (sector, 0, FAT_CACHE_SIZE, (char*) FAT_BUF)) 268 sector = FAT_SUPER->data_offset + 277 devread(sector, offset, size, buf);
|
H A D | disk_io.c | 140 rawread (int drive, int sector, int byte_offset, int byte_len, char *buf) argument 170 if (sector < 0 || sector >= buf_geom.total_sectors) 185 /* Get the first sector of track. */ 186 soff = sector % sectors_per_vtrack; 187 track = sector - soff; 203 read_start = sector; 220 * required sector(s) rather than failing completely. 224 sector, slen, BUFFERSEG)) 233 if ((buf_track == 0 || sector 294 devread(int sector, int byte_offset, int byte_len, char *buf) argument 333 rawwrite(int drive, int sector, char *buf) argument 366 devwrite(int sector, int sector_count, char *buf) argument [all...] |
H A D | builtins.c | 128 /* Print which sector is read when loading a file. */ 130 disk_read_print_func (int sector, int offset, int length) argument 132 grub_printf ("[%d,%d,%d]", sector, offset, length); 147 auto void disk_read_blocklist_func (int sector, int offset, int length); 151 auto void disk_read_blocklist_func (int sector, int offset, int length) 155 if (start_sector + num_sectors == sector 183 sector-part_start, offset, offset+length); 188 start_sector = sector; 217 * full sector, since it doesn't matter if we read too much. */ 1041 int sector; 150 disk_read_blocklist_func(int sector, int offset, int length) argument 1026 int sector; local 1372 char *cylinder, *head, *sector, *total_sector; local 1787 disk_read_savesect_func(int sector, int offset, int length) argument 1803 disk_read_blocklist_func(int sector, int offset, int length) argument 2761 int cylinder, head, sector; local 3292 disk_read_savesect_func(int sector, int offset, int length) argument [all...] |
/external/blktrace/btreplay/ |
H A D | btrecord.h | 42 * @sector: Sector number of IO 47 __u64 sector; member in struct:io_pkt
|
H A D | btrecord.c | 65 * @sector: IO sector identifier 71 __u64 sector; member in struct:io_spec 274 .sector = spec->sector, 513 spec->sector = t.sector; 520 spec->sector = be64_to_cpu(t.sector); 549 iip->cpu, (long long unsigned)spec->sector, [all...] |
/external/qemu/ |
H A D | dma-helpers.c | 173 QEMUSGList *sg, uint64_t sector, 176 return dma_bdrv_io(bs, sg, sector, cb, opaque, 0); 180 QEMUSGList *sg, uint64_t sector, 183 return dma_bdrv_io(bs, sg, sector, cb, opaque, 1); 172 dma_bdrv_read(BlockDriverState *bs, QEMUSGList *sg, uint64_t sector, void (*cb)(void *opaque, int ret), void *opaque) argument 179 dma_bdrv_write(BlockDriverState *bs, QEMUSGList *sg, uint64_t sector, void (*cb)(void *opaque, int ret), void *opaque) argument
|
H A D | block.c | 520 unsigned char sector[512]; local 537 if (bdrv_read(bs, i, sector, 1) != 0) { 541 if (bdrv_write(bs->backing_hd, i, sector, 1) != 0) { 602 -EINVAL Invalid sector number or nb_sectors 627 /* first read to align to sector start */ 654 /* add data from the last sector */ 671 /* first write to align to sector start */ 700 /* add data from the last sector */ 754 uint8_t sector; /* starting sector */ member in struct:partition [all...] |
/external/e2fsprogs/lib/ext2fs/ |
H A D | dosio.h | 29 unsigned short sector; member in struct:__anon1913 30 unsigned short offset; /* Offset of byte within the sector */
|
H A D | unix_io.c | 156 * Windows and FreeBSD block devices only allow sector alignment IO in offset and size 168 char sector[BLOCKALIGN]; local 188 actual = read(data->dev, sector, BLOCKALIGN); 191 memcpy(buf+alignsize, sector, fragment);
|
/external/grub/lib/ |
H A D | device.c | 481 /* Attempt to read the first sector. */ 843 int sector, int size, const char *buf) 884 offset = (loff_t) sector * (loff_t) SECTOR_SIZE; 893 off_t offset = (off_t) sector * (off_t) SECTOR_SIZE; 842 write_to_partition(char **map, int drive, int partition, int sector, int size, const char *buf) argument
|
/external/kernel-headers/original/linux/ |
H A D | dm-ioctl.h | 200 uint64_t sector; /* Device sector */ member in struct:dm_target_msg
|
H A D | genhd.h | 45 unsigned char sector; /* starting sector */ member in struct:partition 49 unsigned char end_sector; /* end sector */ 51 unsigned int start_sect; /* starting sector counting from 0 */ 67 unsigned char sector; /* starting sector */ member in struct:partition 71 unsigned char end_sector; /* end sector */ 73 __le32 start_sect; /* starting sector counting from 0 */ 260 __le32 s_start; /* start sector no of partition */ 269 __le16 v_sectorsz; /* sector siz [all...] |
H A D | blkdev.h | 138 sector_t sector; /* next sector to submit */ member in struct:request 143 sector_t hard_sector; /* next sector to complete */
|
H A D | hdreg.h | 20 #define HD_SECTOR 0x1f3 /* starting sector */ 98 unsigned sector : 1; member in struct:ide_reg_valid_s::__anon3228 290 #define WIN_READ_BUFFER 0xE4 /* force read only 1 sector */ 294 #define WIN_WRITE_BUFFER 0xE8 /* force write only 1 sector */ 453 unsigned short sector_bytes; /* unformatted bytes per sector */ 491 unsigned char multsect; /* current multiple sector count */
|
/external/qemu/hw/ |
H A D | scsi-disk.c | 52 /* Both sector and sector_count are in terms of qemu 512 byte blocks. */ 53 uint64_t sector; member in struct:SCSIRequest 66 /* The qemu block layer uses a fixed 512 byte sector size. 67 This is the number of 512 byte blocks in a single scsi sector. */ 212 r->aiocb = bdrv_aio_readv(s->bdrv, r->sector, &r->qiov, n, 216 r->sector += n; 254 r->sector += n; 277 r->aiocb = bdrv_aio_writev(s->bdrv, r->sector, &r->qiov, n, 754 /* Returned value is the address of the last sector. */ 780 DPRINTF("Read (sector [all...] |
/external/blktrace/ |
H A D | blktrace_api.h | 99 __u64 sector; /* disk offset */ member in struct:blk_io_trace
|
H A D | blkparse.c | 249 __u64 sector; member in struct:io_track 920 if (iot->sector < __iot->sector) 922 else if (iot->sector > __iot->sector) 926 "sector alias (%Lu) on device %d,%d!\n", 927 (unsigned long long) iot->sector, 938 static struct io_track *__find_track(struct per_dev_info *pdi, __u64 sector) argument 946 if (sector < __iot->sector) 957 find_track(struct per_dev_info *pdi, pid_t pid, __u64 sector) argument [all...] |
/external/e2fsprogs/lib/blkid/ |
H A D | probe.c | 453 /* sector size check */ 1048 int sector = (id->bim_kboff) << 1;; local 1059 sector++; 1064 if (blkid_le64(label->sector_xl) != (unsigned) sector) { 1066 printf("LVM2: label for sector %llu found at sector %d\n", 1067 blkid_le64(label->sector_xl), sector)); 1075 printf("LVM2: label checksum incorrect at sector %d\n", 1076 sector));
|
/external/grub/grub/ |
H A D | asmstub.c | 800 /* Attempt to read the first sector. */ 929 int sector, int nsec, int segment) 949 offset = (loff_t) sector * (loff_t) SECTOR_SIZE; 955 off_t offset = (off_t) sector * (off_t) SECTOR_SIZE; 968 if (sector == 0 && nsec > 1) 987 grub_printf ("Write %d sectors starting from %d sector" 989 nsec, sector, drive, device_map[drive]); 928 biosdisk(int subfunc, int drive, struct geometry *geometry, int sector, int nsec, int segment) argument
|
/external/qemu/block/ |
H A D | vvfat.c | 39 /* LATER TODO: add automatic boot sector generation from 42 file system (test if the boot sector still relies on that fact)! */ 245 uint8_t sector; member in struct:__anon4355 355 /* take the sector position spos and convert it to Cylinder/Head/Sector position 360 int head,sector; local 361 sector = spos % (bs->secs); spos/= bs->secs; 365 it happens if 32bit sector positions are used, while CHS is only 24bit. 368 chs->sector = 0xFF; 373 chs->sector = (uint8_t)( (sector 1313 uint32_t sector=sector_num-s->faked_sectors, local [all...] |