/openbmc/qemu/tests/qtest/ |
H A D | pca9552-test.c | 57 uint8_t value; in send_and_receive() local 59 value = i2c_get8(i2cdev, PCA9552_LS0); in send_and_receive() 60 g_assert_cmphex(value, ==, 0x55); in send_and_receive() 62 value = i2c_get8(i2cdev, PCA9552_INPUT0); in send_and_receive() 63 g_assert_cmphex(value, ==, 0xFF); in send_and_receive() 67 value = i2c_get8(i2cdev, PCA9552_LS0); in send_and_receive() 68 g_assert_cmphex(value, ==, 0x54); in send_and_receive() 71 g_assert_cmphex(value, ==, 0xFE); in send_and_receive() 73 value = i2c_get8(i2cdev, PCA9552_LS3); in send_and_receive() 74 g_assert_cmphex(value, ==, 0x54); in send_and_receive() [all …]
|
/openbmc/u-boot/board/aspeed/evb_ast2600/ |
H A D | evb_ast2600.c | 35 u32 value; in port80h_snoop_init() local 38 value = readl(LPC_SNPWADR) & 0xffff0000; in port80h_snoop_init() 39 writel(value | 0x80, LPC_SNPWADR); in port80h_snoop_init() 42 value = readl(LPC_HICR6); in port80h_snoop_init() 43 value |= HICR6_STR_SNP0W | HICR6_STR_SNP1W; in port80h_snoop_init() 44 writel(value, LPC_HICR6); in port80h_snoop_init() 48 value |= HICR5_EN_SIOGIO | HICR5_EN_SNP0W; in port80h_snoop_init() 49 writel(value, LPC_HICR5); in port80h_snoop_init() 53 writel(value, LPC_HICRB); in port80h_snoop_init() 65 u32 value; in sgpio_init() local [all …]
|
/openbmc/u-boot/common/eeprom/ |
H A D | eeprom_field.c | 28 const char *value, bool reverse) in __eeprom_field_update_bin() argument 30 int len = strlen(value); in __eeprom_field_update_bin() 51 tmp[k] = value[i]; in __eeprom_field_update_bin() 55 tmp[k] = value[reverse ? i - 1 + k : i + k]; in __eeprom_field_update_bin() 70 char *value, char *delimiter) in __eeprom_field_update_bin_delim() argument 74 const char *tmp = value; in __eeprom_field_update_bin_delim() 88 tok = strtok(value, delimiter); in __eeprom_field_update_bin_delim() 125 return __eeprom_field_update_bin(field, value, false); in eeprom_field_update_bin() 172 return __eeprom_field_update_bin(field, value, true); in eeprom_field_update_bin_rev() 224 if (strlen(value) >= field->size) { in eeprom_field_update_ascii() [all …]
|
/openbmc/linux/drivers/gpu/drm/tegra/ |
H A D | hdmi.c | 119 return value; in tegra_hdmi_readl() 604 u32 value; in tegra_hdmi_disable_audio() local 613 u32 value; in tegra_hdmi_enable_audio() local 623 u32 value; in tegra_hdmi_write_eld() local 649 value = (value << 8) | ptr[i - 1]; in tegra_hdmi_subpack() 660 u32 value; in tegra_hdmi_write_infopack() local 730 u32 value; in tegra_hdmi_disable_avi_infoframe() local 739 u32 value; in tegra_hdmi_enable_avi_infoframe() local 779 u32 value; in tegra_hdmi_disable_audio_infoframe() local 788 u32 value; in tegra_hdmi_enable_audio_infoframe() local [all …]
|
/openbmc/linux/drivers/phy/renesas/ |
H A D | phy-rcar-gen2.c | 122 u32 value; in rcar_gen2_phy_power_on() local 133 value &= ~USBHS_UGCTRL_PLLRESET; in rcar_gen2_phy_power_on() 137 value |= USBHS_LPSTS_SUSPM; in rcar_gen2_phy_power_on() 166 u32 value; in rcar_gen2_phy_power_off() local 176 value &= ~USBHS_UGCTRL_CONNECT; in rcar_gen2_phy_power_off() 180 value &= ~USBHS_LPSTS_SUSPM; in rcar_gen2_phy_power_off() 184 value |= USBHS_UGCTRL_PLLRESET; in rcar_gen2_phy_power_off() 198 u32 value; in rz_g1c_phy_power_on() local 212 value |= USBHS_LPSTS_SUSPM; in rz_g1c_phy_power_on() 227 u32 value; in rz_g1c_phy_power_off() local [all …]
|
/openbmc/linux/arch/parisc/math-emu/ |
H A D | float.h | 74 #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 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 128 #define Deposit_dexponent(object,value) Bitfield_deposit(value,1,11,object) argument 134 #define Deposit_dlowp1(object,value) Bitfield_deposit(value,31,1,object) argument 135 #define Deposit_dhigh4p1(object,value) Bitfield_deposit(value,0,4,object) argument [all …]
|
/openbmc/webui-vue/src/components/Mixins/ |
H A D | DataFormatterMixin.js | 3 dataFormatter(value) { argument 4 if (value === undefined || value === null || value === '') { 6 } else if (typeof value === 'number') { 7 return parseFloat(value.toFixed(3)); 9 return value; 24 dataFormatterArray(value) { argument 25 return value.join(', ');
|
/openbmc/linux/include/asm-generic/ |
H A D | io.h | 253 __raw_writeb(value, addr); in writeb() 359 __raw_writeb(value, addr); in writeb_relaxed() 663 outb(value, addr); in outb_p() 671 outw(value, addr); in outw_p() 679 outl(value, addr); in outl_p() 829 writeb(value, addr); in iowrite8() 837 writew(value, addr); in iowrite16() 845 writel(value, addr); in iowrite32() 854 writeq(value, addr); in iowrite64() 889 writew(swab16(value), addr); in iowrite16be() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_lpm_map.c | 249 list = tlpm_add(list, value, value[keysize]); in test_lpm_map() 340 __u64 value; in test_lpm_ipaddr() local 358 value = 1; in test_lpm_ipaddr() 363 value = 2; in test_lpm_ipaddr() 368 value = 3; in test_lpm_ipaddr() 373 value = 5; in test_lpm_ipaddr() 378 value = 4; in test_lpm_ipaddr() 451 value = 1; in test_lpm_delete() 456 value = 2; in test_lpm_delete() 461 value = 3; in test_lpm_delete() [all …]
|
/openbmc/linux/sound/core/ |
H A D | control_compat.c | 75 } value; member 96 if (get_user(data->value.enumerated.item, &data32->value.enumerated.item)) in snd_ctl_elem_info_compat() 113 if (put_user(data->value.integer.min, &data32->value.integer.min) || in snd_ctl_elem_info_compat() 114 put_user(data->value.integer.max, &data32->value.integer.max) || in snd_ctl_elem_info_compat() 115 put_user(data->value.integer.step, &data32->value.integer.step)) in snd_ctl_elem_info_compat() 149 } value; member 162 } value; member 244 data->value.integer.value[i] = val; in copy_ctl_value_from_user() 275 val = data->value.integer.value[i]; in copy_ctl_value_to_user() 386 if (get_user(data->value.integer.min, &data32->value.integer.min) || in snd_ctl_elem_add_compat() [all …]
|
/openbmc/linux/drivers/acpi/acpica/ |
H A D | hwregs.c | 24 acpi_hw_read_multiple(u32 *value, 29 acpi_hw_write_multiple(u32 value, 219 *value = 0; in acpi_hw_read() 490 u32 value = 0; in acpi_hw_register_read() local 499 status = acpi_hw_read_multiple(&value, in acpi_hw_register_read() 532 value = (u32)value64; in acpi_hw_register_read() 540 value = (u32)value64; in acpi_hw_register_read() 559 *return_value = (u32)value; in acpi_hw_register_read() 714 acpi_hw_read_multiple(u32 *value, in acpi_hw_read_multiple() argument 751 *value = (value_a | value_b); in acpi_hw_read_multiple() [all …]
|
H A D | rsmisc.c | 228 if (info->value) { in acpi_rs_convert_aml_to_resource() 229 item_count = info->value; in acpi_rs_convert_aml_to_resource() 328 info->value, in acpi_rs_convert_aml_to_resource() 346 info->value), in acpi_rs_convert_aml_to_resource() 503 value)); in acpi_rs_convert_resource_to_aml() 512 value)); in acpi_rs_convert_resource_to_aml() 521 value)); in acpi_rs_convert_resource_to_aml() 530 value)); in acpi_rs_convert_resource_to_aml() 614 if (info->value) { in acpi_rs_convert_resource_to_aml() 701 value))); in acpi_rs_convert_resource_to_aml() [all …]
|
/openbmc/linux/drivers/memory/tegra/ |
H A D | tegra210-emc-cc-r21021.c | 139 value >>= 16; in update_clock_tree_delay() 744 value = (value * 128 * next->rate / 1000) / 1000000; in tegra210_emc_r21021_set_clock() 1198 value); in tegra210_emc_r21021_set_clock() 1334 value = 1; in tegra210_emc_r21021_set_clock() 1337 value++; in tegra210_emc_r21021_set_clock() 1340 value++; in tegra210_emc_r21021_set_clock() 1343 value++; in tegra210_emc_r21021_set_clock() 1531 value = div_o3(value, dst_clk_period); in tegra210_emc_r21021_set_clock() 1532 value = value << in tegra210_emc_r21021_set_clock() 1534 value << in tegra210_emc_r21021_set_clock() [all …]
|
/openbmc/linux/sound/drivers/pcsp/ |
H A D | pcsp_mixer.c | 19 uinfo->value.integer.min = 0; in pcsp_enable_info() 20 uinfo->value.integer.max = 1; in pcsp_enable_info() 28 ucontrol->value.integer.value[0] = chip->enable; in pcsp_enable_get() 37 int enab = ucontrol->value.integer.value[0]; in pcsp_enable_put() 53 uinfo->value.enumerated.item = chip->max_treble; in pcsp_treble_info() 54 sprintf(uinfo->value.enumerated.name, "%lu", in pcsp_treble_info() 72 int treble = ucontrol->value.enumerated.item[0]; in pcsp_treble_put() 88 uinfo->value.integer.min = 0; in pcsp_pcspkr_info() 89 uinfo->value.integer.max = 1; in pcsp_pcspkr_info() 97 ucontrol->value.integer.value[0] = chip->pcspkr; in pcsp_pcspkr_get() [all …]
|
/openbmc/linux/drivers/soc/samsung/ |
H A D | exynos5420-pmu.c | 214 unsigned int value; in exynos5420_pmu_init() local 228 value = pmu_raw_readl(EXYNOS_L2_OPTION(0)); in exynos5420_pmu_init() 229 value &= ~EXYNOS_L2_USE_RETENTION; in exynos5420_pmu_init() 230 pmu_raw_writel(value, EXYNOS_L2_OPTION(0)); in exynos5420_pmu_init() 232 value = pmu_raw_readl(EXYNOS_L2_OPTION(1)); in exynos5420_pmu_init() 233 value &= ~EXYNOS_L2_USE_RETENTION; in exynos5420_pmu_init() 234 pmu_raw_writel(value, EXYNOS_L2_OPTION(1)); in exynos5420_pmu_init() 241 value = pmu_raw_readl(EXYNOS5420_LPI_MASK); in exynos5420_pmu_init() 242 value |= EXYNOS5420_ATB_ISP_ARM; in exynos5420_pmu_init() 243 pmu_raw_writel(value, EXYNOS5420_LPI_MASK); in exynos5420_pmu_init() [all …]
|
/openbmc/linux/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/ |
H A D | Core.py | 30 def flag_str(event_name, field_name, value): argument 36 if not value and not idx: 39 if idx and (value & idx) == idx: 44 value &= ~idx 48 def symbol_str(event_name, field_name, value): argument 53 if not value and not idx: 56 if (value == idx): 69 def trace_flag_str(value): argument 74 if not value and not idx: 78 if idx and (value & idx) == idx: [all …]
|
/openbmc/dbus-sensors/ |
H A D | meson.options | 1 option('adc', type: 'feature', value: 'enabled', description: 'Enable ADC sensor.',) 2 option('intel-cpu', type: 'feature', value: 'enabled', description: 'Enable CPU sensor.',) 3 option('exit-air', type: 'feature', value: 'enabled', description: 'Enable exit air sensor.',) 4 option('fan', type: 'feature', value: 'enabled', description: 'Enable fan sensor.',) 6 option('intrusion', type: 'feature', value: 'enabled', description: 'Enable intrusion sensor.',) 7 option('ipmb', type: 'feature', value: 'enabled', description: 'Enable IPMB sensor.',) 9 option('mcu', type: 'feature', value: 'enabled', description: 'Enable MCU sensor.',) 10 option('nvme', type: 'feature', value: 'enabled', description: 'Enable NVMe sensor.',) 11 option('psu', type: 'feature', value: 'enabled', description: 'Enable PSU sensor.',) 12 option('external', type: 'feature', value: 'enabled', description: 'Enable External sensor.',) [all …]
|
/openbmc/qemu/hw/ppc/ |
H A D | mpc8544_guts.c | 78 uint32_t value = 0; in mpc8544_guts_read() local 84 value = FIELD_DP32(value, GUTS_PORPLLSR, E500_1_RATIO, 6); /* 3:1 */ in mpc8544_guts_read() 85 value = FIELD_DP32(value, GUTS_PORPLLSR, E500_0_RATIO, 6); /* 3:1 */ in mpc8544_guts_read() 86 value = FIELD_DP32(value, GUTS_PORPLLSR, DDR_RATIO, 12); /* 12:1 */ in mpc8544_guts_read() 87 value = FIELD_DP32(value, GUTS_PORPLLSR, PLAT_RATIO, 6); /* 6:1 */ in mpc8544_guts_read() 90 value = env->spr[SPR_PVR]; in mpc8544_guts_read() 93 value = env->spr[SPR_E500_SVR]; in mpc8544_guts_read() 102 return value; in mpc8544_guts_read() 106 uint64_t value, unsigned size) in mpc8544_guts_write() argument 112 if (value & MPC8544_GUTS_RSTCR_RESET) { in mpc8544_guts_write() [all …]
|
/openbmc/qemu/qobject/ |
H A D | qlit.c | 30 for (i = 0; lhs->value.qdict[i].key; i++) { in qlit_equal_qdict() 31 QObject *obj = qdict_get(qdict, lhs->value.qdict[i].key); in qlit_equal_qdict() 33 if (!qlit_equal_qobject(&lhs->value.qdict[i].value, obj)) { in qlit_equal_qdict() 55 if (!qlit_equal_qobject(&lhs->value.qlist[i], obj)) { in qlit_equal_qlist() 61 return !e && lhs->value.qlist[i].type == QTYPE_NONE; in qlit_equal_qlist() 76 return (strcmp(lhs->value.qstr, in qlit_equal_qobject() 97 return QOBJECT(qnum_from_int(qlit->value.qnum)); in qobject_from_qlit() 99 return QOBJECT(qstring_from_str(qlit->value.qstr)); in qobject_from_qlit() 104 for (e = qlit->value.qdict; e->key; e++) { in qobject_from_qlit() 113 for (e = qlit->value.qlist; e->type != QTYPE_NONE; e++) { in qobject_from_qlit() [all …]
|
/openbmc/linux/drivers/thermal/st/ |
H A D | stm_thermal.c | 101 u32 value; in stm_enable_irq() local 142 u32 value; in stm_sensor_power_on() local 146 value |= TS1_EN; in stm_sensor_power_on() 155 value, (value & TS_RDY), in stm_sensor_power_on() 163 value |= TS1_START; in stm_sensor_power_on() 174 u32 value; in stm_sensor_power_off() local 180 value &= ~TS1_START; in stm_sensor_power_off() 188 value &= ~TS1_EN; in stm_sensor_power_off() 199 u32 value, clk_freq; in stm_thermal_calibration() local 233 value |= NO_HW_TRIG; in stm_thermal_calibration() [all …]
|
/openbmc/qemu/qapi/ |
H A D | qapi-visit-core.c | 201 *obj = value; in visit_type_uintN() 212 value = *obj; in visit_type_uint8() 214 *obj = value; in visit_type_uint8() 225 value = *obj; in visit_type_uint16() 227 *obj = value; in visit_type_uint16() 238 value = *obj; in visit_type_uint32() 240 *obj = value; in visit_type_uint32() 263 if (value < min || value > max) { in visit_type_intN() 269 *obj = value; in visit_type_intN() 279 value = *obj; in visit_type_int8() [all …]
|
/openbmc/linux/drivers/scsi/aic7xxx/aicasm/ |
H A D | aicasm_gram.y | 620 $$.value = $1.value | $3.value; 627 $$.value = $1.value & $3.value; 634 $$.value = $1.value + $3.value; 641 $$.value = $1.value - $3.value; 648 $$.value = $1.value * $3.value; 655 $$.value = $1.value / $3.value; 662 $$.value = $1.value << $3.value; 669 $$.value = $1.value >> $3.value; 681 $$.value = (~$$.value) & 0xFF; 686 $$.value = -$$.value; [all …]
|
/openbmc/qemu/hw/i2c/ |
H A D | omap_i2c.c | 263 uint32_t value) in omap_i2c_write() argument 292 s->dma = value & 0x8080; in omap_i2c_write() 330 if (value & 2) { in omap_i2c_write() 343 if ((value & (1 << 15)) && !(value & (1 << 10))) { /* MST */ in omap_i2c_write() 348 if ((value & (1 << 15)) && value & (1 << 8)) { /* XA */ in omap_i2c_write() 354 if ((value & (1 << 15)) && value & (1 << 0)) { /* STT */ in omap_i2c_write() 379 s->divider = value; in omap_i2c_write() 383 s->times[0] = value; in omap_i2c_write() 387 s->times[1] = value; in omap_i2c_write() 410 uint32_t value) in omap_i2c_writeb() argument [all …]
|
/openbmc/u-boot/drivers/input/ |
H A D | twl6030.c | 12 u8 value; in twl6030_input_power_button() local 14 twl6030_i2c_read_u8(TWL6030_CHIP_PM, TWL6030_STS_HW_CONDITIONS, &value); in twl6030_input_power_button() 17 if (value & TWL6030_STS_HW_CONDITIONS_PWRON) in twl6030_input_power_button() 25 u8 value; in twl6030_input_charger() local 28 &value); in twl6030_input_charger() 30 if (value & TWL6030_CONTROLLER_STAT1_VAC_DET) in twl6030_input_charger() 38 u8 value; in twl6030_input_usb() local 41 &value); in twl6030_input_usb() 43 if (value & TWL6030_CONTROLLER_STAT1_VBUS_DET) in twl6030_input_usb()
|
/openbmc/qemu/hw/net/ |
H A D | vmware_utils.h | 75 vmw_shmem_st8(PCIDevice *d, hwaddr addr, uint8_t value) in vmw_shmem_st8() argument 78 pci_dma_write(d, addr, &value, 1); in vmw_shmem_st8() 92 vmw_shmem_st16(PCIDevice *d, hwaddr addr, uint16_t value) in vmw_shmem_st16() argument 95 value = cpu_to_le16(value); in vmw_shmem_st16() 96 pci_dma_write(d, addr, &value, 2); in vmw_shmem_st16() 110 vmw_shmem_st32(PCIDevice *d, hwaddr addr, uint32_t value) in vmw_shmem_st32() argument 113 value = cpu_to_le32(value); in vmw_shmem_st32() 114 pci_dma_write(d, addr, &value, 4); in vmw_shmem_st32() 128 vmw_shmem_st64(PCIDevice *d, hwaddr addr, uint64_t value) in vmw_shmem_st64() argument 131 value = cpu_to_le64(value); in vmw_shmem_st64() [all …]
|