/kernel/linux/linux-6.6/io_uring/ |
H A D | filetable.c | 163 struct io_uring_file_index_range range; in io_register_file_alloc_range() local 166 if (copy_from_user(&range, arg, sizeof(range))) in io_register_file_alloc_range() 168 if (check_add_overflow(range.off, range.len, &end)) in io_register_file_alloc_range() 170 if (range.resv || end > ctx->nr_user_files) in io_register_file_alloc_range() 173 io_file_table_set_alloc_range(ctx, range.off, range.len); in io_register_file_alloc_range()
|
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_convert_ycbcr.c | 31 VkSamplerYcbcrRange range) in y_range() 33 switch (range) { in y_range() 44 unreachable("missing Ycbcr range"); in y_range() 53 VkSamplerYcbcrRange range) in chroma_range() 55 switch (range) { in chroma_range() 67 unreachable("missing Ycbcr range"); in chroma_range() 116 VkSamplerYcbcrRange range, in nir_convert_ycbcr_to_rgb() 122 chroma_range(b, nir_channel(b, raw_channels, 0), bpcs[0], range), in nir_convert_ycbcr_to_rgb() 123 y_range(b, nir_channel(b, raw_channels, 1), bpcs[1], range), in nir_convert_ycbcr_to_rgb() 124 chroma_range(b, nir_channel(b, raw_channels, 2), bpcs[2], range), in nir_convert_ycbcr_to_rgb() 28 y_range(nir_builder *b, nir_ssa_def *y_channel, int bpc, VkSamplerYcbcrRange range) y_range() argument 50 chroma_range(nir_builder *b, nir_ssa_def *chroma_channel, int bpc, VkSamplerYcbcrRange range) chroma_range() argument 114 nir_convert_ycbcr_to_rgb(nir_builder *b, VkSamplerYcbcrModelConversion model, VkSamplerYcbcrRange range, nir_ssa_def *raw_channels, uint32_t *bpcs) nir_convert_ycbcr_to_rgb() argument [all...] |
/third_party/icu/icu4c/source/samples/layout/ |
H A D | cmaps.cpp | 187 le_int32 range = 0; in unicodeToGlyph() local 190 range = fRangeOffset; in unicodeToGlyph() 196 if (SWAPU32(fGroups[range + probe].startCharCode) <= unicode32) { in unicodeToGlyph() 197 range += probe; in unicodeToGlyph() 201 if (SWAPU32(fGroups[range].startCharCode) <= unicode32 && SWAPU32(fGroups[range].endCharCode) >= unicode32) { in unicodeToGlyph() 202 return (LEGlyphID) (SWAPU32(fGroups[range].startGlyphCode) + unicode32 - SWAPU32(fGroups[range].startCharCode)); in unicodeToGlyph()
|
/third_party/rust/crates/codespan/codespan-reporting/src/ |
H A D | diagnostic.rs | 70 /// The range in bytes we are going to include in the final snippet. 71 pub range: Range<usize>, 82 range: impl Into<Range<usize>>, in new() 87 range: range.into(), in new() 95 pub fn primary(file_id: FileId, range: impl Into<Range<usize>>) -> Label<FileId> { in primary() 96 Label::new(LabelStyle::Primary, file_id, range) in primary() 102 pub fn secondary(file_id: FileId, range: impl Into<Range<usize>>) -> Label<FileId> { in secondary() 103 Label::new(LabelStyle::Secondary, file_id, range) in secondary()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/ |
H A D | gen_overlay_fonts.py | 191 font_array = [[0] * font_array_width for i in range(font_array_height)] 193 for charIndex in range(len(chars)): 224 for y in range(rows): 225 for x in range(width): 236 for y in range(font_array_height): 238 for x in range(font_array_width): 268 for layer in range(len(font_data)) 272 for layer in range(len(font_data))
|
/third_party/skia/third_party/externals/swiftshader/tests/VulkanBenchmarks/ |
H A D | ClearImageBenchmarks.cpp | 68 vk::ImageSubresourceRange range; in initialize() local 69 range.aspectMask = clearAspect; in initialize() 70 range.baseMipLevel = 0; in initialize() 71 range.levelCount = 1; in initialize() 72 range.baseArrayLayer = 0; in initialize() 73 range.layerCount = 1; in initialize() 83 commandBuffer.clearColorImage(image, vk::ImageLayout::eGeneral, &clearColorValue, 1, &range); in initialize() 91 commandBuffer.clearDepthStencilImage(image, vk::ImageLayout::eGeneral, &clearDepthStencilValue, 1, &range); in initialize()
|
/third_party/skia/third_party/externals/icu/source/samples/layout/ |
H A D | cmaps.cpp | 187 le_int32 range = 0; in unicodeToGlyph() local 190 range = fRangeOffset; in unicodeToGlyph() 196 if (SWAPU32(fGroups[range + probe].startCharCode) <= unicode32) { in unicodeToGlyph() 197 range += probe; in unicodeToGlyph() 201 if (SWAPU32(fGroups[range].startCharCode) <= unicode32 && SWAPU32(fGroups[range].endCharCode) >= unicode32) { in unicodeToGlyph() 202 return (LEGlyphID) (SWAPU32(fGroups[range].startGlyphCode) + unicode32 - SWAPU32(fGroups[range].startCharCode)); in unicodeToGlyph()
|
/third_party/python/Lib/test/ |
H A D | test_dynamic.py | 52 x = range(3) 71 l.append(len(range(7))) 73 l.append(len(range(7))) 111 x = range(3) 143 code = "lambda: " + "+".join(f"_number_{i}" for i in range(1000)) 145 expected = sum(range(1000)) 147 for _ in range(30): 185 for _ in range(58):
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/common/ |
H A D | rs_common_hook_test.cpp | 74 auto callback = [](FrameRateRange &range) { in HWTEST_F() 75 range.preferred_ = RANGE_MAX_REFRESHRATE; in HWTEST_F() 78 FrameRateRange range; in HWTEST_F() local 79 RsCommonHook::Instance().GetComponentPowerFps(range); in HWTEST_F() 80 ASSERT_EQ(range.preferred_, RANGE_MAX_REFRESHRATE); in HWTEST_F()
|
/kernel/linux/linux-5.10/drivers/dax/hmem/ |
H A D | hmem.c | 19 struct range range; in dax_hmem_probe() local 26 range.start = res->start; in dax_hmem_probe() 27 range.end = res->end; in dax_hmem_probe() 28 dax_region = alloc_dax_region(dev, pdev->id, &range, mri->target_node, in dax_hmem_probe()
|
/kernel/linux/linux-5.10/arch/sparc/mm/ |
H A D | extable.c | 15 /* Caller knows they are in a range if ret->fixup == 0 */ 43 /* A range entry, skip both parts. */ in search_extable() 56 /* 2. Try to find a range match. */ in search_extable() 75 bool range; in trim_init_extable() local 77 for (i = 0; i < m->num_exentries; i += range ? 2 : 1) { in trim_init_extable() 78 range = m->extable[i].fixup == 0; in trim_init_extable() 82 if (range) in trim_init_extable() 85 if (range) in trim_init_extable() 100 /* Inside range? Fix g2 and return correct fixup */ in search_extables_range()
|
/third_party/mesa3d/src/imagination/rogue/ |
H A D | rogue_util.c | 61 /* Iterate over each range. */ in rogue_distribute_value() 63 struct rogue_bitrange *range = &rangelist->ranges[u]; in rogue_distribute_value() local 65 size_t dest_bit = range->start; in rogue_distribute_value() 66 size_t bits_left = range->num; in rogue_distribute_value() 67 size_t bytes_covered = rogue_bytes_spilled(range) + 1; in rogue_distribute_value() 68 size_t base_byte = rogue_byte_index(range, dest_size); in rogue_distribute_value() 70 /* Iterate over each byte covered by the current range. */ in rogue_distribute_value()
|
/third_party/node/test/fixtures/wpt/encoding/resources/ |
H A D | encode-href-common.js | 23 for (var range of ranges) { 24 for (var i = range[0]; i < range[1]; i++) { 35 item.desc = range[2] ? range[2] + " " : "";
|
/foundation/communication/dhcp/frameworks/native/c_adapter/src/ |
H A D | dhcp_c_service.cpp | 156 NO_SANITIZE("cfi") DhcpErrorCode SetDhcpRange(const char *ifname, const DhcpRange *range) in SetDhcpRange() argument 162 CHECK_PTR_RETURN(range, DHCP_INVALID_PARAM); in SetDhcpRange() 165 rangeNew.iptype = range->iptype; in SetDhcpRange() 166 rangeNew.strStartip = range->strStartip; in SetDhcpRange() 167 rangeNew.strEndip = range->strEndip; in SetDhcpRange() 168 rangeNew.strSubnet = range->strSubnet; in SetDhcpRange() 169 rangeNew.strTagName = range->strTagName; in SetDhcpRange() 184 NO_SANITIZE("cfi") DhcpErrorCode PutDhcpRange(const char *tagName, const DhcpRange *range) in PutDhcpRange() argument 190 CHECK_PTR_RETURN(range, DHCP_INVALID_PARAM); in PutDhcpRange() 193 rangeNew.iptype = range in PutDhcpRange() 211 RemoveDhcpRange(const char *tagName, const void *range) RemoveDhcpRange() argument [all...] |
/kernel/linux/linux-5.10/drivers/clk/at91/ |
H A D | clk-peripheral.c | 35 struct clk_range range; member 142 if (periph->range.max) { in clk_sam9x5_peripheral_autodiv() 149 if (parent_rate >> shift <= periph->range.max) in clk_sam9x5_peripheral_autodiv() 271 if (periph->id < PERIPHERAL_ID_MIN || !periph->range.max) in clk_sam9x5_peripheral_determine_rate() 278 if (periph->range.max && tmp_rate > periph->range.max) in clk_sam9x5_peripheral_determine_rate() 310 (periph->range.max && best_rate > periph->range.max)) in clk_sam9x5_peripheral_determine_rate() 334 if (periph->id < PERIPHERAL_ID_MIN || !periph->range.max) in clk_sam9x5_peripheral_round_rate() 337 if (periph->range in clk_sam9x5_peripheral_round_rate() 415 at91_clk_register_sam9x5_peripheral(struct regmap *regmap, spinlock_t *lock, const struct clk_pcr_layout *layout, const char *name, const char *parent_name, u32 id, const struct clk_range *range, int chg_pid) at91_clk_register_sam9x5_peripheral() argument [all...] |
/kernel/linux/linux-6.6/drivers/clk/at91/ |
H A D | clk-peripheral.c | 35 struct clk_range range; member 147 if (periph->range.max) { in clk_sam9x5_peripheral_autodiv() 154 if (parent_rate >> shift <= periph->range.max) in clk_sam9x5_peripheral_autodiv() 282 if (periph->id < PERIPHERAL_ID_MIN || !periph->range.max) in clk_sam9x5_peripheral_determine_rate() 289 if (periph->range.max && tmp_rate > periph->range.max) in clk_sam9x5_peripheral_determine_rate() 322 (periph->range.max && best_rate > periph->range.max)) in clk_sam9x5_peripheral_determine_rate() 346 if (periph->id < PERIPHERAL_ID_MIN || !periph->range.max) in clk_sam9x5_peripheral_round_rate() 349 if (periph->range in clk_sam9x5_peripheral_round_rate() 448 at91_clk_register_sam9x5_peripheral(struct regmap *regmap, spinlock_t *lock, const struct clk_pcr_layout *layout, const char *name, const char *parent_name, struct clk_hw *parent_hw, u32 id, const struct clk_range *range, int chg_pid, unsigned long flags) at91_clk_register_sam9x5_peripheral() argument [all...] |
/kernel/linux/linux-6.6/drivers/dax/ |
H A D | device.c | 61 struct range *range = &dax_range->range; in dax_pgoff_to_phys() local 65 pgoff_end = dax_range->pgoff + PHYS_PFN(range_len(range)) - 1; in dax_pgoff_to_phys() 68 phys = PFN_PHYS(pgoff - dax_range->pgoff) + range->start; in dax_pgoff_to_phys() 69 if (phys + size - 1 <= range->end) in dax_pgoff_to_phys() 406 "static pgmap / multi-range device conflict\n"); in dev_dax_probe() 428 struct range *range = &dev_dax->ranges[i].range; in dev_dax_probe() local 434 struct range *range = &dev_dax->ranges[i].range; dev_dax_probe() local [all...] |
/kernel/liteos_a/kernel/base/vm/ |
H A D | los_vm_syscall.c | 147 resultVaddr = newRegion->range.base; in LOS_MMap() 252 space->heap->range.size = size; in LOS_DoBrk() 319 if ((region->range.base + region->range.size) < (vaddr + len)) { in LOS_DoMprotect() 325 if (region->range.size > len) { in LOS_DoMprotect() 364 if ((region == NULL) || (region->range.base > addr) || (newLen == 0)) { in OsMremapCheck() 380 regionEnd = region->range.base + region->range.size; in OsMremapCheck() 396 if (((region->range.base + region->range in OsMremapCheck() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/ |
H A D | string_view_benchmark.cc | 34 std::string s(state.range(0), 'x'); in BM_StringViewFromString() 67 std::string x(state.range(0), 'a'); in BM_EqualIdentical() 73 std::string x(state.range(0), 'a'); in BM_EqualSame() 86 const int len = state.range(0); in BM_EqualDifferent() 118 std::string x(state.range(0), 'a'); in BM_EqualConstantSizeInlined() 145 std::string x(state.range(0), 'a'); in BM_EqualConstantSizeNonInlined() 153 const int len = state.range(0); in BM_CompareSame() 171 const int len = state.range(0); in BM_CompareFirstOneLess() 187 const int len = state.range(0); in BM_CompareSecondOneLess() 203 std::string haystack(state.range( in BM_find_string_view_len_one() [all...] |
/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/ |
H A D | component_util_functions.h | 26 * Calculates (tries to evaluate) a valid light range if one is not given by the user 27 * @param lightRange If smaller than LIGHT_COMPONENT_USER_SET_MIN_LIGHT_RANGE (i.e. 0) new range is calculated. 28 * @param lightIntensity Used to calculate range if light range is not set. 32 float range = lightRange; in CalculateSafeLightRange() local 33 if (range <= LIGHT_COMPONENT_USER_SET_MIN_LIGHT_RANGE) { // calculate range in CalculateSafeLightRange() 36 range = BASE_NS::Math::sqrt(BASE_NS::Math::pow(lightIntensity + minLightIntensityAdd, powValue)); in CalculateSafeLightRange() 38 return range; in CalculateSafeLightRange()
|
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/ |
H A D | VkBufferView.cpp | 27 if(pCreateInfo->range == VK_WHOLE_SIZE) in BufferView() 29 range = buffer->getSize() - offset; in BufferView() 33 range = pCreateInfo->range; in BufferView()
|
/foundation/communication/dhcp/frameworks/native/src/ |
H A D | dhcp_server_proxy_lite.cpp | 281 ErrCode DhcpServerProxy::SetDhcpRange(const std::string& ifname, const DhcpRange& range) in SetDhcpRange() argument 301 (void)WriteInt32(&request, range.iptype); in SetDhcpRange() 302 (void)WriteInt32(&request, range.leaseHours); in SetDhcpRange() 303 (void)WriteString(&request, range.strTagName.c_str()); in SetDhcpRange() 304 (void)WriteString(&request, range.strStartip.c_str()); in SetDhcpRange() 305 (void)WriteString(&request, range.strEndip.c_str()); in SetDhcpRange() 306 (void)WriteString(&request, range.strSubnet.c_str()); in SetDhcpRange() 366 ErrCode DhcpServerProxy::PutDhcpRange(const std::string& tagName, const DhcpRange& range) in PutDhcpRange() argument 385 (void)WriteInt32(&request, range.iptype); in PutDhcpRange() 386 (void)WriteInt32(&request, range in PutDhcpRange() 486 RemoveDhcpRange(const std::string& tagName, const DhcpRange& range) RemoveDhcpRange() argument [all...] |
/third_party/rust/crates/codespan/codespan-reporting/src/term/ |
H A D | renderer.rs | 282 let is_primary = single_labels.iter().any(|(ls, range, _)| { in render_snippet_source() 283 *ls == LabelStyle::Primary && is_overlapping(range, &column_range) in render_snippet_source() 368 let (_, range, message) = label; in render_snippet_source() 372 max_label_start = std::cmp::max(max_label_start, range.start); in render_snippet_source() 373 max_label_end = std::cmp::max(max_label_end, range.end); in render_snippet_source() 375 if range.end == max_label_end { in render_snippet_source() 390 .any(|(_, (_, range, _))| is_overlapping(trailing_range, range)) in render_snippet_source() 428 .filter(|(_, range, _)| is_overlapping(range, in render_snippet_source() [all...] |
/third_party/benchmark/test/ |
H A D | benchmark_test.cc | 68 for (auto _ : state) pi = CalculatePi(static_cast<int>(state.range(0))); in BM_CalculatePiRange() 90 data = ConstructRandomSet(state.range(0)); in BM_SetInsert() 92 for (int j = 0; j < state.range(1); ++j) data.insert(rand()); in BM_SetInsert() 94 state.SetItemsProcessed(state.iterations() * state.range(1)); in BM_SetInsert() 95 state.SetBytesProcessed(state.iterations() * state.range(1) * in BM_SetInsert() 110 for (int64_t i = state.range(0); --i;) c.push_back(v); in BM_Sequential() 112 const int64_t items_processed = state.iterations() * state.range(0); in BM_Sequential() 125 size_t len = static_cast<size_t>(state.range(0)); in BM_StringCompare() 158 for (int i = 0; i < state.range(0); ++i) in BM_LongTest() 165 int64_t size = state.range( in BM_ParallelMemset() [all...] |
/third_party/skia/third_party/externals/tint/src/reader/wgsl/ |
H A D | parser_impl_variable_stmt_test.cc | 33 ASSERT_EQ(e->source.range.begin.line, 1u); in TEST_F() 34 ASSERT_EQ(e->source.range.begin.column, 5u); in TEST_F() 35 ASSERT_EQ(e->source.range.end.line, 1u); in TEST_F() 36 ASSERT_EQ(e->source.range.end.column, 6u); in TEST_F() 52 ASSERT_EQ(e->source.range.begin.line, 1u); in TEST_F() 53 ASSERT_EQ(e->source.range.begin.column, 5u); in TEST_F() 54 ASSERT_EQ(e->source.range.end.line, 1u); in TEST_F() 55 ASSERT_EQ(e->source.range.end.column, 6u); in TEST_F() 152 ASSERT_EQ(e->source.range.begin.line, 1u); in TEST_F() 153 ASSERT_EQ(e->source.range in TEST_F() [all...] |