/kernel/linux/linux-6.6/drivers/power/supply/ |
H A D | bq25890_charger.c | 92 u8 rbatcomp; /* IBAT sense resistor value */ 380 static u8 bq25890_find_idx(u32 value, enum bq25890_table_ids id) in bq25890_find_idx() argument 388 for (idx = 1; idx < tbl_size && tbl[idx] <= value; idx++) in bq25890_find_idx() 397 idx < rtbl_size && (idx * rtbl->step + rtbl->min <= value); in bq25890_find_idx() 576 ret = bq25890_field_read(bq, F_ICHGR); /* read measured value */ in bq25890_power_supply_get_property() 590 * This value reflects the current hardware setting. in bq25890_power_supply_get_property() 593 * maximum value of this property. in bq25890_power_supply_get_property() 619 * This value is constant for each battery and set from DT. in bq25890_power_supply_get_property() 632 ret = bq25890_field_read(bq, F_BATV); /* read measured value */ in bq25890_power_supply_get_property() 646 * This value reflect in bq25890_power_supply_get_property() 904 u8 *value; bq25890_rw_init_data() member 1060 union power_supply_propval value; bq25890_pump_express_work() local [all...] |
/kernel/linux/linux-6.6/drivers/usb/serial/ |
H A D | pl2303.c | 242 static int pl2303_vendor_read(struct usb_serial *serial, u16 value, in pl2303_vendor_read() argument 257 value, 0, buf, 1, 100); in pl2303_vendor_read() 260 value, res); in pl2303_vendor_read() 267 dev_dbg(dev, "%s - [%04x] = %02x\n", __func__, value, buf[0]); in pl2303_vendor_read() 272 static int pl2303_vendor_write(struct usb_serial *serial, u16 value, u16 index) in pl2303_vendor_write() argument 279 dev_dbg(dev, "%s - [%04x] = %02x\n", __func__, value, index); in pl2303_vendor_write() 288 value, index, NULL, 0, 100); in pl2303_vendor_write() 291 value, res); in pl2303_vendor_write() 552 static int pl2303_set_control_lines(struct usb_serial_port *port, u8 value) in pl2303_set_control_lines() argument 557 dev_dbg(&port->dev, "%s - %02x\n", __func__, value); in pl2303_set_control_lines() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_gfx.c | 738 int amdgpu_set_gfx_off_residency(struct amdgpu_device *adev, bool value) in amdgpu_set_gfx_off_residency() argument 744 r = amdgpu_dpm_set_residency_gfxoff(adev, value); in amdgpu_set_gfx_off_residency() 751 int amdgpu_get_gfx_off_residency(struct amdgpu_device *adev, u32 *value) in amdgpu_get_gfx_off_residency() argument 757 r = amdgpu_dpm_get_residency_gfxoff(adev, value); in amdgpu_get_gfx_off_residency() 764 int amdgpu_get_gfx_off_entrycount(struct amdgpu_device *adev, u64 *value) in amdgpu_get_gfx_off_entrycount() argument 770 r = amdgpu_dpm_get_entrycount_gfxoff(adev, value); in amdgpu_get_gfx_off_entrycount() 777 int amdgpu_get_gfx_off_status(struct amdgpu_device *adev, uint32_t *value) in amdgpu_get_gfx_off_status() argument 784 r = amdgpu_dpm_get_status_gfxoff(adev, value); in amdgpu_get_gfx_off_status() 924 uint32_t seq, reg_val_offs = 0, value = 0; in amdgpu_kiq_rreg() local 973 value in amdgpu_kiq_rreg() [all...] |
H A D | cik_sdma.c | 347 unsigned value = amdgpu_sdma_phase_quantum; in cik_ctx_switch_enable() local 350 while (value > (SDMA0_PHASE0_QUANTUM__VALUE_MASK >> in cik_ctx_switch_enable() 352 value = (value + 1) >> 1; in cik_ctx_switch_enable() 357 value = (SDMA0_PHASE0_QUANTUM__VALUE_MASK >> in cik_ctx_switch_enable() 363 value << unit); in cik_ctx_switch_enable() 366 value << SDMA0_PHASE0_QUANTUM__VALUE__SHIFT | in cik_ctx_switch_enable() 600 * value to memory. (CIK). 650 * @timeout: timeout value in jiffies, or MAX_SCHEDULE_TIMEOUT 741 * @value 747 cik_sdma_vm_write_pte(struct amdgpu_ib *ib, uint64_t pe, uint64_t value, unsigned count, uint32_t incr) cik_sdma_vm_write_pte() argument [all...] |
H A D | sdma_v3_0.c | 554 unsigned value = amdgpu_sdma_phase_quantum; in sdma_v3_0_ctx_switch_enable() local 557 while (value > (SDMA0_PHASE0_QUANTUM__VALUE_MASK >> in sdma_v3_0_ctx_switch_enable() 559 value = (value + 1) >> 1; in sdma_v3_0_ctx_switch_enable() 564 value = (SDMA0_PHASE0_QUANTUM__VALUE_MASK >> in sdma_v3_0_ctx_switch_enable() 570 value << unit); in sdma_v3_0_ctx_switch_enable() 573 value << SDMA0_PHASE0_QUANTUM__VALUE__SHIFT | in sdma_v3_0_ctx_switch_enable() 804 * value to memory. (VI). 855 * @timeout: timeout value in jiffies, or MAX_SCHEDULE_TIMEOUT 949 * @value 955 sdma_v3_0_vm_write_pte(struct amdgpu_ib *ib, uint64_t pe, uint64_t value, unsigned count, uint32_t incr) sdma_v3_0_vm_write_pte() argument [all...] |
/kernel/linux/linux-6.6/drivers/media/i2c/ |
H A D | saa717x.c | 86 static int saa717x_write(struct v4l2_subdev *sd, u32 reg, u32 value) in saa717x_write() argument 100 mm1[4] = (value >> 16) & 0xff; in saa717x_write() 101 mm1[3] = (value >> 8) & 0xff; in saa717x_write() 102 mm1[2] = value & 0xff; in saa717x_write() 104 mm1[2] = value & 0xff; in saa717x_write() 108 v4l2_dbg(2, debug, sd, "wrote: reg 0x%03x=%08x\n", reg, value); in saa717x_write() 128 u32 value; in saa717x_read() local 142 value = (mm2[2] << 16) | (mm2[1] << 8) | mm2[0]; in saa717x_read() 144 value = mm2[0]; in saa717x_read() 146 v4l2_dbg(2, debug, sd, "read: reg 0x%03x=0x%08x\n", reg, value); in saa717x_read() [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath9k/ |
H A D | ar5008_phy.c | 153 * no change, use value from ini file 158 * 2422 also uses value of 2 162 * Less than 2412 uses value of 0, 2412 and above uses value of 2 199 * For the external AR2133/AR5133 radios, takes the MHz channel value and set 200 * the channel value. Assumes writes enabled to analog bus and bank6 register 960 s32 value; in ar5008_hw_ani_control_new() local 1047 value = level * 2; in ar5008_hw_ani_control_new() 1049 AR_PHY_FIND_SIG_FIRSTEP, value); in ar5008_hw_ani_control_new() 1051 AR_PHY_FIND_SIG_FIRSTEP_LOW, value); in ar5008_hw_ani_control_new() [all...] |
/kernel/linux/linux-6.6/drivers/pci/pcie/ |
H A D | aspm.c | 319 * Encode an LTR_L1.2_THRESHOLD value for the L1 PM Substates Control 1 320 * register. Ports enter L1.2 when the most recent LTR value is greater 326 static void encode_l12_threshold(u32 threshold_us, u32 *scale, u32 *value) in encode_l12_threshold() argument 331 * LTR_L1.2_THRESHOLD_Value ("value") is a 10-bit field with max in encode_l12_threshold() 332 * value of 0x3ff. in encode_l12_threshold() 336 *value = threshold_ns; in encode_l12_threshold() 339 *value = roundup(threshold_ns, 32) / 32; in encode_l12_threshold() 342 *value = roundup(threshold_ns, 1024) / 1024; in encode_l12_threshold() 345 *value = roundup(threshold_ns, 32768) / 32768; in encode_l12_threshold() 348 *value in encode_l12_threshold() 443 u32 t_common_mode, t_power_on, l1_2_threshold, scale, value; aspm_calc_l12_info() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/ |
H A D | i915_cmd_parser.c | 128 u32 value; member 149 * A non-zero step value implies that the command may access multiple 162 * compared against an expected value. If the command does not match 163 * the expected value, the parser rejects it. Only valid if flags has 569 * doesn't match value. 577 u32 value; member 669 .value = 0), 673 .value = 0), 820 u32 curr = desc->cmd.value & desc->cmd.mask; in validate_cmds_sorted() 928 cmd_header_key(desc->cmd.value)); in init_hash_table() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/tiny/ |
H A D | repaper.c | 286 static inline u16 repaper_interleave_bits(u16 value) in repaper_interleave_bits() argument 288 value = (value | (value << 4)) & 0x0f0f; in repaper_interleave_bits() 289 value = (value | (value << 2)) & 0x3333; in repaper_interleave_bits() 290 value = (value | (value << in repaper_interleave_bits() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/include/x86_64/ |
H A D | processor.h | 95 * Pack the information into a 64-bit value so that each X86_FEATURE_XXX can be 96 * passed by value with no overhead. 217 * value/property as opposed to a single-bit feature. Again, pack the info 218 * into a 64-bit value to pass by value with no overhead. 430 static inline void wrmsr(uint32_t msr, uint64_t value) in wrmsr() argument 432 uint32_t a = value; in wrmsr() 433 uint32_t d = value >> 32; in wrmsr() 555 static inline void xsetbv(u32 index, u64 value) in xsetbv() argument 557 u32 eax = value; in xsetbv() 586 outl(uint16_t port, uint32_t value) outl() argument 1178 xsetbv_safe(uint32_t index, uint64_t value) xsetbv_safe() argument [all...] |
/kernel/linux/linux-6.6/sound/soc/fsl/ |
H A D | fsl_micfil.c | 158 ucontrol->value.integer.value[0] = micfil->quality; in micfil_quality_get() 169 micfil->quality = ucontrol->value.integer.value[0]; in micfil_quality_set() 222 unsigned int *item = ucontrol->value.enumerated.item; in micfil_put_dc_remover_state() 232 /* Calculate total value for all channels */ in micfil_put_dc_remover_state() 251 ucontrol->value.enumerated.item[0] = micfil->dc_remover; in micfil_get_dc_remover_state() 261 unsigned int *item = ucontrol->value.enumerated.item; in hwvad_put_enable() 276 ucontrol->value.enumerated.item[0] = micfil->vad_enabled; in hwvad_get_enable() 286 unsigned int *item = ucontrol->value in hwvad_put_init_mode() [all...] |
/kernel/linux/linux-6.6/sound/soc/codecs/ |
H A D | lpass-va-macro.c | 516 val = ucontrol->value.enumerated.item[0]; in va_macro_put_dec_enum() 559 ucontrol->value.integer.value[0] = 1; in va_macro_tx_mixer_get() 561 ucontrol->value.integer.value[0] = 0; in va_macro_tx_mixer_get() 578 u32 enable = ucontrol->value.integer.value[0]; in va_macro_tx_mixer_put() 816 ucontrol->value.enumerated.item[0] = va->dec_mode[path]; in va_macro_dec_mode_get() 825 int value = ucontrol->value in va_macro_dec_mode_put() local [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | opus_silk.c | 121 int j, value = nlsf[i]; in silk_stabilize_lsf() local 122 for (j = i - 1; j >= 0 && nlsf[j] > value; j--) in silk_stabilize_lsf() 124 nlsf[j + 1] = value; in silk_stabilize_lsf() 313 int16_t lsf_res[16]; // residual as a Q10 value in silk_decode_lpc() 350 int cur, prev, next, weight_sq, weight, ipart, fpart, y, value; in silk_decode_lpc() local 365 value = cur * 128 + (lsf_res[i] * 16384) / weight; in silk_decode_lpc() 366 nlsf[i] = av_clip_uintp2(value, 15); in silk_decode_lpc() 488 int value = excitation[i]; in silk_decode_excitation() local 489 excitation[i] = value * 256 | ff_silk_quant_offset[voiced][qoffset_high]; in silk_decode_excitation() 490 if (value < in silk_decode_excitation() [all...] |
/third_party/gn/src/gn/ |
H A D | functions.cc | 30 #include "gn/value.h" 65 // If the value didn't come from a scope at all, we're safe. in EnsureNotReadingFromSameDeclareArgs() 81 "If you need to set the value of one arg based on another, put\n" in EnsureNotReadingFromSameDeclareArgs() 247 *err = Err(function->function(), "Assertion value not a bool."); in RunAssert() 258 // Assertion passed: there is nothing to do, so return an empty value. in RunAssert() 273 // However, if you do "assert(foo && bar)" the source of the value will in RunAssert() 435 are saved, with the values specified in the block used as the "default value" 446 this only sets a default value that may be discarded. In particular, 447 don't use the result of exec_script() to set the default value. If you 448 want to have a script-defined default, set some default "undefined" value [all...] |
H A D | visual_studio_writer.cc | 42 void operator()(const std::string& value, std::ostream& out) const { in operator ()() 43 out << XmlEscape(value) + ';'; in operator ()() 115 std::u16string value; in GetWindowsKitsIncludeDirs() local 116 if (key.ReadValue(value_name.c_str(), &value) == ERROR_SUCCESS) { in GetWindowsKitsIncludeDirs() 117 kits_path = base::UTF16ToUTF8(value); in GetWindowsKitsIncludeDirs() 408 const Value* value = in WriteProjectFiles() local 410 if (value != nullptr && value->string_value() == "x64") in WriteProjectFiles() 646 " " + tool_outputs[0].value()); in WriteProjectFileContents() 648 tool_outputs[0].value()); in WriteProjectFileContents() [all...] |
/third_party/libcoap/src/ |
H A D | coap_resource.c | 110 * @c 1 on succes. On error, the value in @p buflen is undefined and 111 * the return value will be @c 0. 216 if (!attr || !attr->value) 218 unquoted_val = *attr->value; 219 if (attr->value->s[0] == '"') { /* if attribute has a quoted value, remove double quotes */ 408 attr->value = val; 441 return attr->value; 450 if (attr->value) { 451 coap_delete_str_const(attr->value); [all...] |
/third_party/node/src/ |
H A D | util.h | 292 v8::Local<v8::String> value) = 0; 502 explicit inline ArrayBufferViewContents(v8::Local<v8::Value> value); 503 explicit inline ArrayBufferViewContents(v8::Local<v8::Object> value); 528 explicit Utf8Value(v8::Isolate* isolate, v8::Local<v8::Value> value); 536 explicit TwoByteValue(v8::Isolate* isolate, v8::Local<v8::Value> value); 541 explicit BufferValue(v8::Isolate* isolate, v8::Local<v8::Value> value); 629 explicit NonCopyableMaybe(T&& value) in NonCopyableMaybe() argument 631 value_(std::move(value)) {} in NonCopyableMaybe() 657 // Test whether some value can be called with (). 663 std::is_same<decltype(void(&T::operator())), void>::value [all...] |
/third_party/libwebsockets/win32port/zlib/ |
H A D | trees.c | 157 local unsigned bi_reverse OF((unsigned value, int length));
187 * Send a value on a given number of bits.
188 * IN assertion: length <= 16 and value fits in length bits.
191 local void send_bits OF((deflate_state *s, int value, int length));
193 local void send_bits(s, value, length)
in send_bits() 195 int value; /* value to send */
198 Tracevv((stderr," l %2d v %4x ", length, value));
203 * (16 - bi_valid) bits from value, leaving (width - (16-bi_valid))
204 * unused bits in value [all...] |
/third_party/node/deps/openssl/openssl/crypto/ec/ |
H A D | ec_asn1.c | 89 } value; member 158 ASN1_SIMPLE(ECPKPARAMETERS, value.named_curve, ASN1_OBJECT), 159 ASN1_SIMPLE(ECPKPARAMETERS, value.parameters, ECPARAMETERS), 160 ASN1_SIMPLE(ECPKPARAMETERS, value.implicitlyCA, ASN1_NULL) 482 ASN1_OBJECT_free(ret->value.named_curve); in EC_GROUP_get_ecpkparameters() 484 && ret->value.parameters != NULL) in EC_GROUP_get_ecpkparameters() 485 ECPARAMETERS_free(ret->value.parameters); in EC_GROUP_get_ecpkparameters() 502 ret->value.named_curve = asn1obj; in EC_GROUP_get_ecpkparameters() 510 if ((ret->value.parameters = in EC_GROUP_get_ecpkparameters() 862 tmp = OBJ_obj2nid(params->value in EC_GROUP_new_from_ecpkparameters() [all...] |
/third_party/openssl/crypto/ec/ |
H A D | ec_asn1.c | 89 } value; member 158 ASN1_SIMPLE(ECPKPARAMETERS, value.named_curve, ASN1_OBJECT), 159 ASN1_SIMPLE(ECPKPARAMETERS, value.parameters, ECPARAMETERS), 160 ASN1_SIMPLE(ECPKPARAMETERS, value.implicitlyCA, ASN1_NULL) 482 ASN1_OBJECT_free(ret->value.named_curve); in EC_GROUP_get_ecpkparameters() 484 && ret->value.parameters != NULL) in EC_GROUP_get_ecpkparameters() 485 ECPARAMETERS_free(ret->value.parameters); in EC_GROUP_get_ecpkparameters() 502 ret->value.named_curve = asn1obj; in EC_GROUP_get_ecpkparameters() 510 if ((ret->value.parameters = in EC_GROUP_get_ecpkparameters() 862 tmp = OBJ_obj2nid(params->value in EC_GROUP_new_from_ecpkparameters() [all...] |
/third_party/vk-gl-cts/external/amber/src/src/ |
H A D | pipeline_test.cc | 602 arg_info1.value = int_value; in TEST_F() 609 arg_info2.value = int_value; in TEST_F() 616 arg_info3.value = int_value; in TEST_F() 666 arg_info1.value = int_value; in TEST_F() 709 arg_info1.value = int_value; in TEST_F() 772 arg_info1.value = int_value; in TEST_F() 779 arg_info2.value = int_value; in TEST_F() 786 arg_info3.value = int_value; in TEST_F() 930 arg_info1.value = int_value; in TEST_F() 937 arg_info2.value in TEST_F() [all...] |
/third_party/skia/src/core/ |
H A D | SkBlitter.cpp | 38 const SkPixmap* SkBlitter::justAnOpaqueColor(uint32_t* value) { in justAnOpaqueColor() argument 319 const SkPixmap* SkNullBlitter::justAnOpaqueColor(uint32_t* value) { in justAnOpaqueColor() argument 480 const SkPixmap* SkRectClipBlitter::justAnOpaqueColor(uint32_t* value) { 481 return fBlitter->justAnOpaqueColor(value); 616 const SkPixmap* SkRgnClipBlitter::justAnOpaqueColor(uint32_t* value) { 617 return fBlitter->justAnOpaqueColor(value); 668 mode.value() > SkBlendMode::kLastCoeffMode || 711 if (mode.value() != SkBlendMode::kSrcOver) { 724 if (mode.value() == SkBlendMode::kClear) { 885 const SkPixmap* SkRectClipCheckBlitter::justAnOpaqueColor(uint32_t* value) { [all...] |
/third_party/skia/src/sksl/ir/ |
H A D | SkSLFunctionCall.cpp | 64 double value[]) { in assemble_compound() 69 array.push_back(Literal::Make(line, value[index], &returnType.componentType())); in assemble_compound() 92 // of scalars and vectors, the scalars is interpreted as a vector containing the same value for in coalesce_n_way_vector() 103 double value = startingState; in coalesce_n_way_vector() local 118 value = coalesce(value, *arg0Value, *arg1Value); in coalesce_n_way_vector() 120 // If coalescing the intrinsic yields a non-finite value, do not optimize. in coalesce_n_way_vector() 121 if (!std::isfinite(value)) { in coalesce_n_way_vector() 127 value = finalize(value); in coalesce_n_way_vector() 61 assemble_compound(const Context& context, int line, const Type& returnType, double value[]) assemble_compound() argument [all...] |
/third_party/python/Lib/test/ |
H A D | test_fractions.py | 22 def __init__(self, value): 23 if not isinstance(value, float): 25 self.value = value 29 return op(F.from_float(self.value), other) 31 return op(self.value, other.value) 437 def __init__(self, value): 438 self.value = value [all...] |