/openbmc/u-boot/env/ |
H A D | flags.c | 169 return value[0] == '0' && (value[1] == 'x' || value[1] == 'X'); in is_hex_prefix() 178 value += 2; in skip_num() 185 value++; in skip_num() 188 *end = value; in skip_num() 241 if (value + 2 == end && is_hex_prefix(value)) in _env_flags_validate_type() 245 if (value[0] != '1' && value[0] != 'y' && value[0] != 't' && in _env_flags_validate_type() 246 value[0] != 'Y' && value[0] != 'T' && in _env_flags_validate_type() 247 value[0] != '0' && value[0] != 'n' && value[0] != 'f' && in _env_flags_validate_type() 248 value[0] != 'N' && value[0] != 'F') in _env_flags_validate_type() 255 cur = value; in _env_flags_validate_type() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/calcs/ |
H A D | custom_float.c | 46 value, in build_custom_float() 55 value, in build_custom_float() 58 value = dc_fixpt_neg(value); in build_custom_float() 64 value, in build_custom_float() 69 value = dc_fixpt_shl(value, 1); in build_custom_float() 72 value, in build_custom_float() 86 value)) { in build_custom_float() 90 value = dc_fixpt_shr(value, 1); in build_custom_float() 94 value)); in build_custom_float() 102 value, in build_custom_float() [all …]
|
/openbmc/linux/drivers/mmc/host/ |
H A D | sdhci-pci-gli.c | 550 u32 value; in gl9750_hw_setting() local 748 u32 value; in gl9755_hw_setting() local 828 u32 value; in gl9767_ssc_enable() local 910 u32 value; in sdhci_gl9767_set_clock() local 945 u32 value; in gli_set_9767() local 955 u32 value; in gl9767_hw_setting() local 997 u32 value; in gl9767_init_sd_express() local 1168 u32 value; in sdhci_gl9750_readl() local 1196 u32 value; in gl9763e_set_low_power_negotiation() local 1245 u32 value; in sdhci_gl9763e_cqe_pre_enable() local [all …]
|
/openbmc/linux/drivers/net/wireless/broadcom/b43/ |
H A D | tables_phy_ht.c | 608 u32 type, value; in b43_httab_read() local 626 value <<= 16; in b43_httab_read() 631 value = 0; in b43_httab_read() 634 return value; in b43_httab_read() 705 u32 type, value; in b43_httab_write_few() local 734 value >> 16); in b43_httab_write_few() 736 value & 0xFFFF); in b43_httab_write_few() 750 u32 type, value; in b43_httab_write_bulk() local 763 value = *data; in b43_httab_write_bulk() 769 value = *((u16 *)data); in b43_httab_write_bulk() [all …]
|
/openbmc/linux/arch/microblaze/lib/ |
H A D | memmove.c | 60 unsigned value, buf_hold; in memmove() local 100 value = *--i_src; in memmove() 102 buf_hold = value >> 24; in memmove() 109 value = *--i_src; in memmove() 111 ((value & 0xFFFFFF00) >> 8); in memmove() 127 value = *--i_src; in memmove() 129 buf_hold = value >> 16; in memmove() 136 value = *--i_src; in memmove() 154 value = *--i_src; in memmove() 156 buf_hold = value >> 8; in memmove() [all …]
|
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | dwmac_lib.c | 22 value |= DMA_BUS_MODE_SFT_RESET; in dwmac_dma_reset() 42 value |= DMA_INTR_DEFAULT_RX; in dwmac_enable_dma_irq() 44 value |= DMA_INTR_DEFAULT_TX; in dwmac_enable_dma_irq() 55 value &= ~DMA_INTR_DEFAULT_RX; in dwmac_disable_dma_irq() 66 value |= DMA_CONTROL_ST; in dwmac_dma_start_tx() 73 value &= ~DMA_CONTROL_ST; in dwmac_dma_stop_tx() 81 value |= DMA_CONTROL_SR; in dwmac_dma_start_rx() 88 value &= ~DMA_CONTROL_SR; in dwmac_dma_stop_rx() 270 u32 old_val, value; in stmmac_set_mac() local 273 value = old_val; in stmmac_set_mac() [all …]
|
H A D | dwmac5.c | 31 mask = value; in dwmac5_log_error() 81 u32 value; in dwmac5_handle_mac_err() local 129 u32 value; in dwmac5_handle_mtl_err() local 177 u32 value; in dwmac5_handle_dma_err() local 200 u32 value; in dwmac5_safety_feat_config() local 251 value |= EDPP; in dwmac5_safety_feat_config() 262 value |= EPSI; in dwmac5_safety_feat_config() 717 u32 value; in dwmac5_fpe_configure() local 733 u32 value; in dwmac5_fpe_irq_status() local 772 value |= SVER; in dwmac5_fpe_send_mpacket() [all …]
|
H A D | dwmac4_dma.c | 27 value |= DMA_AXI_EN_LPI; in dwmac4_dma_axi() 78 u32 value; in dwmac4_dma_init_rx_chan() local 82 value = value | (rxpbl << DMA_BUS_MODE_RPBL_SHIFT); in dwmac4_dma_init_rx_chan() 99 u32 value; in dwmac4_dma_init_tx_chan() local 103 value = value | (txpbl << DMA_BUS_MODE_PBL_SHIFT); in dwmac4_dma_init_tx_chan() 123 u32 value; in dwmac4_dma_init_channel() local 128 value = value | DMA_BUS_MODE_PBL; in dwmac4_dma_init_channel() 141 u32 value; in dwmac410_dma_init_channel() local 146 value = value | DMA_BUS_MODE_PBL; in dwmac410_dma_init_channel() 476 u32 value; in dwmac4_enable_tso() local [all …]
|
/openbmc/linux/arch/mips/crypto/ |
H A D | crc32-mips.c | 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 108 u8 value = *p++; local [all …]
|
/openbmc/linux/sound/usb/6fire/ |
H A D | control.c | 34 u8 value; member 199 rt->output_vol[ch] = ucontrol->value.integer.value[0]; in usb6fire_control_output_vol_put() 227 ucontrol->value.integer.value[0] = rt->output_vol[ch]; in usb6fire_control_output_vol_get() 238 u8 value = 0; in usb6fire_control_output_mute_put() local 247 if (ucontrol->value.integer.value[0]) in usb6fire_control_output_mute_put() 248 value |= 1; in usb6fire_control_output_mute_put() 249 if (ucontrol->value.integer.value[1]) in usb6fire_control_output_mute_put() 250 value |= 2; in usb6fire_control_output_mute_put() 272 ucontrol->value.integer.value[0] = 1 & value; in usb6fire_control_output_mute_get() 273 value >>= 1; in usb6fire_control_output_mute_get() [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 142 value, parity_byte); in dp_audio_stream_sdp() 149 new_value = value; in dp_audio_stream_sdp() 155 value, parity_byte); in dp_audio_stream_sdp() 170 value, parity_byte); in dp_audio_stream_sdp() 179 u32 value, new_value; in dp_audio_timestamp_sdp() local 192 value, parity_byte); in dp_audio_timestamp_sdp() 206 value, parity_byte); in dp_audio_timestamp_sdp() 228 u32 value, new_value; in dp_audio_infoframe_sdp() local 277 u32 value, new_value; in dp_audio_copy_management_sdp() local [all …]
|
/openbmc/u-boot/drivers/gpio/ |
H A D | s5p_gpio.c | 75 unsigned int value; in s5p_gpio_cfg_pin() local 85 unsigned int value; in s5p_gpio_set_value() local 90 value |= DAT_SET(gpio); in s5p_gpio_set_value() 106 unsigned int value; in s5p_gpio_get_cfg_pin() local 109 value &= CON_MASK(gpio); in s5p_gpio_get_cfg_pin() 115 unsigned int value; in s5p_gpio_get_value() local 124 unsigned int value; in s5p_gpio_set_pull() local 143 unsigned int value; in s5p_gpio_set_drv() local 164 unsigned int value; in s5p_gpio_set_rate() local 201 int value) in exynos_gpio_direction_output() argument [all …]
|
/openbmc/linux/arch/sh/boards/ |
H A D | board-apsh4ad0a.c | 73 int value = 0; in apsh4ad0a_mode_pins() local 79 value |= MODE_PIN0; /* Clock Mode 3 */ in apsh4ad0a_mode_pins() 80 value |= MODE_PIN1; in apsh4ad0a_mode_pins() 81 value &= ~MODE_PIN2; in apsh4ad0a_mode_pins() 82 value &= ~MODE_PIN3; in apsh4ad0a_mode_pins() 84 value |= MODE_PIN5; in apsh4ad0a_mode_pins() 85 value |= MODE_PIN6; in apsh4ad0a_mode_pins() 86 value |= MODE_PIN7; /* Normal mode */ in apsh4ad0a_mode_pins() 87 value |= MODE_PIN8; /* Little Endian */ in apsh4ad0a_mode_pins() 92 value |= MODE_PIN13; /* AUD Enable */ in apsh4ad0a_mode_pins() [all …]
|
/openbmc/qemu/hw/arm/ |
H A D | omap1.c | 64 uint8_t val8 = value; in omap_badwidth_write8() 82 uint16_t val16 = value; in omap_badwidth_write16() 243 s->st = value & 1; in omap_mpu_timer_write() 482 if (s->timer.st != (value & 1) || (value & 2)) { in omap_os_timer_write() 630 if (value & 1) in omap_ulpd_pm_write() 1711 if (value & 9) { in omap_clkm_write() 2034 s->dir = value; in omap_mpuio_write() 2045 s->cols = value; in omap_mpuio_write() 2054 s->edge = value; in omap_mpuio_write() 2063 s->mask = value; in omap_mpuio_write() [all …]
|
/openbmc/linux/sound/drivers/opl4/ |
H A D | opl4_mixer.c | 14 uinfo->value.integer.min = 0; in snd_opl4_ctl_info() 15 uinfo->value.integer.max = 7; in snd_opl4_ctl_info() 24 u8 value; in snd_opl4_ctl_get() local 27 value = snd_opl4_read(opl4, reg); in snd_opl4_ctl_get() 29 ucontrol->value.integer.value[0] = 7 - (value & 7); in snd_opl4_ctl_get() 30 ucontrol->value.integer.value[1] = 7 - ((value >> 3) & 7); in snd_opl4_ctl_get() 39 u8 value, old_value; in snd_opl4_ctl_put() local 41 value = (7 - (ucontrol->value.integer.value[0] & 7)) | in snd_opl4_ctl_put() 42 ((7 - (ucontrol->value.integer.value[1] & 7)) << 3); in snd_opl4_ctl_put() 45 snd_opl4_write(opl4, reg, value); in snd_opl4_ctl_put() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
H A D | smu7_clockpowergating.c | 173 uint32_t value; in smu7_update_clock_gatings() local 186 value = CG_GFX_CGCG_MASK; in smu7_update_clock_gatings() 189 hwmgr, msg, value, NULL)) in smu7_update_clock_gatings() 196 value = CG_GFX_CGLS_MASK; in smu7_update_clock_gatings() 199 hwmgr, msg, value, NULL)) in smu7_update_clock_gatings() 209 value = CG_GFX_3DCG_MASK; in smu7_update_clock_gatings() 212 hwmgr, msg, value, NULL)) in smu7_update_clock_gatings() 220 value = CG_GFX_3DLS_MASK; in smu7_update_clock_gatings() 223 hwmgr, msg, value, NULL)) in smu7_update_clock_gatings() 246 value = CG_GFX_CP_LS_MASK; in smu7_update_clock_gatings() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | therm.c | 88 thrs_section = value; in nvbios_therm_sensor_parse() 89 if (value > 0) in nvbios_therm_sensor_parse() 123 sensor->offset_num = value; in nvbios_therm_sensor_parse() 128 sensor->offset_den = value; in nvbios_therm_sensor_parse() 133 sensor->slope_mult = value; in nvbios_therm_sensor_parse() 138 sensor->slope_div = value; in nvbios_therm_sensor_parse() 170 fan->min_duty = value & 0xff; in nvbios_therm_fan_parse() 184 cur_trip->fan_duty = value; in nvbios_therm_fan_parse() 188 fan->pwm_freq = value; in nvbios_therm_fan_parse() 191 fan->bump_period = value; in nvbios_therm_fan_parse() [all …]
|
/openbmc/u-boot/drivers/usb/gadget/ |
H A D | f_dfu.c | 268 int value = 0; in state_app_idle() local 287 return value; in state_app_idle() 310 return value; in state_app_detach() 370 return value; in state_dfu_idle() 393 return value; in state_dfu_dnload_sync() 413 return value; in state_dfu_dnbusy() 447 return value; in state_dfu_dnload_idle() 474 return value; in state_dfu_manifest_sync() 500 return value; in state_dfu_manifest() 517 if (value >= 0 && value < len) in state_dfu_upload_idle() [all …]
|
/openbmc/linux/drivers/platform/mips/ |
H A D | rs780e-acpi.c | 26 outb(value, index + 1); in pmio_write_index() 35 void pm_iowrite(u8 reg, u8 value) in pm_iowrite() argument 61 u16 value; in acpi_hw_clear_status() local 64 value = inw(ACPI_PM_EVT_BLK); in acpi_hw_clear_status() 65 value |= (1 << 8 | 1 << 15); in acpi_hw_clear_status() 66 outw(value, ACPI_PM_EVT_BLK); in acpi_hw_clear_status() 74 u32 value; in acpi_registers_setup() local 125 value = pm2_ioread(0xf6); in acpi_registers_setup() 127 pm2_iowrite(0xf6, value); in acpi_registers_setup() 130 value = pm2_ioread(0xf8); in acpi_registers_setup() [all …]
|
/openbmc/phosphor-power/phosphor-regulators/test/ |
H A D | pmbus_utils_tests.cpp | 148 uint16_t value; in TEST() local 153 value = 0x81ff; in TEST() 158 value = 0x7802; in TEST() 163 value = 0x0c00; in TEST() 168 value = 0xabff; in TEST() 173 value = 0x0001; in TEST() 178 value = 0x0802; in TEST() 183 value = 0xf80f; in TEST() 188 value = 0x1800; in TEST() 193 value = 0x1ffe; in TEST() [all …]
|
/openbmc/qemu/ui/ |
H A D | input-keymap.c | 33 int qemu_input_key_value_to_number(const KeyValue *value) in qemu_input_key_value_to_number() argument 35 if (value->type == KEY_VALUE_KIND_QCODE) { in qemu_input_key_value_to_number() 41 assert(value->type == KEY_VALUE_KIND_NUMBER); in qemu_input_key_value_to_number() 42 return value->u.number.data; in qemu_input_key_value_to_number() 54 int qemu_input_key_value_to_qcode(const KeyValue *value) in qemu_input_key_value_to_qcode() argument 56 if (value->type == KEY_VALUE_KIND_QCODE) { in qemu_input_key_value_to_qcode() 57 return value->u.qcode.data; in qemu_input_key_value_to_qcode() 59 assert(value->type == KEY_VALUE_KIND_NUMBER); in qemu_input_key_value_to_qcode() 67 int keycode = qemu_input_key_value_to_number(value); in qemu_input_key_value_to_scancode() 70 if (value->type == KEY_VALUE_KIND_QCODE && in qemu_input_key_value_to_scancode() [all …]
|
/openbmc/qemu/pc-bios/optionrom/ |
H A D | optrom.h | 38 static inline void outb(uint8_t value, uint16_t port) in outb() argument 40 asm volatile("outb %0, %w1" : : "a"(value), "Nd"(port)); in outb() 43 static inline void outw(uint16_t value, uint16_t port) in outw() argument 48 static inline void outl(uint32_t value, uint16_t port) in outl() argument 55 uint8_t value; in inb() local 57 asm volatile("inb %w1, %0" : "=a"(value) : "Nd"(port)); in inb() 58 return value; in inb() 63 uint16_t value; in inw() local 66 return value; in inw() 71 uint32_t value; in inl() local [all …]
|
/openbmc/qemu/tests/qtest/ |
H A D | emc141x-test.c | 43 uint16_t value; in send_and_receive() local 47 g_assert_cmpuint(value, ==, 0); in send_and_receive() 49 value = i2c_get8(i2cdev, EMC141X_TEMP_HIGH0); in send_and_receive() 50 g_assert_cmphex(value, ==, 0); in send_and_receive() 53 value = i2c_get8(i2cdev, EMC141X_TEMP_MAX_HIGH0); in send_and_receive() 54 g_assert_cmphex(value, ==, 0x55); in send_and_receive() 56 value = i2c_get8(i2cdev, EMC141X_TEMP_MIN_HIGH0); in send_and_receive() 57 g_assert_cmphex(value, ==, 0); in send_and_receive() 62 g_assert_cmpuint(value, ==, 30000); in send_and_receive() 64 value = i2c_get8(i2cdev, EMC141X_TEMP_HIGH0); in send_and_receive() [all …]
|
/openbmc/linux/drivers/xen/xen-pciback/ |
H A D | conf_space_header.c | 26 #define is_enable_cmd(value) ((value)&(PCI_COMMAND_MEMORY|PCI_COMMAND_IO)) argument 27 #define is_master_cmd(value) ((value)&PCI_COMMAND_MASTER) argument 56 *value &= PCI_COMMAND_GUEST; in command_read() 111 cmd->val = value; in command_write() 118 if (err || val == value) in command_write() 121 value &= PCI_COMMAND_GUEST; in command_write() 181 if ((value | mask) == ~0U) in bar_write() 262 *value = dev->vendor; in xen_pcibk_read_vendor() 270 *value = dev->device; in xen_pcibk_read_device() 278 *value = (u8) dev->irq; in interrupt_read() [all …]
|
/openbmc/phosphor-health-monitor/ |
H A D | health_metric.cpp | 125 threshold->second.emplace(bound, value.value); in initProperties() 132 double value) in didThresholdViolate() argument 160 auto thresholdValue = tConfig.value / 100 * value.total; in checkThreshold() 162 ThresholdIntf::value(thresholds); in checkThreshold() 199 if (!ThresholdIntf::value().empty()) in checkThresholds() 212 if (std::isnan(value.current)) in shouldNotify() 226 void HealthMetric::update(MValue value) in update() argument 228 ValueIntf::value(value.current, !shouldNotify(value)); in update() 235 history.push_back(value.current); in update() 245 value.current = average; in update() [all …]
|