Lines Matching refs:lba
73 u32 media_id, u64 lba, unsigned long buffer_size, in efi_disk_rw_blocks() argument
86 lba += diskobj->offset; in efi_disk_rw_blocks()
89 blocks, lba, blksz, direction); in efi_disk_rw_blocks()
96 n = blk_dread(desc, lba, blocks, buffer); in efi_disk_rw_blocks()
98 n = blk_dwrite(desc, lba, blocks, buffer); in efi_disk_rw_blocks()
112 u32 media_id, u64 lba, efi_uintn_t buffer_size, in efi_disk_read_blocks() argument
128 if (lba * this->media->block_size + buffer_size > in efi_disk_read_blocks()
134 r = efi_disk_read_blocks(this, media_id, lba, in efi_disk_read_blocks()
138 return efi_disk_read_blocks(this, media_id, lba + in efi_disk_read_blocks()
147 EFI_ENTRY("%p, %x, %llx, %zx, %p", this, media_id, lba, in efi_disk_read_blocks()
150 r = efi_disk_rw_blocks(this, media_id, lba, buffer_size, real_buffer, in efi_disk_read_blocks()
161 u32 media_id, u64 lba, efi_uintn_t buffer_size, in efi_disk_write_blocks() argument
179 if (lba * this->media->block_size + buffer_size > in efi_disk_write_blocks()
185 r = efi_disk_write_blocks(this, media_id, lba, in efi_disk_write_blocks()
189 return efi_disk_write_blocks(this, media_id, lba + in efi_disk_write_blocks()
198 EFI_ENTRY("%p, %x, %llx, %zx, %p", this, media_id, lba, in efi_disk_write_blocks()
205 r = efi_disk_rw_blocks(this, media_id, lba, buffer_size, real_buffer, in efi_disk_write_blocks()
312 if (!desc->lba) in efi_disk_add_dev()
367 diskobj->media.last_block = desc->lba - offset; in efi_disk_add_dev()