/xen/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/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/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/stubdom/grub.patches/ |
A D | 00cvs | 372 - int sector, int nsec, int segment) 373 + unsigned int sector, int nsec, int segment) 723 - int sector, int nsec, int segment) 724 + unsigned int sector, int nsec, int segment) 787 - int sector_num = sector; 788 + unsigned int sector_num = sector; 805 -rawwrite (int drive, int sector, char *buf) 808 if (sector == 0) 814 -devwrite (int sector, int sector_count, char *buf) 892 - 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 | 1807 + unsigned long dev_len, int sector, 1810 + if (sector < 0 1811 + || ((sector + ((byte_offset + byte_len - 1) >> SECTOR_BITS)) 1816 + sector += byte_offset >> SECTOR_BITS; 1820 + printf ("<%d, %d, %d>", sector, byte_offset, byte_len); 1822 + return rawread(drive, part + sector, byte_offset, 3353 + *start_sector = 1; /* reserve first sector for stage1 */
|
/xen/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/xen/arch/x86/boot/ |
A D | edd.S | 138 movw $0x0201, %ax # read 1 sector 140 movw $1, %cx # cylinder 0, sector 0
|
/xen/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/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/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 …]
|