Home
last modified time | relevance | path

Searched refs:value (Results 351 – 375 of 12835) sorted by relevance

1...<<11121314151617181920>>...514

/openbmc/libbej/src/
H A Dbej_tree.c63 int64_t value) in bejTreeAddInteger() argument
66 child->value = value; in bejTreeAddInteger()
72 node->value = newValue; in bejTreeSetInteger()
77 const char* value) in bejTreeAddEnum() argument
80 child->value = value; in bejTreeAddEnum()
86 const char* value) in bejTreeAddString() argument
89 child->value = value; in bejTreeAddString()
95 double value) in bejTreeAddReal() argument
98 child->value = value; in bejTreeAddReal()
104 node->value = newValue; in bejTreeSetReal()
[all …]
/openbmc/u-boot/cmd/
H A Dini.c128 char *value; in ini_parse() local
174 value = lskip(end + 1); in ini_parse()
175 end = find_char_or_comment(value, '\0'); in ini_parse()
178 rstrip(value); in ini_parse()
180 if (value[0] == '"' && in ini_parse()
181 value[strlen(value)-1] == '"') { in ini_parse()
182 value[strlen(value)-1] = '\0'; in ini_parse()
183 value += 1; in ini_parse()
190 if (!handler(user, section, name, value) && in ini_parse()
202 static int ini_handler(void *user, char *section, char *name, char *value) in ini_handler() argument
[all …]
/openbmc/linux/arch/mips/ar7/
H A Dprom.c25 char *value; member
36 return adam2_env[i].value; in prom_getenv()
73 char *value; member
124 return psp_var_map[i].value; in lookup_psp_var_map()
129 static void __init add_adam2_var(char *name, char *value) in add_adam2_var() argument
136 adam2_env[i].value = value; in add_adam2_var()
139 adam2_env[i].value = value; in add_adam2_var()
148 char *name, *value; in parse_psp_env() local
158 value = chunks[i].data; in parse_psp_env()
162 name = value; in parse_psp_env()
[all …]
/openbmc/linux/arch/x86/pci/
H A Ddirect.c22 unsigned int devfn, int reg, int len, u32 *value) in pci_conf1_read() argument
27 *value = -1; in pci_conf1_read()
37 *value = inb(0xCFC + (reg & 3)); in pci_conf1_read()
40 *value = inw(0xCFC + (reg & 2)); in pci_conf1_read()
43 *value = inl(0xCFC); in pci_conf1_read()
53 unsigned int devfn, int reg, int len, u32 value) in pci_conf1_write() argument
66 outb((u8)value, 0xCFC + (reg & 3)); in pci_conf1_write()
69 outw((u16)value, 0xCFC + (reg & 2)); in pci_conf1_write()
72 outl((u32)value, 0xCFC); in pci_conf1_write()
96 unsigned int devfn, int reg, int len, u32 *value) in pci_conf2_read() argument
[all …]
/openbmc/linux/arch/mips/loongson2ef/common/cs5536/
H A Dcs5536_ide.c15 void pci_ide_write_reg(int reg, u32 value) in pci_ide_write_reg() argument
17 u32 hi = 0, lo = value; in pci_ide_write_reg()
22 if (value & PCI_COMMAND_MASTER) in pci_ide_write_reg()
29 if (value & PCI_STATUS_PARITY) { in pci_ide_write_reg()
38 value &= 0x0000ff00; in pci_ide_write_reg()
41 hi |= (value >> 8); in pci_ide_write_reg()
45 if (value == PCI_BAR_RANGE_MASK) { in pci_ide_write_reg()
49 } else if (value & 0x01) { in pci_ide_write_reg()
51 lo = (value & 0xfffffff0) | 0x1; in pci_ide_write_reg()
54 value &= 0xfffffffc; in pci_ide_write_reg()
[all …]
/openbmc/linux/drivers/net/wireless/ath/ath12k/
H A Ddp_mon.c225 u32 info0, value; in ath12k_dp_mon_parse_he_sig_b2_ofdma() local
235 value = ppdu_info->mcs << HE_TRANSMIT_MCS_SHIFT; in ath12k_dp_mon_parse_he_sig_b2_ofdma()
236 ppdu_info->he_data3 |= value; in ath12k_dp_mon_parse_he_sig_b2_ofdma()
238 value = u32_get_bits(info0, HAL_RX_HE_SIG_B2_OFDMA_INFO_INFO0_STA_DCM); in ath12k_dp_mon_parse_he_sig_b2_ofdma()
239 value = value << HE_DCM_SHIFT; in ath12k_dp_mon_parse_he_sig_b2_ofdma()
240 ppdu_info->he_data3 |= value; in ath12k_dp_mon_parse_he_sig_b2_ofdma()
242 value = u32_get_bits(info0, HAL_RX_HE_SIG_B2_OFDMA_INFO_INFO0_STA_CODING); in ath12k_dp_mon_parse_he_sig_b2_ofdma()
243 ppdu_info->ldpc = value; in ath12k_dp_mon_parse_he_sig_b2_ofdma()
244 value = value << HE_CODING_SHIFT; in ath12k_dp_mon_parse_he_sig_b2_ofdma()
245 ppdu_info->he_data3 |= value; in ath12k_dp_mon_parse_he_sig_b2_ofdma()
[all …]
/openbmc/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_gen4_hw_data.c19 u32 value) in write_csr_ring_head() argument
21 WRITE_CSR_RING_HEAD(csr_base_addr, bank, ring, value); in write_csr_ring_head()
30 u32 value) in write_csr_ring_tail() argument
32 WRITE_CSR_RING_TAIL(csr_base_addr, bank, ring, value); in write_csr_ring_tail()
41 u32 value) in write_csr_ring_config() argument
43 WRITE_CSR_RING_CONFIG(csr_base_addr, bank, ring, value); in write_csr_ring_config()
53 u32 value) in write_csr_int_flag() argument
55 WRITE_CSR_INT_FLAG(csr_base_addr, bank, value); in write_csr_int_flag()
63 static void write_csr_int_col_en(void __iomem *csr_base_addr, u32 bank, u32 value) in write_csr_int_col_en() argument
65 WRITE_CSR_INT_COL_EN(csr_base_addr, bank, value); in write_csr_int_col_en()
[all …]
/openbmc/qemu/hw/net/rocker/
H A Drocker_tlv.h179 int type, uint8_t value) in rocker_tlv_put_u8() argument
181 rocker_tlv_put(buf, buf_pos, type, sizeof(uint8_t), &value); in rocker_tlv_put_u8()
185 int type, uint16_t value) in rocker_tlv_put_u16() argument
187 rocker_tlv_put(buf, buf_pos, type, sizeof(uint16_t), &value); in rocker_tlv_put_u16()
191 int type, uint32_t value) in rocker_tlv_put_u32() argument
193 rocker_tlv_put(buf, buf_pos, type, sizeof(uint32_t), &value); in rocker_tlv_put_u32()
197 int type, uint64_t value) in rocker_tlv_put_u64() argument
199 rocker_tlv_put(buf, buf_pos, type, sizeof(uint64_t), &value); in rocker_tlv_put_u64()
203 int type, uint16_t value) in rocker_tlv_put_le16() argument
205 value = cpu_to_le16(value); in rocker_tlv_put_le16()
[all …]
/openbmc/linux/sound/firewire/
H A Disight.c215 __be32 value; in isight_connect() local
226 value = cpu_to_be32(ch | (isight->device->max_speed << SPEED_SHIFT)); in isight_connect()
229 &value, 4, FW_FIXED_GENERATION | in isight_connect()
295 static int reg_read(struct isight *isight, int offset, __be32 *value) in reg_read() argument
298 isight->audio_base + offset, value, 4, 0); in reg_read()
301 static int reg_write(struct isight *isight, int offset, __be32 value) in reg_write() argument
304 isight->audio_base + offset, &value, 4, 0); in reg_write()
309 __be32 value; in isight_stop_streaming() local
318 value = 0; in isight_stop_streaming()
321 &value, 4, FW_QUIET); in isight_stop_streaming()
[all …]
/openbmc/linux/arch/x86/kvm/vmx/
H A Dvmx_ops.h14 void vmwrite_error(unsigned long field, unsigned long value);
93 unsigned long value; in __vmcs_readl() local
102 : [output] "=r" (value) in __vmcs_readl()
107 return value; in __vmcs_readl()
147 : ASM_CALL_CONSTRAINT, "=&r"(value) : "r"(field) : "cc"); in __vmcs_readl()
148 return value; in __vmcs_readl()
223 static __always_inline void __vmcs_writel(unsigned long field, unsigned long value) in __vmcs_writel() argument
225 vmx_asm2(vmwrite, "r"(field), "rm"(value), field, value); in __vmcs_writel()
228 static __always_inline void vmcs_write16(unsigned long field, u16 value) in vmcs_write16() argument
232 return evmcs_write16(field, value); in vmcs_write16()
[all …]
/openbmc/linux/arch/loongarch/crypto/
H A Dcrc32-loongarch.c18 #define _CRC32(crc, value, size, type) \ argument
23 : "r" (value) \
27 #define CRC32(crc, value, size) _CRC32(crc, value, size, crc) argument
28 #define CRC32C(crc, value, size) _CRC32(crc, value, size, crcc) argument
35 u64 value = get_unaligned_le64(p); in crc32_loongarch_hw() local
37 CRC32(crc, value, d); in crc32_loongarch_hw()
43 u32 value = get_unaligned_le32(p); in crc32_loongarch_hw() local
45 CRC32(crc, value, w); in crc32_loongarch_hw()
50 u16 value = get_unaligned_le16(p); in crc32_loongarch_hw() local
52 CRC32(crc, value, h); in crc32_loongarch_hw()
[all …]
/openbmc/phosphor-virtual-sensor/
H A DvirtualSensor.cpp38 return value; in getParamValue()
71 if constexpr (std::is_convertible<T, U>::value) in operator ()()
158 auto value = getNumberFromConfig<double>(propertyMap, "Value", true); in parseThresholds() local
168 thresholds[threshold] = value; in parseThresholds()
228 auto threshold = sensorConfig.value("Threshold", empty); in initVirtualSensor()
233 auto confDesc = sensorConfig.value("Desc", empty); in initVirtualSensor()
246 auto assocJson = sensorConfig.value("Associations", empty); in initVirtualSensor()
278 auto params = sensorConfig.value("Params", empty); in initVirtualSensor()
281 const auto& consParams = params.value("ConstParam", empty); in initVirtualSensor()
303 auto dbusParams = params.value("DbusParam", empty); in initVirtualSensor()
[all …]
/openbmc/qemu/qobject/
H A Dqdict.c42 unsigned value; /* Used to compute the hash value. */ in tdb_hash() local
46 for (value = 0x238F13AF * strlen(name), i = 0; name[i]; i++) { in tdb_hash()
47 value = (value + (((const unsigned char *)name)[i] << (i * 5 % 24))); in tdb_hash()
50 return (1103515243 * value + 12345); in tdb_hash()
56 static QDictEntry *alloc_entry(const char *key, QObject *value) in alloc_entry() argument
62 entry->value = value; in alloc_entry()
74 return entry->value; in qdict_entry_value()
115 void qdict_put_obj(QDict *qdict, const char *key, QObject *value) in qdict_put_obj() argument
124 qobject_unref(entry->value); in qdict_put_obj()
125 entry->value = value; in qdict_put_obj()
[all …]
/openbmc/phosphor-power/phosphor-regulators/src/
H A Dconfig_file_parser.hpp160 int value = element.get<int>(); in parseBitPosition() local
161 if ((value < 0) || (value > 7)) in parseBitPosition()
165 return static_cast<uint8_t>(value); in parseBitPosition()
185 int value = element.get<int>(); in parseBitValue() local
186 if ((value < 0) || (value > 1)) in parseBitValue()
190 return static_cast<uint8_t>(value); in parseBitValue()
343 std::string value = element.get<std::string>(); in parseHexByte() local
345 bool isHex = (value.compare(0, 2, "0x") == 0) && (value.size() > 2) && in parseHexByte()
346 (value.size() < 5) && in parseHexByte()
347 (value.find_first_not_of("0123456789abcdefABCDEF", 2) == in parseHexByte()
[all …]
/openbmc/linux/drivers/media/usb/dvb-usb/
H A Daz6027.c299 u16 value, u16 index, u8 *b, int blen) in az6027_usb_in_op() argument
309 value, in az6027_usb_in_op()
321 deb_xfer("in: req. %02x, val: %04x, ind: %04x, buffer: ", req, value, index); in az6027_usb_in_op()
330 u16 value, in az6027_usb_out_op() argument
337 deb_xfer("out: req. %02x, val: %04x, ind: %04x, buffer: ", req, value, index); in az6027_usb_out_op()
347 value, in az6027_usb_out_op()
367 u16 value; in az6027_streaming_ctrl() local
374 value = onoff; in az6027_streaming_ctrl()
378 ret = az6027_usb_out_op(adap->dev, req, value, index, NULL, blen); in az6027_streaming_ctrl()
415 u16 value; in az6027_ci_read_attribute_mem() local
[all …]
/openbmc/qemu/hw/sd/
H A Dbcm2835_sdhost.c155 static void bcm2835_sdhost_fifo_push(BCM2835SDHostState *s, uint32_t value) in bcm2835_sdhost_fifo_push() argument
165 s->fifo[n] = value; in bcm2835_sdhost_fifo_push()
170 uint32_t value; in bcm2835_sdhost_fifo_pop() local
176 value = s->fifo[s->fifo_pos]; in bcm2835_sdhost_fifo_pop()
179 return value; in bcm2835_sdhost_fifo_pop()
184 uint32_t value = 0; in bcm2835_sdhost_fifo_run() local
195 value |= (uint32_t)sdbus_read_byte(&s->sdbus) << (n * 8); in bcm2835_sdhost_fifo_run()
199 bcm2835_sdhost_fifo_push(s, value); in bcm2835_sdhost_fifo_run()
205 value = 0; in bcm2835_sdhost_fifo_run()
209 bcm2835_sdhost_fifo_push(s, value); in bcm2835_sdhost_fifo_run()
[all …]
H A Dpl181.c143 static void pl181_fifo_push(PL181State *s, uint32_t value) in pl181_fifo_push() argument
153 s->fifo[n] = value; in pl181_fifo_push()
154 trace_pl181_fifo_push(value); in pl181_fifo_push()
159 uint32_t value; in pl181_fifo_pop() local
165 value = s->fifo[s->fifo_pos]; in pl181_fifo_pop()
168 trace_pl181_fifo_pop(value); in pl181_fifo_pop()
169 return value; in pl181_fifo_pop()
217 uint32_t value = 0; in pl181_fifo_run() local
227 value |= (uint32_t)sdbus_read_byte(&s->sdbus) << (n * 8); in pl181_fifo_run()
231 pl181_fifo_push(s, value); in pl181_fifo_run()
[all …]
/openbmc/linux/fs/btrfs/
H A Dprops.c25 int (*validate)(const struct btrfs_inode *inode, const char *value,
27 int (*apply)(struct inode *inode, const char *value, size_t len);
66 const char *value, size_t value_len) in btrfs_validate_prop() argument
80 return handler->validate(inode, value, value_len); in btrfs_validate_prop()
106 const char *name, const char *value, size_t value_len, in btrfs_set_prop() argument
128 ret = btrfs_setxattr(trans, inode, handler->xattr_name, value, in btrfs_set_prop()
132 ret = handler->apply(inode, value, value_len); in btrfs_set_prop()
257 const char *value, in inode_prop_iterator() argument
264 ret = handler->apply(inode, value, len); in inode_prop_iterator()
283 const char *value, size_t len) in prop_compression_validate() argument
[all …]
H A Dacl.c23 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, size); in __btrfs_set_acl()
[all …]
/openbmc/qemu/tests/qtest/
H A Dendianness-test.c52 uint8_t value; in isa_inb() local
54 value = qtest_inb(qts, addr); in isa_inb()
56 value = qtest_readb(qts, test->isa_base + addr); in isa_inb()
58 return value; in isa_inb()
63 uint16_t value; in isa_inw() local
65 value = qtest_inw(qts, addr); in isa_inw()
67 value = qtest_readw(qts, test->isa_base + addr); in isa_inw()
69 return test->bswap ? bswap16(value) : value; in isa_inw()
74 uint32_t value; in isa_inl() local
76 value = qtest_inl(qts, addr); in isa_inl()
[all …]
H A Dadm1272-test.c83 uint16_t pmbus_data2direct_mode(PMBusCoefficients c, uint32_t value) in pmbus_data2direct_mode() argument
86 uint16_t y = (c.m * value + c.b) * pow(10, c.R); in pmbus_data2direct_mode()
90 uint32_t pmbus_direct_mode2data(PMBusCoefficients c, uint16_t value) in pmbus_direct_mode2data() argument
93 uint32_t x = (value / pow(10, c.R) - c.b) / c.m; in pmbus_direct_mode2data()
98 static uint16_t adm1272_millivolts_to_direct(uint32_t value) in adm1272_millivolts_to_direct() argument
103 return pmbus_data2direct_mode(c, value); in adm1272_millivolts_to_direct()
106 static uint32_t adm1272_direct_to_millivolts(uint16_t value) in adm1272_direct_to_millivolts() argument
111 return pmbus_direct_mode2data(c, value); in adm1272_direct_to_millivolts()
114 static uint16_t adm1272_milliamps_to_direct(uint32_t value) in adm1272_milliamps_to_direct() argument
121 return pmbus_data2direct_mode(c, value); in adm1272_milliamps_to_direct()
[all …]
/openbmc/linux/sound/pci/oxygen/
H A Dxonar_pcm179x.c233 u8 reg, u8 value) in pcm1796_write_spi() argument
244 (reg << 8) | value); in pcm1796_write_spi()
248 u8 reg, u8 value) in pcm1796_write_i2c() argument
250 oxygen_write_i2c(chip, I2C_DEVICE_PCM1796(codec), reg, value); in pcm1796_write_i2c()
254 u8 reg, u8 value) in pcm1796_write() argument
260 pcm1796_write_spi(chip, codec, reg, value); in pcm1796_write()
262 pcm1796_write_i2c(chip, codec, reg, value); in pcm1796_write()
265 data->pcm1796_regs[codec][reg - PCM1796_REG_BASE] = value; in pcm1796_write()
269 u8 reg, u8 value) in pcm1796_write_cached() argument
273 if (value != data->pcm1796_regs[codec][reg - PCM1796_REG_BASE]) in pcm1796_write_cached()
[all …]
/openbmc/linux/arch/arc/kernel/
H A Dunwind.c136 uleb128_t value; member
461 uleb128_t value; in get_uleb128() local
464 for (shift = 0, value = 0; cur < end; shift += 7) { in get_uleb128()
465 if (shift + 7 > 8 * sizeof(value) in get_uleb128()
466 && (*cur & 0x7fU) >= (1U << (8 * sizeof(value) - shift))) { in get_uleb128()
470 value |= (uleb128_t) (*cur & 0x7f) << shift; in get_uleb128()
476 return value; in get_uleb128()
482 sleb128_t value; in get_sleb128() local
485 for (shift = 0, value = 0; cur < end; shift += 7) { in get_sleb128()
486 if (shift + 7 > 8 * sizeof(value) in get_sleb128()
[all …]
/openbmc/linux/fs/smb/server/
H A Dndr.c31 static int ndr_write_int16(struct ndr *n, __u16 value) in ndr_write_int16() argument
33 if (n->length <= n->offset + sizeof(value)) { in ndr_write_int16()
36 ret = try_to_realloc_ndr_blob(n, sizeof(value)); in ndr_write_int16()
41 *(__le16 *)ndr_get_field(n) = cpu_to_le16(value); in ndr_write_int16()
42 n->offset += sizeof(value); in ndr_write_int16()
46 static int ndr_write_int32(struct ndr *n, __u32 value) in ndr_write_int32() argument
48 if (n->length <= n->offset + sizeof(value)) { in ndr_write_int32()
51 ret = try_to_realloc_ndr_blob(n, sizeof(value)); in ndr_write_int32()
56 *(__le32 *)ndr_get_field(n) = cpu_to_le32(value); in ndr_write_int32()
57 n->offset += sizeof(value); in ndr_write_int32()
[all …]
/openbmc/linux/drivers/hid/
H A Dhid-lg3ff.c60 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[31] = 0x00; in hid_lg3ff_set_autocenter()
[all …]

1...<<11121314151617181920>>...514