/linux/drivers/gpu/drm/selftests/ |
A D | test-drm_cmdline_parser.c | 26 &mode)); in drm_cmdline_test_force_e_only() 31 FAIL_ON(mode.rb); in drm_cmdline_test_force_e_only() 32 FAIL_ON(mode.cvt); in drm_cmdline_test_force_e_only() 46 &mode)); in drm_cmdline_test_force_D_only_not_digital() 51 FAIL_ON(mode.rb); in drm_cmdline_test_force_D_only_not_digital() 52 FAIL_ON(mode.cvt); in drm_cmdline_test_force_D_only_not_digital() 70 &mode)); in drm_cmdline_test_force_D_only_hdmi() 75 FAIL_ON(mode.rb); in drm_cmdline_test_force_D_only_hdmi() 94 &mode)); in drm_cmdline_test_force_D_only_dvi() 134 &mode)); in drm_cmdline_test_margin_only() [all …]
|
/linux/sound/soc/codecs/ |
A D | wcd-clsh-v2.c | 14 int mode; member 156 if (mode == CLS_H_HIFI || mode == CLS_H_LOHIFI || in wcd_clsh_v3_set_buck_mode() 157 mode == CLS_AB_HIFI || mode == CLS_AB_LOHIFI) in wcd_clsh_v3_set_buck_mode() 216 if (mode == CLS_H_LOHIFI || mode == CLS_H_ULP || in wcd_clsh_v3_buck_ctrl() 217 mode == CLS_H_HIFI || mode == CLS_H_LP) in wcd_clsh_v3_buck_ctrl() 231 int mode, in wcd_clsh_flyback_ctrl() argument 400 if (mode == CLS_H_HIFI || mode == CLS_H_LOHIFI || in wcd_clsh_v3_set_flyback_mode() 401 mode == CLS_AB_HIFI || mode == CLS_AB_LOHIFI) { in wcd_clsh_v3_set_flyback_mode() 433 if (mode == CLS_H_LOHIFI || mode == CLS_AB_LOHIFI) { in wcd_clsh_v3_force_iq_ctl() 485 int mode) in wcd_clsh_v3_set_flyback_current() argument [all …]
|
A D | wl1273.c | 24 enum wl1273_mode mode; member 34 u16 mode; in snd_wl1273_fm_set_i2s_mode() local 45 mode |= WL1273_IS2_RATE_48K; in snd_wl1273_fm_set_i2s_mode() 51 mode |= WL1273_IS2_RATE_32K; in snd_wl1273_fm_set_i2s_mode() 57 mode |= WL1273_IS2_RATE_16K; in snd_wl1273_fm_set_i2s_mode() 60 mode |= WL1273_IS2_RATE_12K; in snd_wl1273_fm_set_i2s_mode() 66 mode |= WL1273_IS2_RATE_8K; in snd_wl1273_fm_set_i2s_mode() 76 mode |= WL1273_IS2_WIDTH_32; in snd_wl1273_fm_set_i2s_mode() 117 core->i2s_mode = mode; in snd_wl1273_fm_set_i2s_mode() 293 switch (wl1273->mode) { in wl1273_startup() [all …]
|
/linux/tools/testing/selftests/bpf/ |
A D | test_xdp_redirect_multi.sh | 75 local mode=$1 79 mode="xdpdrv" 104 local mode=$1 116 test_pass "$mode mac ns1-2" || test_fail "$mode mac ns1-2" 118 test_pass "$mode mac ns1-3" || test_fail "$mode mac ns1-3" 123 local mode=$1 174 local mode=$1 177 case ${mode} in 194 do_ping_tests $mode 205 setup_ns $mode [all …]
|
/linux/drivers/net/wireless/ath/ath5k/ |
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() 1569 int mode; in ath5k_eeprom_read_pcal_info() local 1583 mode++) { in ath5k_eeprom_read_pcal_info() 1775 u8 mode; in ath5k_eeprom_detach() local [all …]
|
/linux/net/ipv4/ |
A D | sysctl_net_ipv4.c | 76 .mode = table->mode, in ipv4_local_port_range() 112 .mode = table->mode, in ipv4_privileged_ports() 172 .mode = table->mode, in ipv4_ping_group_range() 482 .mode = 0644, 489 .mode = 0644, 496 .mode = 0644, 503 .mode = 0644, 510 .mode = 0644, 517 .mode = 0644, 525 .mode = 0644, [all …]
|
/linux/drivers/gpu/ipu-v3/ |
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() 510 mode->hfront_porch < ALIGN(mode->hactive, 8) - mode->hactive) { in ipu_di_adjust_videomode() 526 mode->vsync_len = mode->vsync_len - diff; in ipu_di_adjust_videomode() [all …]
|
/linux/drivers/gpu/drm/ |
A D | drm_modes.c | 91 if (!mode) in drm_mode_destroy() 745 mode->hdisplay, mode->vdisplay, in drm_mode_set_name() 762 if (mode->htotal == 0 || mode->vtotal == 0) in drm_mode_vrefresh() 766 den = mode->htotal * mode->vtotal; in drm_mode_vrefresh() 1093 mode->hsync_start < mode->hdisplay || in drm_mode_validate_basic() 1094 mode->hsync_end < mode->hsync_start || in drm_mode_validate_basic() 1095 mode->htotal < mode->hsync_end) in drm_mode_validate_basic() 1099 mode->vsync_start < mode->vdisplay || in drm_mode_validate_basic() 1100 mode->vsync_end < mode->vsync_start || in drm_mode_validate_basic() 1101 mode->vtotal < mode->vsync_end) in drm_mode_validate_basic() [all …]
|
/linux/kernel/ |
A D | sysctl.c | 209 .mode = table->mode, in bpf_stats_handler() 1752 .mode = table->mode, in proc_do_static_key() 1778 .mode = 0644, 1786 .mode = 0644, 1797 .mode = 0644, 1808 .mode = 0644, 1818 .mode = 0644, 1825 .mode = 0644, 1832 .mode = 0644, 1839 .mode = 0644, [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/pci/ |
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 …]
|
/linux/include/linux/ |
A D | debugfs.h | 69 struct dentry *debugfs_create_file(const char *name, umode_t mode, 76 void debugfs_create_file_size(const char *name, umode_t mode, 125 void debugfs_create_size_t(const char *name, umode_t mode, 127 void debugfs_create_atomic_t(const char *name, umode_t mode, 131 void debugfs_create_str(const char *name, umode_t mode, 134 struct dentry *debugfs_create_blob(const char *name, umode_t mode, 138 void debugfs_create_regset32(const char *name, umode_t mode, 145 void debugfs_create_u32_array(const char *name, umode_t mode, 188 umode_t mode, struct dentry *parent, 378 debugfs_create_x32(name, mode, parent, (u32 *)value); in debugfs_create_xul() [all …]
|
/linux/drivers/video/fbdev/core/ |
A D | modedb.c | 548 mode->name ? mode->name : "noname", in fb_try_mode() 549 mode->xres, mode->yres, bpp, mode->refresh); in fb_try_mode() 851 mode->name = NULL; in fb_var_to_videomode() 864 mode->refresh = 0; in fb_var_to_videomode() 966 mode = &modelist->mode; in fb_find_best_mode() 968 if (mode->xres >= var->xres && mode->yres >= var->yres) { in fb_find_best_mode() 973 best = mode; in fb_find_best_mode() 976 best = mode; in fb_find_best_mode() 1042 m = &modelist->mode; in fb_match_mode() 1066 m = &modelist->mode; in fb_add_videomode() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
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 …]
|
/linux/arch/x86/boot/ |
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 …]
|
/linux/drivers/video/fbdev/ |
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 …]
|
/linux/drivers/phy/hisilicon/ |
A D | phy-histb-combphy.c | 80 struct histb_combphy_mode *mode = &priv->mode; in histb_combphy_set_mode() local 84 if (is_mode_fixed(mode)) in histb_combphy_set_mode() 87 switch (mode->select) { in histb_combphy_set_mode() 101 return regmap_update_bits(syscon, mode->reg, mode->mask, in histb_combphy_set_mode() 168 struct histb_combphy_mode *mode = &priv->mode; in histb_combphy_xlate() local 177 if (mode->select < PHY_TYPE_SATA || mode->select > PHY_TYPE_USB3) { in histb_combphy_xlate() 182 if (is_mode_fixed(mode) && mode->select != mode->fixed) { in histb_combphy_xlate() 184 mode->select, mode->fixed); in histb_combphy_xlate() 217 mode = &priv->mode; in histb_combphy_probe() 232 mode->reg = vals[0]; in histb_combphy_probe() [all …]
|
/linux/tools/perf/util/ |
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 …]
|
/linux/drivers/hid/ |
A D | hid-saitek.c | 33 int mode; member 102 mode = 0; in saitek_raw_event() 104 mode = 1; in saitek_raw_event() 106 mode = 2; in saitek_raw_event() 111 if (mode != ssc->mode) { in saitek_raw_event() 117 ssc->mode = mode; in saitek_raw_event() 124 mode = 0; in saitek_raw_event() 126 mode = 1; in saitek_raw_event() 128 mode = 2; in saitek_raw_event() 134 if (mode != ssc->mode) { in saitek_raw_event() [all …]
|
/linux/drivers/gpu/drm/msm/disp/mdp4/ |
A D | mdp4_dsi_encoder.c | 40 struct drm_display_mode *mode, in mdp4_dsi_encoder_mode_set() argument 48 mode = adjusted_mode; in mdp4_dsi_encoder_mode_set() 53 if (mode->flags & DRM_MODE_FLAG_NHSYNC) in mdp4_dsi_encoder_mode_set() 55 if (mode->flags & DRM_MODE_FLAG_NVSYNC) in mdp4_dsi_encoder_mode_set() 61 hsync_start_x = (mode->htotal - mode->hsync_start); in mdp4_dsi_encoder_mode_set() 62 hsync_end_x = mode->htotal - (mode->hsync_start - mode->hdisplay) - 1; in mdp4_dsi_encoder_mode_set() 64 vsync_period = mode->vtotal * mode->htotal; in mdp4_dsi_encoder_mode_set() 65 vsync_len = (mode->vsync_end - mode->vsync_start) * mode->htotal; in mdp4_dsi_encoder_mode_set() 66 display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + dsi_hsync_skew; in mdp4_dsi_encoder_mode_set() 67 …display_v_end = vsync_period - ((mode->vsync_start - mode->vdisplay) * mode->htotal) + dsi_hsync_s… in mdp4_dsi_encoder_mode_set() [all …]
|
/linux/drivers/gpu/drm/shmobile/ |
A D | shmob_drm_crtc.c | 66 const struct drm_display_mode *mode = &crtc->mode; in shmob_drm_crtc_setup_geometry() local 106 | (((mode->hsync_end - mode->hsync_start) & 7) << 8) in shmob_drm_crtc_setup_geometry() 598 mode->clock = sdev->pdata->panel.mode.clock; in shmob_drm_connector_get_modes() 599 mode->hdisplay = sdev->pdata->panel.mode.hdisplay; in shmob_drm_connector_get_modes() 600 mode->hsync_start = sdev->pdata->panel.mode.hsync_start; in shmob_drm_connector_get_modes() 601 mode->hsync_end = sdev->pdata->panel.mode.hsync_end; in shmob_drm_connector_get_modes() 602 mode->htotal = sdev->pdata->panel.mode.htotal; in shmob_drm_connector_get_modes() 603 mode->vdisplay = sdev->pdata->panel.mode.vdisplay; in shmob_drm_connector_get_modes() 605 mode->vsync_end = sdev->pdata->panel.mode.vsync_end; in shmob_drm_connector_get_modes() 606 mode->vtotal = sdev->pdata->panel.mode.vtotal; in shmob_drm_connector_get_modes() [all …]
|
/linux/drivers/net/ethernet/ibm/emac/ |
A D | zmii.c | 48 mode == PHY_INTERFACE_MODE_RMII || in zmii_valid_mode() 49 mode == PHY_INTERFACE_MODE_SMII || in zmii_valid_mode() 50 mode == PHY_INTERFACE_MODE_NA; in zmii_valid_mode() 55 switch (mode) { in zmii_mode_name() 69 switch (mode) { in zmii_mode_mask() 82 phy_interface_t *mode) in zmii_attach() argument 89 if (!zmii_valid_mode(*mode)) { in zmii_attach() 118 dev->mode = *mode; in zmii_attach() 122 zmii_mode_name(dev->mode)); in zmii_attach() 125 if (*mode != PHY_INTERFACE_MODE_NA && *mode != dev->mode) { in zmii_attach() [all …]
|
/linux/drivers/net/ethernet/marvell/prestera/ |
A D | prestera_ethtool.c | 342 for (mode = 0; mode < PRESTERA_LINK_MODE_MAX; mode++) { in prestera_port_type_set() 362 u32 mode; in prestera_modes_to_eth() local 364 for (mode = 0; mode < PRESTERA_LINK_MODE_MAX; mode++) { in prestera_modes_to_eth() 375 for (mode = 0; mode < PRESTERA_PORT_FEC_MAX; mode++) { in prestera_modes_to_eth() 390 for (mode = 0; mode < PRESTERA_LINK_MODE_MAX; mode++) { in prestera_modes_from_eth() 400 for (mode = 0; mode < PRESTERA_PORT_FEC_MAX; mode++) { in prestera_modes_from_eth() 417 for (mode = 0; mode < PRESTERA_LINK_MODE_MAX; mode++) { in prestera_port_supp_types_get() 591 for (mode = 0; mode < PRESTERA_LINK_MODE_MAX; mode++) { in prestera_port_link_mode_set() 686 for (mode = 0; mode < PRESTERA_PORT_FEC_MAX; mode++) { in prestera_ethtool_get_fecparam() 720 for (mode = 0; mode < PRESTERA_PORT_FEC_MAX; mode++) { in prestera_ethtool_set_fecparam() [all …]
|
/linux/drivers/gpu/drm/sti/ |
A D | sti_vtg.c | 168 u32 xstop = sti_vtg_get_pixel_number(*mode, mode->hdisplay - 1); in vtg_set_output_window() 169 u32 ystop = sti_vtg_get_line_number(*mode, mode->vdisplay - 1); in vtg_set_output_window() 193 clocksperline = mode->htotal; in vtg_set_hsync_vsync_pos() 197 stop = mode->hsync_end - mode->hsync_start; in vtg_set_hsync_vsync_pos() 218 fallsync_top += mode->vsync_end - mode->vsync_start; in vtg_set_hsync_vsync_pos() 223 risesync_top = mode->vtotal; in vtg_set_hsync_vsync_pos() 224 fallsync_top = mode->vsync_end - mode->vsync_start; in vtg_set_hsync_vsync_pos() 241 const struct drm_display_mode *mode) in vtg_set_mode() argument 293 const struct drm_display_mode *mode) in sti_vtg_set_config() argument 317 u32 start_line = mode.vtotal - mode.vsync_start + 1; in sti_vtg_get_line_number() [all …]
|
/linux/drivers/gpu/drm/radeon/ |
A D | radeon_agp.c | 192 rdev->agp->mode = mode.mode; in radeon_agp_head_enable() 193 agp_enable(rdev->agp->bridge, mode.mode); in radeon_agp_head_enable() 208 info->mode = kern->mode; in radeon_agp_head_info() 253 mode.mode = info.mode; in radeon_agp_init() 260 agp_status = mode.mode; in radeon_agp_init() 303 mode.mode &= ~RADEON_AGP_MODE_MASK; in radeon_agp_init() 307 mode.mode |= RADEON_AGPv3_8X_MODE; in radeon_agp_init() 311 mode.mode |= RADEON_AGPv3_4X_MODE; in radeon_agp_init() 317 mode.mode |= RADEON_AGP_4X_MODE; in radeon_agp_init() 320 mode.mode |= RADEON_AGP_2X_MODE; in radeon_agp_init() [all …]
|
/linux/drivers/gpu/drm/gma500/ |
A D | oaktrail_lvds.c | 73 if (mode == DRM_MODE_DPMS_ON) in oaktrail_lvds_dpms() 140 mode->vdisplay) > (mode->hdisplay * in oaktrail_lvds_mode_set() 225 mode = kzalloc(sizeof(*mode), GFP_KERNEL); in oaktrail_lvds_get_configuration_mode() 226 if (!mode) in oaktrail_lvds_get_configuration_mode() 231 mode->hsync_start = mode->hdisplay + \ in oaktrail_lvds_get_configuration_mode() 234 mode->hsync_end = mode->hsync_start + \ in oaktrail_lvds_get_configuration_mode() 237 mode->htotal = mode->hdisplay + ((ti->hblank_hi << 8) | \ in oaktrail_lvds_get_configuration_mode() 239 mode->vsync_start = \ in oaktrail_lvds_get_configuration_mode() 242 mode->vsync_end = \ in oaktrail_lvds_get_configuration_mode() 245 mode->vtotal = mode->vdisplay + \ in oaktrail_lvds_get_configuration_mode() [all …]
|