Lines Matching refs:lba
172 uint64_t lba, uint8_t count, uint8_t op_code) in ebios_setup() argument
191 dapa->lba = lba; in ebios_setup()
212 uint64_t lba, uint8_t count, uint8_t op_code) in chs_setup() argument
227 s = lba % diskinfo->spt; in chs_setup()
228 t = lba / diskinfo->spt; in chs_setup()
256 void *disk_read_sectors(const struct disk_info *const diskinfo, uint64_t lba, in disk_read_sectors() argument
266 if (!count || count > maxcnt || lba + count > diskinfo->lbacnt) in disk_read_sectors()
272 buf = ebios_setup(diskinfo, &inreg, lba, count, EBIOS_READ_CODE); in disk_read_sectors()
274 buf = chs_setup(diskinfo, &inreg, lba, count, CHS_READ_CODE); in disk_read_sectors()
302 int disk_write_sectors(const struct disk_info *const diskinfo, uint64_t lba, in disk_write_sectors() argument
312 if (!count || count > maxcnt || lba + count > diskinfo->lbacnt) in disk_write_sectors()
318 buf = ebios_setup(diskinfo, &inreg, lba, count, EBIOS_WRITE_CODE); in disk_write_sectors()
320 buf = chs_setup(diskinfo, &inreg, lba, count, CHS_WRITE_CODE); in disk_write_sectors()
350 uint64_t lba, const void *buf, uint8_t count) in disk_write_verify_sectors() argument
355 rv = disk_write_sectors(diskinfo, lba, buf, count); in disk_write_verify_sectors()
358 rb = disk_read_sectors(diskinfo, lba, count); in disk_write_verify_sectors()