Home
last modified time | relevance | path

Searched refs:sel (Results 1 – 25 of 151) sorted by relevance

1234567

/openbmc/phosphor-host-ipmid/
H A Dstoragehandler.cpp60 using namespace xyz::openbmc_project::logging::sel;
62 sdbusplus::error::xyz::openbmc_project::logging::sel::Created;
65 using SELEntry = ipmi::sel::SELEventRecordFormat;
86 return std::string(ipmi::sel::logBasePath) + "/" + std::to_string(id); in getLoggingObjPath()
95 ipmi::sel::GetSELEntryResponse record{}; in parseLoggingEntry()
96 record = ipmi::sel::convertLogEntrytoSEL(p); in parseLoggingEntry()
166 bus, interfacesAdded(ipmi::sel::logWatchPath), in registerSelCallbackHandler()
172 bus, interfacesRemoved(ipmi::sel::logWatchPath), in registerSelCallbackHandler()
181 argN(0, ipmi::sel::logEntryIntf), in registerSelCallbackHandler()
189 ipmi::sel in initSELCache()
[all...]
/openbmc/u-boot/drivers/power/regulator/
H A Dstpmu1.c44 static int stpmu1_output_find_uv(int sel, in stpmu1_output_find_uv() argument
52 if (sel >= range->min_sel && sel <= range->max_sel) in stpmu1_output_find_uv()
54 (sel - range->min_sel) * range->step; in stpmu1_output_find_uv()
140 int sel; in stpmu1_buck_get_uv() local
142 sel = pmic_reg_read(dev, STPMU1_BUCKX_CTRL_REG(buck)); in stpmu1_buck_get_uv()
143 if (sel < 0) in stpmu1_buck_get_uv()
144 return sel; in stpmu1_buck_get_uv()
146 sel &= STPMU1_BUCK_OUTPUT_MASK; in stpmu1_buck_get_uv()
147 sel >>= STPMU1_BUCK_OUTPUT_SHIFT; in stpmu1_buck_get_uv()
149 return stpmu1_output_find_uv(sel, &buck_voltage_range[buck]); in stpmu1_buck_get_uv()
[all …]
H A Dtps65910_regulator.c142 int sel, val, vout; in tps65910_regulator_get_value() local
149 sel = (val & TPS65910_SEL_MASK) >> 2; in tps65910_regulator_get_value()
150 vout = (vin >= *(rgp->vin_min + sel)) ? *(rgp->vout + sel) : 0; in tps65910_regulator_get_value()
195 int sel = 0; in tps65910_regulator_set_value() local
200 if (uV == *(ldo->vout + sel)) in tps65910_regulator_set_value()
202 } while (++sel < VOUT_CHOICE_COUNT); in tps65910_regulator_set_value()
203 if (sel == VOUT_CHOICE_COUNT) in tps65910_regulator_set_value()
205 if (pdata->supply < *(ldo->vin_min + sel)) in tps65910_regulator_set_value()
212 val |= sel << 2; in tps65910_regulator_set_value()
/openbmc/u-boot/arch/arm/mach-exynos/
H A Dclock.c640 unsigned int sel; in exynos4_get_pwm_clk() local
648 sel = readl(&clk->src_peril0); in exynos4_get_pwm_clk()
649 sel = (sel >> 24) & 0xf; in exynos4_get_pwm_clk()
651 if (sel == 0x6) in exynos4_get_pwm_clk()
653 else if (sel == 0x7) in exynos4_get_pwm_clk()
655 else if (sel == 0x8) in exynos4_get_pwm_clk()
697 unsigned int sel; in exynos4_get_uart_clk() local
709 sel = readl(&clk->src_peril0); in exynos4_get_uart_clk()
710 sel = (sel >> (dev_index << 2)) & 0xf; in exynos4_get_uart_clk()
712 if (sel == 0x6) in exynos4_get_uart_clk()
[all …]
/openbmc/qemu/target/i386/hvf/
H A Dx86.c51 x86_segment_selector sel) in x86_read_segment_descriptor() argument
59 if (!sel.index && GDT_SEL == sel.ti) { in x86_read_segment_descriptor()
63 if (GDT_SEL == sel.ti) { in x86_read_segment_descriptor()
71 if (sel.index * 8 >= limit) { in x86_read_segment_descriptor()
75 vmx_read_mem(cpu, desc, base + sel.index * 8, sizeof(*desc)); in x86_read_segment_descriptor()
81 x86_segment_selector sel) in x86_write_segment_descriptor() argument
86 if (GDT_SEL == sel.ti) { in x86_write_segment_descriptor()
94 if (sel.index * 8 >= limit) { in x86_write_segment_descriptor()
98 vmx_write_mem(cpu, base + sel.index * 8, desc, sizeof(*desc)); in x86_write_segment_descriptor()
H A Dx86_descr.c65 x86_segment_selector sel; in vmx_read_segment_selector() local
66 sel.sel = rvmcs(cpu->accel->fd, vmx_segment_fields[seg].selector); in vmx_read_segment_selector()
67 return sel; in vmx_read_segment_selector()
72 wvmcs(cpu->accel->fd, vmx_segment_fields[seg].selector, selector.sel); in vmx_write_segment_selector()
77 desc->sel = rvmcs(cpu->accel->fd, vmx_segment_fields[seg].selector); in vmx_read_segment_descriptor()
89 wvmcs(cpu->accel->fd, sf->selector, desc->sel); in vmx_write_segment_descriptor()
97 vmx_desc->sel = selector.sel; in x86_segment_descriptor_to_vmx()
101 vmx_desc->ar = (selector.sel ? 0 : 1) << 16 | in x86_segment_descriptor_to_vmx()
H A Dx86_task.c51 tss->es = vmx_read_segment_selector(cpu, R_ES).sel; in save_state_to_tss32()
52 tss->cs = vmx_read_segment_selector(cpu, R_CS).sel; in save_state_to_tss32()
53 tss->ss = vmx_read_segment_selector(cpu, R_SS).sel; in save_state_to_tss32()
54 tss->ds = vmx_read_segment_selector(cpu, R_DS).sel; in save_state_to_tss32()
55 tss->fs = vmx_read_segment_selector(cpu, R_FS).sel; in save_state_to_tss32()
56 tss->gs = vmx_read_segment_selector(cpu, R_GS).sel; in save_state_to_tss32()
102 if (old_tss_sel.sel != 0xffff) { in task_switch_32()
103 tss_seg.prev_tss = old_tss_sel.sel; in task_switch_32()
162 old_tss_sel.sel = 0xffff; in vmx_handle_task_switch()
/openbmc/openbmc/meta-ampere/meta-mitchell/recipes-ampere/platform/ampere-utils/
H A Dampere_firmware_upgrade.sh53 gpioset $(gpiofind spi0-program-sel)=1
58 gpioset $(gpiofind i2c-backup-sel)=0
61 gpioset $(gpiofind i2c-backup-sel)=1
72 gpioset $(gpiofind i2c-backup-sel)=0
75 gpioset $(gpiofind spi0-program-sel)=0
115 gpioset $(gpiofind jtag-program-sel)=1
125 gpioset $(gpiofind jtag-program-sel)=0
H A Dampere_flash_bios.sh92 if ! gpioset $(gpiofind spi0-program-sel)=1; then
101 gpioset $(gpiofind spi0-backup-sel)=1 # Primary SPI
104 gpioset $(gpiofind spi0-backup-sel)=0 # Second SPI
130 gpioset $(gpiofind spi0-backup-sel)=1 # Primary SPI
134 if ! gpioset $(gpiofind spi0-program-sel)=0; then
/openbmc/qemu/target/ppc/
H A Dpower8-pmu.c49 target_ulong sel; in pmu_update_summaries() local
51 sel = extract64(mmcr1, MMCR1_PMC1EVT_EXTR, MMCR1_EVT_SIZE); in pmu_update_summaries()
52 switch (sel) { in pmu_update_summaries()
63 sel = extract64(mmcr1, MMCR1_PMC2EVT_EXTR, MMCR1_EVT_SIZE); in pmu_update_summaries()
64 ins_cnt |= (sel == 0x02) << 2; in pmu_update_summaries()
65 cyc_cnt |= (sel == 0x1e) << 2; in pmu_update_summaries()
67 sel = extract64(mmcr1, MMCR1_PMC3EVT_EXTR, MMCR1_EVT_SIZE); in pmu_update_summaries()
68 ins_cnt |= (sel == 0x02) << 3; in pmu_update_summaries()
69 cyc_cnt |= (sel == 0x1e) << 3; in pmu_update_summaries()
71 sel = extract64(mmcr1, MMCR1_PMC4EVT_EXTR, MMCR1_EVT_SIZE); in pmu_update_summaries()
[all …]
/openbmc/openbmc/meta-ampere/meta-jefferson/recipes-ampere/platform/ampere-utils/
H A Dampere_flash_bios.sh86 if ! gpioset $(gpiofind spi0-program-sel)=1; then
95 gpioset $(gpiofind spi0-backup-sel)=1 # Primary SPI
98 gpioset $(gpiofind spi0-backup-sel)=0 # Second SPI
109 if ! gpioset $(gpiofind spi0-backup-sel)=1; then
116 if ! gpioset $(gpiofind spi0-program-sel)=0; then
H A Dampere_firmware_upgrade.sh43 gpioset $(gpiofind spi0-program-sel)=1
50 gpioset $(gpiofind spi0-program-sel)=0
95 gpioset $(gpiofind jtag-program-sel)=1
105 gpioset $(gpiofind jtag-program-sel)=0
/openbmc/qemu/target/mips/tcg/
H A Dtrace-events4 mips_translate_c0(const char *instr, const char *rn, int reg, int sel) "%s %s (reg %d sel %d)"
5 mips_translate_tr(const char *instr, int rt, int u, int sel, int h) "%s (reg %d u %d sel %d h %d)"
/openbmc/openbmc/meta-ampere/meta-jade/recipes-ampere/platform/ampere-utils/
H A Dampere_firmware_upgrade.sh62 gpioset $(gpiofind spi0-program-sel)=0
67 gpioset $(gpiofind i2c-backup-sel)=1 # Main EEPROM
70 gpioset $(gpiofind i2c-backup-sel)=0 # Second EEPROM
81 gpioset $(gpiofind i2c-backup-sel)=1
82 gpioset $(gpiofind spi0-program-sel)=1
H A Dampere_flash_bios.sh97 if ! gpioset $(gpiofind spi0-program-sel)=0; then
106 gpioset $(gpiofind spi0-backup-sel)=0 # Primary SPI
109 gpioset $(gpiofind spi0-backup-sel)=1 # Second SPI
120 if ! gpioset $(gpiofind spi0-program-sel)=1; then
/openbmc/u-boot/arch/arm/cpu/armv7/bcm281xx/
H A Dclk-core.c96 __func__, c->name, c->rate, c->div, c->sel, in peri_clk_enable()
120 if (selector_exists(&cd->sel)) { in peri_clk_enable()
121 reg = readl(base + cd->sel.offset); in peri_clk_enable()
122 bitfield_replace(reg, cd->sel.shift, cd->sel.width, in peri_clk_enable()
123 c->sel); in peri_clk_enable()
124 writel(reg, base + cd->sel.offset); in peri_clk_enable()
191 c->sel = i; in peri_clk_set_rate()
199 c->name, c->rate, c->div, c->sel, c->parent->rate); in peri_clk_set_rate()
215 if (selector_exists(&cd->sel)) { in peri_clk_get_rate()
216 reg = readl(base + cd->sel.offset); in peri_clk_get_rate()
[all …]
/openbmc/u-boot/arch/arm/cpu/armv7/bcm235xx/
H A Dclk-core.c96 __func__, c->name, c->rate, c->div, c->sel, in peri_clk_enable()
120 if (selector_exists(&cd->sel)) { in peri_clk_enable()
121 reg = readl(base + cd->sel.offset); in peri_clk_enable()
122 bitfield_replace(reg, cd->sel.shift, cd->sel.width, in peri_clk_enable()
123 c->sel); in peri_clk_enable()
124 writel(reg, base + cd->sel.offset); in peri_clk_enable()
191 c->sel = i; in peri_clk_set_rate()
199 c->name, c->rate, c->div, c->sel, c->parent->rate); in peri_clk_set_rate()
215 if (selector_exists(&cd->sel)) { in peri_clk_get_rate()
216 reg = readl(base + cd->sel.offset); in peri_clk_get_rate()
[all …]
/openbmc/qemu/tests/qtest/libqos/
H A Dfw_cfg.c120 uint16_t *sel, uint32_t *size) in find_pdir_entry() argument
130 *sel = 0; in find_pdir_entry()
141 *sel = be16_to_cpu(pdir_entry->select); in find_pdir_entry()
167 uint16_t sel; in qfw_cfg_get_file() local
169 if (find_pdir_entry(fw_cfg, filename, &sel, &len)) { in qfw_cfg_get_file()
174 qfw_cfg_get(fw_cfg, sel, data, len); in qfw_cfg_get_file()
201 uint16_t sel; in qfw_cfg_read_file() local
212 if (find_pdir_entry(fw_cfg, filename, &sel, &len)) { in qfw_cfg_read_file()
216 qfw_cfg_read_entry(fw_cfg, qs, sel, data, len); in qfw_cfg_read_file()
243 uint16_t sel; in qfw_cfg_write_file() local
[all …]
/openbmc/openbmc/meta-ampere/meta-jade/recipes-phosphor/gpio/phosphor-gpio-monitor/
H A Dampere_scp_failover.sh13 I2C_BACKUP_SEL=$(gpioget $(gpiofind i2c-backup-sel))
18 gpioset $(gpiofind i2c-backup-sel)=0
27 gpioset $(gpiofind i2c-backup-sel)=1
/openbmc/intel-ipmi-oem/src/
H A Dstoragecommands.cpp42 namespace intel_oem::ipmi::sel namespace
55 return ::ipmi::sel::invalidTimeStamp; in getFileTimestamp()
697 std::filesystem::directory_iterator(intel_oem::ipmi::sel::selLogDir)) in getSELLogFiles()
700 if (boost::starts_with(filename, intel_oem::ipmi::sel::selLogFilename)) in getSELLogFiles()
704 intel_oem::ipmi::sel::selLogDir / filename); in getSELLogFiles()
783 return ipmi::sel::lastEntry; in getNextRecordID()
818 constexpr uint8_t selVersion = ipmi::sel::selVersion; in ipmiStorageGetSELInfo()
820 uint32_t addTimeStamp = intel_oem::ipmi::sel::getFileTimestamp( in ipmiStorageGetSELInfo()
821 intel_oem::ipmi::sel::selLogDir / intel_oem::ipmi::sel::selLogFilename); in ipmiStorageGetSELInfo()
822 uint32_t eraseTimeStamp = intel_oem::ipmi::sel::erase_time::get(); in ipmiStorageGetSELInfo()
[all …]
/openbmc/qemu/target/mips/tcg/system/
H A Dcp0_helper.c413 target_ulong helper_mfc0_watchlo(CPUMIPSState *env, uint32_t sel) in helper_mfc0_watchlo() argument
415 return (int32_t)env->CP0_WatchLo[sel]; in helper_mfc0_watchlo()
418 target_ulong helper_mfc0_watchhi(CPUMIPSState *env, uint32_t sel) in helper_mfc0_watchhi() argument
420 return (int32_t) env->CP0_WatchHi[sel]; in helper_mfc0_watchhi()
423 target_ulong helper_mfhc0_watchhi(CPUMIPSState *env, uint32_t sel) in helper_mfhc0_watchhi() argument
425 return env->CP0_WatchHi[sel] >> 32; in helper_mfhc0_watchhi()
491 target_ulong helper_dmfc0_watchlo(CPUMIPSState *env, uint32_t sel) in helper_dmfc0_watchlo() argument
493 return env->CP0_WatchLo[sel]; in helper_dmfc0_watchlo()
496 target_ulong helper_dmfc0_watchhi(CPUMIPSState *env, uint32_t sel) in helper_dmfc0_watchhi() argument
498 return env->CP0_WatchHi[sel]; in helper_dmfc0_watchhi()
[all …]
/openbmc/phosphor-host-ipmid/dbus-sdr/
H A Dstoragecommands.cpp45 namespace dynamic_sensors::ipmi::sel namespace
58 return ::ipmi::sel::invalidTimeStamp; in getFileTimestamp()
741 dynamic_sensors::ipmi::sel::selLogDir)) in getSELLogFiles()
744 if (filename.starts_with(dynamic_sensors::ipmi::sel::selLogFilename)) in getSELLogFiles()
748 dynamic_sensors::ipmi::sel::selLogDir / filename); in getSELLogFiles()
827 return ipmi::sel::lastEntry; in getNextRecordID()
862 constexpr uint8_t selVersion = ipmi::sel::selVersion; in ipmiStorageGetSELInfo()
864 uint32_t addTimeStamp = dynamic_sensors::ipmi::sel::getFileTimestamp( in ipmiStorageGetSELInfo()
865 dynamic_sensors::ipmi::sel::selLogDir / in ipmiStorageGetSELInfo()
866 dynamic_sensors::ipmi::sel::selLogFilename); in ipmiStorageGetSELInfo()
[all …]
/openbmc/qemu/scripts/
H A Dget_maintainer.pl1433 my $sel = "";
1434 $sel = "*" if ($selected{$count});
1441 printf STDERR "%1s %2d %-65s", $sel, $count + 1, $email;
1506 my $sel = substr($nr, 0, 1);
1511 if ($sel eq "y") {
1519 } elsif ($sel eq "*" || $sel eq '^') {
1521 $toggle = 1 if ($sel eq '*');
1525 } elsif ($sel eq "0") {
1529 } elsif ($sel eq "t") {
1551 } elsif ($sel eq "a") {
[all …]
/openbmc/openbmc/meta-ampere/meta-jefferson/recipes-ampere/platform/ampere-platform-init/
H A Dampere_platform_init.sh53 gpioset $(gpiofind spi0-backup-sel)=1 # Select primary CPU's SPI
54 gpioset $(gpiofind spi0-program-sel)=0 # Switch SPI-NOR to Host
64 gpioset $(gpiofind jtag-sel-s0)=1 # Control JTAG MUX between CPU & FPGA
80 gpioset $(gpiofind s01-uart1-sel)=1 # Select Mpro0 as defaut
/openbmc/openbmc/meta-ampere/meta-jade/recipes-ampere/platform/mtjade-gpio-config/
H A Dampere_gpio_utils.sh19 gpioset $(gpiofind spi0-program-sel)=1
20 gpioset $(gpiofind spi0-backup-sel)=0

1234567