/xen-4.10.0-shim-comet/tools/libfsimage/iso9660/ |
A D | fsys_iso9660.c | 70 if (sector < 0) in iso9660_devread() 79 sector += (byte_offset >> sector_size_lg2); in iso9660_devread() 82 : "=r"(sector) in iso9660_devread() 84 "0"(sector)); in iso9660_devread() 86 sector = (sector * 4) + (byte_offset >> sector_size_lg2); in iso9660_devread() 106 unsigned int sector; in iso9660_mount() local 123 for (sector = 16 ; sector < 32 ; sector++) in iso9660_mount() 131 ISO_SUPER->vol_sector = sector; in iso9660_mount() 418 int sector, blkoffset, size, ret; in iso9660_read() local 425 sector = filepos >> ISO_SECTOR_BITS; in iso9660_read() [all …]
|
/xen-4.10.0-shim-comet/stubdom/vtpmmgr/ |
A D | disk_io.c | 35 void* disk_read_sector(sector_t sector) in disk_read_sector() argument 37 uint32_t pos = be32_native(sector); in disk_read_sector() 49 void disk_write_sector(sector_t sector, void* buf, size_t siz) in disk_write_sector() argument 52 uint32_t pos = be32_native(sector); in disk_write_sector()
|
A D | disk_io.h | 4 void* disk_read_sector(sector_t sector); 5 void disk_write_sector(sector_t sector, void* buf, size_t siz);
|
A D | disk_write.c | 24 struct disk_crypt_sector_plain *sector = disk_write_buf(); in disk_write_crypt_sector() local 26 aes_encrypt_ctr(sector->iv_data, sizeof(sector->iv_data), data, size, &mgr->tm_key_e); in disk_write_crypt_sector() 27 aes_cmac(§or->mac, sector->data, sizeof(sector->data), &mgr->tm_key_e); in disk_write_crypt_sector() 28 disk_write_sector(*dst, sector, sizeof(*sector)); in disk_write_crypt_sector()
|
A D | disk_read.c | 23 struct disk_crypt_sector_plain *sector = disk_read_sector(block); in disk_read_crypt_sector() local 24 if (!sector) in disk_read_crypt_sector() 27 if (aes_cmac_verify(§or->mac, sector->data, sizeof(sector->data), &mgr->tm_key_e)) in disk_read_crypt_sector() 30 aes_decrypt_ctr(data, size, sector->iv_data, sizeof(sector->iv_data), &mgr->tm_key_e); in disk_read_crypt_sector()
|
/xen-4.10.0-shim-comet/tools/blktap2/drivers/ |
A D | log.h | 97 uint64_t sector; member 109 uint64_t sector; member
|
A D | block-log.c | 119 static int writelog_set(struct tdlog_state* s, uint64_t sector, int count) in writelog_set() argument 124 set_bit(sector + i, s->writelog); in writelog_set() 158 range->sector = i; in writelog_export() 165 range->sector, range->count); in writelog_export() 180 range->sector = 0; in writelog_export() 502 BDPRINTF("ctl: read request %"PRIu64":%u", req.sector, req.count); in ctl_kick() 505 rsp.sector = req.sector; in ctl_kick()
|
A D | block-cache.c | 159 radix_tree_index(radix_tree_node_t *node, uint64_t sector) in radix_tree_index() argument 161 return ((sector >> (node->height * RADIX_TREE_NODE_SHIFT)) & in radix_tree_index() 294 radix_tree_find_leaf(radix_tree_t *tree, uint64_t sector) in radix_tree_find_leaf() argument 305 idx = radix_tree_index(node, sector); in radix_tree_find_leaf() 320 radix_tree_add_leaf(radix_tree_t *tree, uint64_t sector, in radix_tree_add_leaf() argument 332 idx = radix_tree_index(node, sector); in radix_tree_add_leaf() 355 uint64_t sector, uint64_t sectors) in radix_tree_add_leaves() argument 360 page = radix_tree_allocate_page(tree, buf, sector, in radix_tree_add_leaves() 366 if (!radix_tree_add_leaf(tree, sector + i, in radix_tree_add_leaves()
|
A D | tapdisk-client.c | 281 range->sector, range->count); in writelog_dump() 309 range->sector, range->count, RING_FREE_REQUESTS(&wl->fring), in writelog_enqueue_requests() 314 req->sector = range->sector; in writelog_enqueue_requests() 343 BDPRINTF("ctl: read response %"PRIu64":%u", rsp.sector, rsp.count); in writelog_dequeue_responses()
|
A D | block-remus.c | 77 uint64_t sector; member 338 key = sector + i; in ramdisk_read() 357 if ((v = hashtable_search(h, §or))) { in ramdisk_write_hash() 372 *key = sector; in ramdisk_write_hash() 389 rc = ramdisk_write_hash(ramdisk->h, sector + i, in ramdisk_write() 445 char* sector; in merge_requests() local 456 if (!(sector = hashtable_search(ramdisk->prev, &start))) { in merge_requests() 850 uint64_t *sector = (uint64_t *)(header + sizeof(uint32_t)); in primary_queue_write() local 861 *sector = treq.sec; in primary_queue_write() 1206 uint64_t *sector = (uint64_t *) &header[sizeof(uint32_t)]; in server_do_wreq() local [all …]
|
A D | block-qcow.c | 68 uint64_t sector; member 988 uint64_t cluster_offset, sector, nb_sectors; in tdqcow_queue_read() local 993 sector = treq.sec; in tdqcow_queue_read() 1017 treq.sec = sector; in tdqcow_queue_read() 1023 treq.sec = sector; in tdqcow_queue_read() 1036 treq.sec = sector; in tdqcow_queue_read() 1046 sector += n; in tdqcow_queue_read() 1057 uint64_t cluster_offset, sector, nb_sectors; in tdqcow_queue_write() local 1063 sector = treq.sec; in tdqcow_queue_write() 1088 encrypt_sectors(s, sector, s->cluster_data, in tdqcow_queue_write() [all …]
|
A D | block-vhd.c | 1139 read_bitmap_cache(struct vhd_state *s, uint64_t sector, uint8_t op) in read_bitmap_cache() argument 1148 blk = sector / s->spb; in read_bitmap_cache() 1149 sec = sector % s->spb; in read_bitmap_cache() 1153 sector, op); in read_bitmap_cache() 1186 uint64_t sector, int nr_secs, int value) in read_bitmap_cache_span() argument 1196 sec = sector % s->spb; in read_bitmap_cache_span() 1197 blk = sector / s->spb; in read_bitmap_cache_span()
|
/xen-4.10.0-shim-comet/tools/libfsimage/zfs/ |
A D | fsys_zfs.c | 262 offset = (sector << SPA_MINBLOCKSHIFT) + in find_bestub() 290 uint64_t offset, sector; in zio_read_gang() local 297 sector = DVA_OFFSET_TO_PHYS_SECTOR(offset); in zio_read_gang() 344 uint64_t offset, sector; in zio_read_data() local 356 sector = DVA_OFFSET_TO_PHYS_SECTOR(offset); in zio_read_data() 357 if (devread(sector, 0, psize, buf)) in zio_read_data() 1219 sector += (VDEV_SKIP_SIZE >> SPA_MINBLOCKSHIFT); in check_pool_label() 1307 uint64_t sector; in zfs_mount() local 1321 sector = vdev_label_start(adjpl, in zfs_mount() 1325 if (devread(sector + in zfs_mount() [all …]
|
/xen-4.10.0-shim-comet/tools/libfsimage/fat/ |
A D | fsys_fat.c | 211 int sector; in fat_read() local 225 sector = FAT_SUPER->fat_offset in fat_read() 227 if (!devread (ffi, sector, 0, FAT_CACHE_SIZE, (char*) FAT_BUF)) in fat_read() 252 sector = FAT_SUPER->data_offset + in fat_read() 261 devread(ffi, sector, offset, size, buf); in fat_read()
|
/xen-4.10.0-shim-comet/tools/blktap2/vhd/lib/ |
A D | vhd-util-read.c | 320 uint64_t sector, int count, int hex) in vhd_print_logical_to_physical() argument 326 if (vhd_sectors_to_bytes(sector + count) > vhd->footer.curr_size) { in vhd_print_logical_to_physical() 328 conv(hex, sector + count)); in vhd_print_logical_to_physical() 333 cur = sector + i; in vhd_print_logical_to_physical() 430 vhd_test_bitmap(vhd_context_t *vhd, uint64_t sector, int count, int hex) in vhd_test_bitmap() argument 437 if (vhd_sectors_to_bytes(sector + count) > vhd->footer.curr_size) { in vhd_test_bitmap() 438 printf("sector %s past end of file\n", conv(hex, sector)); in vhd_test_bitmap() 446 cur = sector + i; in vhd_test_bitmap()
|
A D | libvhd.c | 2289 return sector; in vhd_offset() 2295 block = sector / ctx->spb; in vhd_offset() 2300 ctx->bm_secs + (sector % ctx->spb); in vhd_offset() 2997 char *buf, uint64_t sector, uint32_t secs) in __vhd_io_dynamic_read_link() argument 3007 blk = sector / ctx->spb; in __vhd_io_dynamic_read_link() 3008 sec = sector % ctx->spb; in __vhd_io_dynamic_read_link() 3041 sector += cnt; in __vhd_io_dynamic_read_link() 3247 char *buf, uint64_t sector, uint32_t secs) in __vhd_io_dynamic_write() argument 3268 blk = sector / ctx->spb; in __vhd_io_dynamic_write() 3269 sec = sector % ctx->spb; in __vhd_io_dynamic_write() [all …]
|
/xen-4.10.0-shim-comet/stubdom/grub.patches/ |
A D | 00cvs | 732 - int sector, int nsec, int segment) 733 + unsigned int sector, int nsec, int segment) 1083 - int sector, int nsec, int segment) 1084 + unsigned int sector, int nsec, int segment) 1147 - int sector_num = sector; 1148 + unsigned int sector_num = sector; 1165 -rawwrite (int drive, int sector, char *buf) 1168 if (sector == 0) 1174 -devwrite (int sector, int sector_count, char *buf) 1252 - int sector, int nsec, int segment); [all …]
|
A D | 99minios | 1560 - sector += (byte_offset >> sector_size_lg2); 1563 : "=r"(sector) 1565 "0"(sector)); 1566 + sector += (byte_offset >> sector_size_lg2);
|
A D | 61btrfs.diff | 1818 + unsigned long dev_len, int sector, 1821 + if (sector < 0 1822 + || ((sector + ((byte_offset + byte_len - 1) >> SECTOR_BITS)) 1827 + sector += byte_offset >> SECTOR_BITS; 1831 + printf ("<%d, %d, %d>", sector, byte_offset, byte_len); 1833 + return rawread(drive, part + sector, byte_offset, 3364 + *start_sector = 1; /* reserve first sector for stage1 */
|
/xen-4.10.0-shim-comet/xen/arch/x86/boot/ |
A D | edd.S | 138 movw $0x0201, %ax # read 1 sector 140 movw $1, %cx # cylinder 0, sector 0
|
/xen-4.10.0-shim-comet/stubdom/grub/ |
A D | mini-os.c | 116 unsigned int sector, int nsec, int segment) in biosdisk() argument 129 if (sector + nsec > geometry->total_sectors) in biosdisk() 135 aiocb.aio_offset = (off_t)sector * blk_info[i].sector_size; in biosdisk()
|
/xen-4.10.0-shim-comet/tools/libfsimage/common/ |
A D | fsimage_grub.c | 158 fsig_devread(fsi_file_t *ffi, unsigned int sector, unsigned int offset, in fsig_devread() argument 166 off = ffi->ff_fsi->f_off + ((off_t)sector * SECTOR_SIZE) + offset; in fsig_devread()
|
/xen-4.10.0-shim-comet/tools/firmware/rombios/ |
A D | rombios.c | 2994 if (sector == 0) { 3143 if (sector == 0) { 5430 Bit16u cylinder, head, sector; 6336 if ((sector > vspt) 6467 Bit16u sector; 6613 (sector > hd_sectors) || 6645 outb(0x01f3, sector); 6786 outb(0x01f3, sector); 7416 sector = GET_CL(); 7518 outb(0x03f5, sector); [all …]
|
/xen-4.10.0-shim-comet/tools/blktap2/ |
A D | README | 276 sectors), sector_size (the size of each sector in bytes, and set
|