/openbmc/phosphor-power/phosphor-regulators/docs/config_file/ |
H A D | compare_vpd.md | 5 Compares a VPD (Vital Product Data) keyword value to an expected value. 24 a VPD keyword value. For example, you could set the output voltage only for 29 A keyword value may be unavailable if: 36 If the keyword value is unavailable, it will be treated as having an "empty" 37 value: 39 - An empty string ("") if the "value" property was specified. 42 If the expected value is not "empty", the compare_vpd action will return false 51 | value | see [notes](#notes) | string | Expected value. … 52 …trings | Zero or more expected byte values expressed in hexadecimal. Each value must be prefixed w… 56 - You must specify either "value" or "byte_values". [all …]
|
/openbmc/linux/drivers/staging/vc04_services/bcm2835-audio/ |
H A D | bcm2835-ctl.c | 36 uinfo->value.integer.min = CTRL_VOL_MIN; in snd_bcm2835_ctl_info() 37 uinfo->value.integer.max = CTRL_VOL_MAX; /* 2303 */ in snd_bcm2835_ctl_info() 41 uinfo->value.integer.min = 0; in snd_bcm2835_ctl_info() 42 uinfo->value.integer.max = 1; in snd_bcm2835_ctl_info() 46 uinfo->value.integer.min = 0; in snd_bcm2835_ctl_info() 47 uinfo->value.integer.max = AUDIO_DEST_MAX - 1; in snd_bcm2835_ctl_info() 60 ucontrol->value.integer.value[0] = chip->volume; in snd_bcm2835_ctl_get() 62 ucontrol->value.integer.value[0] = chip->mute; in snd_bcm2835_ctl_get() 64 ucontrol->value.integer.value[0] = chip->dest; in snd_bcm2835_ctl_get() 86 val = ucontrol->value.integer.value[0]; in snd_bcm2835_ctl_put() [all …]
|
/openbmc/linux/drivers/media/common/ |
H A D | cx2341x.c | 270 ctrl->value = params->audio_sampling_freq; in cx2341x_get_ctrl() 273 ctrl->value = params->audio_encoding; in cx2341x_get_ctrl() 276 ctrl->value = params->audio_l2_bitrate; in cx2341x_get_ctrl() 279 ctrl->value = params->audio_ac3_bitrate; in cx2341x_get_ctrl() 282 ctrl->value = params->audio_mode; in cx2341x_get_ctrl() 285 ctrl->value = params->audio_mode_extension; in cx2341x_get_ctrl() 288 ctrl->value = params->audio_emphasis; in cx2341x_get_ctrl() 291 ctrl->value = params->audio_crc; in cx2341x_get_ctrl() 294 ctrl->value = params->audio_mute; in cx2341x_get_ctrl() 297 ctrl->value = params->video_encoding; in cx2341x_get_ctrl() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/map_tests/ |
H A D | sk_storage_map.c | 165 } value = { .cnt = 0xeB9F, .lock = 0, }; in insert_close_thread() local 189 err = bpf_map_update_elem(map_fd, &sk_fds[i], &value, in insert_close_thread() 282 } value = { .cnt = 0xeB9F, .lock = 0, }; in update_thread() local 288 err = bpf_map_update_elem(map_fd, &sk_fd, &value, 0); in update_thread() 461 } value = { .cnt = 0xeB9f, .lock = 1, }, lookup_value; in test_sk_storage_map_basic() local 479 memcpy(&lookup_value, &value, sizeof(value)); in test_sk_storage_map_basic() 480 err = bpf_map_update_elem(map_fd, &sk_fd, &value, in test_sk_storage_map_basic() 486 CHECK(err || lookup_value.lock || lookup_value.cnt != value.cnt, in test_sk_storage_map_basic() 489 err, errno, lookup_value.lock, lookup_value.cnt, value.cnt); in test_sk_storage_map_basic() 492 value.cnt += 1; in test_sk_storage_map_basic() [all …]
|
/openbmc/linux/arch/ia64/hp/common/ |
H A D | aml_nfw.c | 76 static void aml_nfw_read_arg(u8 *offset, u32 bit_width, u64 *value) in aml_nfw_read_arg() argument 80 *value = *(u8 *)offset; in aml_nfw_read_arg() 83 *value = *(u16 *)offset; in aml_nfw_read_arg() 86 *value = *(u32 *)offset; in aml_nfw_read_arg() 89 *value = *(u64 *)offset; in aml_nfw_read_arg() 94 static void aml_nfw_write_arg(u8 *offset, u32 bit_width, u64 *value) in aml_nfw_write_arg() argument 98 *(u8 *) offset = *value; in aml_nfw_write_arg() 101 *(u16 *) offset = *value; in aml_nfw_write_arg() 104 *(u32 *) offset = *value; in aml_nfw_write_arg() 107 *(u64 *) offset = *value; in aml_nfw_write_arg() [all …]
|
/openbmc/linux/arch/mips/loongson2ef/common/cs5536/ |
H A D | cs5536_ehci.c | 15 void pci_ehci_write_reg(int reg, u32 value) in pci_ehci_write_reg() argument 17 u32 hi = 0, lo = value; in pci_ehci_write_reg() 22 if (value & PCI_COMMAND_MASTER) in pci_ehci_write_reg() 27 if (value & PCI_COMMAND_MEMORY) in pci_ehci_write_reg() 34 if (value & PCI_STATUS_PARITY) { in pci_ehci_write_reg() 43 if (value == PCI_BAR_RANGE_MASK) { in pci_ehci_write_reg() 47 } else if ((value & 0x01) == 0x00) { in pci_ehci_write_reg() 49 lo = value; in pci_ehci_write_reg() 52 value &= 0xfffffff0; in pci_ehci_write_reg() 53 hi = 0x40000000 | ((value & 0xff000000) >> 24); in pci_ehci_write_reg() [all …]
|
/openbmc/linux/drivers/net/ethernet/microchip/vcap/ |
H A D | vcap_api.c | 97 static void vcap_set_bit(u32 *stream, struct vcap_stream_iter *itr, bool value) in vcap_set_bit() argument 102 if (value) in vcap_set_bit() 118 vcap_set_bit(stream, itr, (itr->tg->value >> tg_bitpos) & 0x1); in vcap_encode_bit() 126 int width, const u8 *value) in vcap_encode_field() argument 137 vcap_encode_bit(stream, itr, (value[idx / 8] >> bidx) & 0x1); in vcap_encode_field() 166 (iter.tg->value >> idx) & 0x1); in vcap_encode_typegroups() 174 static bool vcap_bitarray_zero(int width, u8 *value) in vcap_bitarray_zero() argument 184 total += value[idx] & bmask; in vcap_bitarray_zero() 198 int width, u8 *value) in vcap_decode_field() argument 210 *value |= 1 << bidx; in vcap_decode_field() [all …]
|
/openbmc/qemu/hw/misc/ |
H A D | trace-events | 43 aspeed_ibt_read(uint64_t offset, uint64_t value) "offset:0x%" PRIx64 " value:0x%" PRIx64 44 aspeed_ibt_write(uint64_t offset, uint64_t value) "offset:0x%" PRIx64 " value:0x%" PRIx64 48 avr_power_read(uint8_t value) "power_reduc read value:%u" 49 avr_power_write(uint8_t value) "power_reduc write value:%u" 77 empty_slot_write(uint64_t addr, unsigned width, uint64_t value, unsigned size, const char *name) "w… 112 mps2_scc_cfg_write(unsigned function, unsigned device, uint32_t value) "MPS2 SCC config write: func… 113 mps2_scc_cfg_read(unsigned function, unsigned device, uint32_t value) "MPS2 SCC config read: functi… 127 imx7_gpr_write(uint64_t offset, uint64_t value) "addr 0x%08" PRIx64 "value 0x%08" PRIx64 130 imx7_snvs_read(uint64_t offset, uint64_t value, unsigned size) "i.MX SNVS read: offset 0x%08" PRIx6… 131 imx7_snvs_write(uint64_t offset, uint64_t value, unsigned size) "i.MX SNVS write: offset 0x%08" PRI… [all …]
|
/openbmc/linux/arch/x86/include/asm/ |
H A D | debugreg.h | 17 #define set_debugreg(value, register) \ argument 18 native_set_debugreg(register, value) 63 static __always_inline void native_set_debugreg(int regno, unsigned long value) in native_set_debugreg() argument 67 asm("mov %0, %%db0" ::"r" (value)); in native_set_debugreg() 70 asm("mov %0, %%db1" ::"r" (value)); in native_set_debugreg() 73 asm("mov %0, %%db2" ::"r" (value)); in native_set_debugreg() 76 asm("mov %0, %%db3" ::"r" (value)); in native_set_debugreg() 79 asm("mov %0, %%db6" ::"r" (value)); in native_set_debugreg() 91 asm volatile("mov %0, %%db7" ::"r" (value), __FORCE_ORDER); in native_set_debugreg()
|
/openbmc/linux/drivers/iommu/ |
H A D | tegra-smmu.c | 70 static inline void smmu_writel(struct tegra_smmu *smmu, u32 value, in smmu_writel() argument 73 writel(value, smmu->regs + offset); in smmu_writel() 185 u32 value; in smmu_flush_ptc() local 191 value = (dma >> 32) & SMMU_PTC_FLUSH_HI_MASK; in smmu_flush_ptc() 193 value = 0; in smmu_flush_ptc() 195 smmu_writel(smmu, value, SMMU_PTC_FLUSH_HI); in smmu_flush_ptc() 198 value = (dma + offset) | SMMU_PTC_FLUSH_TYPE_ADR; in smmu_flush_ptc() 199 smmu_writel(smmu, value, SMMU_PTC_FLUSH); in smmu_flush_ptc() 210 u32 value; in smmu_flush_tlb_asid() local 213 value = (asid & 0x3) << 29; in smmu_flush_tlb_asid() [all …]
|
/openbmc/qemu/tests/tcg/plugins/ |
H A D | mem.c | 127 qemu_plugin_mem_value value, in update_region_info() argument 154 switch (value.type) { in update_region_info() 157 ri->data[offset] = value.data.u8; in update_region_info() 158 } else if (ri->data[offset] != value.data.u8) { in update_region_info() 167 stw_be_p(p, value.data.u16); in update_region_info() 169 stw_le_p(p, value.data.u16); in update_region_info() 173 unseen_data = val != value.data.u16; in update_region_info() 182 stl_be_p(p, value.data.u32); in update_region_info() 184 stl_le_p(p, value.data.u32); in update_region_info() 188 unseen_data = val != value.data.u32; in update_region_info() [all …]
|
/openbmc/linux/drivers/acpi/acpica/ |
H A D | dsfield.c | 177 arg->common.value.string, ACPI_TYPE_ANY, in acpi_ds_create_buffer_field() 185 arg->common.value.string, status); in acpi_ds_create_buffer_field() 294 (u64)arg->common.value.size; in acpi_ds_get_field_names() 323 ((u8)((u32)(arg->common.value.integer & 0x07)))); in acpi_ds_get_field_names() 328 ((arg->common.value.integer >> 8) & 0xFF); in acpi_ds_get_field_names() 333 ((arg->common.value.integer >> 16) & 0xFF); in acpi_ds_get_field_names() 349 child = arg->common.value.arg; in acpi_ds_get_field_names() 353 (u16)child->named.value.integer; in acpi_ds_get_field_names() 358 child->common.value. in acpi_ds_get_field_names() 368 value.name, in acpi_ds_get_field_names() [all …]
|
/openbmc/linux/drivers/iio/dac/ |
H A D | ad5593r.c | 25 static int ad5593r_read_word(struct i2c_client *i2c, u8 reg, u16 *value) in ad5593r_read_word() argument 38 *value = get_unaligned_be16(buf); in ad5593r_read_word() 43 static int ad5593r_write_dac(struct ad5592r_state *st, unsigned chan, u16 value) in ad5593r_write_dac() argument 48 AD5593R_MODE_DAC_WRITE | chan, value); in ad5593r_write_dac() 51 static int ad5593r_read_adc(struct ad5592r_state *st, unsigned chan, u16 *value) in ad5593r_read_adc() argument 61 return ad5593r_read_word(i2c, AD5593R_MODE_ADC_READBACK, value); in ad5593r_read_adc() 64 static int ad5593r_reg_write(struct ad5592r_state *st, u8 reg, u16 value) in ad5593r_reg_write() argument 69 AD5593R_MODE_CONF | reg, value); in ad5593r_reg_write() 72 static int ad5593r_reg_read(struct ad5592r_state *st, u8 reg, u16 *value) in ad5593r_reg_read() argument 76 return ad5593r_read_word(i2c, AD5593R_MODE_REG_READBACK | reg, value); in ad5593r_reg_read() [all …]
|
/openbmc/linux/drivers/xen/xen-pciback/ |
H A D | conf_space.h | 19 typedef int (*conf_dword_write) (struct pci_dev *dev, int offset, u32 value, 21 typedef int (*conf_word_write) (struct pci_dev *dev, int offset, u16 value, 23 typedef int (*conf_byte_write) (struct pci_dev *dev, int offset, u8 value, 25 typedef int (*conf_dword_read) (struct pci_dev *dev, int offset, u32 *value, 27 typedef int (*conf_word_read) (struct pci_dev *dev, int offset, u16 *value, 29 typedef int (*conf_byte_read) (struct pci_dev *dev, int offset, u8 *value, 116 int xen_pcibk_read_config_byte(struct pci_dev *dev, int offset, u8 *value, 118 int xen_pcibk_read_config_word(struct pci_dev *dev, int offset, u16 *value, 120 int xen_pcibk_read_config_dword(struct pci_dev *dev, int offset, u32 *value, 122 int xen_pcibk_write_config_byte(struct pci_dev *dev, int offset, u8 value, [all …]
|
/openbmc/linux/drivers/staging/greybus/ |
H A D | audio_topology.c | 192 uinfo->value.integer.min = le32_to_cpu(info->value.integer.min); in gbcodec_mixer_ctl_info() 193 uinfo->value.integer.max = le32_to_cpu(info->value.integer.max); in gbcodec_mixer_ctl_info() 196 max = le32_to_cpu(info->value.enumerated.items); in gbcodec_mixer_ctl_info() 197 uinfo->value.enumerated.items = max; in gbcodec_mixer_ctl_info() 198 if (uinfo->value.enumerated.item > max - 1) in gbcodec_mixer_ctl_info() 199 uinfo->value.enumerated.item = max - 1; in gbcodec_mixer_ctl_info() 204 uinfo->value.enumerated.item); in gbcodec_mixer_ctl_info() 205 strscpy(uinfo->value.enumerated.name, name, sizeof(uinfo->value.enumerated.name)); in gbcodec_mixer_ctl_info() 255 ucontrol->value.integer.value[0] = in gbcodec_mixer_ctl_get() 256 le32_to_cpu(gbvalue.value.integer_value[0]); in gbcodec_mixer_ctl_get() [all …]
|
/openbmc/linux/arch/x86/pci/ |
H A D | numachip.c | 29 unsigned int devfn, int reg, int len, u32 *value) in pci_mmcfg_read_numachip() argument 35 err: *value = -1; in pci_mmcfg_read_numachip() 41 *value = -1; in pci_mmcfg_read_numachip() 54 *value = mmio_config_readb(addr + reg); in pci_mmcfg_read_numachip() 57 *value = mmio_config_readw(addr + reg); in pci_mmcfg_read_numachip() 60 *value = mmio_config_readl(addr + reg); in pci_mmcfg_read_numachip() 69 unsigned int devfn, int reg, int len, u32 value) in pci_mmcfg_write_numachip() argument 90 mmio_config_writeb(addr + reg, value); in pci_mmcfg_write_numachip() 93 mmio_config_writew(addr + reg, value); in pci_mmcfg_write_numachip() 96 mmio_config_writel(addr + reg, value); in pci_mmcfg_write_numachip()
|
/openbmc/linux/sound/soc/mediatek/mt8186/ |
H A D | mt8186-misc-control.c | 81 ucontrol->value.integer.value[0] = afe_priv->sgen_mode; in mt8186_sgen_get() 96 if (ucontrol->value.enumerated.item[0] >= e->items) in mt8186_sgen_set() 99 mode = ucontrol->value.integer.value[0]; in mt8186_sgen_set() 135 ucontrol->value.integer.value[0] = afe_priv->sgen_rate; in mt8186_sgen_rate_get() 149 if (ucontrol->value.enumerated.item[0] >= e->items) in mt8186_sgen_rate_set() 152 rate = ucontrol->value.integer.value[0]; in mt8186_sgen_rate_set() 179 ucontrol->value.integer.value[0] = afe_priv->sgen_amplitude; in mt8186_sgen_amplitude_get() 192 if (ucontrol->value.enumerated.item[0] >= e->items) in mt8186_sgen_amplitude_set() 195 amplitude = ucontrol->value.integer.value[0]; in mt8186_sgen_amplitude_set()
|
/openbmc/linux/drivers/sh/intc/ |
H A D | access.c | 54 unsigned int intc_set_field_from_handle(unsigned int value, in intc_set_field_from_handle() argument 61 value &= ~(((1 << width) - 1) << shift); in intc_set_field_from_handle() 62 value |= field_value << shift; in intc_set_field_from_handle() 63 return value; in intc_set_field_from_handle() 66 unsigned long intc_get_field_from_handle(unsigned int value, unsigned int handle) in intc_get_field_from_handle() argument 72 return (value & mask) >> shift; in intc_get_field_from_handle() 128 unsigned int value; in modify_8() local 130 value = intc_set_field_from_handle(__raw_readb(ptr), data, h); in modify_8() 131 __raw_writeb(value, ptr); in modify_8() 142 unsigned int value; in modify_16() local [all …]
|
/openbmc/u-boot/drivers/gpio/ |
H A D | sandbox.c | 45 int value) in set_gpio_flag() argument 49 if (value) in set_gpio_flag() 68 int sandbox_gpio_set_value(struct udevice *dev, unsigned offset, int value) in sandbox_gpio_set_value() argument 70 return set_gpio_flag(dev, offset, GPIOF_HIGH, value); in sandbox_gpio_set_value() 78 int sandbox_gpio_set_open_drain(struct udevice *dev, unsigned offset, int value) in sandbox_gpio_set_open_drain() argument 80 return set_gpio_flag(dev, offset, GPIOF_ODR, value); in sandbox_gpio_set_open_drain() 107 int value) in sb_gpio_direction_output() argument 109 debug("%s: offset:%u, value = %d\n", __func__, offset, value); in sb_gpio_direction_output() 112 sandbox_gpio_set_value(dev, offset, value); in sb_gpio_direction_output() 124 static int sb_gpio_set_value(struct udevice *dev, unsigned offset, int value) in sb_gpio_set_value() argument [all …]
|
/openbmc/u-boot/drivers/net/phy/ |
H A D | b53.c | 240 static int b53_mdio_write8(struct mii_dev *bus, u8 page, u8 reg, u8 value) in b53_mdio_write8() argument 245 REG_MII_DATA0, value); in b53_mdio_write8() 253 u16 value) in b53_mdio_write16() argument 258 REG_MII_DATA0, value); in b53_mdio_write16() 266 u32 value) in b53_mdio_write32() argument 269 u32 temp = value; in b53_mdio_write32() 284 u64 value) in b53_mdio_write48() argument 287 u64 temp = value; in b53_mdio_write48() 302 u64 value) in b53_mdio_write64() argument 305 u64 temp = value; in b53_mdio_write64() [all …]
|
/openbmc/qemu/hw/audio/ |
H A D | pl041.c | 170 static void pl041_fifo1_write(PL041State *s, uint32_t value) in pl041_fifo1_write() argument 183 value = (value << 8) & 0xFFFFF; in pl041_fifo1_write() 186 value = (value << 4) & 0xFFFFF; in pl041_fifo1_write() 189 value = (value << 2) & 0xFFFFF; in pl041_fifo1_write() 197 fifo->data[fifo->level++] = value; in pl041_fifo1_write() 212 sample = value & 0xFFFF; in pl041_fifo1_write() 213 value = value >> 16; in pl041_fifo1_write() 345 int value; in pl041_read() local 349 value = pl041_compute_periphid3(s); in pl041_read() 351 value = pl041_default_id[(offset - PL041_periphid0) >> 2]; in pl041_read() [all …]
|
/openbmc/phosphor-logging/lib/include/phosphor-logging/lg2/ |
H A D | header.hpp | 16 std::string_view value; member 20 consteval header_str(const T& s) : value(s) in header_str() 22 if (value.size() == 0) in header_str() 27 if (value[0] == '_') in header_str() 33 if (value.find_first_not_of("ABCDEFGHIJKLMNOPQRSTUVWXYZ_0123456789") != in header_str() 45 if (std::ranges::find(reserved, value) != std::end(reserved)) in header_str() 54 return value.data(); in operator const char*() 59 return value.data(); in data()
|
/openbmc/linux/drivers/input/misc/ |
H A D | max8997_haptic.c | 94 u8 value; in max8997_haptic_configure() local 96 value = chip->type << MAX8997_MOTOR_TYPE_SHIFT | in max8997_haptic_configure() 99 max8997_write_reg(chip->client, MAX8997_HAPTIC_REG_CONF2, value); in max8997_haptic_configure() 102 value = chip->internal_mode_pattern << MAX8997_CYCLE_SHIFT | in max8997_haptic_configure() 107 MAX8997_HAPTIC_REG_DRVCONF, value); in max8997_haptic_configure() 111 value = chip->pattern_cycle << 4; in max8997_haptic_configure() 113 MAX8997_HAPTIC_REG_CYCLECONF1, value); in max8997_haptic_configure() 114 value = chip->pattern_signal_period; in max8997_haptic_configure() 116 MAX8997_HAPTIC_REG_SIGCONF1, value); in max8997_haptic_configure() 120 value = chip->pattern_cycle; in max8997_haptic_configure() [all …]
|
/openbmc/phosphor-ipmi-flash/ |
H A D | meson.options | 20 value: false, 26 value: false, 32 value: false, 58 value: false, 66 value: false, 69 # Default value 1872 is 0x0750 below 73 value: 1872, 86 value: '0', 93 value: '/run/initramfs/bmc-image', 99 value: '/tmp/image-update.tar', [all …]
|
/openbmc/qemu/hw/display/ |
H A D | xlnx_dp.c | 293 static void xlnx_dp_audio_write(void *opaque, hwaddr offset, uint64_t value, in xlnx_dp_audio_write() argument 302 s->audio_registers[offset] = value & 0x00000001; in xlnx_dp_audio_write() 305 s->audio_registers[offset] = value; in xlnx_dp_audio_write() 494 static void xlnx_dp_aux_set_command(XlnxDPState *s, uint32_t value) in xlnx_dp_aux_set_command() argument 496 bool address_only = (value & AUX_ADDR_ONLY_MASK) != 0; in xlnx_dp_aux_set_command() 497 AUXCommand cmd = (value & AUX_COMMAND_MASK) >> AUX_COMMAND_SHIFT; in xlnx_dp_aux_set_command() 498 uint8_t nbytes = (value & AUX_COMMAND_NBYTES) + 1; in xlnx_dp_aux_set_command() 738 static void xlnx_dp_write(void *opaque, hwaddr offset, uint64_t value, in xlnx_dp_write() argument 743 DPRINTF("core write @%" PRIx64 " = 0x%8.8" PRIX64 "\n", offset, value); in xlnx_dp_write() 752 s->core_registers[offset] = value & 0x000000FF; in xlnx_dp_write() [all …]
|