Home
last modified time | relevance | path

Searched refs:value (Results 201 – 225 of 12580) sorted by relevance

12345678910>>...504

/openbmc/linux/drivers/gpu/drm/tegra/
H A Dhdmi.c115 u32 value = readl(hdmi->regs + (offset << 2)); in tegra_hdmi_readl() local
117 trace_hdmi_readl(hdmi->dev, offset, value); in tegra_hdmi_readl()
119 return value; in tegra_hdmi_readl()
122 static inline void tegra_hdmi_writel(struct tegra_hdmi *hdmi, u32 value, in tegra_hdmi_writel() argument
125 trace_hdmi_writel(hdmi->dev, offset, value); in tegra_hdmi_writel()
126 writel(value, hdmi->regs + (offset << 2)); in tegra_hdmi_writel()
444 u32 value; in tegra_hdmi_setup_audio_fs_tables() local
454 value = AUDIO_FS_LOW(eight_half - delta) | in tegra_hdmi_setup_audio_fs_tables()
456 tegra_hdmi_writel(hdmi, value, HDMI_NV_PDISP_AUDIO_FS(i)); in tegra_hdmi_setup_audio_fs_tables()
460 static void tegra_hdmi_write_aval(struct tegra_hdmi *hdmi, u32 value) in tegra_hdmi_write_aval() argument
[all …]
/openbmc/qemu/hw/timer/
H A Dgrlib_gptimer.c142 uint32_t value = 0; in grlib_gptimer_set_scaler() local
147 value = unit->freq_hz / (scaler + 1); in grlib_gptimer_set_scaler()
149 value = unit->freq_hz; in grlib_gptimer_set_scaler()
152 trace_grlib_gptimer_set_scaler(scaler, value); in grlib_gptimer_set_scaler()
156 ptimer_set_freq(unit->timers[i].ptimer, value); in grlib_gptimer_set_scaler()
187 uint32_t value = 0; in grlib_gptimer_read() local
217 value = ptimer_get_count(unit->timers[id].ptimer); in grlib_gptimer_read()
218 trace_grlib_gptimer_readl(id, addr, value); in grlib_gptimer_read()
219 return value; in grlib_gptimer_read()
222 value = unit->timers[id].reload; in grlib_gptimer_read()
[all …]
/openbmc/linux/drivers/iio/gyro/
H A Dst_gyro_core.c81 { .hz = 100, .value = 0x00, },
82 { .hz = 200, .value = 0x01, },
83 { .hz = 400, .value = 0x02, },
84 { .hz = 800, .value = 0x03, },
103 .value = 0x00,
108 .value = 0x01,
113 .value = 0x02,
139 .value = BIT(0),
159 { .hz = 95, .value = 0x00, },
160 { .hz = 190, .value = 0x01, },
[all …]
/openbmc/google-misc/subprojects/metrics-ipmi-blobs/test/
H A Dutil_test.cpp102 int value; in TEST() local
103 EXPECT_TRUE(metric_blob::parseMeminfoValue(content, "MemTotal:", value)); in TEST()
104 EXPECT_EQ(value, 1027040); in TEST()
105 EXPECT_TRUE(metric_blob::parseMeminfoValue(content, "MemFree:", value)); in TEST()
106 EXPECT_EQ(value, 868144); in TEST()
108 metric_blob::parseMeminfoValue(content, "MemAvailable:", value)); in TEST()
109 EXPECT_EQ(value, 919308); in TEST()
110 EXPECT_TRUE(metric_blob::parseMeminfoValue(content, "Buffers:", value)); in TEST()
111 EXPECT_EQ(value, 13008); in TEST()
112 EXPECT_TRUE(metric_blob::parseMeminfoValue(content, "Cached:", value)); in TEST()
[all …]
/openbmc/qemu/tests/unit/
H A Dcheck-qnum.c28 const int value = -42; in qnum_from_int_test() local
30 qn = qnum_from_int(value); in qnum_from_int_test()
33 g_assert_cmpint(qn->u.i64, ==, value); in qnum_from_int_test()
43 const uint64_t value = UINT64_MAX; in qnum_from_uint_test() local
45 qn = qnum_from_uint(value); in qnum_from_uint_test()
48 g_assert(qn->u.u64 == value); in qnum_from_uint_test()
58 const double value = -42.23423; in qnum_from_double_test() local
60 qn = qnum_from_double(value); in qnum_from_double_test()
63 g_assert_cmpfloat(qn->u.dbl, ==, value); in qnum_from_double_test()
73 const int64_t value = 0x1234567890abcdefLL; in qnum_from_int64_test() local
[all …]
/openbmc/qemu/hw/core/
H A Dmachine-hmp-cmds.c37 if (cpu->value->cpu_index == monitor_get_cpu_index(mon)) { in hmp_info_cpus()
42 cpu->value->cpu_index); in hmp_info_cpus()
43 monitor_printf(mon, " thread_id=%" PRId64 "\n", cpu->value->thread_id); in hmp_info_cpus()
62 monitor_printf(mon, " type: \"%s\"\n", l->value->type); in hmp_hotpluggable_cpus()
64 l->value->vcpus_count); in hmp_hotpluggable_cpus()
65 if (l->value->qom_path) { in hmp_hotpluggable_cpus()
66 monitor_printf(mon, " qom_path: \"%s\"\n", l->value->qom_path); in hmp_hotpluggable_cpus()
69 c = l->value->props; in hmp_hotpluggable_cpus()
117 visit_type_uint16List(v, NULL, &m->value->host_nodes, &error_abort); in hmp_info_memdev()
118 monitor_printf(mon, "memory backend: %s\n", m->value->id); in hmp_info_memdev()
[all …]
/openbmc/linux/drivers/memory/tegra/
H A Dtegra210-emc-cc-r21021.c127 u32 temp[2][2], value; in update_clock_tree_delay() local
134 value = tegra210_emc_mrr_read(emc, 2, 19); in update_clock_tree_delay()
137 temp[i][0] = (value & 0x00ff) << 8; in update_clock_tree_delay()
138 temp[i][1] = (value & 0xff00) << 0; in update_clock_tree_delay()
139 value >>= 16; in update_clock_tree_delay()
145 value = tegra210_emc_mrr_read(emc, 2, 18); in update_clock_tree_delay()
148 temp[i][0] |= (value & 0x00ff) >> 0; in update_clock_tree_delay()
149 temp[i][1] |= (value & 0xff00) >> 8; in update_clock_tree_delay()
150 value >>= 16; in update_clock_tree_delay()
269 value = tegra210_emc_mrr_read(emc, 1, 19); in update_clock_tree_delay()
[all …]
/openbmc/u-boot/arch/x86/cpu/quark/
H A Dmsg_port.c20 u32 value; in msg_port_read() local
25 qrk_pci_read_config_dword(QUARK_HOST_BRIDGE, MSG_DATA_REG, &value); in msg_port_read()
27 return value; in msg_port_read()
30 void msg_port_write(u8 port, u32 reg, u32 value) in msg_port_write() argument
32 qrk_pci_write_config_dword(QUARK_HOST_BRIDGE, MSG_DATA_REG, value); in msg_port_write()
40 u32 value; in msg_port_alt_read() local
45 qrk_pci_read_config_dword(QUARK_HOST_BRIDGE, MSG_DATA_REG, &value); in msg_port_alt_read()
47 return value; in msg_port_alt_read()
50 void msg_port_alt_write(u8 port, u32 reg, u32 value) in msg_port_alt_write() argument
52 qrk_pci_write_config_dword(QUARK_HOST_BRIDGE, MSG_DATA_REG, value); in msg_port_alt_write()
[all …]
/openbmc/pldm/platform-mc/
H A Dnumeric_sensor.cpp44 union_sensor_data_size& value) in getSensorDataValue() argument
50 ret = value.value_u8; in getSensorDataValue()
53 ret = value.value_s8; in getSensorDataValue()
56 ret = value.value_u16; in getSensorDataValue()
59 ret = value.value_s16; in getSensorDataValue()
62 ret = value.value_u32; in getSensorDataValue()
65 ret = value.value_s32; in getSensorDataValue()
72 union_range_field_format& value) in getRangeFieldValue() argument
78 ret = value.value_u8; in getRangeFieldValue()
81 ret = value.value_s8; in getRangeFieldValue()
[all …]
/openbmc/phosphor-user-manager/
H A Dusers.cpp97 * @param[in] value - User privilege in userPrivilege()
99 std::string Users::userPrivilege(std::string value) in userPrivilege()
101 if (value == UsersIface::userPrivilege()) in userPrivilege()
103 return value; in userPrivilege()
105 manager.updateGroupsAndPriv(userName, UsersIface::userGroups(), value);
106 return UsersIface::userPrivilege(value); in setUserPrivilege() argument
109 void Users::setUserPrivilege(const std::string& value) in setUserPrivilege()
111 UsersIface::userPrivilege(value); in setUserGroups()
129 * @param[in] value - User groups in userGroups()
131 std::vector<std::string> Users::userGroups(std::vector<std::string> value) in userGroups()
96 userPrivilege(std::string value) userPrivilege() argument
128 userGroups(std::vector<std::string> value) userGroups() argument
155 setUserEnabled(bool value) setUserEnabled() argument
164 userEnabled(bool value) userEnabled() argument
186 userLockedForFailedAttempt(bool value) userLockedForFailedAttempt() argument
318 bypassedProtocol(MultiFactorAuthType value,bool skipSignal) bypassedProtocol() argument
344 enableMultiFactorAuth(MultiFactorAuthType type,bool value) enableMultiFactorAuth() argument
[all...]
/openbmc/linux/include/asm-generic/
H A Dio.h148 static inline void __raw_writeb(u8 value, volatile void __iomem *addr) in __raw_writeb() argument
150 *(volatile u8 __force *)addr = value; in __raw_writeb()
156 static inline void __raw_writew(u16 value, volatile void __iomem *addr) in __raw_writew() argument
158 *(volatile u16 __force *)addr = value; in __raw_writew()
164 static inline void __raw_writel(u32 value, volatile void __iomem *addr) in __raw_writel() argument
166 *(volatile u32 __force *)addr = value; in __raw_writel()
173 static inline void __raw_writeq(u64 value, volatile void __iomem *addr) in __raw_writeq() argument
175 *(volatile u64 __force *)addr = value; in __raw_writeq()
249 static inline void writeb(u8 value, volatile void __iomem *addr) in writeb() argument
251 log_write_mmio(value, 8, addr, _THIS_IP_, _RET_IP_); in writeb()
[all …]
/openbmc/qemu/hw/gpio/
H A Dtrace-events4 …7xx_gpio_read(const char *id, uint64_t offset, uint64_t value) " %s offset: 0x%04" PRIx64 " value
5 …xx_gpio_write(const char *id, uint64_t offset, uint64_t value) "%s offset: 0x%04" PRIx64 " value 0…
11 nrf51_gpio_read(uint64_t offset, uint64_t r) "offset 0x%" PRIx64 " value 0x%" PRIx64
12 nrf51_gpio_write(uint64_t offset, uint64_t value) "offset 0x%" PRIx64 " value 0x%" PRIx64
13 nrf51_gpio_set(int64_t line, int64_t value) "line %" PRIi64 " value %" PRIi64
14 nrf51_gpio_update_output_irq(int64_t line, int64_t value) "line %" PRIi64 " value %" PRIi64
25 pl061_read(const char *id, uint64_t offset, uint64_t r) "%s offset 0x%" PRIx64 " value 0x%" PRIx64
26 pl061_write(const char *id, uint64_t offset, uint64_t value) "%s offset 0x%" PRIx64 " value 0x%" PR…
30 sifive_gpio_read(uint64_t offset, uint64_t r) "offset 0x%" PRIx64 " value 0x%" PRIx64
31 sifive_gpio_write(uint64_t offset, uint64_t value) "offset 0x%" PRIx64 " value 0x%" PRIx64
[all …]
/openbmc/linux/tools/testing/selftests/bpf/
H A Dtest_lpm_map.c215 uint8_t *data, *value; in test_lpm_map() local
231 value = alloca(keysize + 1); in test_lpm_map()
232 memset(value, 0, keysize + 1); in test_lpm_map()
246 value[j] = rand() & 0xff; in test_lpm_map()
247 value[keysize] = rand() % (8 * keysize + 1); in test_lpm_map()
249 list = tlpm_add(list, value, value[keysize]); in test_lpm_map()
251 key->prefixlen = value[keysize]; in test_lpm_map()
252 memcpy(key->data, value, keysize); in test_lpm_map()
253 r = bpf_map_update_elem(map, key, value, 0); in test_lpm_map()
265 r = bpf_map_lookup_elem(map, key, value); in test_lpm_map()
[all …]
/openbmc/openbmc/poky/bitbake/lib/prserv/
H A Ddb.py42 value TEXT, \
43 PRIMARY KEY (version, pkgarch, checksum, value));" % self.table)
47 value = None
51 if value is None:
52 value = current_value
55 is_new_extremum = revision_greater(current_value, value)
57 is_new_extremum = revision_smaller(current_value, value)
59 value = current_value
60 return value
81 def test_checksum_value(self, version, pkgarch, checksum, value): argument
[all …]
/openbmc/linux/tools/perf/
H A Dbuiltin-config.c63 if (item->value) in set_config()
65 item->name, item->value); in set_config()
89 char *value = item->value; in show_spec_config() local
91 if (value) { in show_spec_config()
92 printf("%s=%s\n", var, value); in show_spec_config()
112 char *value = item->value; in show_config() local
114 if (value) in show_config()
116 item->name, value); in show_config()
122 static int parse_config_arg(char *arg, char **var, char **value) in parse_config_arg() argument
139 *value = strchr(arg, '='); in parse_config_arg()
[all …]
/openbmc/bmcweb/test/http/
H A Dhttp_body_test.cpp28 HttpBody::value_type value("teststring"); in TEST() local
30 HttpBody::value_type value2(std::move(value)); in TEST()
38 HttpBody::value_type value; in TEST() local
39 value.str() = "teststring"; in TEST()
41 HttpBody::value_type value2 = std::move(value); in TEST()
49 HttpBody::value_type value; in TEST() local
50 value.str() = "teststring"; in TEST()
52 HttpBody::value_type value2(value); in TEST()
60 HttpBody::value_type value; in TEST() local
61 value.str() = "teststring"; in TEST()
[all …]
/openbmc/linux/tools/testing/selftests/net/
H A Dhwtstamp_config.c24 int value; in lookup_value() local
26 for (value = 0; value < size; value++) in lookup_value()
27 if (names[value] && strcasecmp(names[value], name) == 0) in lookup_value()
28 return value; in lookup_value()
34 lookup_name(const char **names, int size, int value) in lookup_name() argument
36 return (value >= 0 && value < size) ? names[value] : NULL; in lookup_name()
41 int value; in list_names() local
43 for (value = 0; value < size; value++) in list_names()
44 if (names[value]) in list_names()
45 fprintf(f, " %s\n", names[value]); in list_names()
/openbmc/openbmc/poky/bitbake/lib/toaster/toastergui/templatetags/
H A Dprojecttags.py41 def json(value, default = None): argument
45 …return mark_safe(JsonLib.dumps(value, indent=2, default = default, ensure_ascii=False).replace('</…
59 def whitespace_space_filter(value, arg): argument
67 first_whitespace = value.find(" ", int(x))
72 return value[slice(*bits)]
77 def divide(value, arg): argument
80 return int(value) // int(arg)
83 def multiply(value, arg): argument
84 return int(value) * int(arg)
133 def format_none_and_zero(value): argument
[all …]
/openbmc/linux/drivers/net/ethernet/realtek/
H A Datp.h159 write_reg(short port, unsigned char reg, unsigned char value) in write_reg() argument
169 outval |= value; in write_reg()
179 write_reg_high(short port, unsigned char reg, unsigned char value) in write_reg_high() argument
188 outval = WrAddr | HNib | value; in write_reg_high()
199 write_reg_byte(short port, unsigned char reg, unsigned char value) in write_reg_byte() argument
208 outb((outval & 0xf0) | (value & 0x0f), port + PAR_DATA); in write_reg_byte()
209 outb(value & 0x0f, port + PAR_DATA); in write_reg_byte()
210 value >>= 4; in write_reg_byte()
211 outb(value, port + PAR_DATA); in write_reg_byte()
212 outb(0x10 | value, port + PAR_DATA); in write_reg_byte()
[all …]
/openbmc/linux/arch/parisc/math-emu/
H A Dfloat.h74 #define Deposit_ssign(object,value) Bitfield_deposit(value,0,1,object) argument
75 #define Deposit_sexponent(object,value) Bitfield_deposit(value,1,8,object) argument
76 #define Deposit_smantissa(object,value) Bitfield_deposit(value,9,23,object) argument
77 #define Deposit_shigh2mantissa(object,value) Bitfield_deposit(value,9,2,object) argument
78 #define Deposit_sexponentmantissa(object,value) \ argument
79 Bitfield_deposit(value,1,31,object)
80 #define Deposit_ssignexponent(object,value) Bitfield_deposit(value,0,9,object) argument
81 #define Deposit_slow(object,value) Bitfield_deposit(value,31,1,object) argument
82 #define Deposit_shigh4(object,value) Bitfield_deposit(value,0,4,object) argument
127 #define Deposit_dsign(object,value) Bitfield_deposit(value,0,1,object) argument
[all …]
/openbmc/linux/drivers/scsi/aic7xxx/aicasm/
H A Daicasm_gram.y100 static void make_expression(expression_t *immed, int value);
112 u_int value; member
121 %token <value> T_CONST
139 %token <value> T_ADDRESS
155 %token <value> T_MODE
169 %token <value> T_NUMBER
177 %token <value> T_SHR T_SHL T_ROR T_ROL
179 %token <value> T_MVI T_MOV T_CLR T_BMOV
181 %token <value> T_JMP T_JC T_JNC T_JE T_JNE T_JNZ T_JZ T_CALL
183 %token <value> T_ADD T_ADC
[all …]
/openbmc/u-boot/drivers/power/pmic/
H A Das3722_gpio.c17 u8 value = 0; in as3722_gpio_configure() local
21 value |= AS3722_GPIO_CONTROL_MODE_OUTPUT_VDDH; in as3722_gpio_configure()
24 value |= AS3722_GPIO_CONTROL_INVERT; in as3722_gpio_configure()
26 err = pmic_reg_write(pmic, AS3722_GPIO_CONTROL(gpio), value); in as3722_gpio_configure()
40 u8 value; in as3722_gpio_set_value() local
51 value = err; in as3722_gpio_set_value()
54 value &= ~(1 << gpio); in as3722_gpio_set_value()
57 value |= 1 << gpio; in as3722_gpio_set_value()
61 err = pmic_reg_write(pmic, AS3722_GPIO_SIGNAL_OUT, value); in as3722_gpio_set_value()
71 int value) in as3722_gpio_direction_output() argument
[all …]
/openbmc/phosphor-hwmon/
H A Dthresholds.hpp75 void checkThresholds(std::any& iface, SensorValueType value) in checkThresholds() argument
82 (*realIface.*Thresholds<T>::alarmLo)(value <= lo); in checkThresholds()
83 (*realIface.*Thresholds<T>::alarmHi)(value >= hi); in checkThresholds()
84 if (alarmLowState != (value <= lo)) in checkThresholds()
86 if (value <= lo) in checkThresholds()
88 (*realIface.*Thresholds<T>::assertLowSignal)(value); in checkThresholds()
92 (*realIface.*Thresholds<T>::deassertLowSignal)(value); in checkThresholds()
95 if (alarmHighState != (value >= hi)) in checkThresholds()
97 if (value >= hi) in checkThresholds()
99 (*realIface.*Thresholds<T>::assertHighSignal)(value); in checkThresholds()
[all …]
/openbmc/linux/drivers/phy/renesas/
H A Dphy-rcar-gen2.c122 u32 value; in rcar_gen2_phy_power_on() local
132 value = readl(base + USBHS_UGCTRL); in rcar_gen2_phy_power_on()
133 value &= ~USBHS_UGCTRL_PLLRESET; in rcar_gen2_phy_power_on()
134 writel(value, base + USBHS_UGCTRL); in rcar_gen2_phy_power_on()
136 value = readw(base + USBHS_LPSTS); in rcar_gen2_phy_power_on()
137 value |= USBHS_LPSTS_SUSPM; in rcar_gen2_phy_power_on()
138 writew(value, base + USBHS_LPSTS); in rcar_gen2_phy_power_on()
141 value = readl(base + USBHS_UGSTS); in rcar_gen2_phy_power_on()
142 if ((value & USBHS_UGSTS_LOCK) == USBHS_UGSTS_LOCK) { in rcar_gen2_phy_power_on()
143 value = readl(base + USBHS_UGCTRL); in rcar_gen2_phy_power_on()
[all …]
/openbmc/linux/drivers/gpio/
H A Dgpio-tegra186.c162 u32 value; in tegra186_gpio_is_accessible() local
167 value = readl(secure + TEGRA186_GPIO_VM); in tegra186_gpio_is_accessible()
168 if ((value & TEGRA186_GPIO_VM_RW_MASK) != TEGRA186_GPIO_VM_RW_MASK) in tegra186_gpio_is_accessible()
172 value = __raw_readl(secure + TEGRA186_GPIO_SCR); in tegra186_gpio_is_accessible()
182 if (((value & TEGRA186_GPIO_SCR_SEC_REN) == 0 || in tegra186_gpio_is_accessible()
183 ((value & TEGRA186_GPIO_SCR_SEC_REN) && (value & TEGRA186_GPIO_SCR_SEC_G1R))) && in tegra186_gpio_is_accessible()
184 ((value & TEGRA186_GPIO_SCR_SEC_WEN) == 0 || in tegra186_gpio_is_accessible()
185 ((value & TEGRA186_GPIO_SCR_SEC_WEN) && (value & TEGRA186_GPIO_SCR_SEC_G1W)))) in tegra186_gpio_is_accessible()
209 u32 value; in tegra186_gpio_get_direction() local
215 value = readl(base + TEGRA186_GPIO_ENABLE_CONFIG); in tegra186_gpio_get_direction()
[all …]

12345678910>>...504