/base/security/crypto_framework/frameworks/native/src/ |
H A D | sym_cipher.c | 72 CryptoSymCipher_ParamsType paramsType, Crypto_DataBlob *value) in OH_CryptoSymCipherParams_SetParam() 74 if ((params == NULL) || (value == NULL)) { in OH_CryptoSymCipherParams_SetParam() 79 params->iv.data = value->data; in OH_CryptoSymCipherParams_SetParam() 80 params->iv.len = value->len; in OH_CryptoSymCipherParams_SetParam() 83 params->aad.data = value->data; in OH_CryptoSymCipherParams_SetParam() 84 params->aad.len = value->len; in OH_CryptoSymCipherParams_SetParam() 87 params->tag.data = value->data; in OH_CryptoSymCipherParams_SetParam() 88 params->tag.len = value->len; in OH_CryptoSymCipherParams_SetParam() 71 OH_CryptoSymCipherParams_SetParam(OH_CryptoSymCipherParams *params, CryptoSymCipher_ParamsType paramsType, Crypto_DataBlob *value) OH_CryptoSymCipherParams_SetParam() argument
|
/base/startup/init/services/etc/appender/ |
H A D | file_appender.py | 47 value = [':'.join(passwd_gid_value), arr[3]] 48 source_dict[key] = value 68 value = [':'.join(passwd_gid_value), arr[3]] 70 value = [':'.join(passwd_gid_value), " "] 74 source_dict[key] = value 83 value = [':'.join(passwd_gid_value), arr[3]] 85 value = [':'.join(passwd_gid_value), " "] 89 source_dict[key] = value
|
/base/telephony/cellular_data/services/src/utils/ |
H A D | cellular_data_settings_rdb_helper.cpp | 98 int32_t CellularDataSettingsRdbHelper::GetValue(Uri &uri, const std::string &column, int32_t &value) in GetValue() argument 126 value = atoi(resultValue.c_str()); in GetValue() 130 int32_t CellularDataSettingsRdbHelper::PutValue(Uri &uri, const std::string &column, int value) in PutValue() argument 140 DataShare::DataShareValueObject valueObj(std::to_string(value)); in PutValue() 152 TELEPHONY_LOGI("put value return %{public}d", result); in PutValue() 157 CellularDataHiSysEvent::WriteDataActivateFaultEvent(INVALID_PARAMETER, value, in PutValue() 159 "SetCellularDataEnable " + std::to_string(value) + " fail"); in PutValue() 161 CellularDataHiSysEvent::WriteDataActivateFaultEvent(INVALID_PARAMETER, value, in PutValue() 163 "SetUserDataRoamingOn " + std::to_string(value) + " fail"); in PutValue()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_debugfs.c | 86 u32 reg, value; in ixgbe_dbg_reg_ops_write() local 88 cnt = sscanf(&ixgbe_dbg_reg_ops_buf[5], "%x %x", ®, &value); in ixgbe_dbg_reg_ops_write() 90 IXGBE_WRITE_REG(&adapter->hw, reg, value); in ixgbe_dbg_reg_ops_write() 91 value = IXGBE_READ_REG(&adapter->hw, reg); in ixgbe_dbg_reg_ops_write() 92 e_dev_info("write: 0x%08x = 0x%08x\n", reg, value); in ixgbe_dbg_reg_ops_write() 94 e_dev_info("write <reg> <value>\n"); in ixgbe_dbg_reg_ops_write() 97 u32 reg, value; in ixgbe_dbg_reg_ops_write() local 101 value = IXGBE_READ_REG(&adapter->hw, reg); in ixgbe_dbg_reg_ops_write() 102 e_dev_info("read 0x%08x = 0x%08x\n", reg, value); in ixgbe_dbg_reg_ops_write() 110 e_dev_info(" write <reg> <value>\ in ixgbe_dbg_reg_ops_write() [all...] |
/kernel/linux/linux-5.10/drivers/hid/ |
H A D | hid-pl.c | 118 report->field[0]->value[0] = 0x00; in plff_init() 119 report->field[0]->value[1] = 0x00; in plff_init() 120 strong = &report->field[0]->value[2]; in plff_init() 121 weak = &report->field[0]->value[3]; in plff_init() 131 report->field[0]->value[0] = 0x00; in plff_init() 132 report->field[1]->value[0] = 0x00; in plff_init() 133 strong = &report->field[2]->value[0]; in plff_init() 134 weak = &report->field[3]->value[0]; in plff_init()
|
H A D | wacom.h | 213 static inline __u32 wacom_s32tou(s32 value, __u8 n) in wacom_s32tou() argument 216 case 8: return ((__u8)value); in wacom_s32tou() 217 case 16: return ((__u16)value); in wacom_s32tou() 218 case 32: return ((__u32)value); in wacom_s32tou() 220 return value & (1 << (n - 1)) ? value & (~(~0U << n)) : value; in wacom_s32tou() 236 struct hid_usage *usage, __s32 value);
|
/kernel/linux/linux-5.10/drivers/media/pci/tw68/ |
H A D | tw68.h | 169 #define tw_writel(reg, value) writel((value), dev->lmmio + ((reg) >> 2)) 170 #define tw_writeb(reg, value) writeb((value), dev->bmmio + (reg)) 172 #define tw_andorl(reg, mask, value) \ 174 ((value) & (mask)), dev->lmmio+((reg)>>2)) 175 #define tw_andorb(reg, mask, value) \ 177 ((value) & (mask)), dev->bmmio+(reg))
|
/kernel/linux/linux-5.10/drivers/iio/adc/ |
H A D | ti-ads8344.c | 102 struct iio_chan_spec const *channel, int *value, in ads8344_read_raw() 110 *value = ads8344_adc_conversion(adc, channel->address, in ads8344_read_raw() 113 if (*value < 0) in ads8344_read_raw() 114 return *value; in ads8344_read_raw() 118 *value = regulator_get_voltage(adc->reg); in ads8344_read_raw() 119 if (*value < 0) in ads8344_read_raw() 120 return *value; in ads8344_read_raw() 123 *value /= 1000; in ads8344_read_raw() 101 ads8344_read_raw(struct iio_dev *iio, struct iio_chan_spec const *channel, int *value, int *shift, long mask) ads8344_read_raw() argument
|
/kernel/linux/linux-5.10/drivers/staging/sm750fb/ |
H A D | ddk750_swi2c.c | 107 * value - Bit value to set to the SCL or SDA (0 = low, 1 = high) 115 static void sw_i2c_scl(unsigned char value) in sw_i2c_scl() argument 121 if (value) { /* High */ in sw_i2c_scl() 144 * value - Bit value to set to the SCL or SDA (0 = low, 1 = high) 152 static void sw_i2c_sda(unsigned char value) in sw_i2c_sda() argument 158 if (value) { /* High */ in sw_i2c_sda() 246 unsigned char value = data; in sw_i2c_write_byte() local 255 if ((value in sw_i2c_write_byte() [all...] |
/kernel/linux/linux-5.10/drivers/tty/serial/8250/ |
H A D | 8250_em.c | 28 static void serial8250_em_serial_out(struct uart_port *p, int offset, int value) in serial8250_em_serial_out() argument 32 writeb(value, p->membase); in serial8250_em_serial_out() 38 writel(value, p->membase + ((offset + 1) << 2)); in serial8250_em_serial_out() 41 value &= 0x0f; /* only 4 valid bits - not Xscale */ in serial8250_em_serial_out() 45 writel(value, p->membase + (offset << 2)); in serial8250_em_serial_out() 73 static void serial8250_em_serial_dl_write(struct uart_8250_port *up, int value) in serial8250_em_serial_dl_write() argument 75 serial_out(up, UART_DLL_EM, value & 0xff); in serial8250_em_serial_dl_write() 76 serial_out(up, UART_DLM_EM, value >> 8 & 0xff); in serial8250_em_serial_dl_write()
|
/kernel/linux/linux-5.10/drivers/video/fbdev/ |
H A D | bt431.h | 104 static inline void bt431_write_reg_inc(struct bt431_regs *regs, u8 value) in bt431_write_reg_inc() argument 113 *r = bt431_set_value(value); in bt431_write_reg_inc() 122 static inline void bt431_write_reg(struct bt431_regs *regs, int ir, u8 value) in bt431_write_reg() argument 125 bt431_write_reg_inc(regs, value); in bt431_write_reg() 141 static inline void bt431_write_cmap_inc(struct bt431_regs *regs, u16 value) in bt431_write_cmap_inc() argument 150 *r = value; in bt431_write_cmap_inc() 159 static inline void bt431_write_cmap(struct bt431_regs *regs, int cr, u16 value) in bt431_write_cmap() argument 162 bt431_write_cmap_inc(regs, value); in bt431_write_cmap()
|
/kernel/linux/linux-5.10/samples/bpf/ |
H A D | fds_example.c | 43 printf(" -v <value> `- map value\n"); in usage() 77 uint32_t value) in bpf_do_map() 96 ret = bpf_map_update_elem(fd, &key, &value, 0); in bpf_do_map() 97 printf("bpf: fd:%d u->(%u:%u) ret:(%d,%s)\n", fd, key, value, in bpf_do_map() 101 ret = bpf_map_lookup_elem(fd, &key, &value); in bpf_do_map() 102 printf("bpf: fd:%d l->(%u):%u ret:(%d,%s)\n", fd, key, value, in bpf_do_map() 142 uint32_t key = 0, value = 0, flags = 0; in main() local 166 value = strtoul(optarg, NULL, 0); in main() 186 return bpf_do_map(file, flags, key, value); in main() 76 bpf_do_map(const char *file, uint32_t flags, uint32_t key, uint32_t value) bpf_do_map() argument [all...] |
/kernel/linux/linux-5.10/include/linux/ssb/ |
H A D | ssb_driver_extif.h | 34 * Use the following helper macro to get a register offset value. 181 u32 ssb_extif_gpio_out(struct ssb_extif *extif, u32 mask, u32 value); 182 u32 ssb_extif_gpio_outen(struct ssb_extif *extif, u32 mask, u32 value); 183 u32 ssb_extif_gpio_polarity(struct ssb_extif *extif, u32 mask, u32 value); 184 u32 ssb_extif_gpio_intmask(struct ssb_extif *extif, u32 mask, u32 value); 226 u32 value) in ssb_extif_gpio_out() 232 u32 value) in ssb_extif_gpio_outen() 238 u32 value) in ssb_extif_gpio_polarity() 244 u32 value) in ssb_extif_gpio_intmask() 225 ssb_extif_gpio_out(struct ssb_extif *extif, u32 mask, u32 value) ssb_extif_gpio_out() argument 231 ssb_extif_gpio_outen(struct ssb_extif *extif, u32 mask, u32 value) ssb_extif_gpio_outen() argument 237 ssb_extif_gpio_polarity(struct ssb_extif *extif, u32 mask, u32 value) ssb_extif_gpio_polarity() argument 243 ssb_extif_gpio_intmask(struct ssb_extif *extif, u32 mask, u32 value) ssb_extif_gpio_intmask() argument
|
/kernel/linux/linux-5.10/drivers/pwm/ |
H A D | pwm-imx1.c | 97 u32 value; in pwm_imx1_enable() local 104 value = readl(imx->mmio_base + MX1_PWMC); in pwm_imx1_enable() 105 value |= MX1_PWMC_EN; in pwm_imx1_enable() 106 writel(value, imx->mmio_base + MX1_PWMC); in pwm_imx1_enable() 114 u32 value; in pwm_imx1_disable() local 116 value = readl(imx->mmio_base + MX1_PWMC); in pwm_imx1_disable() 117 value &= ~MX1_PWMC_EN; in pwm_imx1_disable() 118 writel(value, imx->mmio_base + MX1_PWMC); in pwm_imx1_disable()
|
/kernel/linux/linux-5.10/drivers/media/rc/ |
H A D | ir-rcmm-decoder.c | 64 int value; in ir_rcmm_decode() local 115 value = 0; in ir_rcmm_decode() 117 value = 1; in ir_rcmm_decode() 119 value = 2; in ir_rcmm_decode() 121 value = 3; in ir_rcmm_decode() 123 value = -1; in ir_rcmm_decode() 125 if (value == -1) { in ir_rcmm_decode() 132 data->bits |= value; in ir_rcmm_decode()
|
/kernel/linux/linux-6.6/drivers/media/rc/ |
H A D | ir-rcmm-decoder.c | 64 int value; in ir_rcmm_decode() local 115 value = 0; in ir_rcmm_decode() 117 value = 1; in ir_rcmm_decode() 119 value = 2; in ir_rcmm_decode() 121 value = 3; in ir_rcmm_decode() 123 value = -1; in ir_rcmm_decode() 125 if (value == -1) { in ir_rcmm_decode() 132 data->bits |= value; in ir_rcmm_decode()
|
/kernel/linux/linux-6.6/include/asm-generic/ |
H A D | barrier.h | 127 #define __smp_store_mb(var, value) do { WRITE_ONCE(var, value); __smp_mb(); } while (0) 160 #define smp_store_mb(var, value) do { kcsan_mb(); __smp_store_mb(var, value); } while (0) 182 #define smp_store_mb(var, value) do { WRITE_ONCE(var, value); barrier(); } while (0) 218 #define virt_store_mb(var, value) do { kcsan_mb(); __smp_store_mb(var, value); } while (0) 244 * Due to C lacking lambda expressions we load the value of *ptr into a
|
/kernel/linux/linux-6.6/include/linux/ssb/ |
H A D | ssb_driver_extif.h | 34 * Use the following helper macro to get a register offset value. 181 u32 ssb_extif_gpio_out(struct ssb_extif *extif, u32 mask, u32 value); 182 u32 ssb_extif_gpio_outen(struct ssb_extif *extif, u32 mask, u32 value); 183 u32 ssb_extif_gpio_polarity(struct ssb_extif *extif, u32 mask, u32 value); 184 u32 ssb_extif_gpio_intmask(struct ssb_extif *extif, u32 mask, u32 value); 226 u32 value) in ssb_extif_gpio_out() 232 u32 value) in ssb_extif_gpio_outen() 238 u32 value) in ssb_extif_gpio_polarity() 244 u32 value) in ssb_extif_gpio_intmask() 225 ssb_extif_gpio_out(struct ssb_extif *extif, u32 mask, u32 value) ssb_extif_gpio_out() argument 231 ssb_extif_gpio_outen(struct ssb_extif *extif, u32 mask, u32 value) ssb_extif_gpio_outen() argument 237 ssb_extif_gpio_polarity(struct ssb_extif *extif, u32 mask, u32 value) ssb_extif_gpio_polarity() argument 243 ssb_extif_gpio_intmask(struct ssb_extif *extif, u32 mask, u32 value) ssb_extif_gpio_intmask() argument
|
/kernel/linux/linux-6.6/drivers/video/fbdev/ |
H A D | bt431.h | 104 static inline void bt431_write_reg_inc(struct bt431_regs *regs, u8 value) in bt431_write_reg_inc() argument 113 *r = bt431_set_value(value); in bt431_write_reg_inc() 122 static inline void bt431_write_reg(struct bt431_regs *regs, int ir, u8 value) in bt431_write_reg() argument 125 bt431_write_reg_inc(regs, value); in bt431_write_reg() 141 static inline void bt431_write_cmap_inc(struct bt431_regs *regs, u16 value) in bt431_write_cmap_inc() argument 150 *r = value; in bt431_write_cmap_inc() 159 static inline void bt431_write_cmap(struct bt431_regs *regs, int cr, u16 value) in bt431_write_cmap() argument 162 bt431_write_cmap_inc(regs, value); in bt431_write_cmap()
|
/kernel/linux/linux-6.6/drivers/staging/sm750fb/ |
H A D | ddk750_swi2c.c | 107 * value - Bit value to set to the SCL or SDA (0 = low, 1 = high) 115 static void sw_i2c_scl(unsigned char value) in sw_i2c_scl() argument 121 if (value) { /* High */ in sw_i2c_scl() 144 * value - Bit value to set to the SCL or SDA (0 = low, 1 = high) 152 static void sw_i2c_sda(unsigned char value) in sw_i2c_sda() argument 158 if (value) { /* High */ in sw_i2c_sda() 246 unsigned char value = data; in sw_i2c_write_byte() local 255 if ((value in sw_i2c_write_byte() [all...] |
/kernel/linux/linux-6.6/drivers/pwm/ |
H A D | pwm-imx1.c | 96 u32 value; in pwm_imx1_enable() local 103 value = readl(imx->mmio_base + MX1_PWMC); in pwm_imx1_enable() 104 value |= MX1_PWMC_EN; in pwm_imx1_enable() 105 writel(value, imx->mmio_base + MX1_PWMC); in pwm_imx1_enable() 113 u32 value; in pwm_imx1_disable() local 115 value = readl(imx->mmio_base + MX1_PWMC); in pwm_imx1_disable() 116 value &= ~MX1_PWMC_EN; in pwm_imx1_disable() 117 writel(value, imx->mmio_base + MX1_PWMC); in pwm_imx1_disable()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_debugfs.c | 86 u32 reg, value; in ixgbe_dbg_reg_ops_write() local 88 cnt = sscanf(&ixgbe_dbg_reg_ops_buf[5], "%x %x", ®, &value); in ixgbe_dbg_reg_ops_write() 90 IXGBE_WRITE_REG(&adapter->hw, reg, value); in ixgbe_dbg_reg_ops_write() 91 value = IXGBE_READ_REG(&adapter->hw, reg); in ixgbe_dbg_reg_ops_write() 92 e_dev_info("write: 0x%08x = 0x%08x\n", reg, value); in ixgbe_dbg_reg_ops_write() 94 e_dev_info("write <reg> <value>\n"); in ixgbe_dbg_reg_ops_write() 97 u32 reg, value; in ixgbe_dbg_reg_ops_write() local 101 value = IXGBE_READ_REG(&adapter->hw, reg); in ixgbe_dbg_reg_ops_write() 102 e_dev_info("read 0x%08x = 0x%08x\n", reg, value); in ixgbe_dbg_reg_ops_write() 110 e_dev_info(" write <reg> <value>\ in ixgbe_dbg_reg_ops_write() [all...] |
/kernel/linux/linux-6.6/drivers/media/pci/tw68/ |
H A D | tw68.h | 169 #define tw_writel(reg, value) writel((value), dev->lmmio + ((reg) >> 2)) 170 #define tw_writeb(reg, value) writeb((value), dev->bmmio + (reg)) 172 #define tw_andorl(reg, mask, value) \ 174 ((value) & (mask)), dev->lmmio+((reg)>>2)) 175 #define tw_andorb(reg, mask, value) \ 177 ((value) & (mask)), dev->bmmio+(reg))
|
/kernel/linux/linux-6.6/drivers/hid/ |
H A D | hid-pl.c | 118 report->field[0]->value[0] = 0x00; in plff_init() 119 report->field[0]->value[1] = 0x00; in plff_init() 120 strong = &report->field[0]->value[2]; in plff_init() 121 weak = &report->field[0]->value[3]; in plff_init() 131 report->field[0]->value[0] = 0x00; in plff_init() 132 report->field[1]->value[0] = 0x00; in plff_init() 133 strong = &report->field[2]->value[0]; in plff_init() 134 weak = &report->field[3]->value[0]; in plff_init()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/tegra/ |
H A D | fb.c | 53 tiling->value = 0; in tegra_fb_get_tiling() 58 tiling->value = 0; in tegra_fb_get_tiling() 63 tiling->value = 0; in tegra_fb_get_tiling() 68 tiling->value = 1; in tegra_fb_get_tiling() 73 tiling->value = 2; in tegra_fb_get_tiling() 78 tiling->value = 3; in tegra_fb_get_tiling() 83 tiling->value = 4; in tegra_fb_get_tiling() 88 tiling->value = 5; in tegra_fb_get_tiling()
|