/kernel/linux/linux-6.6/drivers/iio/adc/ |
H A D | qcom-spmi-vadc.c | 425 static int vadc_hw_settle_time_from_dt(u32 value) in vadc_hw_settle_time_from_dt() argument 427 if ((value <= 1000 && value % 100) || (value > 1000 && value % 2000)) in vadc_hw_settle_time_from_dt() 430 if (value <= 1000) in vadc_hw_settle_time_from_dt() 431 value /= 100; in vadc_hw_settle_time_from_dt() 433 value = value / 2000 + 10; in vadc_hw_settle_time_from_dt() 435 return value; in vadc_hw_settle_time_from_dt() 438 vadc_avg_samples_from_dt(u32 value) vadc_avg_samples_from_dt() argument 668 u32 chan, value, varr[2]; vadc_get_fw_channel_data() local [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/mm/ |
H A D | uffd-unit-tests.c | 226 #define pagemap_check_wp(value, wp) do { \ 227 if (!!(value & PM_UFFD_WP) != wp) \ 228 err("pagemap uffd-wp bit error: 0x%"PRIx64, value); \ 302 uint64_t value; in pagemap_test_fork() local 325 value = pagemap_get_entry(fd, area_dst); in pagemap_test_fork() 332 pagemap_check_wp(value, with_event); in pagemap_test_fork() 353 uint64_t value; in uffd_wp_unpopulated_test() local 364 value = pagemap_get_entry(pagemap_fd, area_dst); in uffd_wp_unpopulated_test() 365 pagemap_check_wp(value, true); in uffd_wp_unpopulated_test() 369 value in uffd_wp_unpopulated_test() 401 uint64_t value; uffd_wp_fork_test_common() local [all...] |
/kernel/linux/linux-6.6/sound/pci/lola/ |
H A D | lola_mixer.c | 332 /* set volume and do not save the value */ in lola_setup_all_analog_gains() 480 /* set gain value 0dB diagonally in matrix - part INPUT -> CAPTURE */ in init_mixer_values() 485 /* set gain value 0dB diagonally in matrix , part PLAYBACK -> OUTPUT in init_mixer_values() 509 uinfo->value.integer.min = 0; in lola_analog_vol_info() 510 uinfo->value.integer.max = chip->pin[dir].pins[0].amp_num_steps; in lola_analog_vol_info() 522 ucontrol->value.integer.value[i] = in lola_analog_vol_get() 536 ucontrol->value.integer.value[i], in lola_analog_vol_put() 606 uinfo->value in lola_input_src_info() [all...] |
/kernel/linux/linux-6.6/sound/pci/ice1712/ |
H A D | ews.c | 254 snd_cs8404_decode_spdif_bits(&ucontrol->value.iec958, ice->spdif.cs8403_bits); in ews88_spdif_default_get() 262 val = snd_cs8404_encode_spdif_bits(&ucontrol->value.iec958); in ews88_spdif_default_put() 277 snd_cs8404_decode_spdif_bits(&ucontrol->value.iec958, ice->spdif.cs8403_stream_bits); in ews88_spdif_stream_get() 285 val = snd_cs8404_encode_spdif_bits(&ucontrol->value.iec958); in ews88_spdif_stream_put() 582 ucontrol->value.enumerated.item[0] = snd_ice1712_read(ice, ICE1712_IREG_GPIO_DATA) & mask ? 1 : 0; in snd_ice1712_ewx_io_sense_get() 595 nval = ucontrol->value.enumerated.item[0] ? mask : 0; in snd_ice1712_ewx_io_sense_put() 640 ucontrol->value.enumerated.item[0] = data & ICE1712_EWS88MT_OUTPUT_SENSE ? 1 : 0; /* high = -10dBV, low = +4dBu */ in snd_ice1712_ews88mt_output_sense_get() 656 ndata = (data & ~ICE1712_EWS88MT_OUTPUT_SENSE) | (ucontrol->value.enumerated.item[0] ? ICE1712_EWS88MT_OUTPUT_SENSE : 0); in snd_ice1712_ews88mt_output_sense_put() 682 ucontrol->value.enumerated.item[0] = data & (1 << channel) ? 0 : 1; in snd_ice1712_ews88mt_input_sense_get() 702 ndata = (data & ~(1 << channel)) | (ucontrol->value in snd_ice1712_ews88mt_input_sense_put() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/ |
H A D | amdgpu_pm.c | 712 * power_dpm_force_performance_level. Enter a new value for each 739 * - For clock frequency setting, enter a new value by writing a 1024 * Secondly, enter a new value for each level by inputing a string that 1495 uint32_t value = 0; in amdgpu_get_pp_sclk_od() local 1508 value = smu_get_od_percentage(&(adev->smu), SMU_OD_SCLK); in amdgpu_get_pp_sclk_od() 1510 value = amdgpu_dpm_get_sclk_od(adev); in amdgpu_get_pp_sclk_od() 1515 return snprintf(buf, PAGE_SIZE, "%d\n", value); in amdgpu_get_pp_sclk_od() 1526 long int value; in amdgpu_set_pp_sclk_od() local 1531 ret = kstrtol(buf, 0, &value); in amdgpu_set_pp_sclk_od() 1543 value in amdgpu_set_pp_sclk_od() 1568 uint32_t value = 0; amdgpu_get_pp_mclk_od() local 1599 long int value; amdgpu_set_pp_mclk_od() local 1766 int r, value, size = sizeof(value); amdgpu_get_gpu_busy_percent() local 1804 int r, value, size = sizeof(value); amdgpu_get_mem_busy_percent() local 2392 int value; amdgpu_hwmon_set_pwm1_enable() local 2445 u32 value; amdgpu_hwmon_set_pwm1() local 2661 u32 value; amdgpu_hwmon_set_fan1_target() local 2749 int value; amdgpu_hwmon_set_fan1_enable() local 2984 u32 value; amdgpu_hwmon_set_power_cap() local 3483 uint32_t value; amdgpu_debugfs_pm_info_pp() local [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/sgx/ |
H A D | main.c | 293 put_op.value = MAGIC; in TEST_F() 301 get_op.value = 0; in TEST_F() 305 EXPECT_EQ(get_op.value, MAGIC); in TEST_F() 366 put_op.value = MAGIC; in TEST_F() 374 get_op.value = 0; in TEST_F() 378 EXPECT_EQ(get_op.value, MAGIC); in TEST_F() 434 put_op.value = MAGIC; 442 get_op.value = 0; 446 EXPECT_EQ(get_op.value, MAGIC); 515 put_op.value in TEST_F() [all...] |
/kernel/linux/linux-6.6/sound/usb/ |
H A D | mixer_scarlett_gen2.c | 144 /* device_setup value to enable */ 147 /* device_setup value to allow turning MSD mode back on */ 161 /* map from (dB + 80) * 2 to mixer value 1305 u8 value; in scarlett2_usb_get_config() local 1322 /* For bit-sized parameters, retrieve into value */ in scarlett2_usb_get_config() 1323 err = scarlett2_usb_get(mixer, config_item->offset, &value, 1); in scarlett2_usb_get_config() 1327 /* then unpack from value into buf[] */ in scarlett2_usb_get_config() 1329 for (i = 0; i < 8 && i < count; i++, value >>= 1) in scarlett2_usb_get_config() 1330 *buf_8++ = value & 1; in scarlett2_usb_get_config() 1359 int config_item_num, int index, int value) in scarlett2_usb_set_config() 1357 scarlett2_usb_set_config( struct usb_mixer_interface *mixer, int config_item_num, int index, int value) scarlett2_usb_set_config() argument 1368 __le32 value; scarlett2_usb_set_config() member 2105 scarlett2_vol_ctl_set_writable(struct usb_mixer_interface *mixer, int index, int value) scarlett2_vol_ctl_set_writable() argument [all...] |
/base/security/device_auth/services/frameworks/src/hiview_adapter/ |
H A D | hitrace_adapter.cpp | 24 void DevAuthStartTrace(const char *value) in DevAuthStartTrace() argument 26 if (value == nullptr) { in DevAuthStartTrace() 30 StartTrace(HITRACE_TAG_DEV_AUTH, value); in DevAuthStartTrace()
|
/base/global/i18n/interfaces/js/kits/src/ |
H A D | variable_convertor.cpp | 24 bool VariableConvertor::CheckNapiValueType(napi_env env, napi_value value) in CheckNapiValueType() argument 26 if (value != nullptr) { in CheckNapiValueType() 28 napi_typeof(env, value, &valueType); in CheckNapiValueType() 37 std::string &value) in GetOptionValue() 59 value = optionBuf.data(); in GetOptionValue() 90 std::string VariableConvertor::GetString(napi_env &env, napi_value &value, int32_t &code) in GetString() argument 93 napi_status status = napi_get_value_string_utf8(env, value, nullptr, 0, &len); in GetString() 100 status = napi_get_value_string_utf8(env, value, buf.data(), len + 1, &len); in GetString() 36 GetOptionValue(napi_env env, napi_value options, const std::string &optionName, std::string &value) GetOptionValue() argument
|
/base/security/appverify/interfaces/innerkits/appverify_lite/src/ |
H A D | app_centraldirectory.c | 32 void HapPutByte(const HapBuf *hapBuffer, int32_t offset, char value) in HapPutByte() argument 37 if ((offset >= 0) && (hapBuffer->len - offset >= (int)(sizeof(value)))) { in HapPutByte() 38 *(char *)((char *)hapBuffer->buffer + offset) = value; in HapPutByte() 55 void HapSetInt32(const HapBuf *buffer, int32_t offset, int32_t value) in HapSetInt32() argument 57 if (value < 0) { in HapSetInt32() 58 LOG_ERROR("int32 value of out range: %d", value); in HapSetInt32() 64 if ((offset >= 0) && ((buffer->len - offset) >= (int)(sizeof(value)))) { in HapSetInt32() 65 HapPutInt32((unsigned char *)buffer->buffer + offset, buffer->len - offset, (int)(value)); in HapSetInt32()
|
/base/security/crypto_framework/frameworks/native/src/ |
H A D | asym_key.c | 178 OH_Crypto_ErrCode OH_CryptoPubKey_GetParam(OH_CryptoPubKey *key, CryptoAsymKey_ParamType item, Crypto_DataBlob *value) in OH_CryptoPubKey_GetParam() argument 180 if ((key == NULL) || (value == NULL)) { in OH_CryptoPubKey_GetParam() 202 value->data = (uint8_t *)returnInt; in OH_CryptoPubKey_GetParam() 203 value->len = sizeof(int32_t); in OH_CryptoPubKey_GetParam() 212 value->data = (uint8_t *)returnStr; in OH_CryptoPubKey_GetParam() 213 value->len = strlen(returnStr); in OH_CryptoPubKey_GetParam() 221 value->data = (uint8_t *)bigIntValue.data; in OH_CryptoPubKey_GetParam() 222 value->len = (size_t)bigIntValue.len; in OH_CryptoPubKey_GetParam()
|
/base/startup/init/services/init/standard/ |
H A D | init_service.c | 100 int SetImportantValue(Service *service, const char *attrName, int value, int flag)
in SetImportantValue() argument 105 if (value >= MIN_IMPORTANT_LEVEL && value <= MAX_IMPORTANT_LEVEL) { // -20~19
in SetImportantValue() 107 service->importance = value;
in SetImportantValue() 109 INIT_LOGE("Importance level = %d, is not between -20 and 19, error", value);
in SetImportantValue() 176 char value[MAX_BUFFER_LEN] = {0};
in IsEnableSandbox() local 178 if (SystemReadParam("const.sandbox", value, &len) == 0) {
in IsEnableSandbox() 179 if (strcmp(value, "enable") == 0) {
in IsEnableSandbox()
|
/base/startup/init/services/etc/passwd_appender/ |
H A D | passwd_appender.py | 35 parser.add_option('--input-ranges', help="uid/gid value range") 48 value = [':'.join(passwd_gid_value), arr[3]] 49 source_dict[key] = value 69 value = [':'.join(passwd_gid_value), arr[3]] 71 value = [':'.join(passwd_gid_value), " "] 75 source_dict[key] = value 84 value = [':'.join(passwd_gid_value), arr[3]] 86 value = [':'.join(passwd_gid_value), " "] 90 source_dict[key] = value
|
/base/telephony/cellular_call/services/utils/src/ |
H A D | config_request.cpp | 100 int32_t ConfigRequest::SetImsConfigRequest(ImsConfigItem item, const std::string &value) in SetImsConfigRequest() argument 107 return imsCallClient->SetImsConfig(item, value); in SetImsConfigRequest() 110 int32_t ConfigRequest::SetImsConfigRequest(ImsConfigItem item, int32_t value) in SetImsConfigRequest() argument 117 return imsCallClient->SetImsConfig(item, value); in SetImsConfigRequest() 130 int32_t ConfigRequest::SetImsFeatureValueRequest(FeatureType type, int32_t value) in SetImsFeatureValueRequest() argument 137 return imsCallClient->SetImsFeatureValue(type, value); in SetImsFeatureValueRequest() 140 int32_t ConfigRequest::GetImsFeatureValueRequest(FeatureType type, int32_t &value) in GetImsFeatureValueRequest() argument 147 return imsCallClient->GetImsFeatureValue(type, value); in GetImsFeatureValueRequest()
|
/base/update/updater/services/script/script_interpreter/ |
H A D | script_expression.h | 85 static UScriptExpression* CreateExpression(int value)
in CreateExpression() argument 87 return new IntegerExpression(value);
in CreateExpression() 104 static UScriptExpression* CreateExpression(float value)
in CreateExpression() argument 106 return new FloatExpression(value);
in CreateExpression() 122 static UScriptExpression* CreateExpression(const std::string value)
in CreateExpression() argument 124 return new StringExpression(value);
in CreateExpression() 139 static UScriptExpression* CreateExpression(const std::string value)
in CreateExpression() argument 141 return new IdentifierExpression(value);
in CreateExpression()
|
/device/soc/hisilicon/common/platform/watchdog/ |
H A D | watchdog_hi35xx.c | 79 /* write any value to lock watchdog */ in Hi35xxWatchdogStart() 100 /* write any value to lock watchdog */ in Hi35xxWatchdogStop() 110 unsigned int value; in Hi35xxWatchdogSetTimeout() local 116 value = maxCnt; in Hi35xxWatchdogSetTimeout() 118 value = seconds * HIWDT_CLOCK_HZ; in Hi35xxWatchdogSetTimeout() 129 OSAL_WRITEL(value, hwdt->regBase + HIWDT_LOAD); in Hi35xxWatchdogSetTimeout() 130 OSAL_WRITEL(value, hwdt->regBase + HIWDT_VALUE); in Hi35xxWatchdogSetTimeout() 131 /* write any value to lock watchdog */ in Hi35xxWatchdogSetTimeout() 139 unsigned int value; in Hi35xxWatchdogGetTimeout() local 148 value in Hi35xxWatchdogGetTimeout() [all...] |
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/csf/ |
H A D | mali_kbase_csf_firmware.h | 135 * @value: Value to be written. 138 const struct kbase_csf_cmd_stream_info *info, u32 offset, u32 value); 156 * @value: Value to be written. 161 u32 value, u32 mask); 208 * @value: Value to be written. 212 u32 value); 231 * @value: Value to be written. 236 u32 value, u32 mask); 287 * @value: Value to be written. 290 const struct kbase_csf_global_iface *iface, u32 offset, u32 value); [all...] |
/kernel/linux/linux-5.10/drivers/gpio/ |
H A D | gpio-arizona.c | 97 unsigned offset, int value) in arizona_gpio_direction_out() 118 if (value) in arizona_gpio_direction_out() 119 value = ARIZONA_GPN_LVL; in arizona_gpio_direction_out() 122 ARIZONA_GPN_DIR | ARIZONA_GPN_LVL, value); in arizona_gpio_direction_out() 125 static void arizona_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in arizona_gpio_set() argument 130 if (value) in arizona_gpio_set() 131 value = ARIZONA_GPN_LVL; in arizona_gpio_set() 134 ARIZONA_GPN_LVL, value); in arizona_gpio_set() 96 arizona_gpio_direction_out(struct gpio_chip *chip, unsigned offset, int value) arizona_gpio_direction_out() argument
|
H A D | gpio-wm8994.c | 79 unsigned offset, int value) in wm8994_gpio_direction_out() 84 if (value) in wm8994_gpio_direction_out() 85 value = WM8994_GPN_LVL; in wm8994_gpio_direction_out() 88 WM8994_GPN_DIR | WM8994_GPN_LVL, value); in wm8994_gpio_direction_out() 91 static void wm8994_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in wm8994_gpio_set() argument 96 if (value) in wm8994_gpio_set() 97 value = WM8994_GPN_LVL; in wm8994_gpio_set() 99 wm8994_set_bits(wm8994, WM8994_GPIO_1 + offset, WM8994_GPN_LVL, value); in wm8994_gpio_set() 78 wm8994_gpio_direction_out(struct gpio_chip *chip, unsigned offset, int value) wm8994_gpio_direction_out() argument
|
/kernel/linux/linux-5.10/drivers/acpi/acpica/ |
H A D | dbutils.c | 120 ACPI_FORMAT_UINT64(obj_desc->integer.value)); in acpi_db_dump_external_object() 281 * PARAMETERS: value - The value to be converted to string 286 * DESCRIPTION: Convert the unsigned 32-bit value to the hexadecimal image 293 void acpi_db_uint32_to_hex_string(u32 value, char *buffer) in acpi_db_uint32_to_hex_string() argument 297 if (value == 0) { in acpi_db_uint32_to_hex_string() 305 buffer[i] = acpi_gbl_upper_hex_digits[value & 0x0F]; in acpi_db_uint32_to_hex_string() 306 value = value >> 4; in acpi_db_uint32_to_hex_string() 369 (method->common.value in acpi_db_second_pass_parse() [all...] |
/kernel/linux/linux-5.10/block/ |
H A D | blk-stat.c | 43 void blk_rq_stat_add(struct blk_rq_stat *stat, u64 value) in blk_rq_stat_add() argument 45 stat->min = min(stat->min, value); in blk_rq_stat_add() 46 stat->max = max(stat->max, value); in blk_rq_stat_add() 47 stat->batch += value; in blk_rq_stat_add() 57 u64 value; in blk_stat_add() local 59 value = (now >= rq->io_start_time_ns) ? now - rq->io_start_time_ns : 0; in blk_stat_add() 61 blk_throtl_stat_add(rq, value); in blk_stat_add() 74 blk_rq_stat_add(stat, value); in blk_stat_add()
|
/kernel/linux/linux-5.10/drivers/accessibility/speakup/ |
H A D | speakup_apollo.c | 141 jiffy_delta_val = jiffy_delta->u.n.value; in do_catch_up() 147 jiffy_delta_val = jiffy_delta->u.n.value; in do_catch_up() 148 full_time_val = full_time->u.n.value; in do_catch_up() 149 delay_time_val = delay_time->u.n.value; in do_catch_up() 163 full_time_val = full_time->u.n.value; in do_catch_up() 173 jiffy_delta_val = jiffy_delta->u.n.value; in do_catch_up() 174 full_time_val = full_time->u.n.value; in do_catch_up() 175 delay_time_val = delay_time->u.n.value; in do_catch_up()
|
/kernel/linux/linux-5.10/drivers/bcma/ |
H A D | host_soc.c | 32 u8 value) in bcma_host_soc_write8() 34 writeb(value, core->io_addr + offset); in bcma_host_soc_write8() 38 u16 value) in bcma_host_soc_write16() 40 writew(value, core->io_addr + offset); in bcma_host_soc_write16() 44 u32 value) in bcma_host_soc_write32() 46 writel(value, core->io_addr + offset); in bcma_host_soc_write32() 146 u32 value) in bcma_host_soc_awrite32() 150 writel(value, core->io_wrap + offset); in bcma_host_soc_awrite32() 31 bcma_host_soc_write8(struct bcma_device *core, u16 offset, u8 value) bcma_host_soc_write8() argument 37 bcma_host_soc_write16(struct bcma_device *core, u16 offset, u16 value) bcma_host_soc_write16() argument 43 bcma_host_soc_write32(struct bcma_device *core, u16 offset, u32 value) bcma_host_soc_write32() argument 145 bcma_host_soc_awrite32(struct bcma_device *core, u16 offset, u32 value) bcma_host_soc_awrite32() argument
|
/kernel/linux/linux-5.10/drivers/char/hw_random/ |
H A D | ks-sa-rng.c | 42 * If value is 0, the number of samples is 2^24 else 43 * equals value times 2^8. 50 * If value is 0, the number of samples is 2^24 else 51 * equals value times 2^6. 58 * If value is 0, the number of samples is 2^24 else 59 * equals value times 2^8. 115 u32 value; in ks_sa_rng_init() local 127 value = TRNG_DEF_STARTUP_CYCLES << TRNG_CNTL_REG_STARTUP_CYCLES_SHIFT; in ks_sa_rng_init() 128 writel(value, &ks_sa_rng->reg_rng->control); in ks_sa_rng_init() 130 value in ks_sa_rng_init() [all...] |
/kernel/linux/linux-5.10/drivers/char/mwave/ |
H A D | 3780i.h | 93 #define DSP_HBusTimerCfgIndex 0x0011 /* HBUS timer load value */ 146 unsigned char LoadValue:8; /* RW: HBUS timer load value */ 348 #define WriteMsaCfg(addr,value) dsp3780I_WriteMsaCfg(usDspBaseIO,addr,value) 350 #define WriteGenCfg(index,value) dsp3780I_WriteGenCfg(usDspBaseIO,index,value) 355 #define OutWordDsp(index,value) outw(value,usDspBaseIO+index) 356 #define OutByteDsp(index,value) outb(value,usDspBaseI [all...] |