Searched refs:blkfront_fd (Results 1 – 2 of 2) sorted by relevance
/xen-4.10.0-shim-comet/stubdom/vtpmmgr/ |
A D | disk_io.c | 22 static int blkfront_fd = -1; variable 29 blkfront_fd = blkfront_open(blkdev); in vtpm_storage_init() 30 if (blkfront_fd < 0) in vtpm_storage_init() 40 lseek(blkfront_fd, pos * 4096, SEEK_SET); in disk_read_sector() 41 rc = read(blkfront_fd, disk_staging_buf, 4096); in disk_read_sector() 53 lseek(blkfront_fd, pos * 4096, SEEK_SET); in disk_write_sector() 62 rc = write(blkfront_fd, buf, 4096); in disk_write_sector()
|
/xen-4.10.0-shim-comet/stubdom/vtpm/ |
A D | vtpmblk.c | 28 static int blkfront_fd = -1; variable 44 if((blkfront_fd = blkfront_open(blkdev)) == -1) { in init_vtpmblk() 60 close(blkfront_fd); in shutdown_vtpmblk() 61 blkfront_fd = -1; in shutdown_vtpmblk() 78 lseek(blkfront_fd, slot * slot_size, SEEK_SET); in write_vtpmblk_raw() 79 if((rc = write(blkfront_fd, (uint8_t*)&lenbuf, 4)) != 4) { in write_vtpmblk_raw() 83 if((rc = write(blkfront_fd, data, data_length)) != data_length) { in write_vtpmblk_raw() 98 lseek(blkfront_fd, slot * slot_size, SEEK_SET); in read_vtpmblk_raw() 99 if(( rc = read(blkfront_fd, (uint8_t*)&lenbuf, 4)) != 4) { in read_vtpmblk_raw() 114 if((rc = read(blkfront_fd, *data, *data_length)) != *data_length) { in read_vtpmblk_raw()
|
Completed in 3 milliseconds