/openbmc/linux/drivers/gpu/drm/tests/ |
H A D | drm_cmdline_parser_test.c | 16 struct drm_cmdline_mode mode = { }; in drm_test_cmdline_force_e_only() local 20 &no_connector, &mode)); in drm_test_cmdline_force_e_only() 25 KUNIT_EXPECT_FALSE(test, mode.rb); in drm_test_cmdline_force_e_only() 26 KUNIT_EXPECT_FALSE(test, mode.cvt); in drm_test_cmdline_force_e_only() 34 struct drm_cmdline_mode mode = { }; in drm_test_cmdline_force_D_only_not_digital() local 38 &no_connector, &mode)); in drm_test_cmdline_force_D_only_not_digital() 43 KUNIT_EXPECT_FALSE(test, mode.rb); in drm_test_cmdline_force_D_only_not_digital() 44 KUNIT_EXPECT_FALSE(test, mode.cvt); in drm_test_cmdline_force_D_only_not_digital() 65 KUNIT_EXPECT_FALSE(test, mode.rb); in drm_test_cmdline_force_D_only_hdmi() 399 &connector, &mode)); in drm_test_cmdline_res_bpp_refresh_force_on_digital() [all …]
|
H A D | drm_modes_test.c | 42 struct drm_display_mode *mode; in drm_test_modes_analog_tv_ntsc_480i() local 44 mode = drm_analog_tv_mode(priv->drm, in drm_test_modes_analog_tv_ntsc_480i() 48 KUNIT_ASSERT_NOT_NULL(test, mode); in drm_test_modes_analog_tv_ntsc_480i() 63 KUNIT_EXPECT_EQ(test, mode->htotal, 858); in drm_test_modes_analog_tv_ntsc_480i() 66 KUNIT_EXPECT_EQ(test, mode->vtotal, 525); in drm_test_modes_analog_tv_ntsc_480i() 72 struct drm_display_mode *expected, *mode; in drm_test_modes_analog_tv_ntsc_480i_inlined() local 81 KUNIT_ASSERT_NOT_NULL(test, mode); in drm_test_modes_analog_tv_ntsc_480i_inlined() 89 struct drm_display_mode *mode; in drm_test_modes_analog_tv_pal_576i() local 91 mode = drm_analog_tv_mode(priv->drm, in drm_test_modes_analog_tv_pal_576i() 95 KUNIT_ASSERT_NOT_NULL(test, mode); in drm_test_modes_analog_tv_pal_576i() [all …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 142.out | 45 Cache mode: writeback 46 Cache mode: writeback 48 Cache mode: writeback 49 Cache mode: writeback 52 Cache mode: writeback 53 Cache mode: writeback 54 Cache mode: writeback 59 Cache mode: writeback 60 Cache mode: writeback 61 Cache mode: writeback [all …]
|
/openbmc/u-boot/drivers/video/ |
H A D | ati_radeon_fb.c | 322 mode->dac_cntl = 0xff002100; in radeon_setmode() 327 mode->crtc_pitch = 0x00500050; in radeon_setmode() 341 mode->clk_cntl_index = 0x300; in radeon_setmode() 342 mode->ppll_ref_div = 0xc; in radeon_setmode() 343 mode->ppll_div_3 = 0x00030059; in radeon_setmode() 396 mode->ppll_div_3 = 0x00010078; in radeon_setmode_9200() 399 mode->ppll_div_3 = 0x00010060; in radeon_setmode_9200() 427 mode->ppll_div_3 = 0x0002008c; in radeon_setmode_9200() 528 mode->clk_cntl_index = 0x300; in radeon_setmode_9200() 529 mode->ppll_ref_div = 0xc; in radeon_setmode_9200() [all …]
|
H A D | mxsfb.c | 94 writel((mode->yres << LCDIF_TRANSFER_COUNT_V_COUNT_OFFSET) | mode->xres, in mxs_lcd_init() 101 writel(mode->upper_margin + mode->lower_margin + in mxs_lcd_init() 102 mode->vsync_len + mode->yres, in mxs_lcd_init() 105 (mode->left_margin + mode->right_margin + in mxs_lcd_init() 106 mode->hsync_len + mode->xres), in mxs_lcd_init() 108 writel(((mode->left_margin + mode->hsync_len) << in mxs_lcd_init() 110 (mode->upper_margin + mode->vsync_len), in mxs_lcd_init() 158 struct ctfb_res_modes mode; in video_hw_init() local 173 mode.xres, mode.yres, bpp); in video_hw_init() 175 panel.winSizeX = mode.xres; in video_hw_init() [all …]
|
/openbmc/linux/sound/soc/codecs/ |
H A D | wcd-clsh-v2.c | 14 int mode; member 150 if (mode == CLS_H_HIFI || mode == CLS_H_LOHIFI || in wcd_clsh_v3_set_buck_mode() 151 mode == CLS_AB_HIFI || mode == CLS_AB_LOHIFI) in wcd_clsh_v3_set_buck_mode() 210 if (mode == CLS_H_LOHIFI || mode == CLS_H_ULP || in wcd_clsh_v3_buck_ctrl() 211 mode == CLS_H_HIFI || mode == CLS_H_LP) in wcd_clsh_v3_buck_ctrl() 225 int mode, in wcd_clsh_flyback_ctrl() argument 395 if (mode == CLS_H_HIFI || mode == CLS_H_LOHIFI || in wcd_clsh_v3_set_flyback_mode() 396 mode == CLS_AB_HIFI || mode == CLS_AB_LOHIFI) { in wcd_clsh_v3_set_flyback_mode() 428 if (mode == CLS_H_LOHIFI || mode == CLS_AB_LOHIFI) { in wcd_clsh_v3_force_iq_ctl() 480 int mode) in wcd_clsh_v3_set_flyback_current() argument [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_xdp_redirect_multi.sh | 78 local mode=$1 82 mode="xdpdrv" 106 local mode=$1 118 test_pass "$mode mac ns1-2" || test_fail "$mode mac ns1-2" 120 test_pass "$mode mac ns1-3" || test_fail "$mode mac ns1-3" 125 local mode=$1 176 local mode=$1 179 case ${mode} in 196 do_ping_tests $mode 207 setup_ns $mode [all …]
|
/openbmc/linux/drivers/interconnect/imx/ |
H A D | imx8mp.c | 24 .mode = IMX_NOC_MODE_FIXED, 29 .mode = IMX_NOC_MODE_FIXED, 34 .mode = IMX_NOC_MODE_FIXED, 39 .mode = IMX_NOC_MODE_FIXED, 44 .mode = IMX_NOC_MODE_FIXED, 49 .mode = IMX_NOC_MODE_FIXED, 54 .mode = IMX_NOC_MODE_FIXED, 59 .mode = IMX_NOC_MODE_FIXED, 64 .mode = IMX_NOC_MODE_FIXED, 69 .mode = IMX_NOC_MODE_FIXED, [all …]
|
/openbmc/linux/drivers/net/wireless/ath/ath5k/ |
H A D | eeprom.c | 259 switch (mode) { in ath5k_eeprom_read_modes() 285 ee->ee_thr_62[mode] = mode == AR5K_EEPROM_MODE_11A ? 15 : 28; in ath5k_eeprom_read_modes() 353 switch (mode) { in ath5k_eeprom_read_modes() 426 switch (mode) { in ath5k_eeprom_read_modes() 485 for (mode = AR5K_EEPROM_MODE_11A; mode <= AR5K_EEPROM_MODE_11G; mode++) { in ath5k_eeprom_init_modes() 606 switch (mode) { in ath5k_eeprom_init_11bg_2413() 619 mode); in ath5k_eeprom_init_11bg_2413() 1572 int mode; in ath5k_eeprom_read_pcal_info() local 1586 mode++) { in ath5k_eeprom_read_pcal_info() 1778 u8 mode; in ath5k_eeprom_detach() local [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/pci/ |
H A D | agp.c | 31 int mode; member 66 if ((mode | pci->agp.mode) & PCI_AGP_COMMAND_FW) { in nvkm_agp_preinit() 67 mode = pci->agp.mode & ~PCI_AGP_COMMAND_FW; in nvkm_agp_preinit() 110 int mode = -1; in nvkm_agp_ctor() local 120 mode = 0; in nvkm_agp_ctor() 122 mode = nvkm_longopt(device->cfgopt, "NvAGP", mode); in nvkm_agp_ctor() 132 pci->agp.mode = info.mode; in nvkm_agp_ctor() 149 mode = quirk->mode; in nvkm_agp_ctor() 156 if (mode >= 1) { in nvkm_agp_ctor() 160 pci->agp.mode |= (mode & 0x7); in nvkm_agp_ctor() [all …]
|
/openbmc/u-boot/drivers/video/sunxi/ |
H A D | lcdc.c | 20 delay = mode->vfront_porch.typ + mode->vsync_len.typ + in lcdc_get_clk_delay() 21 mode->vback_porch.typ; in lcdc_get_clk_delay() 93 bp = mode->hsync_len.typ + mode->hback_porch.typ; in lcdc_tcon0_mode_set() 94 total = mode->hactive.typ + mode->hfront_porch.typ + bp; in lcdc_tcon0_mode_set() 98 bp = mode->vsync_len.typ + mode->vback_porch.typ; in lcdc_tcon0_mode_set() 99 total = mode->vactive.typ + mode->vfront_porch.typ + bp; in lcdc_tcon0_mode_set() 166 yres = mode->vactive.typ; in lcdc_tcon1_mode_set() 176 bp = mode->hsync_len.typ + mode->hback_porch.typ; in lcdc_tcon1_mode_set() 177 total = mode->hactive.typ + mode->hfront_porch.typ + bp; in lcdc_tcon1_mode_set() 181 bp = mode->vsync_len.typ + mode->vback_porch.typ; in lcdc_tcon1_mode_set() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
H A D | pad.c | 31 if (pad->func->mode) in nvkm_i2c_pad_mode_locked() 32 pad->func->mode(pad, mode); in nvkm_i2c_pad_mode_locked() 38 PAD_TRACE(pad, "mode %d", mode); in nvkm_i2c_pad_mode() 40 nvkm_i2c_pad_mode_locked(pad, mode); in nvkm_i2c_pad_mode() 41 pad->mode = mode; in nvkm_i2c_pad_mode() 49 if (pad->mode == NVKM_I2C_PAD_OFF) in nvkm_i2c_pad_release() 59 if (pad->mode != mode) { in nvkm_i2c_pad_acquire() 60 if (pad->mode != NVKM_I2C_PAD_OFF) { in nvkm_i2c_pad_acquire() 64 nvkm_i2c_pad_mode_locked(pad, mode); in nvkm_i2c_pad_acquire() 80 nvkm_i2c_pad_mode_locked(pad, pad->mode); in nvkm_i2c_pad_init() [all …]
|
/openbmc/linux/drivers/gpu/ipu-v3/ |
H A D | ipu-di.c | 205 u32 h_total = sig->mode.hactive + sig->mode.hsync_len + in ipu_di_sync_config_interlaced() 206 sig->mode.hback_porch + sig->mode.hfront_porch; in ipu_di_sync_config_interlaced() 207 u32 v_total = sig->mode.vactive + sig->mode.vsync_len + in ipu_di_sync_config_interlaced() 208 sig->mode.vback_porch + sig->mode.vfront_porch; in ipu_di_sync_config_interlaced() 268 u32 h_total = sig->mode.hactive + sig->mode.hsync_len + in ipu_di_sync_config_noninterlaced() 269 sig->mode.hback_porch + sig->mode.hfront_porch; in ipu_di_sync_config_noninterlaced() 270 u32 v_total = sig->mode.vactive + sig->mode.vsync_len + in ipu_di_sync_config_noninterlaced() 271 sig->mode.vback_porch + sig->mode.vfront_porch; in ipu_di_sync_config_noninterlaced() 511 mode->hfront_porch < ALIGN(mode->hactive, 8) - mode->hactive) { in ipu_di_adjust_videomode() 527 mode->vsync_len = mode->vsync_len - diff; in ipu_di_adjust_videomode() [all …]
|
/openbmc/u-boot/drivers/clk/ |
H A D | mpc83xx_clk.h | 165 mode->low = low; in set_mode() 166 mode->high = high; in set_mode() 167 mode->type = type; in set_mode() 193 set_mode(mode, 0, 0, TYPE_SPECIAL); in retrieve_mode() 203 set_mode(mode, 0, 1, TYPE_SCCR_STANDARD); in retrieve_mode() 207 set_mode(mode, 2, 3, TYPE_SCCR_STANDARD); in retrieve_mode() 212 set_mode(mode, 4, 5, TYPE_SCCR_STANDARD); in retrieve_mode() 215 set_mode(mode, 6, 7, TYPE_SCCR_STANDARD); in retrieve_mode() 236 set_mode(mode, 8, 9, TYPE_SCCR_STANDARD); in retrieve_mode() 239 set_mode(mode, 15, 15, TYPE_SCCR_ONOFF); in retrieve_mode() [all …]
|
/openbmc/linux/arch/x86/boot/ |
H A D | video-mode.c | 52 int mode_defined(u16 mode) in mode_defined() argument 61 if (mi->mode == mode) in mode_defined() 77 mode &= ~VIDEO_RECALC; in raw_set_mode() 87 mode == mi->mode || in raw_set_mode() 89 *real_mode = mi->mode; in raw_set_mode() 103 *real_mode = mix.mode = mode; in raw_set_mode() 145 int set_mode(u16 mode) in set_mode() argument 153 else if (mode == NORMAL_VGA) in set_mode() 154 mode = VIDEO_80x25; in set_mode() 156 mode = VIDEO_8POINT; in set_mode() [all …]
|
/openbmc/qemu/hw/display/ |
H A D | bochs-display.c | 56 BochsDisplayMode mode; member 164 memset(mode, 0, sizeof(*mode)); in bochs_display_get_mode() 169 mode->bytepp = 2; in bochs_display_get_mode() 187 mode->stride = virt_width * mode->bytepp; in bochs_display_get_mode() 188 mode->size = (uint64_t)mode->stride * mode->height; in bochs_display_get_mode() 189 mode->offset = ((uint64_t)vbe[VBE_DISPI_INDEX_X_OFFSET] * mode->bytepp + in bochs_display_get_mode() 192 if (mode->width < 64 || mode->height < 64) { in bochs_display_get_mode() 195 if (mode->offset + mode->size > s->vgamem) { in bochs_display_get_mode() 218 if (memcmp(&s->mode, &mode, sizeof(mode)) != 0) { in bochs_display_update() 220 s->mode = mode; in bochs_display_update() [all …]
|
/openbmc/qemu/hw/i2c/ |
H A D | smbus_slave.c | 73 switch (dev->mode) { in smbus_i2c_event() 87 switch (dev->mode) { in smbus_i2c_event() 113 if (dev->mode == SMBUS_WRITE_DATA || dev->mode == SMBUS_READ_DATA) { in smbus_i2c_event() 117 switch (dev->mode) { in smbus_i2c_event() 131 dev->mode = SMBUS_IDLE; in smbus_i2c_event() 136 switch (dev->mode) { in smbus_i2c_event() 142 dev->mode = SMBUS_DONE; in smbus_i2c_event() 165 switch (dev->mode) { in smbus_i2c_recv() 175 dev->mode = SMBUS_CONFUSED; in smbus_i2c_recv() 186 switch (dev->mode) { in smbus_i2c_send() [all …]
|
/openbmc/linux/net/ipv4/ |
H A D | sysctl_net_ipv4.c | 78 .mode = table->mode, in ipv4_local_port_range() 114 .mode = table->mode, in ipv4_privileged_ports() 174 .mode = table->mode, in ipv4_ping_group_range() 476 .mode = 0644, 483 .mode = 0644, 490 .mode = 0644, 497 .mode = 0644, 504 .mode = 0644, 511 .mode = 0644, 519 .mode = 0644, [all …]
|
/openbmc/linux/tools/perf/util/ |
H A D | demangle-java.c | 62 if (mode == MODE_PREFIX || mode == MODE_TYPE) { in __demangle_java_sym() 69 mode = MODE_CLASS; in __demangle_java_sym() 71 mode = MODE_CTYPE; in __demangle_java_sym() 104 if (mode != MODE_TYPE) in __demangle_java_sym() 109 if (mode != MODE_FUNC) in __demangle_java_sym() 112 mode = MODE_TYPE; in __demangle_java_sym() 115 if (mode != MODE_TYPE) in __demangle_java_sym() 121 if (mode != MODE_CLASS && mode != MODE_CTYPE) in __demangle_java_sym() 127 mode = MODE_FUNC; in __demangle_java_sym() 129 mode = MODE_TYPE; in __demangle_java_sym() [all …]
|
/openbmc/openbmc/poky/bitbake/lib/bb/compress/ |
H A D | _pipecompress.py | 42 if "t" in mode: 43 if "b" in mode: 61 if "t" in mode: 94 if "t" in mode or "U" in mode: 97 if not "b" in mode: 98 mode += "b" 100 if mode.startswith("r"): 101 self.mode = self.READ 102 elif mode.startswith("w"): 103 self.mode = self.WRITE [all …]
|
/openbmc/linux/drivers/video/fbdev/ |
H A D | macmodes.c | 142 const struct fb_videomode *mode; member 228 mode = map->mode; in mac_vmode_to_var() 231 if (!mode) in mac_vmode_to_var() 271 var->xres = mode->xres; in mac_vmode_to_var() 272 var->yres = mode->yres; in mac_vmode_to_var() 284 var->sync = mode->sync; in mac_vmode_to_var() 285 var->vmode = mode->vmode; in mac_vmode_to_var() 322 const struct fb_videomode *mode = map->mode; in mac_var_to_vmode() local 324 if (var->xres > mode->xres || var->yres > mode->yres) in mac_var_to_vmode() 326 if (var->xres_virtual > mode->xres || var->yres_virtual > mode->yres) in mac_var_to_vmode() [all …]
|
/openbmc/linux/drivers/phy/hisilicon/ |
H A D | phy-histb-combphy.c | 81 struct histb_combphy_mode *mode = &priv->mode; in histb_combphy_set_mode() local 85 if (is_mode_fixed(mode)) in histb_combphy_set_mode() 88 switch (mode->select) { in histb_combphy_set_mode() 102 return regmap_update_bits(syscon, mode->reg, mode->mask, in histb_combphy_set_mode() 169 struct histb_combphy_mode *mode = &priv->mode; in histb_combphy_xlate() local 178 if (mode->select < PHY_TYPE_SATA || mode->select > PHY_TYPE_USB3) { in histb_combphy_xlate() 183 if (is_mode_fixed(mode) && mode->select != mode->fixed) { in histb_combphy_xlate() 185 mode->select, mode->fixed); in histb_combphy_xlate() 218 mode = &priv->mode; in histb_combphy_probe() 233 mode->reg = vals[0]; in histb_combphy_probe() [all …]
|
/openbmc/linux/tools/spi/ |
H A D | spidev_test.c | 39 static uint32_t mode; variable 266 mode |= SPI_LOOP; in parse_opts() 269 mode |= SPI_CPHA; in parse_opts() 272 mode |= SPI_CPOL; in parse_opts() 278 mode |= SPI_CS_HIGH; in parse_opts() 281 mode |= SPI_3WIRE; in parse_opts() 293 mode |= SPI_NO_CS; in parse_opts() 299 mode |= SPI_READY; in parse_opts() 305 mode |= SPI_TX_DUAL; in parse_opts() 456 request = mode; in main() [all …]
|
/openbmc/linux/drivers/gpu/drm/msm/disp/mdp4/ |
H A D | mdp4_dsi_encoder.c | 42 struct drm_display_mode *mode, in mdp4_dsi_encoder_mode_set() argument 50 mode = adjusted_mode; in mdp4_dsi_encoder_mode_set() 55 if (mode->flags & DRM_MODE_FLAG_NHSYNC) in mdp4_dsi_encoder_mode_set() 57 if (mode->flags & DRM_MODE_FLAG_NVSYNC) in mdp4_dsi_encoder_mode_set() 63 hsync_start_x = (mode->htotal - mode->hsync_start); in mdp4_dsi_encoder_mode_set() 64 hsync_end_x = mode->htotal - (mode->hsync_start - mode->hdisplay) - 1; in mdp4_dsi_encoder_mode_set() 66 vsync_period = mode->vtotal * mode->htotal; in mdp4_dsi_encoder_mode_set() 67 vsync_len = (mode->vsync_end - mode->vsync_start) * mode->htotal; in mdp4_dsi_encoder_mode_set() 68 display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + dsi_hsync_skew; in mdp4_dsi_encoder_mode_set() 69 …display_v_end = vsync_period - ((mode->vsync_start - mode->vdisplay) * mode->htotal) + dsi_hsync_s… in mdp4_dsi_encoder_mode_set() [all …]
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_modes.c | 456 mode->hsync_start = mode->hdisplay + hfp; in fill_analog_mode() 458 mode->htotal = mode->hsync_end + hbp; in fill_analog_mode() 504 mode->vsync_start = mode->vdisplay + vfp; in fill_analog_mode() 506 mode->vtotal = mode->vsync_end + vbp; in fill_analog_mode() 1273 mode->hdisplay, mode->vdisplay, in drm_mode_set_name() 1294 den = mode->htotal * mode->vtotal; in drm_mode_vrefresh() 1640 mode->hsync_start < mode->hdisplay || in drm_mode_validate_basic() 1642 mode->htotal < mode->hsync_end) in drm_mode_validate_basic() 1646 mode->vsync_start < mode->vdisplay || in drm_mode_validate_basic() 1648 mode->vtotal < mode->vsync_end) in drm_mode_validate_basic() [all …]
|