/openbmc/qemu/hw/intc/ |
H A D | armv7m_nvic.c | 1516 uint32_t value = cpu->env.v7m.fpccr[M_REG_S]; in nvic_readl() local 1525 value &= mask; in nvic_readl() 1527 value |= cpu->env.v7m.fpccr[M_REG_NS]; in nvic_readl() 1528 return value; in nvic_readl() 1553 static void nvic_writel(NVICState *s, uint32_t offset, uint32_t value, in nvic_writel() argument 1577 s->itns[startvec + i] = (value >> i) & 1; in nvic_writel() 1584 if (value & (1 << 31)) { in nvic_writel() 1586 } else if (value & (1 << 30) && in nvic_writel() 1592 if (value & (1 << 28)) { in nvic_writel() 1594 } else if (value & (1 << 27)) { in nvic_writel() [all …]
|
/openbmc/linux/drivers/md/persistent-data/ |
H A D | dm-bitset.c | 49 static int pack_bits(uint32_t index, void *value, void *context) in pack_bits() argument 68 *((__le64 *) value) = cpu_to_le64(word); in pack_bits() 92 __le64 value = default_value ? cpu_to_le64(~0) : cpu_to_le64(0); in dm_bitset_resize() local 94 __dm_bless_for_disk(&value); in dm_bitset_resize() 96 &value, new_root); in dm_bitset_resize() 110 __le64 value; in dm_bitset_flush() local 115 value = cpu_to_le64(info->current_bits); in dm_bitset_flush() 117 __dm_bless_for_disk(&value); in dm_bitset_flush() 119 &value, new_root); in dm_bitset_flush() 134 __le64 value; in read_bits() local [all …]
|
/openbmc/qemu/hw/timer/ |
H A D | stm32f2xx_timer.c | 183 uint32_t value = val64; in stm32f2xx_timer_write() local 187 DB_PRINT("Write 0x%x, 0x%"HWADDR_PRIx"\n", value, offset); in stm32f2xx_timer_write() 191 s->tim_cr1 = value; in stm32f2xx_timer_write() 194 s->tim_cr2 = value; in stm32f2xx_timer_write() 197 s->tim_smcr = value; in stm32f2xx_timer_write() 200 s->tim_dier = value; in stm32f2xx_timer_write() 204 s->tim_sr &= value; in stm32f2xx_timer_write() 207 s->tim_egr = value; in stm32f2xx_timer_write() 214 s->tim_ccmr1 = value; in stm32f2xx_timer_write() 217 s->tim_ccmr2 = value; in stm32f2xx_timer_write() [all …]
|
H A D | exynos4210_mct.c | 1066 uint32_t value = 0; in exynos4210_mct_read() local 1072 value = s->reg_mct_cfg; in exynos4210_mct_read() 1078 value = UINT32_MAX & (count >> shift); in exynos4210_mct_read() 1083 value = s->g_timer.reg.cnt_wstat; in exynos4210_mct_read() 1090 value = UINT32_MAX & (s->g_timer.reg.comp[index] >> shift); in exynos4210_mct_read() 1094 value = s->g_timer.reg.tcon; in exynos4210_mct_read() 1098 value = s->g_timer.reg.int_cstat; in exynos4210_mct_read() 1102 value = s->g_timer.reg.int_enb; in exynos4210_mct_read() 1105 value = s->g_timer.reg.wstat; in exynos4210_mct_read() 1110 value = s->g_timer.reg.comp_add_incr[GET_G_COMP_ADD_INCR_IDX(offset)]; in exynos4210_mct_read() [all …]
|
/openbmc/linux/drivers/media/pci/cx25821/ |
H A D | cx25821-gpio.c | 19 u32 value = 0; in cx25821_set_gpiopin_direction() local 34 value = gpio_register | Set_GPIO_Bit(bit); in cx25821_set_gpiopin_direction() 36 value = gpio_register & Clear_GPIO_Bit(bit); in cx25821_set_gpiopin_direction() 38 cx_write(gpio_oe_reg, value); in cx25821_set_gpiopin_direction() 47 u32 value = 0; in cx25821_set_gpiopin_logicvalue() local 61 value = cx_read(gpio_reg); in cx25821_set_gpiopin_logicvalue() 64 value &= Clear_GPIO_Bit(bit); in cx25821_set_gpiopin_logicvalue() 66 value |= Set_GPIO_Bit(bit); in cx25821_set_gpiopin_logicvalue() 68 cx_write(gpio_reg, value); in cx25821_set_gpiopin_logicvalue()
|
/openbmc/openbmc/poky/scripts/lib/recipetool/ |
H A D | create_buildsys_python.py | 219 value = values 221 value = ' '.join(str(v) for v in values if v) 226 if not value.startswith('python'): 227 value = 'python3-' + value 229 if bbvar not in extravalues and value: 230 extravalues[bbvar] = value 240 def replace_value(search, replace, value): argument 242 if re.search(search, value): 245 new_value = re.sub(search, replace, value) 246 if value != new_value: [all …]
|
/openbmc/qemu/hw/display/ |
H A D | sm501.c | 1002 uint64_t value, unsigned size) in sm501_system_config_write() argument 1006 trace_sm501_system_config_write((uint32_t)addr, (uint32_t)value); in sm501_system_config_write() 1010 s->system_control |= value & 0xEF00B8F7; in sm501_system_config_write() 1014 s->misc_control |= value & 0xFF7FFF10; in sm501_system_config_write() 1017 s->gpio_31_0_control = value; in sm501_system_config_write() 1020 s->gpio_63_32_control = value & 0xFF80FFFF; in sm501_system_config_write() 1023 s->local_mem_size_index = (value >> 13) & 0x7; in sm501_system_config_write() 1026 s->dram_control |= value & 0x7FFFFFC3; in sm501_system_config_write() 1029 s->arbitration_control = value & 0x37777777; in sm501_system_config_write() 1032 s->irq_mask = value & 0xFFDF3F5F; in sm501_system_config_write() [all …]
|
/openbmc/u-boot/tools/buildman/ |
H A D | toolchain.py | 39 for tag, value in attrs: 41 if value and value.endswith('.xz'): 42 self.links.append(value) 43 if self.re_arch.search(value): 44 self.arch_link = value 138 value = '' 139 for name, value in bsettings.GetItems('toolchain-wrapper'): 140 if not value: 142 if value: 143 value = value + ' ' [all …]
|
/openbmc/u-boot/arch/arm/mach-tegra/tegra210/ |
H A D | clock.c | 354 #define OFFSET(name, value) PERIPHC_ ## name argument 1036 u32 value, div; in clk_m_get_rate() local 1038 value = readl(&clkrst->crc_spare_reg0); in clk_m_get_rate() 1039 div = ((value >> 2) & 0x3) + 1; in clk_m_get_rate() 1081 u32 value; in tegra_pllref_enable() local 1089 value = readl(NV_PA_CLK_RST_BASE + PLLREFE_MISC); in tegra_pllref_enable() 1090 value &= ~PLLREFE_MISC_IDDQ; in tegra_pllref_enable() 1091 writel(value, NV_PA_CLK_RST_BASE + PLLREFE_MISC); in tegra_pllref_enable() 1095 value = PLLREFE_BASE_ENABLE | in tegra_pllref_enable() 1100 writel(value, NV_PA_CLK_RST_BASE + PLLREFE_BASE); in tegra_pllref_enable() [all …]
|
/openbmc/linux/drivers/pinctrl/starfive/ |
H A D | pinctrl-starfive-jh7100.c | 713 u32 value = (u32)_value << shift; in starfive_padctl_rmw() local 719 value |= readl_relaxed(reg) & ~mask; in starfive_padctl_rmw() 720 writel_relaxed(value, reg); in starfive_padctl_rmw() 746 u16 value = starfive_padctl_get(sfp, pin); in starfive_pinconf_get() local 752 enabled = value & PAD_BIAS_DISABLE; in starfive_pinconf_get() 756 enabled = value & PAD_BIAS_PULL_DOWN; in starfive_pinconf_get() 760 enabled = !(value & PAD_BIAS_MASK); in starfive_pinconf_get() 764 enabled = value & PAD_DRIVE_STRENGTH_MASK; in starfive_pinconf_get() 765 arg = starfive_drive_strength_to_max_mA(value & PAD_DRIVE_STRENGTH_MASK); in starfive_pinconf_get() 768 enabled = value & PAD_INPUT_ENABLE; in starfive_pinconf_get() [all …]
|
/openbmc/linux/sound/soc/sof/ |
H A D | ipc3-control.c | 165 ucontrol->value.integer.value[i] = ipc_to_mixer(cdata->chanv[i].value, in sof_ipc3_volume_get() 183 u32 value = mixer_to_ipc(ucontrol->value.integer.value[i], in sof_ipc3_volume_put() local 186 change = change || (value != cdata->chanv[i].value); in sof_ipc3_volume_put() 188 cdata->chanv[i].value = value; in sof_ipc3_volume_put() 216 ucontrol->value.integer.value[i] = cdata->chanv[i].value; in sof_ipc3_switch_get() 229 u32 value; in sof_ipc3_switch_put() local 233 value = ucontrol->value.integer.value[i]; in sof_ipc3_switch_put() 234 change = change || (value != cdata->chanv[i].value); in sof_ipc3_switch_put() 236 cdata->chanv[i].value = value; in sof_ipc3_switch_put() 264 ucontrol->value.enumerated.item[i] = cdata->chanv[i].value; in sof_ipc3_enum_get() [all …]
|
/openbmc/openbmc/poky/bitbake/lib/bb/ |
H A D | data.py | 198 value = d.getVar(key) 203 if value is not None: 204 yield key, str(value) 265 def handle_contains(value, contains, exclusions, d): argument 267 if value: 268 newvalue.append(str(value)) 282 def handle_remove(value, deps, removes, d): argument 285 value += "\n_remove of %s" % r 288 value = handle_contains(value, r2.contains, exclusions, d) 289 return value [all …]
|
/openbmc/pldm/platform-mc/ |
H A D | dbus_to_terminus_effecters.cpp | 33 auto value = jsonEntryToDbusVal(propertyType, elem); in populatePropVals() local 34 propertyValues.emplace_back(value); in populatePropVals() 65 auto entries = data.value("entries", emptyList); in parseEffecterJson() 69 effecterInfo.mctpEid = entry.value("mctp_eid", 0xFF); in parseEffecterJson() 70 effecterInfo.terminusName = entry.value("terminus_name", ""); in parseEffecterJson() 71 auto jsonEffecterInfo = entry.value("effecter_info", empty); in parseEffecterJson() 73 jsonEffecterInfo.value("effecterID", PLDM_INVALID_EFFECTER_ID); in parseEffecterJson() 76 jsonEffecterInfo.value("effecterPdrType", PLDM_STATE_EFFECTER_PDR); in parseEffecterJson() 86 effecterInfo.containerId = jsonEffecterInfo.value("containerID", 0); in parseEffecterJson() 87 effecterInfo.entityType = jsonEffecterInfo.value("entityType", 0); in parseEffecterJson() [all …]
|
/openbmc/linux/sound/pci/ice1712/ |
H A D | aureon.c | 202 ucontrol->value.enumerated.item[0] = spec->pca9554_out; in aureon_universe_inmux_get() 214 nval = ucontrol->value.enumerated.item[0]; in aureon_universe_inmux_put() 351 uinfo->value.integer.min = 0; in aureon_ac97_vol_info() 352 uinfo->value.integer.max = 31; in aureon_ac97_vol_info() 364 ucontrol->value.integer.value[0] = 0x1F - (vol & 0x1F); in aureon_ac97_vol_get() 366 ucontrol->value.integer.value[1] = 0x1F - ((vol >> 8) & 0x1F); in aureon_ac97_vol_get() 381 nvol = (0x1F - ucontrol->value.integer.value[0]) & 0x001F; in aureon_ac97_vol_put() 383 nvol |= ((0x1F - ucontrol->value.integer.value[1]) << 8) & 0x1F00; in aureon_ac97_vol_put() 406 ucontrol->value.integer.value[0] = aureon_ac97_read(ice, in aureon_ac97_mute_get() 422 nvol = (ucontrol->value.integer.value[0] ? 0x0000 : 0x8000) | (ovol & ~0x8000); in aureon_ac97_mute_put() [all …]
|
/openbmc/linux/arch/powerpc/xmon/ |
H A D | spu-dis.c | 85 int value; in print_insn_spu() local 196 value = DECODE_INSN_I16 (insn) * 4; in print_insn_spu() 197 if (value == 0) in print_insn_spu() 198 printf("%d", value); in print_insn_spu() 201 hex_value = memaddr + value; in print_insn_spu() 206 value = DECODE_INSN_U16 (insn) * 4; in print_insn_spu() 207 if (value == 0) in print_insn_spu() 208 printf("%d", value); in print_insn_spu() 210 print_address(value); in print_insn_spu() 213 value = DECODE_INSN_U18 (insn); in print_insn_spu() [all …]
|
/openbmc/pldm/libpldmresponder/ |
H A D | event_parser.cpp | 47 auto entries = data.value("entries", emptyJsonList); in StateSensorHandler() 52 static_cast<uint16_t>(entry.value("containerID", 0xFFFF)); in StateSensorHandler() 54 static_cast<uint16_t>(entry.value("entityType", 0)); in StateSensorHandler() 56 static_cast<uint16_t>(entry.value("entityInstance", 0)); in StateSensorHandler() 58 static_cast<uint8_t>(entry.value("sensorOffset", 0)); in StateSensorHandler() 60 static_cast<uint16_t>(entry.value("stateSetId", 0)); in StateSensorHandler() 68 auto dbus = entry.value("dbus", emptyJson); in StateSensorHandler() 69 dbusInfo.objectPath = dbus.value("object_path", ""); in StateSensorHandler() 70 dbusInfo.interface = dbus.value("interface", ""); in StateSensorHandler() 71 dbusInfo.propertyName = dbus.value("property_name", ""); in StateSensorHandler() [all …]
|
/openbmc/linux/sound/pci/ |
H A D | ak4531_codec.c | 66 uinfo->value.integer.min = 0; in snd_ak4531_info_single() 67 uinfo->value.integer.max = mask; in snd_ak4531_info_single() 86 ucontrol->value.integer.value[0] = val; in snd_ak4531_get_single() 100 val = ucontrol->value.integer.value[0] & mask; in snd_ak4531_put_single() 133 uinfo->value.integer.min = 0; in snd_ak4531_info_double() 134 uinfo->value.integer.max = mask; in snd_ak4531_info_double() 157 ucontrol->value.integer.value[0] = left; in snd_ak4531_get_double() 158 ucontrol->value.integer.value[1] = right; in snd_ak4531_get_double() 174 left = ucontrol->value.integer.value[0] & mask; in snd_ak4531_put_double() 175 right = ucontrol->value.integer.value[1] & mask; in snd_ak4531_put_double() [all …]
|
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/ |
H A D | fitimage.py | 212 key, value = line.split('=', 1) 213 sigs[itsdotpath][key.rstrip()] = value.lstrip().rstrip(';') 235 value = values.get(reqkey, None) 236 if value is None: 238 self.assertEqual(value, reqvalue) 254 key, value = line.split(':', 1) 255 signed_sections[in_signed][key.strip()] = value.strip() 260 value = values.get('Sign algo', None) 262 …self.assertEqual(value, 'sha256,rsa2048:cfg-oe-selftest', 'Signature algorithm for %s not expected… 264 …self.assertEqual(value, 'sha256,rsa2048:img-oe-selftest', 'Signature algorithm for %s not expected… [all …]
|
/openbmc/linux/drivers/gpu/drm/i915/gt/ |
H A D | intel_mocs.c | 32 #define _LE_CACHEABILITY(value) ((value) << 0) argument 33 #define _LE_TGT_CACHE(value) ((value) << 2) argument 34 #define LE_LRUM(value) ((value) << 4) argument 35 #define LE_AOM(value) ((value) << 6) argument 36 #define LE_RSC(value) ((value) << 7) argument 37 #define LE_SCC(value) ((value) << 8) argument 38 #define LE_PFM(value) ((value) << 11) argument 39 #define LE_SCF(value) ((value) << 14) argument 40 #define LE_COS(value) ((value) << 15) argument 41 #define LE_SSE(value) ((value) << 17) argument [all …]
|
/openbmc/linux/sound/soc/codecs/ |
H A D | rt715-sdca.c | 33 unsigned int nid, unsigned int reg, unsigned int value) in rt715_sdca_index_write() argument 41 ret = regmap_write(regmap, addr, value); in rt715_sdca_index_write() 45 value); in rt715_sdca_index_write() 51 unsigned int nid, unsigned int reg, unsigned int *value) in rt715_sdca_index_read() argument 59 ret = regmap_read(regmap, addr, value); in rt715_sdca_index_read() 63 addr, *value, ret); in rt715_sdca_index_read() 142 if (ucontrol->value.integer.value[i] != rt715->kctl_2ch_orig[i]) { in rt715_sdca_set_amp_gain_put() 149 rt715->kctl_2ch_orig[i] = ucontrol->value.integer.value[i]; in rt715_sdca_set_amp_gain_put() 151 rt715_sdca_vol_gain(ucontrol->value.integer.value[i], mc->max, in rt715_sdca_set_amp_gain_put() 177 if (ucontrol->value.integer.value[i] != rt715->kctl_4ch_orig[i]) { in rt715_sdca_set_amp_gain_4ch_put() [all …]
|
/openbmc/u-boot/arch/x86/lib/ |
H A D | early_cmos.c | 26 u16 value = 0; in cmos_read16() local 30 for (i = 0; i < sizeof(value); i++) { in cmos_read16() 32 value |= data << (i << 3); in cmos_read16() 35 return value; in cmos_read16() 40 u32 value = 0; in cmos_read32() local 44 for (i = 0; i < sizeof(value); i++) { in cmos_read32() 46 value |= data << (i << 3); in cmos_read32() 49 return value; in cmos_read32()
|
/openbmc/phosphor-host-ipmid/ |
H A D | sensordatahandler.cpp | 87 for (const auto& value : std::get<OffsetValueMap>(property.second)) in mapDbusToAssertion() local 89 if (propValue == value.second.assert) in mapDbusToAssertion() 91 setOffset(value.first, &response); in mapDbusToAssertion() 121 for (const auto& value : std::get<OffsetValueMap>(property.second)) in mapDbusToEventdata2() local 123 if (propValue == value.second.assert) in mapDbusToEventdata2() 125 setReading(value.first, &response); in mapDbusToEventdata2() 233 for (const auto& value : std::get<OffsetValueMap>(property.second)) in assertion() local 235 if (bothSet.size() <= value.first || !bothSet.test(value.first)) in assertion() 241 if (assertionSet.test(value.first)) in assertion() 243 tmp = value.second.assert; in assertion() [all …]
|
/openbmc/linux/drivers/sh/clk/ |
H A D | cpg.c | 29 static void sh_clk_write(int value, struct clk *clk) in sh_clk_write() argument 32 iowrite8(value, clk->mapped_reg); in sh_clk_write() 34 iowrite16(value, clk->mapped_reg); in sh_clk_write() 36 iowrite32(value, clk->mapped_reg); in sh_clk_write() 131 unsigned long value; in sh_clk_div_set_rate() local 138 value = sh_clk_read(clk); in sh_clk_div_set_rate() 139 value &= ~(clk->div_mask << clk->enable_bit); in sh_clk_div_set_rate() 140 value |= (idx << clk->enable_bit); in sh_clk_div_set_rate() 141 sh_clk_write(value, clk); in sh_clk_div_set_rate() 282 u32 value; in sh_clk_div6_set_parent() local [all …]
|
/openbmc/linux/drivers/xen/xen-pciback/ |
H A D | conf_space.c | 29 (struct pci_dev *dev, int offset, type value, void *data) \ 31 return pci_##op##_config_##size(dev, offset, value); \ 44 int offset, u32 *value) in DEFINE_PCI_CONFIG() 49 *value = 0; in DEFINE_PCI_CONFIG() 54 ret = field->u.b.read(dev, offset, (u8 *) value, in DEFINE_PCI_CONFIG() 59 ret = field->u.w.read(dev, offset, (u16 *) value, in DEFINE_PCI_CONFIG() 64 ret = field->u.dw.read(dev, offset, value, entry->data); in DEFINE_PCI_CONFIG() 72 int offset, u32 value) in conf_space_write() argument 80 ret = field->u.b.write(dev, offset, (u8) value, in conf_space_write() 85 ret = field->u.w.write(dev, offset, (u16) value, in conf_space_write() [all …]
|
/openbmc/linux/tools/lib/subcmd/ |
H A D | parse-options.h | 101 void *value; member 120 …v, h, b) { .type = OPTION_BIT, .short_name = (s), .long_name = (l), .value = check_vtype(v, i… 121 …v, h) { .type = OPTION_BOOLEAN, .short_name = (s), .long_name = (l), .value = check_vtype(v, b… 122 …h, f) { .type = OPTION_BOOLEAN, .short_name = (s), .long_name = (l), .value = check_vtype(v, b… 125 .value = check_vtype(v, bool *), .help = (h), \ 127 …v, h) { .type = OPTION_INCR, .short_name = (s), .long_name = (l), .value = check_vtype(v, i… 128 …, h, i) { .type = OPTION_SET_UINT, .short_name = (s), .long_name = (l), .value = check_vtype(v, u… 129 …v, h, p) { .type = OPTION_SET_PTR, .short_name = (s), .long_name = (l), .value = (v), .help = (h)… 130 …v, h) { .type = OPTION_INTEGER, .short_name = (s), .long_name = (l), .value = check_vtype(v, i… 131 …v, h) { .type = OPTION_UINTEGER, .short_name = (s), .long_name = (l), .value = check_vtype(v, u… [all …]
|