| /drivers/net/ethernet/intel/igc/ |
| A D | igc_mac.c | 92 if (hw->fc.current_mode & igc_fc_tx_pause) { in igc_set_fc_watermarks() 139 hw->fc.current_mode = hw->fc.requested_mode; in igc_setup_link() 200 hw_dbg("hw->fc.current_mode = %u\n", hw->fc.current_mode); in igc_force_mac_fc() 202 switch (hw->fc.current_mode) { in igc_force_mac_fc() 542 hw->fc.current_mode = igc_fc_full; in igc_config_fc_after_link_up() 545 hw->fc.current_mode = igc_fc_rx_pause; in igc_config_fc_after_link_up() 561 hw->fc.current_mode = igc_fc_tx_pause; in igc_config_fc_after_link_up() 575 hw->fc.current_mode = igc_fc_rx_pause; in igc_config_fc_after_link_up() 601 hw->fc.current_mode = igc_fc_none; in igc_config_fc_after_link_up() 604 hw->fc.current_mode = igc_fc_rx_pause; in igc_config_fc_after_link_up() [all …]
|
| /drivers/gpu/drm/i915/display/ |
| A D | intel_lspcon.c | 156 enum drm_lspcon_mode current_mode; in lspcon_get_current_mode() local 163 return current_mode; in lspcon_get_current_mode() 183 enum drm_lspcon_mode current_mode; in lspcon_wait_mode() local 185 current_mode = lspcon_get_current_mode(lspcon); in lspcon_wait_mode() 186 if (current_mode == mode) in lspcon_wait_mode() 192 wait_for((current_mode = lspcon_get_current_mode(lspcon)) == mode, in lspcon_wait_mode() 194 if (current_mode != mode) in lspcon_wait_mode() 199 lspcon_mode_name(current_mode)); in lspcon_wait_mode() 201 return current_mode; in lspcon_wait_mode() 210 enum drm_lspcon_mode current_mode; in lspcon_change_mode() local [all …]
|
| /drivers/hid/ |
| A D | hid-appletb-kbd.c | 69 u8 current_mode; member 109 kbd->current_mode = mode; in appletb_kbd_set_mode() 122 return sysfs_emit(buf, "%d\n", kbd->current_mode); in mode_show() 225 if (translation && kbd->current_mode == APPLETB_KBD_MODE_SPCL) { in appletb_kbd_hid_event() 231 return kbd->current_mode == APPLETB_KBD_MODE_OFF; in appletb_kbd_hid_event() 242 (kbd->current_mode == APPLETB_KBD_MODE_SPCL || in appletb_kbd_inp_event() 243 kbd->current_mode == APPLETB_KBD_MODE_FN)) { in appletb_kbd_inp_event() 245 kbd->saved_mode = kbd->current_mode; in appletb_kbd_inp_event() 246 appletb_kbd_set_mode(kbd, kbd->current_mode == APPLETB_KBD_MODE_SPCL in appletb_kbd_inp_event() 249 if (kbd->saved_mode != kbd->current_mode) in appletb_kbd_inp_event() [all …]
|
| /drivers/net/ethernet/intel/igb/ |
| A D | e1000_mac.c | 863 switch (hw->fc.current_mode) { in igb_force_mac_fc() 1006 hw->fc.current_mode = e1000_fc_full; in igb_config_fc_after_link_up() 1024 hw->fc.current_mode = e1000_fc_tx_pause; in igb_config_fc_after_link_up() 1038 hw->fc.current_mode = e1000_fc_rx_pause; in igb_config_fc_after_link_up() 1064 hw->fc.current_mode = e1000_fc_none; in igb_config_fc_after_link_up() 1067 hw->fc.current_mode = e1000_fc_rx_pause; in igb_config_fc_after_link_up() 1082 hw->fc.current_mode = e1000_fc_none; in igb_config_fc_after_link_up() 1161 hw->fc.current_mode = e1000_fc_full; in igb_config_fc_after_link_up() 1179 hw->fc.current_mode = e1000_fc_tx_pause; in igb_config_fc_after_link_up() 1193 hw->fc.current_mode = e1000_fc_rx_pause; in igb_config_fc_after_link_up() [all …]
|
| /drivers/platform/x86/lenovo/ |
| A D | wmi-gamezone.c | 37 enum thermal_mode current_mode; member 76 **mode = priv->current_mode; in lwmi_gz_mode_call() 107 priv->current_mode = *mode; in lwmi_gz_event_call() 191 priv->current_mode = mode; in lwmi_gz_profile_get() 247 priv->current_mode = mode; in lwmi_gz_profile_set() 371 ret = lwmi_gz_thermal_mode_get(wdev, &priv->current_mode); in lwmi_gz_probe()
|
| /drivers/net/ethernet/intel/e1000e/ |
| A D | mac.c | 753 switch (hw->fc.current_mode) { in e1000_commit_fc_settings_generic() 977 switch (hw->fc.current_mode) { in e1000e_force_mac_fc() 1115 hw->fc.current_mode = e1000_fc_full; in e1000e_config_fc_after_link_up() 1133 hw->fc.current_mode = e1000_fc_tx_pause; in e1000e_config_fc_after_link_up() 1147 hw->fc.current_mode = e1000_fc_rx_pause; in e1000e_config_fc_after_link_up() 1153 hw->fc.current_mode = e1000_fc_none; in e1000e_config_fc_after_link_up() 1168 hw->fc.current_mode = e1000_fc_none; in e1000e_config_fc_after_link_up() 1248 hw->fc.current_mode = e1000_fc_full; in e1000e_config_fc_after_link_up() 1266 hw->fc.current_mode = e1000_fc_tx_pause; in e1000e_config_fc_after_link_up() 1280 hw->fc.current_mode = e1000_fc_rx_pause; in e1000e_config_fc_after_link_up() [all …]
|
| /drivers/media/i2c/ |
| A D | ov7251.c | 142 const struct ov7251_mode_info *current_mode; member 1264 ov7251->current_mode = new_mode; in ov7251_set_format() 1358 ov7251->current_mode->data, in ov7251_s_stream() 1359 ov7251->current_mode->data_size); in ov7251_s_stream() 1362 ov7251->current_mode->width, in ov7251_s_stream() 1363 ov7251->current_mode->height); in ov7251_s_stream() 1404 fi->interval = ov7251->current_mode->timeperframe; in ov7251_get_frame_interval() 1428 if (new_mode != ov7251->current_mode) { in ov7251_set_frame_interval() 1444 ov7251->current_mode = new_mode; in ov7251_set_frame_interval() 1613 vblank_def = ov7251->current_mode->vts - ov7251->current_mode->height; in ov7251_init_ctrls() [all …]
|
| A D | vgxy61.c | 413 const struct vgxy61_mode_info *current_mode; member 561 sensor->current_mode->height; in vgxy61_check_bw() 662 sel->r = sensor->current_mode->crop; in vgxy61_get_selection() 714 sensor->current_mode->crop.height; in vgxy61_get_vblank_min() 877 ((sensor->frame_length - sensor->current_mode->crop.height - in vgxy61_get_expo_long_max() 984 sensor->frame_length = sensor->current_mode->crop.height + in vgxy61_update_vblank() 1079 const struct v4l2_rect *crop = &sensor->current_mode->crop; in vgxy61_stream_enable() 1096 sensor->current_mode->bin_mode, &ret); in vgxy61_stream_enable() 1207 } else if (sensor->current_mode != new_mode || in vgxy61_set_fmt() 1212 sensor->current_mode = new_mode; in vgxy61_set_fmt() [all …]
|
| A D | imx290.c | 240 const struct imx290_mode *current_mode; member 672 const struct imx290_mode *mode = imx290->current_mode; in imx290_set_clock() 799 imx290_exposure_update(imx290, imx290->current_mode); in imx290_set_ctrl() 816 ctrl->val + imx290->current_mode->height, NULL); in imx290_set_ctrl() 827 vmax = imx290->vblank->val + imx290->current_mode->height; in imx290_set_ctrl() 850 ctrl->val + imx290->current_mode->width, NULL); in imx290_set_ctrl() 858 reg = imx290->current_mode->ctrl_07; in imx290_set_ctrl() 1048 imx290->current_mode->data_size); in imx290_start_streaming() 1180 imx290->current_mode = mode; in imx290_set_fmt() 1287 imx290->current_mode = &imx290_modes_ptr(imx290)[0]; in imx290_subdev_init() [all …]
|
| A D | ov5645.c | 96 const struct ov5645_mode_info *current_mode; member 881 ov5645->current_mode = new_mode; in ov5645_set_format() 937 ov5645->current_mode->data, in ov5645_enable_streams() 938 ov5645->current_mode->data_size); in ov5645_enable_streams() 941 ov5645->current_mode->width, in ov5645_enable_streams() 942 ov5645->current_mode->height); in ov5645_enable_streams()
|
| A D | ov5640.c | 455 const struct ov5640_mode_info *current_mode; member 1552 const struct ov5640_mode_info *mode = sensor->current_mode; in ov5640_calc_pixel_rate() 2324 const struct ov5640_mode_info *mode = sensor->current_mode; in ov5640_set_mode() 2855 const struct ov5640_mode_info *mode = sensor->current_mode; in __v4l2_ctrl_vblank_update() 2978 if (new_mode != sensor->current_mode) { in ov5640_set_fmt() 2980 sensor->current_mode = new_mode; in ov5640_set_fmt() 3653 mode = sensor->current_mode; in ov5640_set_frame_interval() 3673 if (mode != sensor->current_mode || in ov5640_set_frame_interval() 3677 sensor->current_mode = mode; in ov5640_set_frame_interval() 3868 sensor->current_mode = in ov5640_probe() [all …]
|
| /drivers/platform/x86/amd/pmf/ |
| A D | auto-mode.c | 185 state_as_str(config_store.current_mode)); in amd_pmf_trans_automode() 200 state_as_str(config_store.current_mode)); in amd_pmf_trans_automode() 214 if (config_store.current_mode != in amd_pmf_trans_automode() 216 config_store.current_mode = in amd_pmf_trans_automode() 219 state_as_str(config_store.current_mode)); in amd_pmf_trans_automode() 220 amd_pmf_set_automode(dev, config_store.current_mode, NULL); in amd_pmf_trans_automode() 230 int mode = config_store.current_mode; in amd_pmf_update_2_cql() 404 config_store.current_mode = AUTO_BALANCE; in amd_pmf_load_defaults_auto_mode() 429 amd_pmf_set_automode(dev, config_store.current_mode, NULL); in amd_pmf_handle_amt()
|
| A D | cnqf.c | 163 amd_pmf_set_cnqf(dev, src, config_store.current_mode, NULL); in amd_pmf_trans_cnqf() 204 avg_power, socket_power, state_as_str(config_store.current_mode)); in amd_pmf_trans_cnqf() 221 if (config_store.current_mode != in amd_pmf_trans_cnqf() 223 config_store.current_mode = in amd_pmf_trans_cnqf() 226 state_as_str(config_store.current_mode)); in amd_pmf_trans_cnqf() 228 config_store.current_mode, NULL); in amd_pmf_trans_cnqf() 376 config_store.current_mode = CNQF_MODE_BALANCE; in amd_pmf_load_defaults_cnqf() 397 amd_pmf_set_cnqf(pdev, src, config_store.current_mode, NULL); in cnqf_enable_store() 463 amd_pmf_set_cnqf(dev, src, config_store.current_mode, NULL); in amd_pmf_init_cnqf()
|
| /drivers/gpu/drm/amd/display/dc/dwb/dcn30/ |
| A D | dcn30_dwb_cm.c | 238 enum dc_lut_mode current_mode; in dwb3_program_ogam_lut() local 251 current_mode = dwb3_get_ogam_current(dwbc30); in dwb3_program_ogam_lut() 252 if (current_mode == LUT_BYPASS || current_mode == LUT_RAM_A) in dwb3_program_ogam_lut() 369 unsigned int current_mode; in dwb3_set_gamut_remap() local 376 REG_GET(DWB_GAMUT_REMAP_MODE, DWB_GAMUT_REMAP_MODE_CURRENT, ¤t_mode); in dwb3_set_gamut_remap() 378 if (current_mode == CM_GAMUT_REMAP_MODE_RAMA_COEFF) { in dwb3_set_gamut_remap()
|
| /drivers/gpu/drm/rockchip/ |
| A D | rk3066_hdmi.c | 108 u8 current_mode, next_mode; in rk3066_hdmi_set_power_mode() local 111 current_mode = rk3066_hdmi_get_power_mode(hdmi); in rk3066_hdmi_set_power_mode() 114 DRM_DEV_DEBUG(hdmi->dev, "current_mode :%d\n", current_mode); in rk3066_hdmi_set_power_mode() 116 if (current_mode == mode) in rk3066_hdmi_set_power_mode() 120 if (current_mode > mode) { in rk3066_hdmi_set_power_mode() 121 next_mode = current_mode / 2; in rk3066_hdmi_set_power_mode() 123 if (current_mode < HDMI_SYS_POWER_MODE_A) in rk3066_hdmi_set_power_mode() 126 next_mode = current_mode * 2; in rk3066_hdmi_set_power_mode() 146 current_mode = next_mode; in rk3066_hdmi_set_power_mode()
|
| /drivers/usb/typec/ |
| A D | hd3ss3220.c | 61 int current_mode; in hd3ss3220_set_power_opmode() local 65 current_mode = HD3SS3220_REG_CN_STAT_CURRENT_MODE_DEFAULT; in hd3ss3220_set_power_opmode() 68 current_mode = HD3SS3220_REG_CN_STAT_CURRENT_MODE_MID; in hd3ss3220_set_power_opmode() 71 current_mode = HD3SS3220_REG_CN_STAT_CURRENT_MODE_HIGH; in hd3ss3220_set_power_opmode() 81 current_mode); in hd3ss3220_set_power_opmode()
|
| /drivers/gpu/drm/amd/display/dc/mpc/dcn20/ |
| A D | dcn20_mpc.c | 407 enum dc_lut_mode current_mode, in apply_DEDCN20_305_wa() argument 421 if (current_mode == LUT_BYPASS) in apply_DEDCN20_305_wa() 435 enum dc_lut_mode current_mode; in mpc2_set_output_gamma() local 449 current_mode = mpc20_get_ogam_current(mpc, mpcc_id); in mpc2_set_output_gamma() 450 if (current_mode == LUT_BYPASS || current_mode == LUT_RAM_A) in mpc2_set_output_gamma() 463 apply_DEDCN20_305_wa(mpc, mpcc_id, current_mode, next_mode); in mpc2_set_output_gamma()
|
| /drivers/media/usb/gspca/ |
| A D | stv0680.c | 32 u8 current_mode; member 98 if (sd->current_mode == mode) in stv0680_set_video_mode() 115 sd->current_mode = mode; in stv0680_set_video_mode() 185 sd->current_mode = sd->orig_mode = ret; in sd_config()
|
| /drivers/gpu/drm/display/ |
| A D | drm_dp_dual_mode_helper.c | 499 enum drm_lspcon_mode current_mode; in drm_lspcon_set_mode() local 518 ret = drm_lspcon_get_mode(dev, adapter, ¤t_mode); in drm_lspcon_set_mode() 523 if (current_mode != mode) { in drm_lspcon_set_mode()
|
| /drivers/pps/ |
| A D | pps.c | 201 fdata.info.current_mode = pps->current_mode; in pps_cdev_ioctl() 287 compat.info.current_mode = pps->current_mode; in pps_cdev_compat_ioctl()
|
| /drivers/char/ |
| A D | lp.c | 285 if (lp_table[minor].current_mode != IEEE1284_MODE_COMPAT) { in lp_wait_ready() 336 lp_table[minor].current_mode = lp_negotiate(port, in lp_write() 367 lp_table[minor].current_mode = IEEE1284_MODE_COMPAT; in lp_write() 382 lp_table[minor].current_mode in lp_write() 407 lp_table[minor].current_mode = IEEE1284_MODE_COMPAT; in lp_write() 562 lp_table[minor].current_mode = IEEE1284_MODE_COMPAT; in lp_open() 574 lp_table[minor].current_mode = IEEE1284_MODE_COMPAT; in lp_release()
|
| /drivers/gpu/drm/amd/display/dc/dpp/dcn30/ |
| A D | dcn30_dpp_cm.c | 218 enum dc_lut_mode current_mode; in dpp3_program_gamcor_lut() local 234 current_mode = dpp30_get_gamcor_current(dpp_base); in dpp3_program_gamcor_lut() 235 if (current_mode == LUT_BYPASS || current_mode == LUT_RAM_A) in dpp3_program_gamcor_lut()
|
| /drivers/gpu/drm/amd/display/dc/dpp/dcn20/ |
| A D | dcn20_dpp_cm.c | 525 enum dc_lut_mode current_mode; in dpp20_program_blnd_lut() local 533 current_mode = dpp20_get_blndgam_current(dpp_base); in dpp20_program_blnd_lut() 534 if (current_mode == LUT_BYPASS || current_mode == LUT_RAM_A) in dpp20_program_blnd_lut() 935 enum dc_lut_mode current_mode; in dpp20_program_shaper() local 944 current_mode = dpp20_get_shaper_current(dpp_base); in dpp20_program_shaper() 946 if (current_mode == LUT_BYPASS || current_mode == LUT_RAM_A) in dpp20_program_shaper()
|
| /drivers/gpu/drm/amd/display/dc/mpc/dcn32/ |
| A D | dcn32_mpc.c | 266 enum dc_lut_mode current_mode; in mpc32_program_post1dlut() local 277 current_mode = mpc32_get_post1dlut_current(mpc, mpcc_id); in mpc32_program_post1dlut() 278 if (current_mode == LUT_BYPASS || current_mode == LUT_RAM_B) in mpc32_program_post1dlut() 717 enum dc_lut_mode current_mode; in mpc32_program_shaper() local 730 current_mode = mpc32_get_shaper_current(mpc, mpcc_id); in mpc32_program_shaper() 732 if (current_mode == LUT_BYPASS || current_mode == LUT_RAM_A) in mpc32_program_shaper()
|
| /drivers/gpu/drm/bridge/cadence/ |
| A D | cdns-mhdp8546-core.c | 1986 mhdp_state->current_mode = drm_mode_duplicate(bridge->dev, mode); in cdns_mhdp_atomic_enable() 1987 if (!mhdp_state->current_mode) in cdns_mhdp_atomic_enable() 1990 drm_mode_set_name(mhdp_state->current_mode); in cdns_mhdp_atomic_enable() 2073 if (cdns_mhdp_state->current_mode) { in cdns_mhdp_bridge_atomic_destroy_state() 2074 drm_mode_destroy(bridge->dev, cdns_mhdp_state->current_mode); in cdns_mhdp_bridge_atomic_destroy_state() 2075 cdns_mhdp_state->current_mode = NULL; in cdns_mhdp_bridge_atomic_destroy_state() 2209 struct drm_display_mode *current_mode; in cdns_mhdp_update_link_status() local 2268 current_mode = cdns_bridge_state->current_mode; in cdns_mhdp_update_link_status() 2269 if (!current_mode) { in cdns_mhdp_update_link_status() 2281 current_mode->name); in cdns_mhdp_update_link_status() [all …]
|