/openbmc/linux/sound/pci/oxygen/ |
H A D | xonar_wm87x6.c | 91 unsigned int reg, unsigned int value) in wm8776_write_spi() argument 98 (reg << 9) | value); in wm8776_write_spi() 102 unsigned int reg, unsigned int value) in wm8776_write_i2c() argument 105 (reg << 1) | (value >> 8), value); in wm8776_write_i2c() 109 unsigned int reg, unsigned int value) in wm8776_write() argument 115 wm8776_write_spi(chip, reg, value); in wm8776_write() 117 wm8776_write_i2c(chip, reg, value); in wm8776_write() 121 value &= ~WM8776_UPDATE; in wm8776_write() 122 data->wm8776_regs[reg] = value; in wm8776_write() 127 unsigned int reg, unsigned int value) in wm8776_write_cached() argument [all …]
|
/openbmc/linux/sound/aoa/codecs/ |
H A D | tas.c | 228 uinfo->value.integer.min = 0; in tas_snd_vol_info() 229 uinfo->value.integer.max = 177; in tas_snd_vol_info() 239 ucontrol->value.integer.value[0] = tas->cached_volume_l; in tas_snd_vol_get() 240 ucontrol->value.integer.value[1] = tas->cached_volume_r; in tas_snd_vol_get() 250 if (ucontrol->value.integer.value[0] < 0 || in tas_snd_vol_put() 251 ucontrol->value.integer.value[0] > 177) in tas_snd_vol_put() 253 if (ucontrol->value.integer.value[1] < 0 || in tas_snd_vol_put() 254 ucontrol->value.integer.value[1] > 177) in tas_snd_vol_put() 258 if (tas->cached_volume_l == ucontrol->value.integer.value[0] in tas_snd_vol_put() 259 && tas->cached_volume_r == ucontrol->value.integer.value[1]) { in tas_snd_vol_put() [all …]
|
/openbmc/u-boot/drivers/pci/ |
H A D | pci_tegra.c | 240 static void afi_writel(struct tegra_pcie *pcie, unsigned long value, in afi_writel() argument 243 writel(value, pcie->afi.start + offset); in afi_writel() 251 static void pads_writel(struct tegra_pcie *pcie, unsigned long value, in pads_writel() argument 254 writel(value, pcie->pads.start + offset); in pads_writel() 270 static void rp_writel(struct tegra_pcie_port *port, unsigned long value, in rp_writel() argument 273 writel(value, port->regs.start + offset); in rp_writel() 316 unsigned long address, value; in pci_tegra_read_config() local 321 value = 0xffffffff; in pci_tegra_read_config() 325 value = readl(address); in pci_tegra_read_config() 331 value &= ~0x00ff0000; in pci_tegra_read_config() [all …]
|
/openbmc/qemu/stats/ |
H A D | stats-hmp-cmds.c | 17 static void print_stats_schema_value(Monitor *mon, StatsSchemaValue *value) in print_stats_schema_value() argument 20 monitor_printf(mon, " %s (%s%s", value->name, StatsType_str(value->type), in print_stats_schema_value() 21 value->has_unit || value->exponent ? ", " : ""); in print_stats_schema_value() 23 if (value->has_unit) { in print_stats_schema_value() 24 if (value->unit == STATS_UNIT_SECONDS) { in print_stats_schema_value() 26 } else if (value->unit == STATS_UNIT_BYTES) { in print_stats_schema_value() 31 if (unit && value->base == 10 && in print_stats_schema_value() 32 value->exponent >= -18 && value->exponent <= 18 && in print_stats_schema_value() 33 value->exponent % 3 == 0) { in print_stats_schema_value() 34 monitor_puts(mon, si_prefix(value->exponent)); in print_stats_schema_value() [all …]
|
/openbmc/openbmc-tools/dbus-pcap/ |
H A D | dbus-pcap | 33 MessageEndian.LITTLE.value: "<", 34 MessageEndian.BIG.value: ">", 87 chr(DBusType.STRUCT.value): ")", 88 chr(DBusType.DICT_ENTRY.value): "}", 94 DBusType.BYTE.value, 95 DBusType.BOOLEAN.value, 96 DBusType.INT16.value, 97 DBusType.UINT16.value, 98 DBusType.INT32.value, 99 DBusType.UINT32.value, [all …]
|
/openbmc/linux/crypto/ |
H A D | rsa_helper.c | 17 const void *value, size_t vlen) in rsa_get_n() argument 20 const u8 *ptr = value; in rsa_get_n() 24 if (!value || !vlen) in rsa_get_n() 40 key->n = value; in rsa_get_n() 47 const void *value, size_t vlen) in rsa_get_e() argument 52 if (!value || !key->n_sz || !vlen || vlen > key->n_sz) in rsa_get_e() 55 key->e = value; in rsa_get_e() 62 const void *value, size_t vlen) in rsa_get_d() argument 67 if (!value || !key->n_sz || !vlen || vlen > key->n_sz) in rsa_get_d() 70 key->d = value; in rsa_get_d() [all …]
|
/openbmc/linux/drivers/mmc/host/ |
H A D | sdhci-pci-gli.c | 550 u32 value; in gl9750_hw_setting() local 556 value = sdhci_readl(host, SDHCI_GLI_9750_CFG2); in gl9750_hw_setting() 557 value &= ~SDHCI_GLI_9750_CFG2_L1DLY; in gl9750_hw_setting() 559 value |= FIELD_PREP(SDHCI_GLI_9750_CFG2_L1DLY, in gl9750_hw_setting() 561 sdhci_writel(host, value, SDHCI_GLI_9750_CFG2); in gl9750_hw_setting() 564 pci_read_config_dword(pdev, PCI_GLI_9750_PM_CTRL, &value); in gl9750_hw_setting() 565 value |= PCI_GLI_9750_PM_STATE; in gl9750_hw_setting() 566 pci_write_config_dword(pdev, PCI_GLI_9750_PM_CTRL, value); in gl9750_hw_setting() 567 value &= ~PCI_GLI_9750_PM_STATE; in gl9750_hw_setting() 568 pci_write_config_dword(pdev, PCI_GLI_9750_PM_CTRL, value); in gl9750_hw_setting() [all …]
|
/openbmc/linux/drivers/pwm/ |
H A D | pwm-bcm-iproc.c | 49 u32 value; in iproc_pwmc_enable() local 51 value = readl(ip->base + IPROC_PWM_CTRL_OFFSET); in iproc_pwmc_enable() 52 value |= 1 << IPROC_PWM_CTRL_EN_SHIFT(channel); in iproc_pwmc_enable() 53 writel(value, ip->base + IPROC_PWM_CTRL_OFFSET); in iproc_pwmc_enable() 61 u32 value; in iproc_pwmc_disable() local 63 value = readl(ip->base + IPROC_PWM_CTRL_OFFSET); in iproc_pwmc_disable() 64 value &= ~(1 << IPROC_PWM_CTRL_EN_SHIFT(channel)); in iproc_pwmc_disable() 65 writel(value, ip->base + IPROC_PWM_CTRL_OFFSET); in iproc_pwmc_disable() 76 u32 value, prescale; in iproc_pwmc_get_state() local 78 value = readl(ip->base + IPROC_PWM_CTRL_OFFSET); in iproc_pwmc_get_state() [all …]
|
/openbmc/linux/arch/xtensa/kernel/ |
H A D | module.c | 57 uint32_t value; in apply_relocate_add() local 67 value = sym->st_value + rela[i].r_addend; in apply_relocate_add() 79 *(uint32_t *)location += value; in apply_relocate_add() 84 value -= ((unsigned long)location & -4) + 4; in apply_relocate_add() 85 if ((value & 3) != 0 || in apply_relocate_add() 86 ((value + (1 << 19)) >> 20) != 0) { in apply_relocate_add() 94 value = (signed int)value >> 2; in apply_relocate_add() 97 ((value >> 16) & 0x3)); in apply_relocate_add() 98 location[1] = (value >> 8) & 0xff; in apply_relocate_add() 99 location[2] = value & 0xff; in apply_relocate_add() [all …]
|
/openbmc/qemu/tests/qtest/fuzz/ |
H A D | qtest_wrappers.c | 29 WRAP(void , qtest_outb(QTestState *s, uint16_t addr, uint8_t value)) in WRAP() 30 WRAP(void , qtest_outw(QTestState *s, uint16_t addr, uint16_t value)) in WRAP() 31 WRAP(void , qtest_outl(QTestState *s, uint16_t addr, uint32_t value)) in WRAP() 36 WRAP(void , qtest_writeb(QTestState *s, uint64_t addr, uint8_t value)) in WRAP() 37 WRAP(void , qtest_writew(QTestState *s, uint64_t addr, uint16_t value)) in WRAP() 38 WRAP(void , qtest_writel(QTestState *s, uint64_t addr, uint32_t value)) in WRAP() 39 WRAP(void , qtest_writeq(QTestState *s, uint64_t addr, uint64_t value)) in WRAP() 79 void __wrap_qtest_outb(QTestState *s, uint16_t addr, uint8_t value) in __wrap_qtest_outb() argument 82 cpu_outb(addr, value); in __wrap_qtest_outb() 84 __real_qtest_outb(s, addr, value); in __wrap_qtest_outb() [all …]
|
/openbmc/linux/sound/firewire/oxfw/ |
H A D | oxfw-spkr.c | 28 static int avc_audio_feature_mute(struct fw_unit *unit, u8 fb_id, bool *value, in avc_audio_feature_mute() argument 58 buf[10] = *value ? 0x70 : 0x60; in avc_audio_feature_mute() 74 *value = buf[10] == 0x70; in avc_audio_feature_mute() 84 static int avc_audio_feature_volume(struct fw_unit *unit, u8 fb_id, s16 *value, in avc_audio_feature_volume() argument 117 buf[10] = *value >> 8; in avc_audio_feature_volume() 118 buf[11] = *value; in avc_audio_feature_volume() 135 *value = (buf[10] << 8) | buf[11]; in avc_audio_feature_volume() 146 struct snd_ctl_elem_value *value) in spkr_mute_get() argument 151 value->value.integer.value[0] = !spkr->mute; in spkr_mute_get() 157 struct snd_ctl_elem_value *value) in spkr_mute_put() argument [all …]
|
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | dwmac4_dma.c | 20 u32 value = readl(ioaddr + DMA_SYS_BUS_MODE); in dwmac4_dma_axi() local 24 (value & DMA_SYS_BUS_FB) ? "fixed" : "any"); in dwmac4_dma_axi() 27 value |= DMA_AXI_EN_LPI; in dwmac4_dma_axi() 29 value |= DMA_AXI_LPI_XIT_FRM; in dwmac4_dma_axi() 31 value &= ~DMA_AXI_WR_OSR_LMT; in dwmac4_dma_axi() 32 value |= (axi->axi_wr_osr_lmt & DMA_AXI_OSR_MAX) << in dwmac4_dma_axi() 35 value &= ~DMA_AXI_RD_OSR_LMT; in dwmac4_dma_axi() 36 value |= (axi->axi_rd_osr_lmt & DMA_AXI_OSR_MAX) << in dwmac4_dma_axi() 46 value |= DMA_AXI_BLEN256; in dwmac4_dma_axi() 49 value |= DMA_AXI_BLEN128; in dwmac4_dma_axi() [all …]
|
H A D | dwmac5.c | 21 static void dwmac5_log_error(struct net_device *ndev, u32 value, bool corr, in dwmac5_log_error() argument 31 mask = value; in dwmac5_log_error() 81 u32 value; in dwmac5_handle_mac_err() local 83 value = readl(ioaddr + MAC_DPP_FSM_INT_STATUS); in dwmac5_handle_mac_err() 84 writel(value, ioaddr + MAC_DPP_FSM_INT_STATUS); in dwmac5_handle_mac_err() 86 dwmac5_log_error(ndev, value, correctable, "MAC", dwmac5_mac_errors, in dwmac5_handle_mac_err() 129 u32 value; in dwmac5_handle_mtl_err() local 131 value = readl(ioaddr + MTL_ECC_INT_STATUS); in dwmac5_handle_mtl_err() 132 writel(value, ioaddr + MTL_ECC_INT_STATUS); in dwmac5_handle_mtl_err() 134 dwmac5_log_error(ndev, value, correctable, "MTL", dwmac5_mtl_errors, in dwmac5_handle_mtl_err() [all …]
|
/openbmc/qemu/hw/arm/ |
H A D | omap1.c | 62 uint32_t value) in omap_badwidth_write8() argument 64 uint8_t val8 = value; in omap_badwidth_write8() 80 uint32_t value) in omap_badwidth_write16() argument 82 uint16_t val16 = value; in omap_badwidth_write16() 98 uint32_t value) in omap_badwidth_write32() argument 101 cpu_physical_memory_write(addr, &value, 4); in omap_badwidth_write32() 228 uint64_t value, unsigned size) in omap_mpu_timer_write() argument 233 omap_badwidth_write32(opaque, addr, value); in omap_mpu_timer_write() 240 s->enable = (value >> 5) & 1; in omap_mpu_timer_write() 241 s->ptv = (value >> 2) & 7; in omap_mpu_timer_write() [all …]
|
/openbmc/linux/sound/usb/6fire/ |
H A D | control.c | 34 u8 value; member 180 uinfo->value.integer.min = 0; in usb6fire_control_output_vol_info() 181 uinfo->value.integer.max = 180; in usb6fire_control_output_vol_info() 198 if (rt->output_vol[ch] != ucontrol->value.integer.value[0]) { in usb6fire_control_output_vol_put() 199 rt->output_vol[ch] = ucontrol->value.integer.value[0]; in usb6fire_control_output_vol_put() 203 if (rt->output_vol[ch + 1] != ucontrol->value.integer.value[1]) { in usb6fire_control_output_vol_put() 204 rt->output_vol[ch + 1] = ucontrol->value.integer.value[1]; in usb6fire_control_output_vol_put() 227 ucontrol->value.integer.value[0] = rt->output_vol[ch]; in usb6fire_control_output_vol_get() 228 ucontrol->value.integer.value[1] = rt->output_vol[ch + 1]; in usb6fire_control_output_vol_get() 238 u8 value = 0; in usb6fire_control_output_mute_put() local [all …]
|
/openbmc/linux/drivers/gpu/drm/msm/dp/ |
H A D | dp_audio.c | 129 u32 value, new_value; in dp_audio_stream_sdp() local 133 value = dp_audio_get_header(catalog, in dp_audio_stream_sdp() 138 value |= ((new_value << HEADER_BYTE_1_BIT) in dp_audio_stream_sdp() 142 value, parity_byte); in dp_audio_stream_sdp() 143 dp_audio_set_header(catalog, value, in dp_audio_stream_sdp() 147 value = dp_audio_get_header(catalog, in dp_audio_stream_sdp() 149 new_value = value; in dp_audio_stream_sdp() 151 value |= ((new_value << HEADER_BYTE_2_BIT) in dp_audio_stream_sdp() 155 value, parity_byte); in dp_audio_stream_sdp() 157 dp_audio_set_header(catalog, value, in dp_audio_stream_sdp() [all …]
|
/openbmc/pldm/platform-mc/ |
H A D | dbus_impl_fru.cpp | 10 std::string PldmEntityReq::partNumber(std::string value) in partNumber() argument 12 return assetserver::partNumber(value); in partNumber() 15 std::string PldmEntityReq::serialNumber(std::string value) in serialNumber() argument 17 return assetserver::serialNumber(value); in serialNumber() 20 std::string PldmEntityReq::manufacturer(std::string value) in manufacturer() argument 22 return assetserver::manufacturer(value); in manufacturer() 25 std::string PldmEntityReq::buildDate(std::string value) in buildDate() argument 27 return assetserver::buildDate(value); in buildDate() 30 std::string PldmEntityReq::model(std::string value) in model() argument 32 return assetserver::model(value); in model() [all …]
|
/openbmc/u-boot/env/ |
H A D | flags.c | 167 static inline int is_hex_prefix(const char *value) in is_hex_prefix() argument 169 return value[0] == '0' && (value[1] == 'x' || value[1] == 'X'); in is_hex_prefix() 172 static void skip_num(int hex, const char *value, const char **end, in skip_num() argument 177 if (hex && is_hex_prefix(value)) in skip_num() 178 value += 2; in skip_num() 181 if (hex && !isxdigit(*value)) in skip_num() 183 if (!hex && !isdigit(*value)) in skip_num() 185 value++; in skip_num() 188 *end = value; in skip_num() 220 static int _env_flags_validate_type(const char *value, in _env_flags_validate_type() argument [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | lookup_and_delete.c | 15 __u64 key, value = START_VALUE; in fill_values() local 19 err = bpf_map_update_elem(map_fd, &key, &value, BPF_NOEXIST); in fill_values() 29 __u64 key, value[nr_cpus]; in fill_values_percpu() local 33 value[i] = START_VALUE; in fill_values_percpu() 36 err = bpf_map_update_elem(map_fd, &key, value, BPF_NOEXIST); in fill_values_percpu() 79 __u64 value) in trigger_tp() argument 85 skel->bss->set_value = value; in trigger_tp() 101 __u64 key, value; in test_lookup_and_delete_hash() local 116 &key, sizeof(key), &value, sizeof(value), 0); in test_lookup_and_delete_hash() 121 if (CHECK(value != START_VALUE, "bpf_map_lookup_and_delete_elem", in test_lookup_and_delete_hash() [all …]
|
/openbmc/qemu/system/ |
H A D | rtc.c | 51 time_t value = qemu_clock_get_ms(clock) / 1000; in qemu_ref_timedate() local 54 value -= rtc_realtime_clock_offset; in qemu_ref_timedate() 57 value += rtc_ref_start_datetime; in qemu_ref_timedate() 61 value -= rtc_host_datetime_offset; in qemu_ref_timedate() 67 return value; in qemu_ref_timedate() 142 const char *value; in configure_rtc() local 149 value = qemu_opt_get(opts, "base"); in configure_rtc() 150 if (value) { in configure_rtc() 151 if (!strcmp(value, "utc")) { in configure_rtc() 153 } else if (!strcmp(value, "localtime")) { in configure_rtc() [all …]
|
/openbmc/linux/arch/mips/crypto/ |
H A D | crc32-mips.c | 46 #define __CRC32(crc, value, op, SZ, TYPE) \ argument 55 : "r" (value)); \ 58 #define _CRC32_crc32b(crc, value) __CRC32(crc, value, crc32b, 0, 0) argument 59 #define _CRC32_crc32h(crc, value) __CRC32(crc, value, crc32h, 1, 0) argument 60 #define _CRC32_crc32w(crc, value) __CRC32(crc, value, crc32w, 2, 0) argument 61 #define _CRC32_crc32d(crc, value) __CRC32(crc, value, crc32d, 3, 0) argument 62 #define _CRC32_crc32cb(crc, value) __CRC32(crc, value, crc32cb, 0, 1) argument 63 #define _CRC32_crc32ch(crc, value) __CRC32(crc, value, crc32ch, 1, 1) argument 64 #define _CRC32_crc32cw(crc, value) __CRC32(crc, value, crc32cw, 2, 1) argument 65 #define _CRC32_crc32cd(crc, value) __CRC32(crc, value, crc32cd, 3, 1) argument [all …]
|
/openbmc/linux/drivers/net/wireless/broadcom/b43/ |
H A D | tables_phy_ht.c | 608 u32 type, value; in b43_httab_read() local 617 value = b43_phy_read(dev, B43_PHY_HT_TABLE_DATALO) & 0xFF; in b43_httab_read() 621 value = b43_phy_read(dev, B43_PHY_HT_TABLE_DATALO); in b43_httab_read() 625 value = b43_phy_read(dev, B43_PHY_HT_TABLE_DATAHI); in b43_httab_read() 626 value <<= 16; in b43_httab_read() 627 value |= b43_phy_read(dev, B43_PHY_HT_TABLE_DATALO); in b43_httab_read() 631 value = 0; in b43_httab_read() 634 return value; in b43_httab_read() 672 void b43_httab_write(struct b43_wldev *dev, u32 offset, u32 value) in b43_httab_write() argument 681 B43_WARN_ON(value & ~0xFF); in b43_httab_write() [all …]
|
/openbmc/qemu/hw/dma/ |
H A D | omap_dma.c | 371 uint8_t value[4]; in omap_dma_transfer_generic() local 383 cpu_physical_memory_read(a->src, value, ch->data_type); in omap_dma_transfer_generic() 385 *(uint32_t *) value = ch->color; in omap_dma_transfer_generic() 387 if (!ch->transparent_copy || *(uint32_t *) value != ch->color) in omap_dma_transfer_generic() 388 cpu_physical_memory_write(a->dest, value, ch->data_type); in omap_dma_transfer_generic() 740 struct omap_dma_channel_s *ch, int reg, uint16_t *value) 744 *value = (ch->burst[1] << 14) | 755 *value = 0 << 10; /* FIFO_FLUSH reads as 0 */ 757 *value = ch->omap_3_1_compatible_disable << 10; 758 *value |= (ch->mode[1] << 14) | [all …]
|
/openbmc/phosphor-networkd/src/ |
H A D | dhcp_configuration.cpp | 37 bool Configuration::sendHostNameEnabled(bool value) in sendHostNameEnabled() argument 39 if (value == sendHostNameEnabled()) in sendHostNameEnabled() 41 return value; in sendHostNameEnabled() 44 auto name = ConfigIntf::sendHostNameEnabled(value); in sendHostNameEnabled() 50 bool Configuration::hostNameEnabled(bool value) in hostNameEnabled() argument 52 if (value == hostNameEnabled()) in hostNameEnabled() 54 return value; in hostNameEnabled() 57 auto name = ConfigIntf::hostNameEnabled(value); in hostNameEnabled() 64 bool Configuration::ntpEnabled(bool value) in ntpEnabled() argument 66 if (value == ntpEnabled()) in ntpEnabled() [all …]
|
/openbmc/u-boot/drivers/gpio/ |
H A D | s5p_gpio.c | 75 unsigned int value; in s5p_gpio_cfg_pin() local 77 value = readl(&bank->con); in s5p_gpio_cfg_pin() 78 value &= ~CON_MASK(gpio); in s5p_gpio_cfg_pin() 79 value |= CON_SFR(gpio, cfg); in s5p_gpio_cfg_pin() 80 writel(value, &bank->con); in s5p_gpio_cfg_pin() 85 unsigned int value; in s5p_gpio_set_value() local 87 value = readl(&bank->dat); in s5p_gpio_set_value() 88 value &= ~DAT_MASK(gpio); in s5p_gpio_set_value() 90 value |= DAT_SET(gpio); in s5p_gpio_set_value() 91 writel(value, &bank->dat); in s5p_gpio_set_value() [all …]
|