/foundation/multimedia/image_effect/frameworks/native/capi/ |
H A D | image_effect.cpp | 307 const ImageEffect_Any *value) in OH_ImageEffect_Configure() 315 CHECK_AND_RETURN_RET_LOG(value != nullptr, ImageEffect_ErrorCode::EFFECT_ERROR_PARAM_INVALID, in OH_ImageEffect_Configure() 316 "Configure: input parameter value is null!"); in OH_ImageEffect_Configure() 319 ErrorCode result = NativeCommonUtils::ParseOHAny(value, any); in OH_ImageEffect_Configure() 322 result, key, value->dataType); in OH_ImageEffect_Configure() 326 "Configure: config fail! result=%{public}d, key=%{public}s, dataType=%{public}d", result, key, value->dataType); in OH_ImageEffect_Configure() 306 OH_ImageEffect_Configure(OH_ImageEffect *imageEffect, const char *key, const ImageEffect_Any *value) OH_ImageEffect_Configure() argument
|
/foundation/multimodalinput/input/frameworks/napi/input_consumer/src/ |
H A D | js_register_module.cpp | 62 bool JsCommon::TypeOf(napi_env env, napi_value value, napi_valuetype type) in TypeOf() argument 65 CHKRF(napi_typeof(env, value, &valueType), TYPEOF); in TypeOf() 130 int32_t finalKey = finalKeyOption.value(); in GetHotkeyEventInfo() 210 int32_t finalKey = tempFinalKey.value(); in GetEventInfoAPI9() 235 int32_t finalKeyDownDuration = tempKeyDownDuration.value(); in GetEventInfoAPI9()
|
/foundation/communication/wifi/wifi/frameworks/js/napi/src/ |
H A D | wifi_napi_event.cpp | 146 napi_value NapiEvent::CreateResult(const napi_env& env, int value) in CreateResult() argument 149 napi_create_int32(env, value, &result); in CreateResult() 252 void OnDeviceConfigChanged(ConfigChange value) override { 253 WIFI_LOGI("OnDeviceConfigChanged event: %{public}d", static_cast<int>(value)); 254 CheckAndNotify(EVENT_STA_DEVICE_CONFIG_CHANGE, static_cast<int>(value));
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/cloud/ |
H A D | cloud_sync_utils.cpp | 32 // If data is primary key or is a composite primary key, then use rowID as value in GetCloudPkVals() 41 LOGE("[CloudSyncer] Cloud data do not contain expected primary field value"); in GetCloudPkVals() 464 auto &[col, value] = *it; in FillAssetIdToAssets() 465 if (!CheckIfContainsInsertAssets(value)) { in FillAssetIdToAssets() 475 if (extendIt->second.index() != value.index()) { in FillAssetIdToAssets() 477 extendIt->second.index(), value.index()); in FillAssetIdToAssets() 482 int ret = FillAssetIdToAssetData(extendIt->second, value); in FillAssetIdToAssets()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/ |
H A D | sqlite_cloud_kv_store.cpp | 33 int SqliteCloudKvStore::GetMetaData(const Key &key, Value &value) const in GetMetaData() 35 return storageHandle_->GetMetaData(key, value); in GetMetaData() 38 int SqliteCloudKvStore::PutMetaData(const Key &key, const Value &value) in PutMetaData() argument 40 return storageHandle_->PutMetaData(key, value, false); in PutMetaData() 443 std::vector<uint8_t> blob = dataItem.value; in GetCloudVersion()
|
/foundation/distributeddatamgr/kv_store/test/fuzztest/devicekvstore_fuzzer/ |
H A D | devicekvstore_fuzzer.cpp | 107 entry1.value = { svalue + "test_val1" }; in PutBatchFuzz() 109 entry2.value = { svalue + "test_val2" }; in PutBatchFuzz() 111 entry3.value = { svalue + "test_val3" }; in PutBatchFuzz() 379 entry.value = std::to_string(i).append("_v"); in RemoveDeviceDataFuzz() 380 dictionary[entry.key] = entry.value; in RemoveDeviceDataFuzz()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/oh_adapter/src/ |
H A D | rd_json_object.cpp | 152 double value = cJSON_GetNumberValue(node); in CheckNumber() local 153 if (value > __DBL_MAX__ || value < -__DBL_MAX__) { in CheckNumber() 184 GLOGE("Int value is larger than double"); in Init() 390 ValueObject value; in GetItemValue() local 408 return value; in GetItemValue() 617 GLOGE("Get json value object failed. %d", errCode); in GetObjectByPath()
|
/foundation/distributeddatamgr/preferences/frameworks/js/napi/sendable_preferences/src/ |
H A D | napi_preferences.cpp | 99 napi_env env, std::shared_ptr<OHOS::NativePreferences::Preferences> value, napi_value *instance) in NewInstance() 101 if (value == nullptr) { in NewInstance() 121 obj->SetInstance(value); in NewInstance() 155 PRE_CHECK_RETURN_ERR_SET(rc == napi_ok, std::make_shared<ParamTypeError>("The type of value must be ValueType.")); in ParseDefValue() 174 for (const auto &[key, value] : context->allElements) { in GetAllExecute() 176 DECLARE_NAPI_DEFAULT_PROPERTY(key.c_str(), Utils::ConvertToSendable(env, value.value_)))); in GetAllExecute() 217 "getting value.")); in GetValue() 229 LOG_DEBUG("GetValue get default value."); in GetValue() 236 "getting value.")); in GetValue() 254 "setting value in SetValue() 98 NewInstance( napi_env env, std::shared_ptr<OHOS::NativePreferences::Preferences> value, napi_value *instance) NewInstance() argument [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/filters/av_transport_input/ |
H A D | av_transport_input_filter.cpp | 46 ErrorCode AVInputFilter::SetParameter(int32_t key, const Any& value) in SetParameter() argument 54 plugin_->SetParameter(static_cast<Plugin::Tag>(key), value); in SetParameter() local 58 paramsMap_[tag] = value; in SetParameter() 63 ErrorCode AVInputFilter::GetParameter(int32_t key, Any& value) in GetParameter() argument 72 value = paramsMap_[tag]; in GetParameter()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_gfx.c | 594 int amdgpu_get_gfx_off_status(struct amdgpu_device *adev, uint32_t *value) in amdgpu_get_gfx_off_status() argument 601 r = smu_get_status_gfxoff(adev, value); in amdgpu_get_gfx_off_status() 710 uint32_t seq, reg_val_offs = 0, value = 0; in amdgpu_kiq_rreg() local 756 value = adev->wb.wb[reg_val_offs]; in amdgpu_kiq_rreg() 758 return value; in amdgpu_kiq_rreg()
|
/kernel/linux/linux-5.10/arch/sparc/kernel/ |
H A D | visemul.c | 153 unsigned long value, fp; in fetch_reg() local 163 value = win->locals[reg - 16]; in fetch_reg() 167 get_user(value, &win32->locals[reg - 16]); in fetch_reg() 171 get_user(value, &win->locals[reg - 16]); in fetch_reg() 173 return value; in fetch_reg() 466 /* Absolute value of difference. */ in pdist()
|
/kernel/linux/linux-5.10/drivers/clk/ |
H A D | clk-bm1880.c | 640 int value; in bm1880_clk_div_set_rate() local 643 value = divider_get_val(rate, parent_rate, div->table, in bm1880_clk_div_set_rate() 645 if (value < 0) in bm1880_clk_div_set_rate() 646 return value; in bm1880_clk_div_set_rate() 655 val |= (u32)value << div->shift; in bm1880_clk_div_set_rate()
|
/kernel/linux/linux-5.10/drivers/firmware/ |
H A D | arm_scpi.c | 330 /* better than switch case as long as return value is continuous */ 742 __le64 value; in scpi_sensor_get_value() local 746 &value, sizeof(value)); in scpi_sensor_get_value() 752 *val = le32_to_cpup((__le32 *)&value); in scpi_sensor_get_value() 754 *val = le64_to_cpu(value); in scpi_sensor_get_value()
|
/kernel/linux/linux-6.6/arch/sparc/kernel/ |
H A D | visemul.c | 153 unsigned long value, fp; in fetch_reg() local 163 value = win->locals[reg - 16]; in fetch_reg() 167 get_user(value, &win32->locals[reg - 16]); in fetch_reg() 171 get_user(value, &win->locals[reg - 16]); in fetch_reg() 173 return value; in fetch_reg() 466 /* Absolute value of difference. */ in pdist()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/inc/ |
H A D | hwmgr.h | 57 uint32_t value; member 227 uint32_t (*get_mac_definition)(uint32_t value); 319 int (*set_sclk_od)(struct pp_hwmgr *hwmgr, uint32_t value); 321 int (*set_mclk_od)(struct pp_hwmgr *hwmgr, uint32_t value); 322 int (*read_sensor)(struct pp_hwmgr *hwmgr, int idx, void *value, int *size); 673 uint16_t usPWMMin; /* The minimum PWM value in percent (0.01% increments). */ 674 uint16_t usPWMMed; /* The PWM value (in percent) at TMed. */ 675 uint16_t usPWMHigh; /* The PWM value at THigh. */ 686 uint16_t usMaxFanPWM; /* The max Fan PWM value for Fuzzy Fan Control feature */ 690 uint16_t usDefaultMaxFanRPM; /* The max Fan RPM value fo [all...] |
/kernel/linux/linux-5.10/drivers/hid/ |
H A D | hid-lg-g15.c | 290 unsigned long value; in color_store() local 299 ret = kstrtoul(buf + 1, 16, &value); in color_store() 304 g15_led->red = (value & 0xff0000) >> 16; in color_store() 305 g15_led->green = (value & 0x00ff00) >> 8; in color_store() 306 g15_led->blue = (value & 0x0000ff); in color_store() 680 * but it does have a separate power-on (reset) value. in lg_g15_register_led()
|
H A D | hid-sensor-hub.c | 199 __s32 value; in sensor_hub_set_feature() local 222 value = 0; in sensor_hub_set_feature() 223 memcpy(&value, (u8 *)buf32, remaining_bytes); in sensor_hub_set_feature() 225 (__force __s32)cpu_to_le32(value)); in sensor_hub_set_feature() 272 val_ptr = (u8 *)report->field[field_index]->value; in sensor_hub_get_feature()
|
/kernel/linux/linux-5.10/drivers/i2c/busses/ |
H A D | i2c-bcm-iproc.c | 427 u8 value; in bcm_iproc_i2c_slave_isr() local 467 &value); in bcm_iproc_i2c_slave_isr() 472 &value); in bcm_iproc_i2c_slave_isr() 474 iproc_i2c_wr_reg(iproc_i2c, S_TX_OFFSET, value); in bcm_iproc_i2c_slave_isr() 506 i2c_slave_event(iproc_i2c->slave, I2C_SLAVE_STOP, &value); in bcm_iproc_i2c_slave_isr() 913 /* set threshold value */ in bcm_iproc_i2c_xfer_internal()
|
H A D | i2c-rk3x.c | 226 static inline void i2c_writel(struct rk3x_i2c *i2c, u32 value, in i2c_writel() argument 229 writel(value, i2c->regs + offset); in i2c_writel() 562 * a best-effort divider value is returned in divs. If the target rate is 699 /* Give the tuning value 0, that would not update con register */ in rk3x_i2c_v0_calc_timings() 722 * a best-effort divider value is returned in divs. If the target rate is 829 * is a appropriate value to reduce calculated times. in rk3x_i2c_v1_calc_timings() 1236 u32 value; in rk3x_i2c_probe() local 1289 /* 27+i: write mask, 11+i: value */ in rk3x_i2c_probe() 1290 value = BIT(27 + bus_nr) | BIT(11 + bus_nr); in rk3x_i2c_probe() 1292 ret = regmap_write(grf, i2c->soc_data->grf_offset, value); in rk3x_i2c_probe() [all...] |
/kernel/linux/linux-5.10/drivers/iio/adc/ |
H A D | vf610_adc.c | 161 u32 value; member 194 /* fall-back value using a safe divisor */ in vf610_adc_calculate_rates() 201 * Determine the long sample time adder value to be used based in vf610_adc_calculate_rates() 388 * Set ADLSMP and ADSTS based on the Long Sample Time Adder value in vf610_adc_sample_set() 584 info->value = vf610_adc_read_data(info); in vf610_adc_isr() 586 info->scan.chan = info->value; in vf610_adc_isr() 662 *val = info->value; in vf610_read_raw() 670 *val = 25000 - ((int)info->value - VF610_VTEMP25_3V3) * in vf610_read_raw()
|
/kernel/linux/linux-5.10/drivers/net/wireless/intersil/hostap/ |
H A D | hostap_wlan.h | 24 /* Specific skb->protocol value that indicates that the packet already contains 26 * FIX: This might need own value that would be allocated especially for Prism2 144 * dBm value with some accuracy */ 859 int rssi_to_dBm; /* subtract from RSSI to get approximate dBm value */ 976 #define PRISM2_IO_DEBUG_ENTRY(cmd, reg, value) \ 977 (((cmd) << 24) | ((reg) << 16) | value) 980 int reg, int value) in prism2_io_debug_add() 992 PRISM2_IO_DEBUG_ENTRY(cmd, reg, value); in prism2_io_debug_add() 1019 int reg, int value) in prism2_io_debug_add() 979 prism2_io_debug_add(struct net_device *dev, int cmd, int reg, int value) prism2_io_debug_add() argument 1018 prism2_io_debug_add(struct net_device *dev, int cmd, int reg, int value) prism2_io_debug_add() argument
|
/kernel/linux/linux-5.10/drivers/rtc/ |
H A D | rtc-rv3028.c | 468 int ret, value, steps; in rv3028_read_offset() local 470 ret = regmap_read(rv3028->regmap, RV3028_OFFSET, &value); in rv3028_read_offset() 474 steps = sign_extend32(value << 1, 8); in rv3028_read_offset() 476 ret = regmap_read(rv3028->regmap, RV3028_BACKUP, &value); in rv3028_read_offset() 480 steps += value >> 7; in rv3028_read_offset() 878 dev_warn(&client->dev, "invalid trickle resistor value\n"); in rv3028_probe()
|
/kernel/linux/linux-5.10/drivers/scsi/fnic/ |
H A D | vnic_dev.c | 564 void *value) in vnic_dev_spec() 577 *(u8 *)value = (u8)a0; in vnic_dev_spec() 580 *(u16 *)value = (u16)a0; in vnic_dev_spec() 583 *(u32 *)value = (u32)a0; in vnic_dev_spec() 586 *(u64 *)value = a0; in vnic_dev_spec() 563 vnic_dev_spec(struct vnic_dev *vdev, unsigned int offset, unsigned int size, void *value) vnic_dev_spec() argument
|
/kernel/linux/linux-5.10/drivers/of/ |
H A D | fdt.c | 166 pp->value = (__be32 *)val; in populate_properties() 194 pp->value = pp + 1; in populate_properties() 197 memcpy(pp->value, ps, len - 1); in populate_properties() 198 ((char *)pp->value)[len - 1] = 0; in populate_properties() 200 nodename, (char *)pp->value); in populate_properties() 718 * Return: a non-zero value on match with smaller values returned for more 1085 /* update CRC check value */ in early_init_dt_scan_chosen()
|
/kernel/linux/linux-5.10/drivers/staging/rtl8188eu/os_dep/ |
H A D | usb_ops_linux.c | 201 static int usbctrl_vendorreq(struct adapter *adapt, u8 request, u16 value, u16 index, void *pdata, u16 len, u8 requesttype) in usbctrl_vendorreq() argument 250 status = usb_control_msg(udev, pipe, request, reqtype, value, index, pIo_buf, len, RTW_USB_CONTROL_MSG_TIMEOUT); in usbctrl_vendorreq() 256 DBG_88E("reg 0x%x, usb %s %u fail, status:%d value=0x%x, vendorreq_times:%d\n", in usbctrl_vendorreq() 257 value, (requesttype == 0x01) ? "read" : "write", in usbctrl_vendorreq() 276 if ((value >= FW_8188E_START_ADDRESS && value <= FW_8188E_END_ADDRESS) || status == len) in usbctrl_vendorreq()
|