Home
last modified time | relevance | path

Searched refs:value (Results 376 – 400 of 12835) sorted by relevance

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

/openbmc/linux/drivers/net/ethernet/aquantia/atlantic/
H A Daq_hw_utils.c42 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()
[all …]
/openbmc/linux/tools/testing/kunit/
H A Dkunit_config.py19 value: str
22 if self.value == 'n':
46 for name, value in self._entries.items():
47 yield KconfigEntry(name, value)
49 def add_entry(self, name: str, value: str) -> None:
50 self._entries[name] = value
53 for name, value in self._entries.items():
56 if value == 'n':
59 if value != b:
65 for name, value in self._entries.items():
[all …]
/openbmc/u-boot/drivers/pinctrl/exynos/
H A Dpinctrl-exynos.c30 val |= conf[idx].value; in exynos_pinctrl_setup_peri()
75 unsigned long reg, value; in exynos_pinctrl_set_state() local
97 value = readl(reg + PIN_CON); in exynos_pinctrl_set_state()
98 value &= ~(0xf << (pin_num << 2)); in exynos_pinctrl_set_state()
99 value |= (pinfunc << (pin_num << 2)); in exynos_pinctrl_set_state()
100 writel(value, reg + PIN_CON); in exynos_pinctrl_set_state()
104 value = readl(reg + PIN_PUD); in exynos_pinctrl_set_state()
105 value &= ~(0x3 << (pin_num << 1)); in exynos_pinctrl_set_state()
106 value |= (pinpud << (pin_num << 1)); in exynos_pinctrl_set_state()
107 writel(value, reg + PIN_PUD); in exynos_pinctrl_set_state()
[all …]
/openbmc/openbmc/poky/meta/lib/oe/
H A Dspdx30.py43 def validate(self, value): argument
44 check_type(value, self.VALID_TYPES)
46 self.pattern, self.to_string(value)
52 def set(self, value): argument
53 return value
55 def check_min_count(self, value, min_count): argument
58 def check_max_count(self, value, max_count): argument
61 def elide(self, value): argument
62 return value is None
64 def walk(self, value, callback, path): argument
[all …]
/openbmc/linux/drivers/accessibility/speakup/
H A Dgenmap.c19 int value, shift; member
52 int value, shift_state, i, spk_val = 0, lock_val = 0; in main() local
71 add_key(p_init->name, p_init->value, p_init->shift); in main()
76 value = shift_state = 0; in main()
89 if (value) in main()
91 shift_state += this->value; in main()
93 value = this->value; in main()
110 if (key_data[value][i]) { in main()
116 key_data[value][i] = (char)this->value; in main()
117 if (value > max_key_used) in main()
[all …]
/openbmc/telemetry/src/
H A Dnumeric_threshold.cpp45 Milliseconds timestamp, double value) in sensorUpdated() argument
55 prevValue = value; in sensorUpdated()
60 thresholdValue < prevValue && thresholdValue > value; in sensorUpdated()
62 thresholdValue > prevValue && thresholdValue < value; in sensorUpdated()
67 thresholdValue > value; in sensorUpdated()
69 thresholdValue < value; in sensorUpdated()
82 startTimer(details, value); in sensorUpdated()
85 prevDirection = value > prevValue ? numeric::Direction::increasing in sensorUpdated()
86 : value < prevValue ? numeric::Direction::decreasing in sensorUpdated()
88 prevValue = value; in sensorUpdated()
[all …]
/openbmc/linux/tools/lib/api/fs/
H A Dfs.h45 int filename__read_int(const char *filename, int *value);
46 int filename__read_ull(const char *filename, unsigned long long *value);
47 int filename__read_xll(const char *filename, unsigned long long *value);
50 int filename__write_int(const char *filename, int value);
54 int sysctl__read_int(const char *sysctl, int *value);
55 int sysfs__read_int(const char *entry, int *value);
56 int sysfs__read_ull(const char *entry, unsigned long long *value);
57 int sysfs__read_xll(const char *entry, unsigned long long *value);
59 int sysfs__read_bool(const char *entry, bool *value);
61 int sysfs__write_int(const char *entry, int value);
H A Dfs.c292 int filename__read_int(const char *filename, int *value) in filename__read_int() argument
301 *value = atoi(line); in filename__read_int()
310 unsigned long long *value, int base) in filename__read_ull_base() argument
319 *value = strtoull(line, NULL, base); in filename__read_ull_base()
320 if (*value != ULLONG_MAX) in filename__read_ull_base()
332 int filename__read_xll(const char *filename, unsigned long long *value) in filename__read_xll() argument
334 return filename__read_ull_base(filename, value, 16); in filename__read_xll()
342 int filename__read_ull(const char *filename, unsigned long long *value) in filename__read_ull() argument
344 return filename__read_ull_base(filename, value, 0); in filename__read_ull()
397 int filename__write_int(const char *filename, int value) in filename__write_int() argument
[all …]
/openbmc/linux/drivers/pinctrl/intel/
H A Dpinctrl-lynxpoint.c246 u32 value; in lp_gpio_ioxapic_use() local
248 value = ioread32(ioxapic_use); in lp_gpio_ioxapic_use()
251 return !!(value & BIT(offset - 8 + 0)); in lp_gpio_ioxapic_use()
253 return !!(value & BIT(offset - 13 + 3)); in lp_gpio_ioxapic_use()
255 return !!(value & BIT(offset - 45 + 5)); in lp_gpio_ioxapic_use()
266 u32 value, mode; in lp_pin_dbg_show() local
268 value = ioread32(reg); in lp_pin_dbg_show()
270 mode = value & USE_SEL_MASK; in lp_pin_dbg_show()
276 seq_printf(s, "0x%08x 0x%08x", value, ioread32(conf2)); in lp_pin_dbg_show()
302 u32 value; in lp_pinmux_set_mux() local
[all …]
/openbmc/linux/drivers/hid/
H A Dhid-lenovo.c75 enum led_brightness value) in lenovo_led_set_tp10ubkbd() argument
84 data->led_report[2] = value ? TP10UBKBD_LED_ON : TP10UBKBD_LED_OFF; in lenovo_led_set_tp10ubkbd()
569 int value, ret; in attr_fn_lock_store() local
571 if (kstrtoint(buf, 10, &value)) in attr_fn_lock_store()
573 if (value < 0 || value > 1) in attr_fn_lock_store()
576 data->fn_lock = !!value; in attr_fn_lock_store()
588 ret = lenovo_led_set_tp10ubkbd(hdev, TP10UBKBD_FN_LOCK_LED, value); in attr_fn_lock_store()
615 int value; in attr_sensitivity_store_cptkbd() local
617 if (kstrtoint(buf, 10, &value) || value < 1 || value > 255) in attr_sensitivity_store_cptkbd()
620 cptkbd_data->sensitivity = value; in attr_sensitivity_store_cptkbd()
[all …]
/openbmc/phosphor-power/phosphor-regulators/src/
H A Dvpd.cpp28 std::vector<uint8_t> value{}; in getValue() local
38 value = it->second; in getValue()
43 getDBusProperty(inventoryPath, keyword, value); in getValue()
46 cachedKeywords[keyword] = value; in getValue()
49 return value; in getValue()
54 std::vector<uint8_t>& value) in getDBusProperty() argument
60 value.clear(); in getDBusProperty()
67 INVENTORY_MGR_IFACE, bus, value); in getDBusProperty()
75 value.insert(value.begin(), stringValue.begin(), stringValue.end()); in getDBusProperty()
84 value.clear(); in getDBusProperty()
/openbmc/qemu/hw/cpu/
H A Dcore.c21 int64_t value = core->core_id; in core_prop_get_core_id() local
23 visit_type_int(v, name, &value, errp); in core_prop_get_core_id()
30 int64_t value; in core_prop_set_core_id() local
32 if (!visit_type_int(v, name, &value, errp)) { in core_prop_set_core_id()
36 if (value < 0) { in core_prop_set_core_id()
37 error_setg(errp, "Invalid core id %"PRId64, value); in core_prop_set_core_id()
41 core->core_id = value; in core_prop_set_core_id()
48 int64_t value = core->nr_threads; in core_prop_get_nr_threads() local
50 visit_type_int(v, name, &value, errp); in core_prop_get_nr_threads()
57 int64_t value; in core_prop_set_nr_threads() local
[all …]
/openbmc/linux/drivers/edac/
H A Dedac_pci.h99 static inline void pci_write_bits8(struct pci_dev *pdev, int offset, u8 value, in pci_write_bits8() argument
106 value &= mask; in pci_write_bits8()
108 value |= buf; in pci_write_bits8()
111 pci_write_config_byte(pdev, offset, value); in pci_write_bits8()
116 u16 value, u16 mask) in pci_write_bits16() argument
122 value &= mask; in pci_write_bits16()
124 value |= buf; in pci_write_bits16()
127 pci_write_config_word(pdev, offset, value); in pci_write_bits16()
140 u32 value, u32 mask) in pci_write_bits32() argument
146 value &= mask; in pci_write_bits32()
[all …]
/openbmc/linux/drivers/media/dvb-frontends/
H A Ddib7000m.c846 u16 value, est[4]; in dib7000m_set_channel() local
851 value = 0; in dib7000m_set_channel()
853 case TRANSMISSION_MODE_2K: value |= (0 << 7); break; in dib7000m_set_channel()
854 case TRANSMISSION_MODE_4K: value |= (2 << 7); break; in dib7000m_set_channel()
856 case TRANSMISSION_MODE_8K: value |= (1 << 7); break; in dib7000m_set_channel()
859 case GUARD_INTERVAL_1_32: value |= (0 << 5); break; in dib7000m_set_channel()
860 case GUARD_INTERVAL_1_16: value |= (1 << 5); break; in dib7000m_set_channel()
861 case GUARD_INTERVAL_1_4: value |= (3 << 5); break; in dib7000m_set_channel()
863 case GUARD_INTERVAL_1_8: value |= (2 << 5); break; in dib7000m_set_channel()
866 case QPSK: value |= (0 << 3); break; in dib7000m_set_channel()
[all …]
/openbmc/linux/sound/soc/tegra/
H A Dtegra210_i2s.c311 ucontrol->value.integer.value[0] = i2s->loopback; in tegra210_i2s_get_loopback()
321 int value = ucontrol->value.integer.value[0]; in tegra210_i2s_put_loopback() local
323 if (value == i2s->loopback) in tegra210_i2s_put_loopback()
326 i2s->loopback = value; in tegra210_i2s_put_loopback()
340 ucontrol->value.integer.value[0] = i2s->fsync_width; in tegra210_i2s_get_fsync_width()
350 int value = ucontrol->value.integer.value[0]; in tegra210_i2s_put_fsync_width() local
352 if (value == i2s->fsync_width) in tegra210_i2s_put_fsync_width()
355 i2s->fsync_width = value; in tegra210_i2s_put_fsync_width()
378 ucontrol->value.enumerated.item[0] = i2s->stereo_to_mono[I2S_TX_PATH]; in tegra210_i2s_cget_stereo_to_mono()
388 unsigned int value = ucontrol->value.enumerated.item[0]; in tegra210_i2s_cput_stereo_to_mono() local
[all …]
/openbmc/phosphor-user-manager/phosphor-ldap-config/
H A Dldap_config.cpp329 std::string Config::ldapBindDNPassword(std::string value) in ldapBindDNPassword() argument
334 ldapBindPassword = value; in ldapBindDNPassword()
353 return value; in ldapBindDNPassword()
356 std::string Config::ldapServerURI(std::string value) in ldapServerURI() argument
361 if (value == ldapServerURI()) in ldapServerURI()
363 return value; in ldapServerURI()
365 if (isValidLDAPURI(value, ldapsScheme)) in ldapServerURI()
369 else if (isValidLDAPURI(value, ldapScheme)) in ldapServerURI()
375 lg2::error("Bad LDAP Server URI {URI}", "URI", value); in ldapServerURI()
377 Argument::ARGUMENT_VALUE(value.c_str())); in ldapServerURI()
[all …]
/openbmc/linux/drivers/net/ethernet/sfc/falcon/
H A Dbitfield.h242 #define EF4_INSERT_NATIVE64(min, max, low, high, value) \ argument
245 (((u64) (value)) << (low - min)) : \
246 (((u64) (value)) >> (min - low))))
248 #define EF4_INSERT_NATIVE32(min, max, low, high, value) \ argument
251 (((u32) (value)) << (low - min)) : \
252 (((u32) (value)) >> (min - low))))
254 #define EF4_INSERT_NATIVE(min, max, low, high, value) \ argument
256 EF4_INSERT_NATIVE64(min, max, low, high, value) : \
257 EF4_INSERT_NATIVE32(min, max, low, high, value))
265 #define EF4_INSERT_FIELD_NATIVE(min, max, field, value) \ argument
[all …]
/openbmc/linux/crypto/asymmetric_keys/
H A Dpkcs7_parser.c206 const void *value, size_t vlen) in pkcs7_note_OID() argument
210 ctx->last_oid = look_up_OID(value, vlen); in pkcs7_note_OID()
213 sprint_oid(value, vlen, buffer, sizeof(buffer)); in pkcs7_note_OID()
215 (unsigned long)value - ctx->data, buffer); in pkcs7_note_OID()
225 const void *value, size_t vlen) in pkcs7_sig_note_digest_algo() argument
272 const void *value, size_t vlen) in pkcs7_sig_note_pkey_algo() argument
310 const void *value, size_t vlen) in pkcs7_check_content_type() argument
327 const void *value, size_t vlen) in pkcs7_note_signeddata_version() argument
335 ctx->msg->version = version = *(const u8 *)value; in pkcs7_note_signeddata_version()
361 const void *value, size_t vlen) in pkcs7_note_signerinfo_version() argument
[all …]
/openbmc/linux/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-debugfs.c125 loff_t *ppos, unsigned int value) in xgbe_common_read() argument
133 buf = kasprintf(GFP_KERNEL, "0x%08x\n", value); in xgbe_common_read()
149 loff_t *ppos, unsigned int *value) in xgbe_common_write() argument
167 ret = kstrtouint(workarea, 16, value); in xgbe_common_write()
196 unsigned int value; in xgmac_reg_value_read() local
198 value = XGMAC_IOREAD(pdata, pdata->debugfs_xgmac_reg); in xgmac_reg_value_read()
200 return xgbe_common_read(buffer, count, ppos, value); in xgmac_reg_value_read()
208 unsigned int value; in xgmac_reg_value_write() local
211 len = xgbe_common_write(buffer, count, ppos, &value); in xgmac_reg_value_write()
215 XGMAC_IOWRITE(pdata, pdata->debugfs_xgmac_reg, value); in xgmac_reg_value_write()
[all …]
/openbmc/linux/tools/perf/util/
H A Dvalues.c17 values->value = zalloc(values->threads_max * sizeof(*values->value)); in perf_read_values_init()
18 if (!values->pid || !values->tid || !values->value) { in perf_read_values_init()
43 zfree(&values->value); in perf_read_values_init()
55 zfree(&values->value[i]); in perf_read_values_destroy()
56 zfree(&values->value); in perf_read_values_destroy()
70 *nvalue = realloc(values->value, nthreads_max * sizeof(*values->value)); in perf_read_values__enlarge_threads()
78 values->value = nvalue; in perf_read_values__enlarge_threads()
105 values->value[i] = zalloc(values->counters_max * sizeof(**values->value)); in perf_read_values__findnew_thread()
106 if (!values->value[i]) { in perf_read_values__findnew_thread()
135 u64 *value = realloc(values->value[i], counters_max * sizeof(**values->value)); in perf_read_values__enlarge_counters() local
[all …]
/openbmc/pldm/
H A Dmeson.options2 option('tests', type: 'feature', value: 'enabled', description: 'Build tests')
7 value: 'enabled',
14 value: 'enabled',
21 value: 'enabled',
35 # value to 5 seconds we ensure that PLDM does not wait for a response from a dbus call even after
39 'dbus-timeout-value',
43 value: 5,
51 value: 120,
62 value: 0,
73 value
[all...]
/openbmc/qemu/hw/timer/
H A Dsh_timer.c84 static void sh_timer_write(void *opaque, hwaddr offset, uint32_t value) in sh_timer_write() argument
91 s->tcor = value; in sh_timer_write()
97 s->tcnt = value; in sh_timer_write()
113 switch (value & TIMER_TCR_TPSC) { in sh_timer_write()
139 switch ((value & TIMER_TCR_CKEG) >> 3) { in sh_timer_write()
153 switch ((value & TIMER_TCR_ICPE) >> 6) { in sh_timer_write()
166 if ((value & TIMER_TCR_UNF) == 0) { in sh_timer_write()
170 value &= ~TIMER_TCR_UNF; in sh_timer_write()
172 if ((value & TIMER_TCR_ICPF) && (!(s->feat & TIMER_FEAT_CAPT))) { in sh_timer_write()
177 value &= ~TIMER_TCR_ICPF; /* capture not supported */ in sh_timer_write()
[all …]
/openbmc/dbus-sensors/src/intrusion/
H A DChassisIntrusionSensor.cpp75 void ChassisIntrusionSensor::updateValue(const size_t& value) in updateValue()
77 std::string newValue = value != 0 ? hwIntrusionValStr : normalValStr; in updateValue()
88 lg2::info("Update value from '{VALUE}' to '{NEWVALUE}'", "VALUE", in updateValue()
130 int32_t value = i2c_smbus_read_byte_data(mBusFd, statusReg); in readSensor()
133 lg2::info("Pch type: raw value is '{VALUE}'", "VALUE", value); in readSensor()
136 if (value < 0) in readSensor()
142 // Get status value with mask in readSensor()
143 value &= statusMask; in readSensor()
147 lg2::info("Pch type: masked raw value i in readSensor()
74 updateValue(const size_t & value) updateValue() argument
129 int32_t value = i2c_smbus_read_byte_data(mBusFd, statusReg); readSensor() local
173 int value = self->readSensor(); pollSensorStatus() local
192 auto value = mGpioLine.get_value(); readSensor() local
217 int value = readSensor(); pollSensorStatus() local
230 int value = 0; readSensor() local
289 int value = self->readSensor(); pollSensorStatus() local
[all...]
/openbmc/qemu/qapi/
H A Dqobject-output-visitor.c28 QObject *value; member
41 #define qobject_output_add(qov, name, value) \ argument
42 qobject_output_add_obj(qov, name, QOBJECT(value))
43 #define qobject_output_push(qov, value, qapi) \ argument
44 qobject_output_push_obj(qov, QOBJECT(value), qapi)
52 static void qobject_output_push_obj(QObjectOutputVisitor *qov, QObject *value, in qobject_output_push_obj() argument
58 assert(value); in qobject_output_push_obj()
59 e->value = value; in qobject_output_push_obj()
68 QObject *value; in qobject_output_pop() local
73 value = e->value; in qobject_output_pop()
[all …]
/openbmc/phosphor-logging/test/openpower-pels/
H A Dfru_identity_test.cpp41 EXPECT_EQ(fru.getPN().value(), "1234567"); in TEST()
42 EXPECT_EQ(fru.getCCIN().value(), "AAAA"); in TEST()
43 EXPECT_EQ(fru.getSN().value(), "123456789ABC"); in TEST()
69 EXPECT_EQ(fru.getMaintProc().value(), "1234567"); in TEST()
102 EXPECT_EQ(fru.getPN().value(), expectedPN); in testHWCallout()
103 EXPECT_EQ(fru.getCCIN().value(), expectedCCIN); in testHWCallout()
104 EXPECT_EQ(fru.getSN().value(), expectedSN); in testHWCallout()
120 EXPECT_EQ(newFRU.getPN().value(), fru.getPN().value()); in testHWCallout()
121 EXPECT_EQ(newFRU.getCCIN().value(), fru.getCCIN().value()); in testHWCallout()
122 EXPECT_EQ(newFRU.getSN().value(), fru.getSN().value()); in testHWCallout()
[all …]

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