Home
last modified time | relevance | path

Searched refs:aligned_offset (Results 1 – 25 of 30) sorted by relevance

12

/aosp_15_r20/bootable/libbootloader/gbl/libutils/src/
H A Dlib.rs45 let aligned_offset = (SafeNum::from(addr).round_up(alignment) - addr).try_into()?; in aligned_subslice() localVariable
46 Ok(bytes.get_mut(aligned_offset..).ok_or(Error::BufferTooSmall(Some(aligned_offset)))?) in aligned_subslice()
58 pub fn aligned_offset<T>(buffer: &[u8], alignment: T) -> Result<usize> in aligned_offset() function
/aosp_15_r20/external/icing/icing/legacy/index/
H A Dicing-mmapper.cc54 uint64_t aligned_offset = in DoMapping() local
56 size_t alignment_adjustment = location - aligned_offset; in DoMapping()
61 mmap_result_ = mmap(nullptr, mmap_len, prot, flags_, fd, aligned_offset); in DoMapping()
/aosp_15_r20/external/libtextclassifier/native/utils/memory/
H A Dmmap.cc87 const int64 aligned_offset = (segment_offset / kPageSize) * kPageSize; in MmapFile() local
88 const int64 alignment_shift = segment_offset - aligned_offset; in MmapFile()
111 aligned_offset); in MmapFile()
/aosp_15_r20/external/cronet/base/memory/
H A Dplatform_shared_memory_region.cc69 uint64_t aligned_offset = in MapAt() local
72 static_cast<size_t>(offset - aligned_offset); in MapAt()
75 auto result = mapper->Map(GetPlatformHandle(), write_allowed, aligned_offset, in MapAt()
/aosp_15_r20/external/mesa3d/src/intel/tools/
H A Dintel_hang_replay.c506 uint64_t aligned_offset = ROUND_DOWN_TO(bo->file_offset, 4096); in main() local
507 uint64_t remaining_length = file_stats.st_size - aligned_offset; in main()
509 file_fd, aligned_offset); in main()
515 (bo->file_offset - aligned_offset), (*addr - bo->offset)); in main()
520 … map + (bo->file_offset - aligned_offset) + (*addr - bo->offset), in main()
526 … map + (bo->file_offset - aligned_offset) + (*addr - bo->offset), in main()
/aosp_15_r20/art/dex2oat/linker/arm/
H A Drelative_patcher_arm_base.cc208 uint32_t aligned_offset = CompiledMethod::AlignCode(offset, instruction_set_); in WriteThunks() local
210 pending_thunks_.front()->GetPendingOffset() == aligned_offset) { in WriteThunks()
212 uint32_t aligned_code_delta = aligned_offset - offset; in WriteThunks()
219 offset = aligned_offset + pending_thunks_.front()->CodeSize(); in WriteThunks()
228 aligned_offset = CompiledMethod::AlignCode(offset, instruction_set_); in WriteThunks()
230 DCHECK(pending_thunks_.empty() || pending_thunks_.front()->GetPendingOffset() > aligned_offset); in WriteThunks()
/aosp_15_r20/external/libdrm/radeon/
H A Dradeon_surface.c1626 uint64_t aligned_offset = offset; in si_surface_init_2d() local
1654 if (aligned_offset) { in si_surface_init_2d()
1655 aligned_offset = ALIGN(aligned_offset, alignment); in si_surface_init_2d()
1662 … si_surf_minify_2d(surf, level+i, bpe, i, slice_pt, mtilew, mtileh, 1, mtileb, aligned_offset); in si_surface_init_2d()
1684 aligned_offset = offset = surf->bo_size; in si_surface_init_2d()
1686 aligned_offset = ALIGN(aligned_offset, surf->bo_alignment); in si_surface_init_2d()
2224 uint64_t aligned_offset = offset; in cik_surface_init_2d() local
2257 if (aligned_offset) { in cik_surface_init_2d()
2258 aligned_offset = ALIGN(aligned_offset, alignment); in cik_surface_init_2d()
2265 … si_surf_minify_2d(surf, level+i, bpe, i, slice_pt, mtilew, mtileh, 1, mtileb, aligned_offset); in cik_surface_init_2d()
[all …]
/aosp_15_r20/external/mesa3d/src/intel/vulkan/
H A Danv_nir_lower_ubo_loads.c56 uint64_t aligned_offset = offset - suboffset; in lower_ubo_load_instr() local
61 nir_def *addr = nir_iadd_imm(b, base_addr, aligned_offset + i * 64); in lower_ubo_load_instr()
69 nir_igt_imm(b, bound, aligned_offset + i * 64 + 63), in lower_ubo_load_instr()
/aosp_15_r20/external/mesa3d/src/intel/vulkan_hasvk/
H A Danv_nir_lower_ubo_loads.c56 uint64_t aligned_offset = offset - suboffset; in lower_ubo_load_instr() local
61 nir_def *addr = nir_iadd_imm(b, base_addr, aligned_offset + i * 64); in lower_ubo_load_instr()
69 nir_igt_imm(b, bound, aligned_offset + i * 64 + 63), in lower_ubo_load_instr()
/aosp_15_r20/external/tflite-support/tensorflow_lite_support/cc/task/core/
H A Dexternal_file_handler.cc47 int64 aligned_offset = offset; in GetPageSizeAlignedOffset() local
50 aligned_offset = offset / page_size * page_size; in GetPageSizeAlignedOffset()
52 return aligned_offset; in GetPageSizeAlignedOffset()
/aosp_15_r20/external/libtextclassifier/native/lang_id/common/file/
H A Dmmap.cc208 const size_t aligned_offset = (offset_in_bytes / kPageSize) * kPageSize; in MmapFile() local
209 const size_t alignment_shift = offset_in_bytes - aligned_offset; in MmapFile()
231 aligned_offset); in MmapFile()
/aosp_15_r20/external/mesa3d/src/imagination/vulkan/
H A Dpvr_bo.c584 uint32_t aligned_offset = ALIGN_POT(allocator->next_offset, align); in pvr_bo_suballoc() local
586 if (aligned_offset + aligned_size <= allocator->bo->bo->size) { in pvr_bo_suballoc()
590 PVR_DEV_ADDR_OFFSET(allocator->bo->vma->dev_addr, aligned_offset); in pvr_bo_suballoc()
591 suballoc_bo->offset = aligned_offset; in pvr_bo_suballoc()
594 allocator->next_offset = aligned_offset + aligned_size; in pvr_bo_suballoc()
/aosp_15_r20/external/llvm/utils/testgen/
H A Dmc-bundling-x86-gen.py88 aligned_offset = (inst_orig_offset + instlen) & ~(BUNDLE_SIZE - 1)
89 print_check(aligned_offset)
/aosp_15_r20/art/dex2oat/linker/arm64/
H A Drelative_patcher_arm64.cc172 uint32_t aligned_offset = CompiledMethod::AlignCode(offset, InstructionSet::kArm64); in WriteThunks() local
179 CHECK_EQ(entry.second, aligned_offset + i * kAdrpThunkSize); in WriteThunks()
182 uint32_t aligned_code_delta = aligned_offset - offset; in WriteThunks()
189 offset = aligned_offset + current_method_thunks_.size(); in WriteThunks()
/aosp_15_r20/system/core/fs_mgr/libsnapshot/snapuserd/user-space-merge/
H A Dread_worker.cpp625 loff_t aligned_offset = requested_offset; in ReadUnalignedSector() local
627 aligned_offset += BLOCK_SZ - 1; in ReadUnalignedSector()
628 aligned_offset &= ~(BLOCK_SZ - 1); in ReadUnalignedSector()
630 size_t diff_size = aligned_offset - requested_offset; in ReadUnalignedSector()
/aosp_15_r20/external/crosvm/devices/src/virtio/snd/vios_backend/
H A Dshm_streams.rs373 let aligned_offset = offset & !(base::pagesize() - 1); in mmap_buffer() localVariable
374 let offset_from_mapping_start = offset - aligned_offset; in mmap_buffer()
378 .offset(aligned_offset as u64) in mmap_buffer()
/aosp_15_r20/system/unwinding/libunwindstack/
H A DMemory.cpp291 uint64_t aligned_offset = offset & ~(getpagesize() - 1); in Init() local
292 if (aligned_offset > static_cast<uint64_t>(buf.st_size) || in Init()
297 size_ = buf.st_size - aligned_offset; in Init()
303 void* map = mmap(nullptr, size_, PROT_READ, MAP_PRIVATE, fd, aligned_offset); in Init()
/aosp_15_r20/art/libdexfile/dex/
H A Ddex_file_verifier.cc293 bool CheckPadding(uint32_t aligned_offset, DexFile::MapItemType type);
998 bool DexFileVerifier::CheckPadding(uint32_t aligned_offset, in CheckPadding() argument
1001 if (offset < aligned_offset) { in CheckPadding()
1002 if (!CheckListSize(OffsetToPtr(offset), aligned_offset - offset, sizeof(uint8_t), "section")) { in CheckPadding()
1006 ptr_ += aligned_offset - offset; in CheckPadding()
1009 while (offset < aligned_offset) { in CheckPadding()
2154 size_t aligned_offset = (PtrToOffset(ptr_) + alignment_mask) & ~alignment_mask; in CheckIntraSectionIterate() local
2157 if (!CheckPadding(aligned_offset, kType)) { in CheckIntraSectionIterate()
2292 if (aligned_offset == 0u) { in CheckIntraSectionIterate()
2296 DCHECK(offset_to_type_map_.find(aligned_offset) == offset_to_type_map_.end()); in CheckIntraSectionIterate()
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/memmap2/src/
Dwindows.rs163 let aligned_offset = offset - alignment as u64; in new() localVariable
191 (aligned_offset >> 16 >> 16) as DWORD, in new()
192 (aligned_offset & 0xffffffff) as DWORD, in new()
Dunix.rs60 let aligned_offset = offset - alignment; in new() localVariable
71 aligned_offset as off_t, in new()
/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/skrifa-0.15.5/src/outline/glyf/
H A Dmemory.rs90 let aligned_offset = aligned_ptr - base_ptr; in alloc_slice() localVariable
91 let buf = buf.get_mut(aligned_offset..)?; in alloc_slice()
/aosp_15_r20/external/eigen/Eigen/src/SparseLU/
H A DSparseLU_kernel_bmod.h68 Index aligned_offset = internal::first_default_aligned(tempv.data()+segsize, PacketSize); in run() local
70 …Map<Matrix<Scalar,Dynamic,1>, 0, OuterStride<> > l(tempv.data()+segsize+aligned_offset+aligned_wit… in run()
/aosp_15_r20/external/trusty/lk/kernel/vm/
Dpmm.c363 uint aligned_offset = (rounded_base - a->base) / PAGE_SIZE; in pmm_arena_find_free_run() local
364 uint start = aligned_offset; in pmm_arena_find_free_run()
381 start = round_up(start - aligned_offset + i + 1, in pmm_arena_find_free_run()
383 aligned_offset; in pmm_arena_find_free_run()
/aosp_15_r20/bootable/libbootloader/gbl/libstorage/src/
H A Dalgorithm.rs57 let aligned_offset = SafeNum::from(offset) + aligned_read; in read_aligned_offset_and_buffer() localVariable
58 read_aligned_all(io, aligned_offset.try_into()?, block_scratch).await?; in read_aligned_offset_and_buffer()
/aosp_15_r20/bootable/libbootloader/gbl/libgbl/src/fuchsia_boot/
H A Dmod.rs300 use libutils::aligned_offset;
418 let off = aligned_offset(&self.buffer, self.alignment).unwrap(); in deref()
425 let off = aligned_offset(&self.buffer, self.alignment).unwrap(); in deref_mut()

12