Lines Matching refs:disk_fd
637 device->disk_fd = -1; in init_device()
660 if (read(device->disk_fd, device->boot_sector, SECTOR_SIZE) in init_device()
667 if (efi_alloc_and_read(device->disk_fd, &vtoc) > 0) { in init_device()
704 if (device->disk_fd != -1) in cleanup_device()
705 (void) close(device->disk_fd); in cleanup_device()
709 device->disk_fd = -1; in cleanup_device()
734 if (efi_alloc_and_read(device->disk_fd, &vtoc) <= 0) in get_start_sector()
906 device->disk_fd = open(device->path, O_RDONLY); in get_disk_fd()
908 device->disk_fd = open(device->path, O_RDWR); in get_disk_fd()
923 if (device->disk_fd == -1) { in get_disk_fd()
1048 if (write_out(device->disk_fd, install->stage1_buf, in write_stage1()