| /linux/drivers/hid/bpf/progs/ |
| H A D | XPPen__Artist24.bpf.c | 157 __u8 current_state, changed_state; in SEC() local 163 current_state = data[1]; in SEC() 166 if (current_state == prev_state) in SEC() 181 if ((current_state & IN_RANGE) == 0) { in SEC() 191 changed_state = prev_state ^ current_state; in SEC() 194 prev_state = current_state; in SEC()
|
| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| H A D | amdgpu_dm_ism.c | 45 static bool dm_ism_next_state(enum amdgpu_dm_ism_state current_state, in dm_ism_next_state() argument 49 switch (STATE_EVENT(current_state, event)) { in dm_ism_next_state() 253 bool gotNextState = dm_ism_next_state(ism->current_state, event, in dm_ism_trigger_event() 257 ism->previous_state = ism->current_state; in dm_ism_trigger_event() 258 ism->current_state = next_state; in dm_ism_trigger_event() 345 if (ism->current_state != DM_ISM_STATE_OPTIMIZED_IDLE && in dm_ism_dispatch_power_state() 346 ism->current_state != DM_ISM_STATE_OPTIMIZED_IDLE_SSO) in dm_ism_dispatch_power_state() 350 if (ism->current_state == DM_ISM_STATE_OPTIMIZED_IDLE_SSO) in dm_ism_dispatch_power_state() 368 switch (ism->current_state) { in dm_ism_dispatch_power_state() 482 dm_ism_states_str[ism->current_state], in amdgpu_dm_ism_commit_event() [all …]
|
| H A D | amdgpu_dm_psr.c | 126 mod_power_only_edp(dc->current_state, stream); in amdgpu_dm_link_setup_psr() 240 for (i = 0; i < dm->dc->current_state->stream_count ; i++) { in amdgpu_dm_psr_is_active_allowed() 242 struct dc_stream_state *stream = dm->dc->current_state->streams[i]; in amdgpu_dm_psr_is_active_allowed()
|
| /linux/drivers/net/ethernet/ti/ |
| H A D | netcp_xgbepcsr.c | 309 u32 *current_state, u32 *lane_down) in netcp_xgbe_check_link_status() argument 332 switch (current_state[i]) { in netcp_xgbe_check_link_status() 339 current_state[i] = 1; in netcp_xgbe_check_link_status() 352 current_state[i] = 2; in netcp_xgbe_check_link_status() 359 current_state[i] = 1; in netcp_xgbe_check_link_status() 366 current_state[i] = 0; in netcp_xgbe_check_link_status() 372 i, current_state[i]); in netcp_xgbe_check_link_status() 385 status &= (current_state[i] == 1); in netcp_xgbe_check_link_status() 394 u32 current_state[2] = {0, 0}; in netcp_xgbe_serdes_check_lane() local 403 current_state, in netcp_xgbe_serdes_check_lane()
|
| /linux/drivers/scsi/elx/libefc/ |
| H A D | efc_sm.c | 24 if (!ctx->current_state) in efc_sm_post_event() 27 ctx->current_state(ctx, evt, data); in efc_sm_post_event() 37 if (ctx->current_state == state) { in efc_sm_transition() 41 ctx->current_state = state; in efc_sm_transition()
|
| /linux/sound/usb/ |
| H A D | power.c | 58 unsigned char current_state; in snd_usb_power_domain_set() local 67 ¤t_state, sizeof(current_state)); in snd_usb_power_domain_set() 74 if (current_state == state) { in snd_usb_power_domain_set() 91 switch (current_state) { in snd_usb_power_domain_set()
|
| /linux/drivers/pci/ |
| H A D | pci-driver.c | 526 if (pci_dev->current_state == PCI_D0) in pci_device_remove() 527 pci_dev->current_state = PCI_UNKNOWN; in pci_device_remove() 558 if (kexec_in_progress && (pci_dev->current_state <= PCI_D3hot)) in pci_device_shutdown() 574 if (pci_dev->current_state != PCI_D0) { in pci_restore_standard_config() 641 if (pci_dev->current_state == PCI_D0) in pci_pm_set_unknown_state() 642 pci_dev->current_state = PCI_UNKNOWN; in pci_pm_set_unknown_state() 673 pci_power_t prev = pci_dev->current_state; in pci_legacy_suspend() 681 if (!pci_dev->state_saved && pci_dev->current_state != PCI_D0 in pci_legacy_suspend() 682 && pci_dev->current_state != PCI_UNKNOWN) { in pci_legacy_suspend() 683 pci_WARN_ONCE(pci_dev, pci_dev->current_state != prev, in pci_legacy_suspend() [all …]
|
| H A D | pci.c | 1141 dev->current_state = PCI_D3cold; in pci_update_current_state() 1147 dev->current_state = PCI_D3cold; in pci_update_current_state() 1150 dev->current_state = pmcsr & PCI_PM_CTRL_STATE_MASK; in pci_update_current_state() 1152 dev->current_state = state; in pci_update_current_state() 1166 pci_update_current_state(dev, dev->current_state); in pci_refresh_power_state() 1182 dev->current_state = PCI_D0; in pci_platform_power_transition() 1309 dev->current_state = PCI_D0; in pci_power_up() 1311 dev->current_state = state; in pci_power_up() 1317 dev->current_state = PCI_D3cold; in pci_power_up() 1324 pci_power_name(dev->current_state)); in pci_power_up() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/core/ |
| H A D | dc_stream.c | 252 return dc_state_get_stream_status(dc->current_state, stream); in dc_stream_get_status() 259 return dc_state_get_stream_status(dc->current_state, stream); in dc_stream_get_status_const() 274 res_ctx = &dc->current_state->res_ctx; in program_cursor_attributes() 369 if (dc_stream_check_cursor_attributes(stream, stream->ctx->dc->current_state, attributes)) { in dc_stream_set_cursor_attributes() 421 res_ctx = &dc->current_state->res_ctx; in program_cursor_position() 514 struct pipe_ctx *pipe_ctx = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_program_cursor_position() 533 struct pipe_ctx *pipe_ctx = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_program_cursor_position() 604 if (!dc->hwss.update_bandwidth(dc, dc->current_state)) { in dc_stream_add_writeback() 615 dc->hwss.update_writeback(dc, wb_info, dc->current_state); in dc_stream_add_writeback() 618 dc->hwss.enable_writeback(dc, wb_info, dc->current_state); in dc_stream_add_writeback() [all …]
|
| /linux/tools/testing/selftests/hid/tests/ |
| H A D | test_tablet.py | 470 self.current_state = None 517 assert self.current_state == PenState.from_evdev(evdev, button) 547 if pen.current_state == PenState.PEN_IS_OUT_OF_RANGE: 615 pen.current_state = state 707 cur_state = p.current_state 726 cur_state = p.current_state 950 if pen.current_state == PenState.PEN_IS_OUT_OF_RANGE: 1010 pen.current_state = state 1052 if pen.current_state == PenState.PEN_IS_OUT_OF_RANGE: 1099 pen.current_state [all...] |
| /linux/drivers/gpu/drm/amd/display/dc/hwss/dcn401/ |
| H A D | dcn401_hwseq.c | 60 struct dc_clocks *clocks = &dc->current_state->bw_ctx.bw.dcn.clk; in dcn401_initialize_min_clocks() 87 dc->current_state, in dcn401_initialize_min_clocks() 244 dc->hwss.enable_accelerated_mode(dc, dc->current_state); in dcn401_init_hw() 246 hws->funcs.init_pipes(dc, dc->current_state); in dcn401_init_hw() 924 pipe_ctx = &dc->current_state->res_ctx.pipe_ctx[i]; in disable_link_output_symclk_on_tx_off() 1148 for (i = 0; i < dc->current_state->stream_count; i++) { in dcn401_check_no_memory_request_for_cab() 1149 if ((dc->current_state->stream_status[i].plane_count) && in dcn401_check_no_memory_request_for_cab() 1150 (dc->current_state->streams[i]->link->psr_settings.psr_version == DC_PSR_VERSION_UNSUPPORTED)) in dcn401_check_no_memory_request_for_cab() 1197 if (!dc->ctx->dmub_srv || !dc->current_state) in dcn401_apply_idle_power_optimizations() 1200 for (i = 0; i < dc->current_state->stream_count; i++) { in dcn401_apply_idle_power_optimizations() [all …]
|
| /linux/drivers/pwm/ |
| H A D | pwm-keembay.c | 123 struct pwm_state current_state; in keembay_pwm_apply() local 139 keembay_pwm_get_state(chip, pwm, ¤t_state); in keembay_pwm_apply() 142 if (current_state.enabled) in keembay_pwm_apply() 173 if (state->enabled && !current_state.enabled) in keembay_pwm_apply()
|
| /linux/drivers/thermal/ |
| H A D | cpuidle_cooling.c | 129 unsigned long current_state = idle_cdev->state; in cpuidle_cooling_set_cur_state() local 140 if (current_state == 0 && state > 0) { in cpuidle_cooling_set_cur_state() 142 } else if (current_state > 0 && !state) { in cpuidle_cooling_set_cur_state()
|
| H A D | thermal_debugfs.c | 58 int current_state; member 363 if (entry->id == cdev_dbg->current_state) in cdev_dt_seq_show() 416 if (!thermal_dbg || (thermal_dbg->cdev_dbg.current_state == new_state)) in thermal_debug_cdev_state_update() 423 old_state = cdev_dbg->current_state; in thermal_debug_cdev_state_update() 441 cdev_dbg->current_state = new_state; in thermal_debug_cdev_state_update() 494 cdev_dbg->current_state = state; in thermal_debug_cdev_add()
|
| /linux/drivers/md/dm-vdo/ |
| H A D | admin-state.h | 53 const struct admin_state_code *current_state; member 72 return READ_ONCE(state->current_state); in vdo_get_admin_state_code() 84 WRITE_ONCE(state->current_state, code); in vdo_set_admin_state_code()
|
| /linux/drivers/net/wireless/broadcom/b43/ |
| H A D | lo.c | 555 int current_state; member 591 if (d->current_state == 0) { in lo_probe_possible_loctls() 594 } else if (d->current_state % 2 == 0) { in lo_probe_possible_loctls() 595 begin = d->current_state - 1; in lo_probe_possible_loctls() 596 end = d->current_state + 1; in lo_probe_possible_loctls() 598 begin = d->current_state - 2; in lo_probe_possible_loctls() 599 end = d->current_state + 2; in lo_probe_possible_loctls() 608 d->current_state = i; in lo_probe_possible_loctls() 638 d->current_state = i; in lo_probe_possible_loctls() 680 d.current_state = 0; in lo_probe_loctls_statemachine() [all …]
|
| /linux/drivers/acpi/acpica/ |
| H A D | acconvert.h | 36 cv_process_comment(struct asl_comment_state current_state, 40 cv_process_comment_type2(struct asl_comment_state current_state,
|
| /linux/drivers/platform/x86/intel/atomisp2/ |
| H A D | pm.c | 104 pdev->current_state = PCI_D3cold; in isp_pci_suspend() 115 pdev->current_state = PCI_D0; in isp_pci_resume()
|
| /linux/drivers/gpu/drm/radeon/ |
| H A D | rs780_dpm.c | 380 struct igp_ps *current_state = rs780_get_ps(rdev->pm.dpm.current_ps); in rs780_force_voltage() local 382 if ((current_state->max_voltage == RS780_VDDC_LEVEL_HIGH) && in rs780_force_voltage() 383 (current_state->min_voltage == RS780_VDDC_LEVEL_HIGH)) in rs780_force_voltage() 407 struct igp_ps *current_state = rs780_get_ps(rdev->pm.dpm.current_ps); in rs780_force_fbdiv() local 409 if (current_state->sclk_low == current_state->sclk_high) in rs780_force_fbdiv() 568 struct igp_ps *current_state = rs780_get_ps(old_ps); in rs780_set_uvd_clock_before_set_eng_clock() local 574 if (new_state->sclk_high >= current_state->sclk_high) in rs780_set_uvd_clock_before_set_eng_clock() 585 struct igp_ps *current_state = rs780_get_ps(old_ps); in rs780_set_uvd_clock_after_set_eng_clock() local 591 if (new_state->sclk_high < current_state->sclk_high) in rs780_set_uvd_clock_after_set_eng_clock()
|
| /linux/drivers/gpu/drm/tidss/ |
| H A D | tidss_crtc.c | 378 struct tidss_crtc_state *state, *current_state; in tidss_crtc_duplicate_state() local 383 current_state = to_tidss_crtc_state(crtc->state); in tidss_crtc_duplicate_state() 393 state->bus_format = current_state->bus_format; in tidss_crtc_duplicate_state() 394 state->bus_flags = current_state->bus_flags; in tidss_crtc_duplicate_state()
|
| /linux/drivers/vfio/pci/pds/ |
| H A D | vfio_dev.c | 85 enum vfio_device_mig_state *current_state) in pds_vfio_get_device_state() argument 92 *current_state = pds_vfio->state; in pds_vfio_get_device_state()
|
| /linux/include/net/ |
| H A D | llc_c_st.h | 47 u8 current_state; member
|
| /linux/drivers/gpu/drm/omapdrm/ |
| H A D | omap_plane.c | 423 struct omap_plane_state *state, *current_state; in omap_plane_atomic_duplicate_state() local 428 current_state = to_omap_plane_state(plane->state); in omap_plane_atomic_duplicate_state() 436 state->overlay = current_state->overlay; in omap_plane_atomic_duplicate_state() 437 state->r_overlay = current_state->r_overlay; in omap_plane_atomic_duplicate_state()
|
| H A D | omap_crtc.c | 727 struct omap_crtc_state *state, *current_state; in omap_crtc_duplicate_state() local 732 current_state = to_omap_crtc_state(crtc->state); in omap_crtc_duplicate_state() 740 state->zpos = current_state->zpos; in omap_crtc_duplicate_state() 741 state->rotation = current_state->rotation; in omap_crtc_duplicate_state() 742 state->manually_updated = current_state->manually_updated; in omap_crtc_duplicate_state()
|
| /linux/drivers/hid/intel-ish-hid/ishtp/ |
| H A D | hbm.c | 936 static uint32_t current_state; variable 956 current_state |= (SUSPEND_STATE_BIT | CONNECTED_STANDBY_STATE_BIT); in ishtp_send_suspend() 958 state_status_msg.states_status = current_state; in ishtp_send_suspend() 982 current_state &= ~(CONNECTED_STANDBY_STATE_BIT | SUSPEND_STATE_BIT); in ishtp_send_resume() 984 state_status_msg.states_status = current_state; in ishtp_send_resume()
|