/foundation/multimedia/media_foundation/src/common/ |
H A D | share_memory.cpp | 61 size_t start = 0; in Write() local 63 start = size; in Write() 65 start = std::min(position, capacity); in Write() 67 size_t length = std::min(writeSize, capacity - start); in Write() 68 if (!sharedMem_->WriteToAshmem(in, (int32_t)writeSize, (int32_t)start)) { in Write() 72 size = start + length; in Write() 78 size_t start = 0; in Read() local 81 start = std::min(position, size); in Read() 82 maxLength = size - start; in Read() 85 if (memcpy_s(out, length, sharedMem_->ReadFromAshmem((int32_t)readSize, (int32_t)start), lengt in Read() [all...] |
/foundation/multimedia/media_foundation/engine/plugin/common/ |
H A D | share_memory.cpp | 55 size_t start = 0; in Write() local 57 start = size; in Write() 59 start = std::min(position, capacity); in Write() 61 size_t length = std::min(writeSize, capacity - start); in Write() 62 if (!sharedMem_->WriteToAshmem(in, (int32_t)writeSize, (int32_t)start)) { in Write() 66 size = start + length; in Write() 72 size_t start = 0; in Read() local 75 start = std::min(position, size); in Read() 76 maxLength = size - start; in Read() 79 if (memcpy_s(out, length, sharedMem_->ReadFromAshmem((int32_t)readSize, (int32_t)start), lengt in Read() [all...] |
/kernel/linux/linux-5.10/drivers/firmware/efi/ |
H A D | fake_mem.c | 30 if (m1->range.start < m2->range.start) in cmp_fake_mem() 32 if (m1->range.start > m2->range.start) in cmp_fake_mem() 83 u64 start = 0, mem_size = 0, attribute = 0; in setup_fake_mem() local 92 start = memparse(p+1, &p); in setup_fake_mem() 104 efi_fake_mems[nr_fake_mem].range.start = start; in setup_fake_mem() 105 efi_fake_mems[nr_fake_mem].range.end = start + mem_size - 1; in setup_fake_mem() 118 efi_fake_mems[i].attribute, efi_fake_mems[i].range.start, in setup_fake_mem() [all...] |
/kernel/linux/linux-5.10/arch/m68k/atari/ |
H A D | stram.c | 97 stram_pool.start = (resource_size_t)memblock_alloc_low(pool_size, in atari_stram_reserve_pages() 99 if (!stram_pool.start) in atari_stram_reserve_pages() 103 stram_pool.end = stram_pool.start + pool_size - 1; in atari_stram_reserve_pages() 125 stram_pool.start = PAGE_SIZE; in atari_stram_map_pages() 126 stram_pool.end = stram_pool.start + pool_size - 1; in atari_stram_map_pages() 128 stram_virt_offset = (unsigned long) ioremap(stram_pool.start, in atari_stram_map_pages() 129 resource_size(&stram_pool)) - stram_pool.start; in atari_stram_map_pages() 179 return atari_stram_to_virt(res->start); in atari_stram_alloc() 186 unsigned long start = atari_stram_to_phys(addr); in atari_stram_free() local 190 res = lookup_resource(&stram_pool, start); in atari_stram_free() [all...] |
/kernel/linux/linux-5.10/drivers/firmware/efi/libstub/ |
H A D | relocate.c | 49 u64 start, end; in efi_low_alloc_above() local 63 start = desc->phys_addr; in efi_low_alloc_above() 64 end = start + desc->num_pages * EFI_PAGE_SIZE; in efi_low_alloc_above() 66 if (start < min) in efi_low_alloc_above() 67 start = min; in efi_low_alloc_above() 69 start = round_up(start, align); in efi_low_alloc_above() 70 if ((start + size) > end) in efi_low_alloc_above() 74 EFI_LOADER_DATA, nr_pages, &start); in efi_low_alloc_above() 76 *addr = start; in efi_low_alloc_above() [all...] |
/kernel/linux/linux-6.6/arch/m68k/atari/ |
H A D | stram.c | 97 stram_pool.start = (resource_size_t)memblock_alloc_low(pool_size, in atari_stram_reserve_pages() 99 if (!stram_pool.start) in atari_stram_reserve_pages() 103 stram_pool.end = stram_pool.start + pool_size - 1; in atari_stram_reserve_pages() 125 stram_pool.start = PAGE_SIZE; in atari_stram_map_pages() 126 stram_pool.end = stram_pool.start + pool_size - 1; in atari_stram_map_pages() 128 stram_virt_offset = (unsigned long) ioremap(stram_pool.start, in atari_stram_map_pages() 129 resource_size(&stram_pool)) - stram_pool.start; in atari_stram_map_pages() 179 return atari_stram_to_virt(res->start); in atari_stram_alloc() 186 unsigned long start = atari_stram_to_phys(addr); in atari_stram_free() local 190 res = lookup_resource(&stram_pool, start); in atari_stram_free() [all...] |
/kernel/linux/linux-6.6/arch/powerpc/include/asm/book3s/64/ |
H A D | tlbflush.h | 48 unsigned long start, unsigned long end) in flush_pmd_tlb_range() 51 radix__flush_pmd_tlb_range(vma, start, end); in flush_pmd_tlb_range() 56 unsigned long start, unsigned long end) in flush_pud_tlb_range() 59 radix__flush_pud_tlb_range(vma, start, end); in flush_pud_tlb_range() 64 unsigned long start, in flush_hugetlb_tlb_range() 68 radix__flush_hugetlb_tlb_range(vma, start, end); in flush_hugetlb_tlb_range() 72 unsigned long start, unsigned long end) in flush_tlb_range() 75 radix__flush_tlb_range(vma, start, end); in flush_tlb_range() 78 static inline void flush_tlb_kernel_range(unsigned long start, in flush_tlb_kernel_range() argument 82 radix__flush_tlb_kernel_range(start, en in flush_tlb_kernel_range() 47 flush_pmd_tlb_range(struct vm_area_struct *vma, unsigned long start, unsigned long end) flush_pmd_tlb_range() argument 55 flush_pud_tlb_range(struct vm_area_struct *vma, unsigned long start, unsigned long end) flush_pud_tlb_range() argument 63 flush_hugetlb_tlb_range(struct vm_area_struct *vma, unsigned long start, unsigned long end) flush_hugetlb_tlb_range() argument 71 flush_tlb_range(struct vm_area_struct *vma, unsigned long start, unsigned long end) flush_tlb_range() argument [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/seccomp/ |
H A D | seccomp_benchmark.c | 21 struct timespec start, finish; in timing() local 26 assert(clock_gettime(clk_id, &start) == 0); in timing() 33 i = finish.tv_sec - start.tv_sec; in timing() 35 i += finish.tv_nsec - start.tv_nsec; in timing() 39 start.tv_sec, start.tv_nsec, in timing() 47 struct timespec start, finish; in calibrate() local 56 assert(clock_gettime(CLOCK_MONOTONIC, &start) == 0); in calibrate() 65 i = finish.tv_sec - start.tv_sec; in calibrate() 67 i += finish.tv_nsec - start in calibrate() [all...] |
/kernel/linux/linux-5.10/mm/ |
H A D | memtest.c | 37 u64 *p, *start, *end; in memtest() local 43 start = __va(start_phys_aligned); in memtest() 44 end = start + (size - (start_phys_aligned - start_phys)) / incr; in memtest() 48 for (p = start; p < end; p++) in memtest() 51 for (p = start; p < end; p++, start_phys_aligned += incr) { in memtest() 66 static void __init do_one_pass(u64 pattern, phys_addr_t start, phys_addr_t end) in do_one_pass() argument 73 this_start = clamp(this_start, start, end); in do_one_pass() 74 this_end = clamp(this_end, start, end); in do_one_pass() 100 void __init early_memtest(phys_addr_t start, phys_addr_t end) in early_memtest() argument 111 do_one_pass(patterns[idx], start, en in early_memtest() [all...] |
/kernel/linux/linux-5.10/fs/squashfs/ |
H A D | xattr_id.c | 65 u64 start, end; in squashfs_read_xattr_id_table() local 87 * match the table start and end points in squashfs_read_xattr_id_table() 89 start = table_start + sizeof(*id_table); in squashfs_read_xattr_id_table() 92 if (len != (end - start)) in squashfs_read_xattr_id_table() 95 table = squashfs_read_table(sb, start, len); in squashfs_read_xattr_id_table() 109 start = le64_to_cpu(table[n]); in squashfs_read_xattr_id_table() 112 if (start >= end || (end - start) > in squashfs_read_xattr_id_table() 119 start = le64_to_cpu(table[indexes - 1]); in squashfs_read_xattr_id_table() 120 if (start > in squashfs_read_xattr_id_table() [all...] |
H A D | export.c | 44 u64 start; in squashfs_inode_lookup() local 53 start = le64_to_cpu(msblk->inode_lookup_table[blk]); in squashfs_inode_lookup() 55 err = squashfs_read_metadata(sb, &ino, &start, &offset, sizeof(ino)); in squashfs_inode_lookup() 122 u64 start, end; in squashfs_read_inode_lookup_table() local 134 * match the table start and end points in squashfs_read_inode_lookup_table() 152 start = le64_to_cpu(table[n]); in squashfs_read_inode_lookup_table() 155 if (start >= end in squashfs_read_inode_lookup_table() 156 || (end - start) > in squashfs_read_inode_lookup_table() 163 start = le64_to_cpu(table[indexes - 1]); in squashfs_read_inode_lookup_table() 164 if (start > in squashfs_read_inode_lookup_table() [all...] |
/kernel/linux/linux-6.6/fs/btrfs/ |
H A D | extent_map.h | 36 u64 start; member 75 if (em->start + em->len < em->start) in extent_map_end() 77 return em->start + em->len; in extent_map_end() 89 u64 start, u64 len); 93 int split_extent_map(struct btrfs_inode *inode, u64 start, u64 len, u64 pre, 100 int unpin_extent_cache(struct extent_map_tree *tree, u64 start, u64 len, u64 gen); 103 u64 start, u64 len); 106 struct extent_map **em_in, u64 start, u64 len); 108 u64 start, u6 [all...] |
/kernel/linux/linux-6.6/fs/squashfs/ |
H A D | export.c | 44 u64 start; in squashfs_inode_lookup() local 53 start = le64_to_cpu(msblk->inode_lookup_table[blk]); in squashfs_inode_lookup() 55 err = squashfs_read_metadata(sb, &ino, &start, &offset, sizeof(ino)); in squashfs_inode_lookup() 122 u64 start, end; in squashfs_read_inode_lookup_table() local 134 * match the table start and end points in squashfs_read_inode_lookup_table() 152 start = le64_to_cpu(table[n]); in squashfs_read_inode_lookup_table() 155 if (start >= end in squashfs_read_inode_lookup_table() 156 || (end - start) > in squashfs_read_inode_lookup_table() 163 start = le64_to_cpu(table[indexes - 1]); in squashfs_read_inode_lookup_table() 164 if (start > in squashfs_read_inode_lookup_table() [all...] |
H A D | xattr_id.c | 65 u64 start, end; in squashfs_read_xattr_id_table() local 87 * match the table start and end points in squashfs_read_xattr_id_table() 89 start = table_start + sizeof(*id_table); in squashfs_read_xattr_id_table() 92 if (len != (end - start)) in squashfs_read_xattr_id_table() 95 table = squashfs_read_table(sb, start, len); in squashfs_read_xattr_id_table() 109 start = le64_to_cpu(table[n]); in squashfs_read_xattr_id_table() 112 if (start >= end || (end - start) > in squashfs_read_xattr_id_table() 119 start = le64_to_cpu(table[indexes - 1]); in squashfs_read_xattr_id_table() 120 if (start > in squashfs_read_xattr_id_table() [all...] |
/kernel/linux/linux-6.6/drivers/firmware/efi/libstub/ |
H A D | relocate.c | 49 u64 start, end; in efi_low_alloc_above() local 63 start = desc->phys_addr; in efi_low_alloc_above() 64 end = start + desc->num_pages * EFI_PAGE_SIZE; in efi_low_alloc_above() 66 if (start < min) in efi_low_alloc_above() 67 start = min; in efi_low_alloc_above() 69 start = round_up(start, align); in efi_low_alloc_above() 70 if ((start + size) > end) in efi_low_alloc_above() 74 EFI_LOADER_DATA, nr_pages, &start); in efi_low_alloc_above() 76 *addr = start; in efi_low_alloc_above() [all...] |
/kernel/liteos_a/kernel/base/core/ |
H A D | los_bitmap.c | 82 VOID LOS_BitmapSetNBits(UINTPTR *bitmap, UINT32 start, UINT32 numsSet) in LOS_BitmapSetNBits() argument 84 UINTPTR *p = bitmap + BITMAP_WORD(start); in LOS_BitmapSetNBits() 85 const UINT32 size = start + numsSet; in LOS_BitmapSetNBits() 86 UINT16 bitsToSet = BITMAP_BITS_PER_WORD - (start % BITMAP_BITS_PER_WORD); in LOS_BitmapSetNBits() 87 UINTPTR maskToSet = BITMAP_FIRST_WORD_MASK(start); in LOS_BitmapSetNBits() 102 VOID LOS_BitmapClrNBits(UINTPTR *bitmap, UINT32 start, UINT32 numsClear) in LOS_BitmapClrNBits() argument 104 UINTPTR *p = bitmap + BITMAP_WORD(start); in LOS_BitmapClrNBits() 105 const UINT32 size = start + numsClear; in LOS_BitmapClrNBits() 106 UINT16 bitsToClear = BITMAP_BITS_PER_WORD - (start % BITMAP_BITS_PER_WORD); in LOS_BitmapClrNBits() 107 UINTPTR maskToClear = BITMAP_FIRST_WORD_MASK(start); in LOS_BitmapClrNBits() [all...] |
/kernel/linux/linux-6.6/mm/ |
H A D | memtest.c | 42 u64 *p, *start, *end; in memtest() local 48 start = __va(start_phys_aligned); in memtest() 49 end = start + (size - (start_phys_aligned - start_phys)) / incr; in memtest() 53 for (p = start; p < end; p++) in memtest() 56 for (p = start; p < end; p++, start_phys_aligned += incr) { in memtest() 73 static void __init do_one_pass(u64 pattern, phys_addr_t start, phys_addr_t end) in do_one_pass() argument 80 this_start = clamp(this_start, start, end); in do_one_pass() 81 this_end = clamp(this_end, start, end); in do_one_pass() 107 void __init early_memtest(phys_addr_t start, phys_addr_t end) in early_memtest() argument 118 do_one_pass(patterns[idx], start, en in early_memtest() [all...] |
/third_party/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/ |
H A D | TitlecaseTransliterator.java | 74 if (offsets.start >= offsets.limit) { in handleTransliterate() 86 // in which case we want to start in toLower mode. If the in handleTransliterate() 87 // prior context is anything else (including empty) then start in handleTransliterate() 89 int c, start; in handleTransliterate() 90 for (start = offsets.start - 1; start >= offsets.contextStart; start -= UTF16.getCharCount(c)) { in handleTransliterate() 91 c = text.char32At(start); in handleTransliterate() 107 iter.setIndex(offsets.start); in handleTransliterate() [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/ |
H A D | TitlecaseTransliterator.java | 75 if (offsets.start >= offsets.limit) { in handleTransliterate() 87 // in which case we want to start in toLower mode. If the in handleTransliterate() 88 // prior context is anything else (including empty) then start in handleTransliterate() 90 int c, start; in handleTransliterate() 91 for (start = offsets.start - 1; start >= offsets.contextStart; start -= UTF16.getCharCount(c)) { in handleTransliterate() 92 c = text.char32At(start); in handleTransliterate() 108 iter.setIndex(offsets.start); in handleTransliterate() [all...] |
/third_party/icu/icu4c/source/extra/scrptrun/ |
H A D | scrptrun.h | 44 ScriptRun(const UChar chars[], int32_t start, int32_t length); 48 void reset(int32_t start, int32_t count); 50 void reset(const UChar chars[], int32_t start, int32_t length); 114 inline ScriptRun::ScriptRun(const UChar chars[], int32_t start, int32_t length) in ScriptRun() argument 116 reset(chars, start, length); in ScriptRun() 142 inline void ScriptRun::reset(int32_t start, int32_t length) in reset() argument 144 charStart = start; in reset() 145 charLimit = start + length; in reset() 150 inline void ScriptRun::reset(const UChar chars[], int32_t start, int32_t length) in reset() argument 154 reset(start, lengt in reset() [all...] |
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_lower_clip_disable.c | 41 recursive_if_chain(nir_builder *b, nir_deref_instr *deref, nir_ssa_def *value, unsigned clip_plane_enable, nir_ssa_def *index, unsigned start, unsigned end) in recursive_if_chain() argument 43 if (start == end - 1) { in recursive_if_chain() 45 if (clip_plane_enable & (1 << start)) in recursive_if_chain() 46 nir_store_deref(b, deref, value, 1 << start); in recursive_if_chain() 48 nir_store_deref(b, deref, nir_imm_int(b, 0), 1 << start); in recursive_if_chain() 52 unsigned mid = start + (end - start) / 2; in recursive_if_chain() 54 recursive_if_chain(b, deref, value, clip_plane_enable, index, start, mid); in recursive_if_chain() 85 int start = out->data.location == VARYING_SLOT_CLIP_DIST1 ? 4 : 0; in lower_clip_plane_store() local 89 if (!(clip_plane_enable & (1 << (start in lower_clip_plane_store() [all...] |
/third_party/node/benchmark/buffers/ |
H A D | buffer-from.js | 28 bench.start(); 37 bench.start(); 48 bench.start(); 57 bench.start(); 66 bench.start(); 75 bench.start(); 84 bench.start(); 93 bench.start(); 102 bench.start(); 111 bench.start(); [all...] |
/third_party/skia/third_party/externals/icu/source/extra/scrptrun/ |
H A D | scrptrun.h | 44 ScriptRun(const UChar chars[], int32_t start, int32_t length); 48 void reset(int32_t start, int32_t count); 50 void reset(const UChar chars[], int32_t start, int32_t length); 114 inline ScriptRun::ScriptRun(const UChar chars[], int32_t start, int32_t length) in ScriptRun() argument 116 reset(chars, start, length); in ScriptRun() 142 inline void ScriptRun::reset(int32_t start, int32_t length) in reset() argument 144 charStart = start; in reset() 145 charLimit = start + length; in reset() 150 inline void ScriptRun::reset(const UChar chars[], int32_t start, int32_t length) in reset() argument 154 reset(start, lengt in reset() [all...] |
/third_party/python/Objects/stringlib/ |
H A D | find.h | 48 Py_ssize_t start, Py_ssize_t end) in find_slice() 50 return STRINGLIB(find)(str + start, end - start, sub, sub_len, start); in find_slice() 56 Py_ssize_t start, Py_ssize_t end) in rfind_slice() 58 return STRINGLIB(rfind)(str + start, end - start, sub, sub_len, start); in rfind_slice() 88 Py_ssize_t *start, Py_ssize_t *end) in parse_args_finds() 103 /* To support None in "start" an in parse_args_finds() 46 find_slice(const STRINGLIB_CHAR* str, Py_ssize_t str_len, const STRINGLIB_CHAR* sub, Py_ssize_t sub_len, Py_ssize_t start, Py_ssize_t end) find_slice() argument 54 rfind_slice(const STRINGLIB_CHAR* str, Py_ssize_t str_len, const STRINGLIB_CHAR* sub, Py_ssize_t sub_len, Py_ssize_t start, Py_ssize_t end) rfind_slice() argument 86 parse_args_finds(const char * function_name, PyObject *args, PyObject **subobj, Py_ssize_t *start, Py_ssize_t *end) parse_args_finds() argument [all...] |
/third_party/skia/modules/pathkit/perf/ |
H A D | perfReporter.js | 18 let start = Date.now(); 19 let now = start; 22 while (now - start < 100) { 32 // approximate tries in 2s (unless now - start >> 100 ms) 37 start = Date.now(); 45 const us = (end - start) * 1000 / times; 67 let start = Date.now(); 68 let now = start; 71 while (now - start < 100) { 81 // approximate tries in 2s (unless now - start >> 10 [all...] |