Home
last modified time | relevance | path

Searched refs:sector (Results 1 – 14 of 14) sorted by relevance

/xen/tools/libfsimage/iso9660/
A Dfsys_iso9660.c70 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 Ddisk_io.c35 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 Ddisk_io.h4 void* disk_read_sector(sector_t sector);
5 void disk_write_sector(sector_t sector, void* buf, size_t siz);
A Ddisk_write.c24 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(&sector->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 Ddisk_read.c23 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(&sector->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 Dfsys_zfs.c262 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 D00cvs372 - 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 D99minios1560 - sector += (byte_offset >> sector_size_lg2);
1563 : "=r"(sector)
1565 "0"(sector));
1566 + sector += (byte_offset >> sector_size_lg2);
A D61btrfs.diff1807 + 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 Dfsys_fat.c211 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 Dedd.S138 movw $0x0201, %ax # read 1 sector
140 movw $1, %cx # cylinder 0, sector 0
/xen/stubdom/grub/
A Dmini-os.c116 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 Dfsimage_grub.c158 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 Drombios.c2994 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 …]

Completed in 29 milliseconds