Lines Matching refs:disk_fd
644 device->disk_fd = -1; in init_device()
667 if (read(device->disk_fd, device->boot_sector, SECTOR_SIZE) in init_device()
674 if (efi_alloc_and_read(device->disk_fd, &vtoc) >= 0) { in init_device()
711 if (device->disk_fd != -1) in cleanup_device()
712 (void) close(device->disk_fd); in cleanup_device()
716 device->disk_fd = -1; in cleanup_device()
741 if (efi_alloc_and_read(device->disk_fd, &vtoc) < 0) in get_start_sector()
913 device->disk_fd = open(device->path, O_RDONLY); in get_disk_fd()
915 device->disk_fd = open(device->path, O_RDWR); in get_disk_fd()
930 if (device->disk_fd == -1) { in get_disk_fd()
1055 if (write_out(device->disk_fd, install->stage1_buf, in write_stage1()