Lines Matching refs:buffer_size
79 u32 media_id, u64 lba, unsigned long buffer_size, in efi_disk_rw_blocks() argument
91 blocks = buffer_size / blksz; in efi_disk_rw_blocks()
98 if (buffer_size & (blksz - 1)) in efi_disk_rw_blocks()
133 u32 media_id, u64 lba, efi_uintn_t buffer_size, in efi_disk_read_blocks() argument
150 if (lba * this->media->block_size + buffer_size > in efi_disk_read_blocks()
155 if (buffer_size > EFI_LOADER_BOUNCE_BUFFER_SIZE) { in efi_disk_read_blocks()
162 buffer_size - EFI_LOADER_BOUNCE_BUFFER_SIZE, in efi_disk_read_blocks()
170 buffer_size, buffer); in efi_disk_read_blocks()
172 r = efi_disk_rw_blocks(this, media_id, lba, buffer_size, real_buffer, in efi_disk_read_blocks()
177 memcpy(buffer, real_buffer, buffer_size); in efi_disk_read_blocks()
199 u32 media_id, u64 lba, efi_uintn_t buffer_size, in efi_disk_write_blocks() argument
218 if (lba * this->media->block_size + buffer_size > in efi_disk_write_blocks()
223 if (buffer_size > EFI_LOADER_BOUNCE_BUFFER_SIZE) { in efi_disk_write_blocks()
230 buffer_size - EFI_LOADER_BOUNCE_BUFFER_SIZE, in efi_disk_write_blocks()
238 buffer_size, buffer); in efi_disk_write_blocks()
242 memcpy(real_buffer, buffer, buffer_size); in efi_disk_write_blocks()
244 r = efi_disk_rw_blocks(this, media_id, lba, buffer_size, real_buffer, in efi_disk_write_blocks()