/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | dwmac_lib.c | 19 u32 value = readl(ioaddr + DMA_BUS_MODE); in dwmac_dma_reset() local 22 value |= DMA_BUS_MODE_SFT_RESET; in dwmac_dma_reset() 23 writel(value, ioaddr + DMA_BUS_MODE); in dwmac_dma_reset() 25 return readl_poll_timeout(ioaddr + DMA_BUS_MODE, value, in dwmac_dma_reset() 26 !(value & DMA_BUS_MODE_SFT_RESET), in dwmac_dma_reset() 39 u32 value = readl(ioaddr + DMA_INTR_ENA); in dwmac_enable_dma_irq() local 42 value |= DMA_INTR_DEFAULT_RX; in dwmac_enable_dma_irq() 44 value |= DMA_INTR_DEFAULT_TX; in dwmac_enable_dma_irq() 46 writel(value, ioaddr + DMA_INTR_ENA); in dwmac_enable_dma_irq() 52 u32 value = readl(ioaddr + DMA_INTR_ENA); in dwmac_disable_dma_irq() local [all …]
|
/openbmc/u-boot/doc/device-tree-bindings/exynos/ |
H A D | tmu.txt | 6 - samsung,min-temp : Minimum temperature value (25 degree celsius) 7 - Current temperature of SoC should be more than this value. 8 - samsung,max-temp : Maximum temperature value (125 degree celsius) 9 - Current temperature of SoC should be less than this value. 14 - samsung,efuse-min-value : SOC efuse min value (Constant 40) 15 - efuse-value should be more than this value. 16 - samsung,efuse-value : SOC actual efuse value (Literal value) 18 - This value is used to calculate measuring error. 19 - samsung,efuse-max-value : SoC max efuse value (Constant 100) 20 - efuse-value should be less than this value. [all …]
|
/openbmc/u-boot/drivers/usb/gadget/ |
H A D | f_dfu.c | 268 int value = 0; in state_app_idle() local 272 value = handle_getstatus(req); in state_app_idle() 275 value = handle_getstate(req); in state_app_idle() 280 value = RET_ZLP; in state_app_idle() 283 value = RET_STALL; in state_app_idle() 287 return value; in state_app_idle() 295 int value = 0; in state_app_detach() local 299 value = handle_getstatus(req); in state_app_detach() 302 value = handle_getstate(req); in state_app_detach() 306 value = RET_STALL; in state_app_detach() [all …]
|
/openbmc/linux/arch/microblaze/lib/ |
H A D | memcpy.c | 50 unsigned value, buf_hold; in memcpy() local 89 value = *i_src++; in memcpy() 90 *i_dst++ = buf_hold | value >> 24; in memcpy() 91 buf_hold = value << 8; in memcpy() 98 value = *i_src++; in memcpy() 99 *i_dst++ = buf_hold | ((value & 0xFF) << 24); in memcpy() 100 buf_hold = (value & 0xFFFFFF00) >> 8; in memcpy() 115 value = *i_src++; in memcpy() 116 *i_dst++ = buf_hold | value >> 16; in memcpy() 117 buf_hold = value << 16; in memcpy() [all …]
|
H A D | memmove.c | 60 unsigned value, buf_hold; in memmove() local 100 value = *--i_src; in memmove() 101 *--i_dst = buf_hold << 8 | value; in memmove() 102 buf_hold = value >> 24; in memmove() 109 value = *--i_src; in memmove() 111 ((value & 0xFFFFFF00) >> 8); in memmove() 112 buf_hold = (value & 0xFF) << 24; in memmove() 127 value = *--i_src; in memmove() 128 *--i_dst = buf_hold << 16 | value; in memmove() 129 buf_hold = value >> 16; in memmove() [all …]
|
/openbmc/phosphor-logging/lib/ |
H A D | lg2_logger.cpp | 23 switch (f & (hex | bin | dec).value) in value_to_string() 27 case bin.value: in value_to_string() 29 switch (f & (field8 | field16 | field32 | field64).value) in value_to_string() 31 case field8.value: in value_to_string() 35 case field16.value: in value_to_string() 39 case field32.value: in value_to_string() 43 case field64.value: in value_to_string() 52 case hex.value: in value_to_string() 54 char value[19]; in value_to_string() local 57 switch (f & (field8 | field16 | field32 | field64).value) in value_to_string() [all …]
|
/openbmc/u-boot/arch/arm/mach-imx/ |
H A D | mac.c | 37 u32 value = readl(&fuse->mac_addr2); in imx_get_mac_from_fuse() local 39 mac[0] = value >> 24; in imx_get_mac_from_fuse() 40 mac[1] = value >> 16; in imx_get_mac_from_fuse() 41 mac[2] = value >> 8; in imx_get_mac_from_fuse() 42 mac[3] = value; in imx_get_mac_from_fuse() 44 value = readl(&fuse->mac_addr1); in imx_get_mac_from_fuse() 45 mac[4] = value >> 24; in imx_get_mac_from_fuse() 46 mac[5] = value >> 16; in imx_get_mac_from_fuse() 49 u32 value = readl(&fuse->mac_addr1); in imx_get_mac_from_fuse() local 51 mac[0] = value >> 8; in imx_get_mac_from_fuse() [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() 233 value = CG_GFX_RLC_LS_MASK; in smu7_update_clock_gatings() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/calcs/ |
H A D | custom_float.c | 30 struct fixed31_32 value, in build_custom_float() argument 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() [all …]
|
/openbmc/u-boot/board/samsung/smdkc100/ |
H A D | onenand.c | 24 int value; in onenand_board_init() local 30 value = readl(&clk->gate_d01); in onenand_board_init() 31 value &= ~(1 << 2); /* CLK_ONENANDC */ in onenand_board_init() 32 value |= (1 << 2); in onenand_board_init() 33 writel(value, &clk->gate_d01); in onenand_board_init() 35 value = readl(&clk->src0); in onenand_board_init() 36 value &= ~(1 << 24); /* MUX_1nand: 0 from HCLKD0 */ in onenand_board_init() 37 value &= ~(1 << 20); /* MUX_HREF: 0 from FIN_27M */ in onenand_board_init() 38 writel(value, &clk->src0); in onenand_board_init() 40 value = readl(&clk->div1); in onenand_board_init() [all …]
|
/openbmc/linux/drivers/power/supply/ |
H A D | ltc2941-battery-gauge.c | 148 u8 value; in ltc294x_reset() local 152 ret = ltc294x_read_regs(info->client, LTC294X_REG_CONTROL, &value, 1); in ltc294x_reset() 171 if (value != control) { in ltc294x_reset() 196 int value = ltc294x_read_charge_register(info, reg); in ltc294x_get_charge() local 198 if (value < 0) in ltc294x_get_charge() 199 return value; in ltc294x_get_charge() 202 value -= 0xFFFF; in ltc294x_get_charge() 203 *val = convert_bin_to_uAh(info, value); in ltc294x_get_charge() 212 s32 value; in ltc294x_set_charge_now() local 214 value = convert_uAh_to_bin(info, val); in ltc294x_set_charge_now() [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 51 static int command_read(struct pci_dev *dev, int offset, u16 *value, void *data) in command_read() argument 53 int ret = pci_read_config_word(dev, offset, value); in command_read() 56 *value &= PCI_COMMAND_GUEST; in command_read() 57 *value |= cmd->val & ~PCI_COMMAND_GUEST; in command_read() 62 static int command_write(struct pci_dev *dev, int offset, u16 value, void *data) in command_write() argument 70 if (!pci_is_enabled(dev) && is_enable_cmd(value)) { in command_write() 77 } else if (pci_is_enabled(dev) && !is_enable_cmd(value)) { in command_write() 84 if (!dev->is_busmaster && is_master_cmd(value)) { in command_write() [all …]
|
/openbmc/linux/drivers/pci/controller/ |
H A D | pci-tegra.c | 375 static inline void afi_writel(struct tegra_pcie *pcie, u32 value, in afi_writel() argument 378 writel(value, pcie->afi + offset); in afi_writel() 386 static inline void pads_writel(struct tegra_pcie *pcie, u32 value, in pads_writel() argument 389 writel(value, pcie->pads + offset); in pads_writel() 460 int where, int size, u32 *value) in tegra_pcie_config_read() argument 464 value); in tegra_pcie_config_read() 466 return pci_generic_config_read(bus, devfn, where, size, value); in tegra_pcie_config_read() 470 int where, int size, u32 value) in tegra_pcie_config_write() argument 474 value); in tegra_pcie_config_write() 476 return pci_generic_config_write(bus, devfn, where, size, value); in tegra_pcie_config_write() [all …]
|
/openbmc/linux/tools/perf/util/ |
H A D | units.c | 18 unsigned long int value; in parse_tag_value() local 21 value = strtoul(str, &endptr, 10); in parse_tag_value() 25 if (value > ULONG_MAX / i->mult) in parse_tag_value() 27 value *= i->mult; in parse_tag_value() 28 return value; in parse_tag_value() 36 double convert_unit_double(double value, char *unit) in convert_unit_double() argument 40 if (value > 1000.0) { in convert_unit_double() 41 value /= 1000.0; in convert_unit_double() 45 if (value > 1000.0) { in convert_unit_double() 46 value /= 1000.0; in convert_unit_double() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | therm.c | 84 s16 value = nvbios_rd16(bios, entry + 1); in nvbios_therm_sensor_parse() local 88 thrs_section = value; in nvbios_therm_sensor_parse() 89 if (value > 0) in nvbios_therm_sensor_parse() 102 sensor->thrs_critical.temp = (value & 0xff0) >> 4; in nvbios_therm_sensor_parse() 103 sensor->thrs_critical.hysteresis = value & 0xf; in nvbios_therm_sensor_parse() 109 sensor->thrs_down_clock.temp = (value & 0xff0) >> 4; in nvbios_therm_sensor_parse() 110 sensor->thrs_down_clock.hysteresis = value & 0xf; in nvbios_therm_sensor_parse() 116 sensor->thrs_fan_boost.temp = (value & 0xff0) >> 4; in nvbios_therm_sensor_parse() 117 sensor->thrs_fan_boost.hysteresis = value & 0xf; in nvbios_therm_sensor_parse() 123 sensor->offset_num = value; in nvbios_therm_sensor_parse() [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() 154 EXPECT_DOUBLE_EQ(pmbus_utils::convertFromLinear(value), 0.0077972412109375); in TEST() 158 value = 0x7802; in TEST() 159 EXPECT_DOUBLE_EQ(pmbus_utils::convertFromLinear(value), 65536); in TEST() 163 value = 0x0c00; in TEST() 164 EXPECT_DOUBLE_EQ(pmbus_utils::convertFromLinear(value), -2048); in TEST() 168 value = 0xabff; in TEST() 169 EXPECT_DOUBLE_EQ(pmbus_utils::convertFromLinear(value), 0.49951171875); in TEST() 173 value = 0x0001; in TEST() [all …]
|
/openbmc/linux/drivers/hid/ |
H A D | hid-lg4ff.c | 277 static s32 lg4ff_adjust_dfp_x_axis(s32 value, u16 range) in lg4ff_adjust_dfp_x_axis() argument 283 return value; in lg4ff_adjust_dfp_x_axis() 285 return value; in lg4ff_adjust_dfp_x_axis() 291 new_value = 8192 + mult_frac(value - 8192, max_range, range); in lg4ff_adjust_dfp_x_axis() 301 struct hid_usage *usage, s32 value, struct lg_drv_data *drv_data) in lg4ff_adjust_input_event() argument 315 new_value = lg4ff_adjust_dfp_x_axis(value, entry->wdata.range); in lg4ff_adjust_input_event() 412 s32 *value; in lg4ff_play() local 426 value = entry->report->field[0]->value; in lg4ff_play() 438 value[0] = 0x13; in lg4ff_play() 439 value[1] = 0x00; in lg4ff_play() [all …]
|
/openbmc/phosphor-health-monitor/ |
H A D | health_metric.cpp | 108 ValueIntf::value(std::numeric_limits<double>::quiet_NaN(), true); in initProperties() 112 for (const auto& [key, value] : config.thresholds) in initProperties() 125 threshold->second.emplace(bound, value.value); in initProperties() 128 ThresholdIntf::value(thresholds, true); in initProperties() 132 double value) in didThresholdViolate() argument 138 return (value < thresholdValue); in didThresholdViolate() 142 return (value > thresholdValue); in didThresholdViolate() 152 void HealthMetric::checkThreshold(Type type, Bound bound, MValue value) in checkThreshold() argument 155 auto thresholds = ThresholdIntf::value(); in checkThreshold() 160 auto thresholdValue = tConfig.value / 100 * value.total; in checkThreshold() [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() 83 value &= ~MODE_PIN4; /* 16-bit Area0 bus width */ 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() [all …]
|
/openbmc/linux/sound/soc/ |
H A D | soc-ops.c | 69 ucontrol->value.enumerated.item[0] = item; in snd_soc_get_enum_double() 73 ucontrol->value.enumerated.item[1] = item; in snd_soc_get_enum_double() 94 unsigned int *item = ucontrol->value.enumerated.item; in snd_soc_put_enum_double() 182 max = uinfo->value.integer.max = mc->max - mc->min; in snd_soc_info_volsw() 198 uinfo->value.integer.min = 0; in snd_soc_info_volsw() 199 uinfo->value.integer.max = max; in snd_soc_info_volsw() 236 uinfo->value.integer.min = 0; in snd_soc_info_volsw_sx() 237 uinfo->value.integer.max = max; in snd_soc_info_volsw_sx() 278 ucontrol->value.integer.value[0] = val - min; in snd_soc_get_volsw() 280 ucontrol->value.integer.value[0] = in snd_soc_get_volsw() [all …]
|
/openbmc/linux/drivers/gpu/drm/tegra/ |
H A D | hub.c | 107 static inline void tegra_plane_writel(struct tegra_plane *plane, u32 value, in tegra_plane_writel() argument 110 tegra_dc_writel(plane->dc, value, tegra_plane_offset(plane, offset)); in tegra_plane_writel() 198 u32 mask, value; in tegra_shared_plane_update() local 206 value = tegra_dc_readl(dc, DC_CMD_STATE_CONTROL); in tegra_shared_plane_update() 207 if ((value & mask) == 0) in tegra_shared_plane_update() 218 u32 mask, value; in tegra_shared_plane_activate() local 226 value = tegra_dc_readl(dc, DC_CMD_STATE_CONTROL); in tegra_shared_plane_activate() 227 if ((value & mask) == 0) in tegra_shared_plane_activate() 267 u32 value; in tegra_shared_plane_set_owner() local 269 value = tegra_dc_readl(dc, offset); in tegra_shared_plane_set_owner() [all …]
|
/openbmc/linux/fs/ext2/ |
H A D | acl.c | 20 ext2_acl_from_disk(const void *value, size_t size) in ext2_acl_from_disk() argument 22 const char *end = (char *)value + size; in ext2_acl_from_disk() 26 if (!value) in ext2_acl_from_disk() 30 if (((ext2_acl_header *)value)->a_version != in ext2_acl_from_disk() 33 value = (char *)value + sizeof(ext2_acl_header); in ext2_acl_from_disk() 44 (ext2_acl_entry *)value; in ext2_acl_from_disk() 45 if ((char *)value + sizeof(ext2_acl_entry_short) > end) in ext2_acl_from_disk() 54 value = (char *)value + in ext2_acl_from_disk() 59 value = (char *)value + sizeof(ext2_acl_entry); in ext2_acl_from_disk() 60 if ((char *)value > end) in ext2_acl_from_disk() [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/platform/mips/ |
H A D | rs780e-acpi.c | 23 static void pmio_write_index(u16 index, u8 reg, u8 value) in pmio_write_index() argument 26 outb(value, index + 1); in pmio_write_index() 35 void pm_iowrite(u8 reg, u8 value) in pm_iowrite() argument 37 pmio_write_index(PM_INDEX, reg, value); in pm_iowrite() 47 void pm2_iowrite(u8 reg, u8 value) in pm2_iowrite() argument 49 pmio_write_index(PM2_INDEX, reg, value); in pm2_iowrite() 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() [all …]
|
/openbmc/linux/tools/testing/selftests/hid/tests/ |
H A D | test_apple_keyboard.py | 176 assert evdev.value[libevdev.EV_KEY.KEY_ALL_APPLICATIONS] == 1 177 assert evdev.value[libevdev.EV_KEY.KEY_FN] == 0 185 assert evdev.value[libevdev.EV_KEY.KEY_ALL_APPLICATIONS] == 0 201 assert evdev.value[libevdev.EV_KEY.KEY_F4] == 1 209 assert evdev.value[libevdev.EV_KEY.KEY_F4] == 0 210 assert evdev.value[libevdev.EV_KEY.KEY_FN] == 1 233 assert evdev.value[libevdev.EV_KEY.KEY_F4] == 1 248 assert evdev.value[libevdev.EV_KEY.KEY_F4] == 0 264 assert evdev.value[libevdev.EV_KEY.KEY_ALL_APPLICATIONS] == 1 272 assert evdev.value[libevdev.EV_KEY.KEY_ALL_APPLICATIONS] == 0 [all …]
|