/third_party/libinput/test/ |
H A D | litest.h | 157 litest_abort_msg("litest_assert_int_* used for non-integer value\n"); \ 420 double value; member 427 litest_axis_set_value_unchecked(struct axis_replacement *axes, int code, double value) in litest_axis_set_value_unchecked() argument 431 axes->value = value; in litest_axis_set_value_unchecked() 441 * Takes a value in percent and sets the given axis to that code. 444 litest_axis_set_value(struct axis_replacement *axes, int code, double value) in litest_axis_set_value() argument 446 litest_assert_double_ge(value, 0.0); in litest_axis_set_value() 447 litest_assert_double_le(value, 100.0); in litest_axis_set_value() 449 litest_axis_set_value_unchecked(axes, code, value); in litest_axis_set_value() [all...] |
/third_party/ltp/tools/sparse/sparse-src/ |
H A D | expression.c | 264 unsigned long long value; in get_number_value() local 272 value = parse_num(str, &end); in get_number_value() 275 if (value == ULLONG_MAX && errno == ERANGE) in get_number_value() 304 if (!(value & (~1ULL << bits))) { in get_number_value() 305 if (!(value & (1ULL << bits))) { in get_number_value() 317 if (!(value & (~1ULL << bits))) { in get_number_value() 318 if (!(value & (1ULL << bits))) { in get_number_value() 330 if (value & (~1ULL << bits)) in get_number_value() 332 if (!(value & (1ULL << bits))) in get_number_value() 354 expr->value in get_number_value() [all...] |
/third_party/qrcodegen/rust/src/ |
H A D | lib.rs | 131 // the resulting object still has a mask value between 0 and 7. 215 assert!(minversion <= maxversion, "Invalid value"); in encode_segments_advanced() 230 version = Version::new(version.value() + 1); in encode_segments_advanced() 287 let size = usize::from(ver.value()) * 4 + 17; in encode_codewords() 291 mask: Mask::new(0), // Dummy value in encode_codewords() 405 self.draw_format_bits(Mask::new(0)); // Dummy mask value; overwritten later in the constructor in draw_function_patterns() 416 let data: u32 = u32::from(self.errorcorrectionlevel.format_bits() << 3 | mask.value()); in draw_format_bits() 451 if self.version.value() < 7 { in draw_version() 457 let data = u32::from(self.version.value()); // uint6, in the range [7, 40] in draw_version() 592 // the same mask value 1273 pub fn value(self) -> u8 { value() functions 1293 pub fn value(self) -> u8 { value() functions [all...] |
/third_party/vk-gl-cts/executor/ |
H A D | xeTestResultParser.cpp | 82 int value; member 228 return entries[ndx].value; in getEnumValue() 271 return (ri::ValueInfo::ValueTag)getEnumValue("sample value tag", s_sampleValueTagMap, DE_LENGTH_OF_ARRAY(s_sampleValueTagMap), tag); in getSampleValueTag() 290 static ri::NumericValue getNumericValue (const std::string& value) in getNumericValue() argument 292 const bool isFloat = value.find('.') != std::string::npos || value.find('e') != std::string::npos; in getNumericValue() 296 const double num = toDouble(stripLeadingWhitespace(value.c_str())); in getNumericValue() 301 const deInt64 num = toInt64(stripLeadingWhitespace(value.c_str())); in getNumericValue() 723 ri::SampleValue* value = sample->values.allocItem<ri::SampleValue>(); in handleElementStart() local 725 item = value; in handleElementStart() 779 ri::SampleValue* value = static_cast<ri::SampleValue*>(curItem); handleElementEnd() local [all...] |
/third_party/skia/third_party/externals/spirv-tools/source/opt/ |
H A D | upgrade_memory_model.cpp | 284 uint32_t value = 0; in UpgradeSemantics() local 286 value = static_cast<uint32_t>(constant->GetS32()); in UpgradeSemantics() 288 value = constant->GetU32(); in UpgradeSemantics() 291 value |= SpvMemorySemanticsVolatileMask; in UpgradeSemantics() 292 auto new_constant = context()->get_constant_mgr()->GetConstant(type, {value}); in UpgradeSemantics() 422 uint64_t value = GetIndexValue(index_inst); in CheckType() local 423 is_coherent |= HasDecoration(element_inst, static_cast<uint32_t>(value), in CheckType() 425 is_volatile |= HasDecoration(element_inst, static_cast<uint32_t>(value), in CheckType() 428 element_inst->GetSingleWordInOperand(static_cast<uint32_t>(value))); in CheckType() 508 bool UpgradeMemoryModel::HasDecoration(const Instruction* inst, uint32_t value, in HasDecoration() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/ |
H A D | upgrade_memory_model.cpp | 284 uint32_t value = 0; in UpgradeSemantics() local 286 value = static_cast<uint32_t>(constant->GetS32()); in UpgradeSemantics() 288 value = constant->GetU32(); in UpgradeSemantics() 291 value |= SpvMemorySemanticsVolatileMask; in UpgradeSemantics() 292 auto new_constant = context()->get_constant_mgr()->GetConstant(type, {value}); in UpgradeSemantics() 422 uint64_t value = GetIndexValue(index_inst); in CheckType() local 423 is_coherent |= HasDecoration(element_inst, static_cast<uint32_t>(value), in CheckType() 425 is_volatile |= HasDecoration(element_inst, static_cast<uint32_t>(value), in CheckType() 428 element_inst->GetSingleWordInOperand(static_cast<uint32_t>(value))); in CheckType() 508 bool UpgradeMemoryModel::HasDecoration(const Instruction* inst, uint32_t value, in HasDecoration() argument [all...] |
/third_party/skia/third_party/externals/libwebp/src/enc/ |
H A D | predictor_enc.c | 147 // Quantize the difference between the actual component value and its prediction 150 static uint8_t NearLosslessComponent(uint8_t value, uint8_t predict, in NearLosslessComponent() argument 152 const int residual = (value - predict) & 0xff; in NearLosslessComponent() 156 // Resolve ties towards a value closer to the prediction (i.e. towards lower in NearLosslessComponent() 157 // if value comes after prediction and towards upper otherwise). in NearLosslessComponent() 158 const int bias = ((boundary - value) & 0xff) < boundary_residual; in NearLosslessComponent() 184 // Quantize every component of the difference between the actual pixel value and 187 // value and predict have undergone subtract green, which means that red and 189 static uint32_t NearLossless(uint32_t value, uint32_t predict, in NearLossless() argument 197 return VP8LSubPixels(value, predic in NearLossless() [all...] |
/third_party/rust/crates/nom/src/bytes/ |
H A D | tests.rs | 12 combinator::{map, value}, 155 value(&b"\\"[..], tag("\\")), in escape_transform() 156 value(&b"\""[..], tag("\"")), in escape_transform() 157 value(&b"\n"[..], tag("n")), in escape_transform() 200 value("è".as_bytes(), tag("egrave;")), in escape_transform() 201 value("à".as_bytes(), tag("agrave;")), in escape_transform() 225 value("\\", tag("\\")), in escape_transform_str() 226 value("\"", tag("\"")), in escape_transform_str() 227 value("\n", tag("n")), in escape_transform_str() 257 alt((value("è", ta in escape_transform_str() [all...] |
/third_party/rust/crates/syn/src/ |
H A D | pat.rs | 71 /// A pattern that matches any value: `_`. 206 /// A pattern that matches any value: `_`. 335 /// # ($value:expr, ($($conditions1:pat),*), ($($conditions2:pat),*), $then:expr) => { 336 /// match $value { 470 let value = Pat::parse_multi_with_leading_vert(&content)?; in pat_tuple_struct() 471 elems.push_value(value); in pat_tuple_struct() 503 let mut value = content.call(field_pat)?; in pat_struct() variables 504 value.attrs = attrs; in pat_struct() 505 fields.push_value(value); in pat_struct() 616 let value in pat_paren_or_tuple() [all...] |
/third_party/spirv-tools/source/opt/ |
H A D | ir_builder.h | 224 // The value |selection_control| is the selection control flag for the 253 // The value |selection_control| is the selection control flag for the 367 // with the given value. Returns |nullptr| if the constant does not exist and 369 Instruction* GetSintConstant(int32_t value) { in GetSintConstant() argument 370 return GetIntConstant<int32_t>(value, true); in GetSintConstant() 391 // with the given value. Returns |nullptr| if the constant does not exist and 393 Instruction* GetUintConstant(uint32_t value) { in GetUintConstant() argument 394 return GetIntConstant<uint32_t>(value, false); in GetUintConstant() 397 uint32_t GetUintConstantId(uint32_t value) { in GetUintConstantId() argument 398 Instruction* uint_inst = GetUintConstant(value); in GetUintConstantId() 408 GetIntConstant(T value, bool sign) GetIntConstant() argument 443 GetBoolConstant(bool value) GetBoolConstant() argument 454 GetBoolConstantId(bool value) GetBoolConstantId() argument [all...] |
H A D | upgrade_memory_model.cpp | 286 uint32_t value = 0; in UpgradeSemantics() local 288 value = static_cast<uint32_t>(constant->GetS32()); in UpgradeSemantics() 290 value = constant->GetU32(); in UpgradeSemantics() 293 value |= uint32_t(spv::MemorySemanticsMask::Volatile); in UpgradeSemantics() 294 auto new_constant = context()->get_constant_mgr()->GetConstant(type, {value}); in UpgradeSemantics() 424 uint64_t value = GetIndexValue(index_inst); in CheckType() local 425 is_coherent |= HasDecoration(element_inst, static_cast<uint32_t>(value), in CheckType() 427 is_volatile |= HasDecoration(element_inst, static_cast<uint32_t>(value), in CheckType() 430 element_inst->GetSingleWordInOperand(static_cast<uint32_t>(value))); in CheckType() 510 bool UpgradeMemoryModel::HasDecoration(const Instruction* inst, uint32_t value, in HasDecoration() argument [all...] |
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/oal/ |
H A D | oal_util.h | 258 #define oal_round_down(value, boundary) ((value) & (~((boundary) - 1))) 403 unsigned int value; in oal_simple_strtoull() local 405 value = isdigit(*cp) ? *cp - '0' : TOLOWER(*cp) - 'a' + 10; /* add 10 */ in oal_simple_strtoull() 406 if (value >= base) { in oal_simple_strtoull() 409 result = result * base + value; in oal_simple_strtoull() 444 输入参数 : value:随机种子 rst_flag:0:不更新随机种子,非0:更新随机种子 446 static inline hi_u8 oal_gen_random(hi_u32 value, hi_u8 rst_flag) in oal_gen_random() argument 451 rand_val = value; in oal_gen_random() 530 输入参数 : value 533 oal_bit_find_first_zero(hi_u32 value, hi_u8 max_cnt) oal_bit_find_first_zero() argument [all...] |
/device/soc/rockchip/rk3568/hardware/codec/jpeg/src/ |
H A D | codec_jpeg_helper.cpp | 200 CODEC_LOGE("assemble dri value error"); in JpegDriAssemble() 360 int16_t value = ((componentId << 8) | indexNo) & 0xffff; in JpegSosAssemble() local 361 curPos = PutInt16(buffer, curPos, value); in JpegSosAssemble() 363 CODEC_LOGE("assemble SOS component value error"); in JpegSosAssemble() 381 // check ret value in JpegDataAssemble() 574 int32_t CodecJpegHelper::PutInt16(int8_t *buffer, int32_t curPos, int16_t value) in PutInt16() argument 576 int8_t data[] = {value >> 8, value & 0xFF}; in PutInt16() 585 int32_t CodecJpegHelper::PutInt8(int8_t *buffer, int32_t curPos, int8_t value) in PutInt8() argument 587 auto ret = memcpy_s(buffer + curPos, sizeof(value), in PutInt8() [all...] |
/device/soc/rockchip/rk3588/hardware/codec/jpeg/src/ |
H A D | codec_jpeg_helper.cpp | 200 CODEC_LOGE("assemble dri value error"); in JpegDriAssemble() 360 int16_t value = ((componentId << 8) | indexNo) & 0xffff; in JpegSosAssemble() local 361 curPos = PutInt16(buffer, curPos, value); in JpegSosAssemble() 363 CODEC_LOGE("assemble SOS component value error"); in JpegSosAssemble() 381 // check ret value in JpegDataAssemble() 574 int32_t CodecJpegHelper::PutInt16(int8_t *buffer, int32_t curPos, int16_t value) in PutInt16() argument 576 int8_t data[] = {value >> 8, value & 0xFF}; in PutInt16() 585 int32_t CodecJpegHelper::PutInt8(int8_t *buffer, int32_t curPos, int8_t value) in PutInt8() argument 587 auto ret = memcpy_s(buffer + curPos, sizeof(value), in PutInt8() [all...] |
/kernel/linux/linux-5.10/drivers/clk/renesas/ |
H A D | rcar-gen3-cpg.c | 165 * Since this value might be dependent of external xtal rate, pll1 in cpg_z_clk_set_rate() 167 * "super" safe value. in cpg_z_clk_set_rate() 555 u32 value; in rcar_gen3_cpg_clk_register() local 571 * the multiplier value. in rcar_gen3_cpg_clk_register() 573 value = readl(base + CPG_PLL0CR); in rcar_gen3_cpg_clk_register() 574 mult = (((value >> 24) & 0x7f) + 1) * 2; in rcar_gen3_cpg_clk_register() 589 * the multiplier value. in rcar_gen3_cpg_clk_register() 591 value = readl(base + CPG_PLL2CR); in rcar_gen3_cpg_clk_register() 592 mult = (((value >> 24) & 0x7f) + 1) * 2; in rcar_gen3_cpg_clk_register() 607 * the multiplier value in rcar_gen3_cpg_clk_register() [all...] |
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/ |
H A D | hotplug-cpu.c | 361 const __be32 *value; in drc_info_valid_index() local 369 value = of_prop_next_u32(info, NULL, &count); in drc_info_valid_index() 371 /* First value of ibm,drc-info is number of drc-info records */ in drc_info_valid_index() 372 if (value) in drc_info_valid_index() 373 value++; in drc_info_valid_index() 378 if (of_read_drc_info_cell(&info, &value, &drc)) in drc_info_valid_index() 667 const __be32 *value; in find_drc_info_cpus_to_add() local 675 value = of_prop_next_u32(info, NULL, &count); in find_drc_info_cpus_to_add() 676 if (value) in find_drc_info_cpus_to_add() 677 value in find_drc_info_cpus_to_add() [all...] |
H A D | setup.c | 617 enum get_iov_fw_value_index value) in pseries_get_iov_fw_value() 637 switch (value) { in pseries_get_iov_fw_value() 782 /* init to some ~sane value until calibrate_delay() runs */ in pSeries_setup_arch() 897 char *ptr, *key, *value, *end; in pSeries_cmo_feature_init() local 918 ptr = rtas_data_buf + 2; /* step over strlen value */ in pSeries_cmo_feature_init() 919 key = value = ptr; in pSeries_cmo_feature_init() 922 /* Separate the key and value by replacing '=' with '\0' and in pSeries_cmo_feature_init() 923 * point the value at the string after the '=' in pSeries_cmo_feature_init() 927 value = ptr + 1; in pSeries_cmo_feature_init() 929 /* Terminate the string containing the key/value pai in pSeries_cmo_feature_init() 616 pseries_get_iov_fw_value(struct pci_dev *dev, int resno, enum get_iov_fw_value_index value) pseries_get_iov_fw_value() argument [all...] |
/kernel/linux/linux-5.10/arch/sparc/kernel/ |
H A D | pcic.c | 177 int where, u32 *value) in pcic_read_config_dword() 194 *value = ~0; in pcic_read_config_dword() 200 *value = readl(pcic->pcic_config_space_data + (where&4)); in pcic_read_config_dword() 205 *value = ~0; in pcic_read_config_dword() 238 int where, u32 value) in pcic_write_config_dword() 247 writel(value, pcic->pcic_config_space_data + (where&4)); in pcic_write_config_dword() 686 u32 value, count; in pcic_cycles_offset() local 688 value = readl(pcic0.pcic_regs + PCI_SYS_COUNTER); in pcic_cycles_offset() 689 count = value & ~PCI_SYS_COUNTER_OVERFLOW; in pcic_cycles_offset() 691 if (value in pcic_cycles_offset() 176 pcic_read_config_dword(unsigned int busno, unsigned int devfn, int where, u32 *value) pcic_read_config_dword() argument 237 pcic_write_config_dword(unsigned int busno, unsigned int devfn, int where, u32 value) pcic_write_config_dword() argument [all...] |
/kernel/linux/linux-5.10/arch/arm/mach-omap2/ |
H A D | sleep34xx.S | 76 ldr r2, [r3] @ value for offset 396 ldr r0, [r1] @ value for offset 397 ldr r0, [r1, r0] @ value at l2dis_3630 469 ldr r1, [r0] @ value for offset 470 ldr r1, [r0, r1] @ value at l2dis_3630 524 ldr r5, [r4] @ get value 530 ldr r5, [r4] @ get value 533 ldr r5, [r4] @ get value 539 ldr r5, [r4] @ get value 542 ldr r5, [r4] @ get value [all...] |
/kernel/linux/linux-5.10/drivers/clocksource/ |
H A D | sh_tmu.c | 106 unsigned long value) in sh_tmu_write() 113 return iowrite8(value, ch->tmu->mapbase + 2); in sh_tmu_write() 115 return iowrite8(value, ch->tmu->mapbase + 4); in sh_tmu_write() 122 iowrite16(value, ch->base + offs); in sh_tmu_write() 124 iowrite32(value, ch->base + offs); in sh_tmu_write() 129 unsigned long flags, value; in sh_tmu_start_stop_ch() local 133 value = sh_tmu_read(ch, TSTR); in sh_tmu_start_stop_ch() 136 value |= 1 << ch->index; in sh_tmu_start_stop_ch() 138 value &= ~(1 << ch->index); in sh_tmu_start_stop_ch() 140 sh_tmu_write(ch, TSTR, value); in sh_tmu_start_stop_ch() 105 sh_tmu_write(struct sh_tmu_channel *ch, int reg_nr, unsigned long value) sh_tmu_write() argument [all...] |
/kernel/linux/linux-6.6/arch/arm/mach-omap2/ |
H A D | sleep34xx.S | 76 ldr r2, [r3] @ value for offset 396 ldr r0, [r1] @ value for offset 397 ldr r0, [r1, r0] @ value at l2dis_3630 469 ldr r1, [r0] @ value for offset 470 ldr r1, [r0, r1] @ value at l2dis_3630 524 ldr r5, [r4] @ get value 530 ldr r5, [r4] @ get value 533 ldr r5, [r4] @ get value 539 ldr r5, [r4] @ get value 542 ldr r5, [r4] @ get value [all...] |
/kernel/linux/linux-6.6/arch/sparc/kernel/ |
H A D | pcic.c | 177 int where, u32 *value) in pcic_read_config_dword() 194 *value = ~0; in pcic_read_config_dword() 200 *value = readl(pcic->pcic_config_space_data + (where&4)); in pcic_read_config_dword() 205 *value = ~0; in pcic_read_config_dword() 238 int where, u32 value) in pcic_write_config_dword() 247 writel(value, pcic->pcic_config_space_data + (where&4)); in pcic_write_config_dword() 685 u32 value, count; in pcic_cycles_offset() local 687 value = readl(pcic0.pcic_regs + PCI_SYS_COUNTER); in pcic_cycles_offset() 688 count = value & ~PCI_SYS_COUNTER_OVERFLOW; in pcic_cycles_offset() 690 if (value in pcic_cycles_offset() 176 pcic_read_config_dword(unsigned int busno, unsigned int devfn, int where, u32 *value) pcic_read_config_dword() argument 237 pcic_write_config_dword(unsigned int busno, unsigned int devfn, int where, u32 value) pcic_write_config_dword() argument [all...] |
/kernel/linux/linux-5.10/drivers/hid/ |
H A D | hid-kye.c | 562 * (report ID 3) to a reasonable value in kye_consumer_control_fixup() 670 __s32 *value; in kye_tablet_enable() local 689 value = report->field[0]->value; in kye_tablet_enable() 691 value[0] = 0x12; in kye_tablet_enable() 692 value[1] = 0x10; in kye_tablet_enable() 693 value[2] = 0x11; in kye_tablet_enable() 694 value[3] = 0x12; in kye_tablet_enable() 695 value[4] = 0x00; in kye_tablet_enable() 696 value[ in kye_tablet_enable() [all...] |
/kernel/linux/linux-5.10/drivers/media/pci/saa7134/ |
H A D | saa7134.h | 691 #define saa_writel(reg,value) writel((value), dev->lmmio + (reg)); 692 #define saa_andorl(reg,mask,value) \ 694 ((value) & (mask)), dev->lmmio+(reg)) 699 #define saa_writeb(reg,value) writeb((value), dev->bmmio + (reg)); 700 #define saa_andorb(reg,mask,value) \ 702 ((value) & (mask)), dev->bmmio+(reg)) 751 void saa7134_set_gpio(struct saa7134_dev *dev, int bit_no, int value); 892 int saa_dsp_writel(struct saa7134_dev *dev, int reg, u32 value); [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/exynos4-is/ |
H A D | fimc-isp.c | 437 static int __ctrl_set_white_balance(struct fimc_is *is, int value) in __ctrl_set_white_balance() argument 439 switch (value) { in __ctrl_set_white_balance() 500 static int __ctrl_set_iso(struct fimc_is *is, int value) in __ctrl_set_iso() argument 504 if (value == V4L2_ISO_SENSITIVITY_AUTO) { in __ctrl_set_iso() 517 static int __ctrl_set_metering(struct fimc_is *is, unsigned int value) in __ctrl_set_metering() argument 521 switch (value) { in __ctrl_set_metering() 542 static int __ctrl_set_afc(struct fimc_is *is, int value) in __ctrl_set_afc() argument 544 switch (value) { in __ctrl_set_afc() 564 static int __ctrl_set_image_effect(struct fimc_is *is, int value) in __ctrl_set_image_effect() argument 576 if (effects[i][0] != value) in __ctrl_set_image_effect() [all...] |