/openbmc/linux/arch/mips/include/asm/sn/sn0/ |
H A D | hubmd.h | 463 #define MD_MIG_DIFF_THRESH_SET(region, value) ( \ argument 465 MD_MIG_DIFF_THRES_VALID_MASK | (value))) 487 MD_MIG_VALUE_THRES_VALID_MASK | (value))) 510 #define MD_MIG_CANDIDATE_HWPFN(value) ((value) & MD_MIG_CANDIDATE_ADDR_MASK) argument 512 #define MD_MIG_CANDIDATE_NODEID(value) ( \ argument 515 #define MD_MIG_CANDIDATE_TYPE(value) ( \ argument 518 #define MD_MIG_CANDIDATE_VALID(value) ( \ argument 526 #define MD_PPROT_REFCNT_GET(value) ( \ argument 529 #define MD_PPROT_MIGMD_GET(value) ( \ argument 533 #define MD_SPROT_REFCNT_GET(value) ( \ argument [all …]
|
/openbmc/linux/drivers/net/ethernet/atheros/atl1e/ |
H A D | atl1e_hw.c | 21 u32 value; in atl1e_check_eeprom_exist() local 24 if (value & SPI_FLASH_CTRL_EN_VPD) { in atl1e_check_eeprom_exist() 25 value &= ~SPI_FLASH_CTRL_EN_VPD; in atl1e_check_eeprom_exist() 34 u32 value; in atl1e_hw_set_mac_addr() local 46 value = (((u32)hw->mac_addr[0]) << 8) | in atl1e_hw_set_mac_addr() 157 u32 value = 0; in atl1e_hash_mc_addr() local 164 return value; in atl1e_hash_mc_addr() 267 u32 value; in atl1e_init_pcie() local 274 value = AT_READ_REG(hw, 0x1008); in atl1e_init_pcie() 275 value |= 0x8000; in atl1e_init_pcie() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
H A D | base.c | 251 if (value < 0) in nvkm_therm_attr_set() 252 value = 0; in nvkm_therm_attr_set() 253 if (value > therm->fan->bios.max_duty) in nvkm_therm_attr_set() 254 value = therm->fan->bios.max_duty; in nvkm_therm_attr_set() 255 therm->fan->bios.min_duty = value; in nvkm_therm_attr_set() 258 if (value < 0) in nvkm_therm_attr_set() 259 value = 0; in nvkm_therm_attr_set() 260 if (value < therm->fan->bios.min_duty) in nvkm_therm_attr_set() 261 value = therm->fan->bios.min_duty; in nvkm_therm_attr_set() 262 therm->fan->bios.max_duty = value; in nvkm_therm_attr_set() [all …]
|
/openbmc/linux/drivers/gpu/drm/radeon/ |
H A D | evergreen_hdmi.c | 177 u32 value = 0; in evergreen_hdmi_write_sad_regs() local 234 u32 value; in dce4_hdmi_audio_set_dto() local 253 WREG32(DCCG_AUDIO_DTO0_CNTL, value); in dce4_hdmi_audio_set_dto() 256 value = 0; in dce4_hdmi_audio_set_dto() 261 WREG32(DCCG_AUDIO_DTO_SOURCE, value); in dce4_hdmi_audio_set_dto() 274 u32 value; in dce4_dp_audio_set_dto() local 277 value |= DCCG_AUDIO_DTO1_USE_512FBR_DTO; in dce4_dp_audio_set_dto() 278 WREG32(DCCG_AUDIO_DTO1_CNTL, value); in dce4_dp_audio_set_dto() 281 value = 0; in dce4_dp_audio_set_dto() 282 value |= DCCG_AUDIO_DTO_SEL; in dce4_dp_audio_set_dto() [all …]
|
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | dwmac-dwc-qos-eth.c | 186 u32 value; in tegra_eqos_fix_speed() local 217 value = readl(eqos->regs + AUTO_CAL_CONFIG); in tegra_eqos_fix_speed() 219 writel(value, eqos->regs + AUTO_CAL_CONFIG); in tegra_eqos_fix_speed() 222 value, in tegra_eqos_fix_speed() 223 value & AUTO_CAL_STATUS_ACTIVE, in tegra_eqos_fix_speed() 231 value, in tegra_eqos_fix_speed() 232 (value & AUTO_CAL_STATUS_ACTIVE) == 0, in tegra_eqos_fix_speed() 244 value = readl(eqos->regs + AUTO_CAL_CONFIG); in tegra_eqos_fix_speed() 245 value &= ~AUTO_CAL_CONFIG_ENABLE; in tegra_eqos_fix_speed() 258 u32 value; in tegra_eqos_init() local [all …]
|
/openbmc/linux/drivers/iio/imu/ |
H A D | adis.c | 45 .delay.value = adis->data->write_delay, in __adis_write_reg() 54 .delay.value = adis->data->write_delay, in __adis_write_reg() 63 .delay.value = adis->data->write_delay, in __adis_write_reg() 71 .delay.value = adis->data->write_delay, in __adis_write_reg() 77 .delay.value = adis->data->write_delay, in __adis_write_reg() 93 adis->tx[9] = (value >> 24) & 0xff; in __adis_write_reg() 95 adis->tx[7] = (value >> 16) & 0xff; in __adis_write_reg() 99 adis->tx[5] = (value >> 8) & 0xff; in __adis_write_reg() 103 adis->tx[3] = value & 0xff; in __adis_write_reg() 154 .delay.value = adis->data->read_delay, in __adis_read_reg() [all …]
|
/openbmc/qemu/hw/adc/ |
H A D | aspeed_adc.c | 96 uint32_t value = s->regs[reg]; in read_channel_sample() local 104 return value; in read_channel_sample() 112 uint32_t value = 0; in aspeed_adc_engine_read() local 139 value = s->regs[reg]; in aspeed_adc_engine_read() 154 value >>= 16; in aspeed_adc_engine_read() 164 return value; in aspeed_adc_engine_read() 182 value |= init; in aspeed_adc_engine_write() 208 value &= ASPEED_ADC_LH_MASK; in aspeed_adc_engine_write() 222 value &= 0xffff; in aspeed_adc_engine_write() 225 value &= 0xf; in aspeed_adc_engine_write() [all …]
|
/openbmc/linux/drivers/acpi/ |
H A D | processor_throttling.c | 645 u32 value = 0; in acpi_processor_get_throttling_fadt() local 678 if (value & 0x10) { in acpi_processor_get_throttling_fadt() 728 msr = value; in acpi_throttling_wrmsr() 750 u64 *value) in acpi_read_throttling_status() argument 782 u64 value) in acpi_write_throttling_state() argument 815 u64 value) in acpi_get_throttling_state() argument 848 u64 value; in acpi_processor_get_throttling_ptc() local 858 value = 0; in acpi_processor_get_throttling_ptc() 941 u32 value = 0; in acpi_processor_set_throttling_fadt() local 1015 u64 value; in acpi_processor_set_throttling_ptc() local [all …]
|
/openbmc/bmcweb/redfish-core/include/utils/ |
H A D | query_param.hpp | 255 if (value.empty()) in getExpandType() 259 switch (value[0]) in getExpandType() 273 value.remove_prefix(1); in getExpandType() 274 if (value.empty()) in getExpandType() 280 if (!value.starts_with(levels)) in getExpandType() 286 auto it = std::from_chars(value.begin(), value.end(), query.expandLevel); in getExpandType() 291 value.remove_prefix( in getExpandType() 293 return value == ")"; in getExpandType() 306 std::from_chars(value.begin(), value.end(), param); in getNumericParam() 378 query.filter = parseFilter(value); in getFilterParam() [all …]
|
/openbmc/linux/drivers/pinctrl/intel/ |
H A D | pinctrl-cherryview.c | 584 writel(value, reg); in chv_pctrl_writel() 610 writel(value, reg); in chv_writel() 686 u32 value; in chv_pinmux_set_mux() local 725 u32 value; in chv_gpio_clear_triggering() local 749 u32 value; in chv_gpio_request_enable() local 1144 if (value) in chv_gpio_set() 1179 int value) in chv_gpio_direction_output() argument 1216 u32 value, intr_line; in chv_gpio_irq_mask_unmask() local 1273 u32 intsel, value; in chv_gpio_irq_startup() local 1304 u32 value, intsel; in chv_gpio_set_intr_line() local [all …]
|
/openbmc/linux/drivers/platform/x86/ |
H A D | acer-wmi.c | 776 *value = result; in AMW0_get_u32() 796 if (value > 1) in AMW0_set_u32() 801 if (value > 1) in AMW0_set_u32() 806 if (value > 1) in AMW0_set_u32() 1048 if (value > 1) in WMID_set_u32() 1053 if (value > 1) in WMID_set_u32() 1058 if (value > 1) in WMID_set_u32() 1063 if (value > 1) in WMID_set_u32() 1564 u32 value; in read_brightness() local 1566 return value; in read_brightness() [all …]
|
/openbmc/linux/sound/firewire/bebob/ |
H A D | bebob_focusrite.c | 81 saffire_read_quad(struct snd_bebob *bebob, u64 offset, u32 *value) in saffire_read_quad() argument 92 *value = be32_to_cpu(tmp); in saffire_read_quad() 98 saffire_write_quad(struct snd_bebob *bebob, u64 offset, u32 value) in saffire_write_quad() argument 100 __be32 data = cpu_to_be32(value); in saffire_write_quad() 180 u32 value; /* clock source read from hw register */ in saffirepro_both_clk_src_get() local 194 value &= SAFFIREPRO_CLOCK_SOURCE_SELECT_MASK; in saffirepro_both_clk_src_get() 195 if (value >= SAFFIREPRO_CLOCK_SOURCE_COUNT || map[value] < 0) { in saffirepro_both_clk_src_get() 200 *id = (unsigned int)map[value]; in saffirepro_both_clk_src_get() 214 u32 value; in saffire_both_clk_src_get() local 216 err = saffire_read_quad(bebob, SAFFIRE_OFFSET_CLOCK_SOURCE, &value); in saffire_both_clk_src_get() [all …]
|
/openbmc/qemu/hw/audio/ |
H A D | lm4549.c | 157 uint32_t value = 0; in lm4549_read() local 161 value = regfile[offset]; in lm4549_read() 163 DPRINTF("read [0x%02x] = 0x%04x\n", offset, value); in lm4549_read() 165 return value; in lm4549_read() 169 hwaddr offset, uint32_t value) in lm4549_write() argument 182 regfile[LM4549_PCM_Front_DAC_Rate] = value; in lm4549_write() 183 DPRINTF("DAC rate change = %i\n", value); in lm4549_write() 187 as.freq = value; in lm4549_write() 203 value &= ~0xf; in lm4549_write() 205 regfile[LM4549_Powerdown_Ctrl_Stat] = value; in lm4549_write() [all …]
|
/openbmc/linux/drivers/net/ethernet/atheros/atlx/ |
H A D | atl1.c | 147 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in atl1_validate_option() 149 *value); in atl1_validate_option() 296 u32 value; in atl1_check_eeprom_exist() local 373 u32 value; in atl1_spi_read() local 905 u32 value; in atl1_set_mac_addr() local 1243 u32 value; in atl1_setup_mac_ctrl() local 1454 u32 value; in atl1_configure() local 1614 value = 0; in atl1_configure() 1627 u32 value; in atl1_pcie_patch() local 1739 u32 value; in atl1_update_mailbox() local [all …]
|
/openbmc/linux/drivers/acpi/acpica/ |
H A D | exfldio.c | 251 value); in acpi_ex_access_region() 347 if (!value) { in acpi_ex_field_datum_io() 351 value = &local_value; in acpi_ex_field_datum_io() 356 *value = 0; in acpi_ex_field_datum_io() 387 memcpy(value, in acpi_ex_field_datum_io() 415 value)) { in acpi_ex_field_datum_io() 427 value)); in acpi_ex_field_datum_io() 446 value, read_write); in acpi_ex_field_datum_io() 456 value)) { in acpi_ex_field_datum_io() 485 data_obj, value, in acpi_ex_field_datum_io() [all …]
|
/openbmc/qemu/hw/ssi/ |
H A D | npcm7xx_fiu.c | 151 uint64_t value = 0; in npcm7xx_fiu_flash_read() local 191 value = deposit64(value, 8 * i, 8, ssi_transfer(fiu->spi, 0)); in npcm7xx_fiu_flash_read() 199 return value; in npcm7xx_fiu_flash_read() 266 uint32_t value; in npcm7xx_fiu_ctrl_read() local 269 value = s->regs[reg]; in npcm7xx_fiu_ctrl_read() 274 value = 0; in npcm7xx_fiu_ctrl_read() 279 return value; in npcm7xx_fiu_ctrl_read() 384 uint32_t value = v; in npcm7xx_fiu_ctrl_write() local 403 s->regs[reg] = value; in npcm7xx_fiu_ctrl_write() 407 if (value & FIU_UMA_CTS_RDYST) { in npcm7xx_fiu_ctrl_write() [all …]
|
H A D | imx_spi.c | 282 uint32_t value = 0; in imx_spi_read() local 292 value = s->regs[index]; in imx_spi_read() 299 value = 0xdeadbeef; in imx_spi_read() 302 value = fifo32_pop(&s->rx_fifo); in imx_spi_read() 326 return (uint64_t)value; in imx_spi_read() 344 (uint32_t)value); in imx_spi_write() 354 change_mask = s->regs[index] ^ value; in imx_spi_write() 382 s->regs[ECSPI_STATREG] &= ~value; in imx_spi_write() 386 s->regs[ECSPI_CONREG] = value; in imx_spi_write() 417 !(value & ECSPI_CONREG_SMC)) { in imx_spi_write() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/pm/swsmu/smu11/ |
H A D | navi10_ppt.c | 557 uint32_t *value) in navi10_get_legacy_smu_metrics_data() argument 634 *value = UINT_MAX; in navi10_get_legacy_smu_metrics_data() 643 uint32_t *value) in navi10_get_smu_metrics_data() argument 723 *value = UINT_MAX; in navi10_get_smu_metrics_data() 809 *value = UINT_MAX; in navi12_get_legacy_smu_metrics_data() 898 *value = UINT_MAX; in navi12_get_smu_metrics_data() 1222 value); in navi10_get_current_clk_freq_by_table() 1309 i, value, in navi10_emit_clk_levels() 2444 uint32_t value) in navi10_od_setting_check_range() argument 2462 uint32_t value = 0; in navi10_overdrive_get_gfx_clk_base_voltage() local [all …]
|
/openbmc/linux/samples/bpf/ |
H A D | sockex1_kern.c | 11 __type(value, long); 19 long *value; in bpf_prog1() local 24 value = bpf_map_lookup_elem(&my_map, &index); in bpf_prog1() 25 if (value) in bpf_prog1() 26 __sync_fetch_and_add(value, skb->len); in bpf_prog1()
|
H A D | sampleip_kern.c | 18 __type(value, u32); 26 u32 *value, init_val = 1; in do_sample() local 29 value = bpf_map_lookup_elem(&ip_map, &ip); in do_sample() 30 if (value) in do_sample() 31 *value += 1; in do_sample()
|
/openbmc/linux/fs/9p/ |
H A D | acl.c | 23 void *value = NULL; in v9fs_fid_get_acl() local 32 value = kzalloc(size, GFP_NOFS); in v9fs_fid_get_acl() 33 if (!value) in v9fs_fid_get_acl() 36 size = v9fs_fid_xattr_get(fid, name, value, size); in v9fs_fid_get_acl() 43 kfree(value); in v9fs_fid_get_acl() 159 void *value = NULL; in v9fs_iop_set_acl() local 171 value = kzalloc(size, GFP_NOFS); in v9fs_iop_set_acl() 172 if (!value) { in v9fs_iop_set_acl() 219 kfree(value); in v9fs_iop_set_acl() 220 value = NULL; in v9fs_iop_set_acl() [all …]
|
/openbmc/linux/drivers/clk/starfive/ |
H A D | clk-starfive-jh71x0.c | 40 value |= readl_relaxed(reg) & ~mask; in jh71x0_clk_reg_rmw() 41 writel_relaxed(value, reg); in jh71x0_clk_reg_rmw() 156 jh71x0_clk_reg_rmw(clk, JH71X0_CLK_DIV_MASK, value); in jh71x0_clk_frac_set_rate() 163 u32 value = jh71x0_clk_reg_get(clk); in jh71x0_clk_get_parent() local 171 u32 value = (u32)index << JH71X0_CLK_MUX_SHIFT; in jh71x0_clk_set_parent() local 180 u32 value = jh71x0_clk_reg_get(clk); in jh71x0_clk_get_phase() local 182 return (value & JH71X0_CLK_INVERT) ? 180 : 0; in jh71x0_clk_get_phase() 188 u32 value; in jh71x0_clk_set_phase() local 191 value = 0; in jh71x0_clk_set_phase() 193 value = JH71X0_CLK_INVERT; in jh71x0_clk_set_phase() [all …]
|
/openbmc/linux/tools/perf/ |
H A D | builtin-help.c | 211 const char *value) in do_add_man_viewer_info() argument 216 new->info = strdup(value); in do_add_man_viewer_info() 229 const char *value) in add_man_viewer_path() argument 232 do_add_man_viewer_info(name, len, value); in add_man_viewer_path() 241 const char *value) in add_man_viewer_cmd() argument 262 if (!value) in add_man_viewer_info() 267 if (!value) in add_man_viewer_info() 281 if (!value) in perf_help_config() 289 if (!value) in perf_help_config() 291 add_man_viewer(value); in perf_help_config() [all …]
|
/openbmc/linux/sound/usb/line6/ |
H A D | pod.c | 204 pod->monitor_level = value; in line6_pod_process_message() 221 sysex[SYSEX_DATA_OFS + 1] = (value >> 12) & 0x0f; in pod_set_system_param_int() 222 sysex[SYSEX_DATA_OFS + 2] = (value >> 8) & 0x0f; in pod_set_system_param_int() 223 sysex[SYSEX_DATA_OFS + 3] = (value >> 4) & 0x0f; in pod_set_system_param_int() 224 sysex[SYSEX_DATA_OFS + 4] = (value) & 0x0f; in pod_set_system_param_int() 320 uinfo->value.integer.min = 0; in snd_pod_control_monitor_info() 321 uinfo->value.integer.max = 65535; in snd_pod_control_monitor_info() 332 ucontrol->value.integer.value[0] = pod->monitor_level; in snd_pod_control_monitor_get() 343 if (ucontrol->value.integer.value[0] == pod->monitor_level) in snd_pod_control_monitor_put() 346 pod->monitor_level = ucontrol->value.integer.value[0]; in snd_pod_control_monitor_put() [all …]
|
/openbmc/phosphor-bmc-code-mgmt/ |
H A D | activation.cpp | 83 auto Activation::activation(Activations value) -> Activations in activation() argument 142 return softwareServer::Activation::activation(value); in activation() 157 return softwareServer::Activation::activation(value); in activation() 175 return softwareServer::Activation::activation(value); in activation() 271 auto Activation::requestedActivation(RequestedActivations value) in requestedActivation() argument 294 uint8_t RedundancyPriority::priority(uint8_t value) in priority() argument 299 parent.parent.savePriority(parent.versionId, value); in priority() 300 parent.parent.freePriority(value, parent.versionId); in priority() 304 uint8_t RedundancyPriority::sdbusPriority(uint8_t value) in sdbusPriority() argument 306 parent.parent.savePriority(parent.versionId, value); in sdbusPriority() [all …]
|