| /openbmc/qemu/tests/tcg/i386/ |
| H A D | test-i386-fp-exceptions.c | 41 short sw; in main() local 50 __asm__ volatile ("fnstsw" : "=a" (sw)); in main() 51 if ((sw & EXC) != IE) { in main() 57 __asm__ volatile ("fnstsw" : "=a" (sw)); in main() 58 if ((sw & EXC) != IE) { in main() 65 __asm__ volatile ("fnstsw" : "=a" (sw)); in main() 66 if ((sw & EXC) != (UE | PE)) { in main() 72 __asm__ volatile ("fnstsw" : "=a" (sw)); in main() 73 if ((sw & EXC) != (UE | PE)) { in main() 80 __asm__ volatile ("fnstsw" : "=a" (sw)); in main() [all …]
|
| H A D | test-i386-fxam.c | 30 short sw; in main() local 32 __asm__ volatile ("fxam\nfnstsw" : "=a" (sw) : "t" (0.0L)); in main() 33 if ((sw & FLAGS) != C3) { in main() 37 __asm__ volatile ("fxam\nfnstsw" : "=a" (sw) : "t" (-0.0L)); in main() 38 if ((sw & FLAGS) != (C3 | C1)) { in main() 42 __asm__ volatile ("fxam\nfnstsw" : "=a" (sw) : "t" (1.0L)); in main() 43 if ((sw & FLAGS) != C2) { in main() 47 __asm__ volatile ("fxam\nfnstsw" : "=a" (sw) : "t" (-1.0L)); in main() 48 if ((sw & FLAGS) != (C2 | C1)) { in main() 52 __asm__ volatile ("fxam\nfnstsw" : "=a" (sw) : "t" (__builtin_infl())); in main() [all …]
|
| H A D | test-i386-fprem.c | 109 static long double fprem(long double a, long double b, uint16_t *sw) in fprem() argument 114 : "=t" (result), "=m" (*sw) in fprem() 120 static long double fprem1(long double a, long double b, uint16_t *sw) in fprem1() argument 125 : "=t" (result), "=m" (*sw) in fprem1() 150 static void psw(uint16_t sw) in psw() argument 154 sw & FPUS_B ? 'B' : 'b', in psw() 155 !!(sw & FPUS_C3), in psw() 156 (sw & FPUS_TOP) >> 11, in psw() 157 !!(sw & FPUS_C2), in psw() 158 !!(sw & FPUS_C1), in psw() [all …]
|
| /openbmc/u-boot/board/imgtec/malta/ |
| H A D | lowlevel_init.S | 67 sw t0, GT_ISD_OFS(t1) 74 sw t0, GT_PCI0IOLD_OFS(t1) 76 sw t0, GT_PCI0IOHD_OFS(t1) 80 sw t0, GT_PCI0M0LD_OFS(t1) 82 sw t0, GT_PCI0M0HD_OFS(t1) 85 sw t0, GT_PCI0M1LD_OFS(t1) 87 sw t0, GT_PCI0M1HD_OFS(t1) 99 sw t1, MSC01_PBC_CLKCFG_OFS(t0) 104 sw t1, MSC01_PBC_CS0TIM_OFS(t0) 109 sw t1, MSC01_PBC_CS0RW_OFS(t0) [all …]
|
| /openbmc/qemu/audio/ |
| H A D | audio_template.h | 103 static void glue (audio_pcm_sw_free_resources_, TYPE) (SW *sw) in glue() 105 g_free(sw->resample_buf.buffer); in glue() 106 sw->resample_buf.buffer = NULL; in glue() 107 sw->resample_buf.size = 0; in glue() 109 if (sw->rate) { in glue() 110 st_rate_stop (sw->rate); in glue() 112 sw->rate = NULL; in glue() 115 static int glue (audio_pcm_sw_alloc_resources_, TYPE) (SW *sw) in glue() 117 HW *hw = sw->hw; in glue() 120 if (!glue(audio_get_pdo_, TYPE)(sw->s->dev)->mixing_engine) { in glue() [all …]
|
| H A D | audio.c | 55 #define SW_NAME(sw) (sw)->name ? (sw)->name : "unknown" argument 426 SWVoiceOut *sw; in audio_recalc_and_notify_capture() local 429 for (sw = hw->sw_head.lh_first; sw; sw = sw->entries.le_next) { in audio_recalc_and_notify_capture() 430 if (sw->active) { in audio_recalc_and_notify_capture() 444 SWVoiceOut *sw = &sc->sw; in audio_detach_capture() local 446 int was_active = sw->active; in audio_detach_capture() 448 if (sw->rate) { in audio_detach_capture() 449 st_rate_stop (sw->rate); in audio_detach_capture() 450 sw->rate = NULL; in audio_detach_capture() 453 QLIST_REMOVE (sw, entries); in audio_detach_capture() [all …]
|
| H A D | audio.h | 109 SWVoiceOut *sw, 116 void AUD_close_out (QEMUSoundCard *card, SWVoiceOut *sw); 117 size_t AUD_write (SWVoiceOut *sw, void *pcm_buf, size_t size); 118 int AUD_get_buffer_size_out (SWVoiceOut *sw); 119 void AUD_set_active_out (SWVoiceOut *sw, int on); 120 int AUD_is_active_out (SWVoiceOut *sw); 122 void AUD_init_time_stamp_out (SWVoiceOut *sw, QEMUAudioTimeStamp *ts); 123 uint64_t AUD_get_elapsed_usec_out (SWVoiceOut *sw, QEMUAudioTimeStamp *ts); 125 void AUD_set_volume_out (SWVoiceOut *sw, int mute, uint8_t lvol, uint8_t rvol); 126 void AUD_set_volume_in (SWVoiceIn *sw, int mute, uint8_t lvol, uint8_t rvol); [all …]
|
| /openbmc/u-boot/board/freescale/corenet_ds/ |
| H A D | corenet_ds.c | 26 u8 sw; in checkboard() local 38 sw = in_8(&PIXIS_SW(PIXIS_LBMAP_SWITCH)); in checkboard() 39 sw = (sw & PIXIS_LBMAP_MASK) >> PIXIS_LBMAP_SHIFT; in checkboard() 41 if (sw < 0x8) in checkboard() 42 printf("vBank: %d\n", sw); in checkboard() 43 else if (sw == 0x8) in checkboard() 45 else if (sw == 0x9) in checkboard() 60 sw = in_8(&PIXIS_SW(5)); in checkboard() 62 unsigned int clock = (sw >> (6 - (2 * i))) & 3; in checkboard() 68 sw = in_8(&PIXIS_SW(9)); in checkboard() [all …]
|
| /openbmc/u-boot/board/freescale/common/ |
| H A D | mc34vr500.c | 20 int mc34vr500_get_sw_volt(uint8_t sw) in mc34vr500_get_sw_volt() argument 29 __func__, sw + 1, swxvolt_addr[sw]); in mc34vr500_get_sw_volt() 30 if (sw > SW4) { in mc34vr500_get_sw_volt() 31 printf("%s: Unsupported SW(sw%d)\n", __func__, sw + 1); in mc34vr500_get_sw_volt() 45 ret = pmic_reg_read(p, swxvolt_addr[sw], &swxvolt); in mc34vr500_get_sw_volt() 47 printf("%s: Failed to get SW%u volt\n", __func__, sw + 1); in mc34vr500_get_sw_volt() 51 debug("%s: SW%d step point swxvolt = %u\n", __func__, sw + 1, swxvolt); in mc34vr500_get_sw_volt() 52 spb = swx_set_point_base[sw]; in mc34vr500_get_sw_volt() 56 debug("%s: SW%u volt = %dmV\n", __func__, sw + 1, sw_volt); in mc34vr500_get_sw_volt() 60 int mc34vr500_set_sw_volt(uint8_t sw, int sw_volt) in mc34vr500_set_sw_volt() argument [all …]
|
| /openbmc/phosphor-bmc-code-mgmt/test/common/software/ |
| H A D | software.cpp | 43 auto sw = std::make_unique<Software>(ctx, *device); in TEST_F() local 46 EXPECT_EQ(sw->softwareActivationProgress, nullptr); in TEST_F() 51 auto sw = std::make_unique<ExampleSoftware>(ctx, *device); in TEST_F() local 53 EXPECT_EQ(sw->getPurpose(), std::nullopt); in TEST_F() 55 sw->setVersion("swVersion"); in TEST_F() 56 EXPECT_EQ(sw->getPurpose(), SoftwareVersion::VersionPurpose::Unknown); in TEST_F() 61 auto sw = std::make_unique<Software>(ctx, *device); in TEST_F() local 67 EXPECT_TRUE(std::regex_match(sw->swid.c_str(), m, re)); in TEST_F() 72 auto sw = std::make_unique<ExampleSoftware>(ctx, *device); in TEST_F() local 74 debug("{PATH}", "PATH", sw->objectPath); in TEST_F() [all …]
|
| /openbmc/u-boot/board/freescale/t208xqds/ |
| H A D | t208xqds.c | 30 u8 sw; in checkboard() local 38 sw = QIXIS_READ(arch); in checkboard() 39 printf("Sys ID: 0x%02x, Board Arch: V%d, ", QIXIS_READ(id), sw >> 4); in checkboard() 40 printf("Board Version: %c, boot from ", (sw & 0xf) + 'A' - 1); in checkboard() 47 sw = QIXIS_READ(brdcfg[0]); in checkboard() 48 sw = (sw & QIXIS_LBMAP_MASK) >> QIXIS_LBMAP_SHIFT; in checkboard() 50 if (sw < 0x8) in checkboard() 51 printf("vBank%d\n", sw); in checkboard() 52 else if (sw == 0x8) in checkboard() 54 else if (sw == 0x9) in checkboard() [all …]
|
| /openbmc/u-boot/board/freescale/ls2080aqds/ |
| H A D | ls2080aqds.c | 62 u8 sw; in checkboard() local 70 sw = QIXIS_READ(arch); in checkboard() 71 printf("Board Arch: V%d, ", sw >> 4); in checkboard() 72 printf("Board version: %c, boot from ", (sw & 0xf) + 'A' - 1); in checkboard() 76 sw = QIXIS_READ(brdcfg[0]); in checkboard() 77 sw = (sw & QIXIS_LBMAP_MASK) >> QIXIS_LBMAP_SHIFT; in checkboard() 79 if (sw < 0x8) in checkboard() 80 printf("vBank: %d\n", sw); in checkboard() 81 else if (sw == 0x8) in checkboard() 83 else if (sw == 0x9) in checkboard() [all …]
|
| /openbmc/u-boot/board/freescale/t1040qds/ |
| H A D | t1040qds.c | 31 u8 sw; in checkboard() local 41 sw = QIXIS_READ(brdcfg[0]); in checkboard() 42 sw = (sw & QIXIS_LBMAP_MASK) >> QIXIS_LBMAP_SHIFT; in checkboard() 44 if (sw < 0x8) in checkboard() 45 printf("vBank: %d\n", sw); in checkboard() 46 else if (sw == 0x8) in checkboard() 48 else if (sw == 0x9) in checkboard() 50 else if (sw == 0x15) in checkboard() 70 sw = QIXIS_READ(brdcfg[2]); in checkboard() 71 clock = (sw >> 6) & 3; in checkboard() [all …]
|
| H A D | diu.c | 73 u8 sw; in platform_diu_init() local 76 sw = QIXIS_READ(brdcfg[5]); in platform_diu_init() 78 ((sw & ~(BRDCFG5_IMX_MASK)) | (BRDCFG5_IMX_DIU))); in platform_diu_init() 81 sw = QIXIS_READ(brdcfg[15]); in platform_diu_init() 83 ((sw & ~(BRDCFG15_LCDPD_MASK | BRDCFG15_DIUSEL_MASK)) in platform_diu_init()
|
| /openbmc/u-boot/arch/mips/mach-mt7620/ |
| H A D | lowlevel_init.S | 83 sw t3, 0(t0) 92 sw t1, 0(t0) 99 sw t3, 0(t0) 105 sw t3, 0(t0) 108 sw t3, 0(t0) 114 sw t2, 0x34(s0) 132 sw t4, 0x100(s2) 139 sw t4, 0x10c(s2) 145 sw t4, 0x10c(s2) 151 sw t2, 0x10c(s2) [all …]
|
| /openbmc/u-boot/board/freescale/ls2080ardb/ |
| H A D | ls2080ardb.c | 63 u8 sw; in checkboard() local 72 sw = QIXIS_READ(arch); in checkboard() 73 printf("Board version: %c, ", (sw & 0xf) + 'A'); in checkboard() 75 sw = QIXIS_READ(brdcfg[0]); in checkboard() 76 sw = (sw >> QIXIS_QMAP_SHIFT) & QIXIS_QMAP_MASK; in checkboard() 77 switch (sw) { in checkboard() 99 printf("invalid setting of SW%u\n", sw); in checkboard() 109 sw = QIXIS_READ(arch); in checkboard() 110 printf("Board Arch: V%d, ", sw >> 4); in checkboard() 111 printf("Board version: %c, boot from ", (sw & 0xf) + 'A'); in checkboard() [all …]
|
| /openbmc/u-boot/arch/mips/mach-ath79/qca953x/ |
| H A D | lowlevel_init.S | 105 sw t1, QCA953X_RESET_REG_RESET_MODULE(t0) 110 sw t1, QCA953X_RESET_REG_RESET_MODULE(t0) 116 sw t1, QCA953X_RTC_REG_SYNC_RESET(t0) 129 sw t1, QCA953X_SRIF_BB_DPLL2_REG(t0) 130 sw t1, QCA953X_SRIF_PCIE_DPLL2_REG(t0) 131 sw t1, QCA953X_SRIF_DDR_DPLL2_REG(t0) 132 sw t1, QCA953X_SRIF_CPU_DPLL2_REG(t0) 137 sw t1, QCA953X_PLL_CLK_CTRL_REG(t0) 141 sw t1, QCA953X_PLL_CPU_CONFIG_REG(t0) 145 sw t1, QCA953X_PLL_DDR_CONFIG_REG(t0) [all …]
|
| /openbmc/u-boot/board/freescale/t4rdb/ |
| H A D | t4240rdb.c | 29 u8 sw; in checkboard() local 35 sw = CPLD_READ(vbank); in checkboard() 36 sw = sw & CPLD_BANK_SEL_MASK; in checkboard() 38 if (sw <= 7) in checkboard() 39 printf("vBank: %d\n", sw); in checkboard() 41 printf("Unsupported Bank=%x\n", sw); in checkboard()
|
| /openbmc/u-boot/arch/mips/mach-ath79/ar933x/ |
| H A D | lowlevel_init.S | 84 sw t1, AR933X_RESET_REG_RESET_MODULE(t0) 89 sw t1, AR933X_RESET_REG_RESET_MODULE(t0) 106 sw t1, AR933X_RESET_REG_BOOTSTRAP(t0) 112 sw t1, AR933X_RTC_REG_FORCE_WAKE(t0) 118 sw t1, AR933X_RTC_REG_RESET(t0) 123 sw t1, AR933X_RTC_REG_RESET(t0) 145 sw t1, AR933X_SRIF_DDR_DPLL2_REG(t0) 153 sw t1, AR933X_SRIF_DDR_DPLL3_REG(t0) 159 sw t1, AR933X_PLL_CLK_CTRL_REG(t0) 172 sw t1, AR71XX_PLL_REG_SEC_CONFIG(t0) [all …]
|
| /openbmc/u-boot/board/freescale/p1022ds/ |
| H A D | diu.c | 341 int sw = set_mux_to_lbc(); in flash_write8() local 344 if (sw) { in flash_write8() 359 int sw = set_mux_to_lbc(); in flash_write16() local 362 if (sw) { in flash_write16() 377 int sw = set_mux_to_lbc(); in flash_write32() local 380 if (sw) { in flash_write32() 395 int sw = set_mux_to_lbc(); in flash_write64() local 408 if (sw) { in flash_write64() 427 int sw = set_mux_to_lbc(); in flash_read8() local 430 if (sw) in flash_read8() [all …]
|
| /openbmc/u-boot/board/freescale/t102xqds/ |
| H A D | t102xqds.c | 33 u8 sw = QIXIS_READ(arch); in checkboard() local 36 printf("Sys ID: 0x%02x, Board Arch: V%d, ", QIXIS_READ(id), sw >> 4); in checkboard() 37 printf("Board Version: %c, boot from ", (sw & 0xf) + 'A' - 1); in checkboard() 44 sw = QIXIS_READ(brdcfg[0]); in checkboard() 45 sw = (sw & QIXIS_LBMAP_MASK) >> QIXIS_LBMAP_SHIFT; in checkboard() 47 if (sw < 0x8) in checkboard() 48 printf("vBank: %d\n", sw); in checkboard() 49 else if (sw == 0x8) in checkboard() 51 else if (sw == 0x9) in checkboard() 53 else if (sw == 0x15) in checkboard() [all …]
|
| /openbmc/u-boot/board/freescale/t4qds/ |
| H A D | t4240qds.c | 42 u8 sw; in checkboard() local 50 sw = QIXIS_READ(brdcfg[0]); in checkboard() 51 sw = (sw & QIXIS_LBMAP_MASK) >> QIXIS_LBMAP_SHIFT; in checkboard() 53 if (sw < 0x8) in checkboard() 54 printf("vBank: %d\n", sw); in checkboard() 55 else if (sw == 0x8) in checkboard() 57 else if (sw == 0x9) in checkboard() 77 sw = QIXIS_READ(brdcfg[2]); in checkboard() 81 unsigned int clock = (sw >> (6 - 2 * i)) & 3; in checkboard() 639 u8 sw; in misc_init_r() local [all …]
|
| /openbmc/u-boot/board/freescale/ls1088a/ |
| H A D | ls1088a.c | 210 u8 sw; in checkboard() local 224 sw = QIXIS_READ(arch); in checkboard() 225 printf("Board Arch: V%d, ", sw >> 4); in checkboard() 228 printf("Board version: %c, boot from ", (sw & 0xf) + 'A' - 1); in checkboard() 230 printf("Board version: %c, boot from ", (sw & 0xf) + 'A'); in checkboard() 235 sw = QIXIS_READ(brdcfg[0]); in checkboard() 236 sw = (sw & QIXIS_LBMAP_MASK) >> QIXIS_LBMAP_SHIFT; in checkboard() 246 switch (sw) { in checkboard() 256 printf("vBank: %d\n", sw); in checkboard() 269 sw = QIXIS_READ(brdcfg[0]); in checkboard() [all …]
|
| /openbmc/u-boot/board/freescale/p2041rdb/ |
| H A D | p2041rdb.c | 27 u8 sw; in checkboard() local 35 sw = CPLD_READ(fbank_sel); in checkboard() 36 printf("vBank: %d\n", sw & 0x1); in checkboard() 47 sw = in_8(&CPLD_SW(2)) >> 2; in checkboard() 52 unsigned int clock = (sw >> (2 * i)) & 3; in checkboard() 167 u8 sw; in misc_init_r() local 174 sw = in_8(&CPLD_SW(2)) >> 2; in misc_init_r() 176 unsigned int clock = (sw >> (2 * i)) & 3; in misc_init_r()
|
| /openbmc/u-boot/board/freescale/lx2160a/ |
| H A D | lx2160a.c | 207 u8 sw; in checkboard() local 223 sw = QIXIS_READ(arch); in checkboard() 224 printf("Board version: %c, boot from ", (sw & 0xf) - 1 + 'A'); in checkboard() 229 sw = QIXIS_READ(brdcfg[0]); in checkboard() 230 sw = (sw >> QIXIS_XMAP_SHIFT) & QIXIS_XMAP_MASK; in checkboard() 231 switch (sw) { in checkboard() 244 printf("invalid setting, xmap: %d\n", sw); in checkboard() 256 sw = QIXIS_READ(brdcfg[2]); in checkboard() 257 clock = sw >> 4; in checkboard() 259 clock = sw & 0x0f; in checkboard() [all …]
|