/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/refresh/ |
H A D | refresh_layout_property.h | 48 auto value = MakeRefPtr<RefreshLayoutProperty>(); variable 49 value->UpdateLayoutProperty(this); 50 value->propIsRefreshing_ = CloneIsRefreshing(); 51 value->propIndicatorOffset_ = CloneIndicatorOffset(); 52 value->propFriction_ = CloneFriction(); 53 value->propProgressColor_ = CloneProgressColor(); 54 value->propLoadingText_ = CloneLoadingText(); 55 value->propPullToRefresh_ = ClonePullToRefresh(); 56 value->propRefreshOffset_ = CloneRefreshOffset(); 57 value [all...] |
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/ |
H A D | vector.h | 44 Vector(const Vector<T>& value) in Vector() argument 46 capacity_ = value.Capacity(); in Vector() 48 size_ = value.size_; in Vector() 49 if (value.array_ != nullptr) { in Vector() 50 for (uint16_t i = 0; i < value.size_; i++) { in Vector() 51 array_[i] = value.array_[i]; in Vector() 162 void operator=(const Vector<T>& value) in operator =() argument 164 if (capacity_ < value.Size()) { in operator =() 166 capacity_ = value.capacity_; in operator =() 169 if (value in operator =() [all...] |
/foundation/multimedia/camera_lite/frameworks/ |
H A D | frame_config.cpp | 54 void FrameConfig::SetVendorParameter(uint8_t *value, uint32_t len)
in SetVendorParameter() argument 56 if (value == nullptr) {
in SetVendorParameter() 57 MEDIA_ERR_LOG("value is a nullptr");
in SetVendorParameter() 65 ret = memcpy_s(privateTag_, sizeof(privateTag_), value, len);
in SetVendorParameter() 71 void FrameConfig::GetVendorParameter(uint8_t *value, uint32_t len)
in GetVendorParameter() argument 73 if (value == nullptr) {
in GetVendorParameter() 74 MEDIA_ERR_LOG("value is a nullptr");
in GetVendorParameter() 78 errno_t ret = memcpy_s(value, realLength, privateTag_, realLength);
in GetVendorParameter() 84 void FrameConfig::SetValue(uint32_t key, const void *value)
in SetValue() argument 86 if (value in SetValue() [all...] |
/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_ledger/ |
H A D | lnn_local_ledger_deps_mock.cpp | 49 char *value, uint32_t len) in LedgerGetCommonDevInfo() 51 if (value == nullptr) { in LedgerGetCommonDevInfo() 56 if (strncpy_s(value, len, DEFAULT_DEVICE_NAME, strlen(DEFAULT_DEVICE_NAME)) != EOK) { in LedgerGetCommonDevInfo() 61 if (strncpy_s(value, len, DEFAULT_DEVICE_UDID, UDID_BUF_LEN) != EOK) { in LedgerGetCommonDevInfo() 66 if (strncpy_s(value, len, DEFAULT_DEVICE_TYPE, strlen(DEFAULT_DEVICE_TYPE)) != EOK) { in LedgerGetCommonDevInfo() 96 int32_t GetCommonDevInfo(const CommonDeviceKey key, char *value, uint32_t len) in GetCommonDevInfo() argument 98 return GetLocalLedgerDepsInterface()->GetCommonDevInfo(key, value, len); in GetCommonDevInfo() 126 int32_t GetCommonOsType(int32_t *value) in GetCommonOsType() argument 128 return GetLocalLedgerDepsInterface()->GetCommonOsType(value); in GetCommonOsType() 131 int32_t GetCommonOsVersion(char *value, uint32_ argument 48 LedgerGetCommonDevInfo(const CommonDeviceKey key, char *value, uint32_t len) LedgerGetCommonDevInfo() argument 136 GetCommonDeviceVersion(char *value, uint32_t len) GetCommonDeviceVersion() argument [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/ |
H A D | auto_sync_timer_mock.cpp | 52 stores_.Compute(appId, [&storeIds](const auto &key, std::vector<StoreId> &value) { in AddSyncStores() 53 std::set<StoreId> tempStores(value.begin(), value.end()); in AddSyncStores() 56 value.push_back(*it); in AddSyncStores() 59 return !value.empty(); in AddSyncStores() 72 stores_.EraseIf([&stores, &count](const std::string &key, std::vector<StoreId> &value) { in GetStoreIds() 73 int size = value.size(); in GetStoreIds() 75 stores.insert({ key, std::move(value) }); in GetStoreIds() 80 auto it = value.begin(); in GetStoreIds() 81 while (it != value in GetStoreIds() [all...] |
/kernel/linux/linux-5.10/arch/ia64/hp/common/ |
H A D | aml_nfw.c | 17 * OpRegion. When AML reads the "return value" offset from the OpRegion, this 76 static void aml_nfw_read_arg(u8 *offset, u32 bit_width, u64 *value) in aml_nfw_read_arg() argument 80 *value = *(u8 *)offset; in aml_nfw_read_arg() 83 *value = *(u16 *)offset; in aml_nfw_read_arg() 86 *value = *(u32 *)offset; in aml_nfw_read_arg() 89 *value = *(u64 *)offset; in aml_nfw_read_arg() 94 static void aml_nfw_write_arg(u8 *offset, u32 bit_width, u64 *value) in aml_nfw_write_arg() argument 98 *(u8 *) offset = *value; in aml_nfw_write_arg() 101 *(u16 *) offset = *value; in aml_nfw_write_arg() 104 *(u32 *) offset = *value; in aml_nfw_write_arg() 112 aml_nfw_handler(u32 function, acpi_physical_address address, u32 bit_width, u64 *value, void *handler_context, void *region_context) aml_nfw_handler() argument [all...] |
/kernel/linux/linux-6.6/arch/ia64/hp/common/ |
H A D | aml_nfw.c | 17 * OpRegion. When AML reads the "return value" offset from the OpRegion, this 76 static void aml_nfw_read_arg(u8 *offset, u32 bit_width, u64 *value) in aml_nfw_read_arg() argument 80 *value = *(u8 *)offset; in aml_nfw_read_arg() 83 *value = *(u16 *)offset; in aml_nfw_read_arg() 86 *value = *(u32 *)offset; in aml_nfw_read_arg() 89 *value = *(u64 *)offset; in aml_nfw_read_arg() 94 static void aml_nfw_write_arg(u8 *offset, u32 bit_width, u64 *value) in aml_nfw_write_arg() argument 98 *(u8 *) offset = *value; in aml_nfw_write_arg() 101 *(u16 *) offset = *value; in aml_nfw_write_arg() 104 *(u32 *) offset = *value; in aml_nfw_write_arg() 112 aml_nfw_handler(u32 function, acpi_physical_address address, u32 bit_width, u64 *value, void *handler_context, void *region_context) aml_nfw_handler() argument [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | lsm.c | 16 __type(value, __u64); 23 __type(value, __u64); 30 __type(value, __u64); 66 __u64 *value; in BPF_PROG() local 74 value = bpf_map_lookup_elem(&array, &key); in BPF_PROG() 75 if (value) in BPF_PROG() 76 *value = 0; in BPF_PROG() 77 value = bpf_map_lookup_elem(&hash, &key); in BPF_PROG() 78 if (value) in BPF_PROG() 79 *value in BPF_PROG() [all...] |
/kernel/linux/linux-5.10/drivers/hid/ |
H A D | hid-lg2ff.c | 36 lg2ff->report->field[0]->value[0] = 0x51; in play_effect() 37 lg2ff->report->field[0]->value[2] = weak; in play_effect() 38 lg2ff->report->field[0]->value[4] = strong; in play_effect() 40 lg2ff->report->field[0]->value[0] = 0xf3; in play_effect() 41 lg2ff->report->field[0]->value[2] = 0x00; in play_effect() 42 lg2ff->report->field[0]->value[4] = 0x00; in play_effect() 82 report->field[0]->value[0] = 0xf3; in lg2ff_init() 83 report->field[0]->value[1] = 0x00; in lg2ff_init() 84 report->field[0]->value[2] = 0x00; in lg2ff_init() 85 report->field[0]->value[ in lg2ff_init() [all...] |
H A D | hid-lg3ff.c | 60 memset(report->field[0]->value, 0, in hid_lg3ff_play() 73 report->field[0]->value[0] = 0x51; in hid_lg3ff_play() 79 report->field[0]->value[1] = (unsigned char)(-x); in hid_lg3ff_play() 80 report->field[0]->value[31] = (unsigned char)(-y); in hid_lg3ff_play() 98 report->field[0]->value[0] = 0x51; in hid_lg3ff_set_autocenter() 99 report->field[0]->value[1] = 0x00; in hid_lg3ff_set_autocenter() 100 report->field[0]->value[2] = 0x00; in hid_lg3ff_set_autocenter() 101 report->field[0]->value[3] = 0x7F; in hid_lg3ff_set_autocenter() 102 report->field[0]->value[4] = 0x7F; in hid_lg3ff_set_autocenter() 103 report->field[0]->value[3 in hid_lg3ff_set_autocenter() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/ |
H A D | aq_hw_utils.c | 42 u32 value = readl(hw->mmio + reg); in aq_hw_read_reg() local 44 if (value == U32_MAX && in aq_hw_read_reg() 48 return value; in aq_hw_read_reg() 51 void aq_hw_write_reg(struct aq_hw_s *hw, u32 reg, u32 value) in aq_hw_write_reg() argument 53 writel(value, hw->mmio + reg); in aq_hw_write_reg() 62 u64 value = U64_MAX; in aq_hw_read_reg64() local 65 value = readq(hw->mmio + reg); in aq_hw_read_reg64() 67 value = lo_hi_readq(hw->mmio + reg); in aq_hw_read_reg64() 69 if (value == U64_MAX && in aq_hw_read_reg64() 73 return value; in aq_hw_read_reg64() 76 aq_hw_write_reg64(struct aq_hw_s *hw, u32 reg, u64 value) aq_hw_write_reg64() argument [all...] |
/kernel/linux/linux-5.10/sound/pci/oxygen/ |
H A D | xonar_lib.c | 79 unsigned int value; in xonar_set_cs53x1_params() local 82 value = GPIO_CS53x1_M_SINGLE; in xonar_set_cs53x1_params() 84 value = GPIO_CS53x1_M_DOUBLE; in xonar_set_cs53x1_params() 86 value = GPIO_CS53x1_M_QUAD; in xonar_set_cs53x1_params() 88 value, GPIO_CS53x1_M_MASK); in xonar_set_cs53x1_params() 92 struct snd_ctl_elem_value *value) in xonar_gpio_bit_switch_get() 98 value->value.integer.value[0] = in xonar_gpio_bit_switch_get() 104 struct snd_ctl_elem_value *value) in xonar_gpio_bit_switch_put() 91 xonar_gpio_bit_switch_get(struct snd_kcontrol *ctl, struct snd_ctl_elem_value *value) xonar_gpio_bit_switch_get() argument 103 xonar_gpio_bit_switch_put(struct snd_kcontrol *ctl, struct snd_ctl_elem_value *value) xonar_gpio_bit_switch_put() argument [all...] |
/kernel/linux/linux-5.10/tools/power/cpupower/utils/helpers/ |
H A D | cpuid.c | 49 char value[64]; in get_cpu_info() local 67 if (!fgets(value, 64, fp)) in get_cpu_info() 69 value[63 - 1] = '\0'; in get_cpu_info() 71 if (!strncmp(value, "processor\t: ", 12)) in get_cpu_info() 72 sscanf(value, "processor\t: %u", &proc); in get_cpu_info() 78 if (!strncmp(value, "vendor_id", 9)) { in get_cpu_info() 80 if (strstr(value, cpu_vendor_table[x])) in get_cpu_info() 84 } else if (!strncmp(value, "cpu family\t: ", 13)) { in get_cpu_info() 85 sscanf(value, "cpu family\t: %u", in get_cpu_info() 87 } else if (!strncmp(value, "mode in get_cpu_info() [all...] |
/kernel/linux/linux-5.10/fs/btrfs/ |
H A D | acl.c | 23 char *value = NULL; in btrfs_get_acl() local 39 value = kzalloc(size, GFP_KERNEL); in btrfs_get_acl() 40 if (!value) in btrfs_get_acl() 42 size = btrfs_getxattr(inode, name, value, size); in btrfs_get_acl() 45 acl = posix_acl_from_xattr(&init_user_ns, value, size); in btrfs_get_acl() 50 kfree(value); in btrfs_get_acl() 60 char *value = NULL; in __btrfs_set_acl() local 84 value = kmalloc(size, GFP_KERNEL); in __btrfs_set_acl() 86 if (!value) { in __btrfs_set_acl() 91 ret = posix_acl_to_xattr(&init_user_ns, acl, value, siz in __btrfs_set_acl() [all...] |
/kernel/linux/linux-5.10/fs/orangefs/ |
H A D | acl.c | 17 char *key = NULL, *value = NULL; in orangefs_get_acl() local 27 gossip_err("orangefs_get_acl: bogus value of type %d\n", type); in orangefs_get_acl() 34 * orangefs_inode_getxattr() to probe the length of the value, but in orangefs_get_acl() 37 value = kmalloc(ORANGEFS_MAX_XATTR_VALUELEN, GFP_KERNEL); in orangefs_get_acl() 38 if (!value) in orangefs_get_acl() 46 ret = orangefs_inode_getxattr(inode, key, value, in orangefs_get_acl() 50 acl = posix_acl_from_xattr(&init_user_ns, value, ret); in orangefs_get_acl() 59 /* kfree(NULL) is safe, so don't worry if value ever got used */ in orangefs_get_acl() 60 kfree(value); in orangefs_get_acl() 68 void *value in __orangefs_set_acl() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/aquantia/atlantic/ |
H A D | aq_hw_utils.c | 42 u32 value = readl(hw->mmio + reg); in aq_hw_read_reg() local 44 if (value == U32_MAX && in aq_hw_read_reg() 48 return value; in aq_hw_read_reg() 51 void aq_hw_write_reg(struct aq_hw_s *hw, u32 reg, u32 value) in aq_hw_write_reg() argument 53 writel(value, hw->mmio + reg); in aq_hw_write_reg() 62 u64 value = U64_MAX; in aq_hw_read_reg64() local 65 value = readq(hw->mmio + reg); in aq_hw_read_reg64() 67 value = lo_hi_readq(hw->mmio + reg); in aq_hw_read_reg64() 69 if (value == U64_MAX && in aq_hw_read_reg64() 73 return value; in aq_hw_read_reg64() 76 aq_hw_write_reg64(struct aq_hw_s *hw, u32 reg, u64 value) aq_hw_write_reg64() argument [all...] |
/kernel/linux/linux-6.6/fs/btrfs/ |
H A D | acl.c | 23 char *value = NULL; in btrfs_get_acl() local 42 value = kzalloc(size, GFP_KERNEL); in btrfs_get_acl() 43 if (!value) in btrfs_get_acl() 45 size = btrfs_getxattr(inode, name, value, size); in btrfs_get_acl() 48 acl = posix_acl_from_xattr(&init_user_ns, value, size); in btrfs_get_acl() 53 kfree(value); in btrfs_get_acl() 63 char *value = NULL; in __btrfs_set_acl() local 87 value = kmalloc(size, GFP_KERNEL); in __btrfs_set_acl() 89 if (!value) { in __btrfs_set_acl() 94 ret = posix_acl_to_xattr(&init_user_ns, acl, value, siz in __btrfs_set_acl() [all...] |
/kernel/linux/linux-6.6/fs/fuse/ |
H A D | acl.c | 20 void *value = NULL; in __fuse_get_acl() local 39 value = kmalloc(PAGE_SIZE, GFP_KERNEL); in __fuse_get_acl() 40 if (!value) in __fuse_get_acl() 42 size = fuse_getxattr(inode, name, value, PAGE_SIZE); in __fuse_get_acl() 44 acl = posix_acl_from_xattr(fc->user_ns, value, size); in __fuse_get_acl() 53 kfree(value); in __fuse_get_acl() 128 void *value; in fuse_set_acl() local 133 value = kmalloc(size, GFP_KERNEL); in fuse_set_acl() 134 if (!value) in fuse_set_acl() 137 ret = posix_acl_to_xattr(fc->user_ns, acl, value, siz in fuse_set_acl() [all...] |
/kernel/linux/linux-6.6/fs/orangefs/ |
H A D | acl.c | 17 char *key = NULL, *value = NULL; in orangefs_get_acl() local 30 gossip_err("orangefs_get_acl: bogus value of type %d\n", type); in orangefs_get_acl() 37 * orangefs_inode_getxattr() to probe the length of the value, but in orangefs_get_acl() 40 value = kmalloc(ORANGEFS_MAX_XATTR_VALUELEN, GFP_KERNEL); in orangefs_get_acl() 41 if (!value) in orangefs_get_acl() 49 ret = orangefs_inode_getxattr(inode, key, value, in orangefs_get_acl() 53 acl = posix_acl_from_xattr(&init_user_ns, value, ret); in orangefs_get_acl() 62 /* kfree(NULL) is safe, so don't worry if value ever got used */ in orangefs_get_acl() 63 kfree(value); in orangefs_get_acl() 70 void *value in __orangefs_set_acl() local [all...] |
/kernel/linux/linux-6.6/drivers/rtc/ |
H A D | rtc-ntxec.c | 39 unsigned int value; in ntxec_read_time() local 43 res = regmap_read(rtc->ec->regmap, NTXEC_REG_READ_MINUTE_SECOND, &value); in ntxec_read_time() 47 tm->tm_min = value >> 8; in ntxec_read_time() 48 tm->tm_sec = value & 0xff; in ntxec_read_time() 50 res = regmap_read(rtc->ec->regmap, NTXEC_REG_READ_MDAY_HOUR, &value); in ntxec_read_time() 54 tm->tm_mday = value >> 8; in ntxec_read_time() 55 tm->tm_hour = value & 0xff; in ntxec_read_time() 57 res = regmap_read(rtc->ec->regmap, NTXEC_REG_READ_YEAR_MONTH, &value); in ntxec_read_time() 61 tm->tm_year = (value >> 8) + 100; in ntxec_read_time() 62 tm->tm_mon = (value in ntxec_read_time() [all...] |
/kernel/linux/linux-6.6/drivers/hid/ |
H A D | hid-lg3ff.c | 60 memset(report->field[0]->value, 0, in hid_lg3ff_play() 73 report->field[0]->value[0] = 0x51; in hid_lg3ff_play() 79 report->field[0]->value[1] = (unsigned char)(-x); in hid_lg3ff_play() 80 report->field[0]->value[31] = (unsigned char)(-y); in hid_lg3ff_play() 98 report->field[0]->value[0] = 0x51; in hid_lg3ff_set_autocenter() 99 report->field[0]->value[1] = 0x00; in hid_lg3ff_set_autocenter() 100 report->field[0]->value[2] = 0x00; in hid_lg3ff_set_autocenter() 101 report->field[0]->value[3] = 0x7F; in hid_lg3ff_set_autocenter() 102 report->field[0]->value[4] = 0x7F; in hid_lg3ff_set_autocenter() 103 report->field[0]->value[3 in hid_lg3ff_set_autocenter() [all...] |
H A D | hid-lg2ff.c | 36 lg2ff->report->field[0]->value[0] = 0x51; in play_effect() 37 lg2ff->report->field[0]->value[2] = weak; in play_effect() 38 lg2ff->report->field[0]->value[4] = strong; in play_effect() 40 lg2ff->report->field[0]->value[0] = 0xf3; in play_effect() 41 lg2ff->report->field[0]->value[2] = 0x00; in play_effect() 42 lg2ff->report->field[0]->value[4] = 0x00; in play_effect() 82 report->field[0]->value[0] = 0xf3; in lg2ff_init() 83 report->field[0]->value[1] = 0x00; in lg2ff_init() 84 report->field[0]->value[2] = 0x00; in lg2ff_init() 85 report->field[0]->value[ in lg2ff_init() [all...] |
/kernel/linux/linux-6.6/sound/pci/oxygen/ |
H A D | xonar_lib.c | 79 unsigned int value; in xonar_set_cs53x1_params() local 82 value = GPIO_CS53x1_M_SINGLE; in xonar_set_cs53x1_params() 84 value = GPIO_CS53x1_M_DOUBLE; in xonar_set_cs53x1_params() 86 value = GPIO_CS53x1_M_QUAD; in xonar_set_cs53x1_params() 88 value, GPIO_CS53x1_M_MASK); in xonar_set_cs53x1_params() 92 struct snd_ctl_elem_value *value) in xonar_gpio_bit_switch_get() 98 value->value.integer.value[0] = in xonar_gpio_bit_switch_get() 104 struct snd_ctl_elem_value *value) in xonar_gpio_bit_switch_put() 91 xonar_gpio_bit_switch_get(struct snd_kcontrol *ctl, struct snd_ctl_elem_value *value) xonar_gpio_bit_switch_get() argument 103 xonar_gpio_bit_switch_put(struct snd_kcontrol *ctl, struct snd_ctl_elem_value *value) xonar_gpio_bit_switch_put() argument [all...] |
/third_party/alsa-utils/amixer/ |
H A D | volume_mapping.c | 18 * The functions in this file map the value ranges of ALSA mixer controls onto 87 long min, max, value; in get_normalized_volume() local 97 err = get_raw[ctl_dir](elem, channel, &value); in get_normalized_volume() 101 return (value - min) / (double)(max - min); in get_normalized_volume() 104 err = get_dB[ctl_dir](elem, channel, &value); in get_normalized_volume() 109 return (value - min) / (double)(max - min); in get_normalized_volume() 111 normalized = pow(10, (value - max) / 6000.0); in get_normalized_volume() 126 long min, max, value; in set_normalized_volume() local 136 value = lrint_dir(volume * (max - min), dir) + min; in set_normalized_volume() 137 return set_raw[ctl_dir](elem, channel, value); in set_normalized_volume() [all...] |
/third_party/alsa-utils/alsamixer/ |
H A D | volume_mapping.c | 18 * The functions in this file map the value ranges of ALSA mixer controls onto 87 long min, max, value; in get_normalized_volume() local 97 err = get_raw[ctl_dir](elem, channel, &value); in get_normalized_volume() 101 return (value - min) / (double)(max - min); in get_normalized_volume() 104 err = get_dB[ctl_dir](elem, channel, &value); in get_normalized_volume() 109 return (value - min) / (double)(max - min); in get_normalized_volume() 111 normalized = pow(10, (value - max) / 6000.0); in get_normalized_volume() 126 long min, max, value; in set_normalized_volume() local 136 value = lrint_dir(volume * (max - min), dir) + min; in set_normalized_volume() 137 return set_raw[ctl_dir](elem, channel, value); in set_normalized_volume() [all...] |