/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/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()
|
/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...] |
/kernel/linux/linux-5.10/drivers/input/keyboard/ |
H A D | adc-keys.c | 35 int i, value, ret; in adc_keys_poll() local 39 ret = iio_read_channel_processed(st->channel, &value); in adc_keys_poll() 42 value = st->keyup_voltage; in adc_keys_poll() 45 diff = abs(st->map[i].voltage - value); in adc_keys_poll() 53 if (abs(st->keyup_voltage - value) < closest) in adc_keys_poll() 112 int i, value; in adc_keys_probe() local 176 if (!device_property_read_u32(dev, "poll-interval", &value)) in adc_keys_probe() 177 input_set_poll_interval(input, value); in adc_keys_probe()
|
/kernel/linux/linux-5.10/drivers/leds/ |
H A D | leds-powernv.c | 77 enum led_brightness value) in powernv_led_set() 89 if (value) in powernv_led_set() 134 __be64 mask, value, max_type; in powernv_led_get() local 141 value = cpu_to_be64(0); in powernv_led_get() 145 &mask, &value, &max_type); in powernv_led_get() 153 led_value = be64_to_cpu(value); in powernv_led_get() 162 /* LED status value */ in powernv_led_get() 174 enum led_brightness value) in powernv_brightness_set() 186 rc = powernv_led_set(powernv_led, value); in powernv_brightness_set() 76 powernv_led_set(struct powernv_led_data *powernv_led, enum led_brightness value) powernv_led_set() argument 173 powernv_brightness_set(struct led_classdev *led_cdev, enum led_brightness value) powernv_brightness_set() argument
|
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/nfpcore/ |
H A D | nfp_cpplib.c | 36 * @value: Pointer to read buffer 41 unsigned long long address, u32 *value) in nfp_cpp_readl() 50 *value = get_unaligned_le32(tmp); in nfp_cpp_readl() 59 * @value: Value to write 64 unsigned long long address, u32 value) in nfp_cpp_writel() 69 put_unaligned_le32(value, tmp); in nfp_cpp_writel() 80 * @value: Pointer to read buffer 85 unsigned long long address, u64 *value) in nfp_cpp_readq() 94 *value = get_unaligned_le64(tmp); in nfp_cpp_readq() 103 * @value 40 nfp_cpp_readl(struct nfp_cpp *cpp, u32 cpp_id, unsigned long long address, u32 *value) nfp_cpp_readl() argument 63 nfp_cpp_writel(struct nfp_cpp *cpp, u32 cpp_id, unsigned long long address, u32 value) nfp_cpp_writel() argument 84 nfp_cpp_readq(struct nfp_cpp *cpp, u32 cpp_id, unsigned long long address, u64 *value) nfp_cpp_readq() argument 107 nfp_cpp_writeq(struct nfp_cpp *cpp, u32 cpp_id, unsigned long long address, u64 value) nfp_cpp_writeq() argument [all...] |
/kernel/linux/linux-5.10/drivers/hwmon/ |
H A D | scmi-hwmon.c | 31 static int scmi_hwmon_scale(const struct scmi_sensor_info *sensor, u64 *value) in scmi_hwmon_scale() argument 58 *value *= f; in scmi_hwmon_scale() 60 *value = div64_u64(*value, f); in scmi_hwmon_scale() 69 u64 value; in scmi_hwmon_read() local 75 ret = h->sensor_ops->reading_get(h, sensor->id, &value); in scmi_hwmon_read() 79 ret = scmi_hwmon_scale(sensor, &value); in scmi_hwmon_read() 81 *val = value; in scmi_hwmon_read()
|
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/include/ |
H A D | brcmu_utils.h | 50 #define CRC16_INIT_VALUE 0xffff /* Initial CRC16 checksum value */ 51 #define CRC16_GOOD_VALUE 0xf0b8 /* Good final CRC16 checksum value */ 158 /* prec_out may be NULL if caller is not interested in return value */ 172 static inline void brcmu_maskset32(u32 *var, u32 mask, u8 shift, u32 value) in brcmu_maskset32() argument 174 value = (value << shift) & mask; in brcmu_maskset32() 175 *var = (*var & ~mask) | value; in brcmu_maskset32() 181 static inline void brcmu_maskset16(u16 *var, u16 mask, u8 shift, u16 value) in brcmu_maskset16() argument 183 value = (value << shif in brcmu_maskset16() [all...] |