Home
last modified time | relevance | path

Searched refs:current_state (Results 1 – 25 of 89) sorted by relevance

1234

/linux/drivers/hid/bpf/progs/
H A DXPPen__Artist24.bpf.c157 __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/net/ethernet/ti/
H A Dnetcp_xgbepcsr.c309 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 Defc_sm.c24 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 Dpower.c58 unsigned char current_state; in snd_usb_power_domain_set() local
67 &current_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/gpu/drm/amd/display/dc/core/
H A Ddc.c426 if (!dc->current_state) in set_long_vtotal()
432 struct pipe_ctx *pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in set_long_vtotal()
496 struct pipe_ctx *pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_adjust_vmin_vmax()
505 dc->hwss.notify_cursor_offload_drr_update(dc, dc->current_state, stream); in dc_stream_adjust_vmin_vmax()
538 struct pipe_ctx *pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_get_last_used_drr_vtotal()
604 pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_forward_crc_window()
670 pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_forward_multiple_crc_window()
719 &dc->current_state->res_ctx, stream); in dc_stream_configure_crc()
793 pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_get_crc()
819 if (dc->current_state->res_ctx.pipe_ctx[i].stream in dc_stream_set_dyn_expansion()
[all …]
H A Ddc_stream.c224 return dc_state_get_stream_status(dc->current_state, stream); in dc_stream_get_status()
232 return dc_state_get_stream_status(dc->current_state, stream); in dc_stream_get_status_const()
247 res_ctx = &dc->current_state->res_ctx; in program_cursor_attributes()
342 if (dc_stream_check_cursor_attributes(stream, stream->ctx->dc->current_state, attributes)) { in dc_stream_set_cursor_attributes()
394 res_ctx = &dc->current_state->res_ctx; in program_cursor_position()
487 struct pipe_ctx *pipe_ctx = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_program_cursor_position()
560 if (!dc->hwss.update_bandwidth(dc, dc->current_state)) { in dc_stream_add_writeback()
571 dc->hwss.update_writeback(dc, wb_info, dc->current_state); in dc_stream_add_writeback()
574 dc->hwss.enable_writeback(dc, wb_info, dc->current_state); in dc_stream_add_writeback()
656 if (!dc->hwss.update_bandwidth(dc, dc->current_state)) { in dc_stream_remove_writeback()
[all …]
H A Ddc_surface.c129 if (dc->current_state == NULL) in dc_plane_get_status()
135 &dc->current_state->res_ctx.pipe_ctx[i]; in dc_plane_get_status()
150 &dc->current_state->res_ctx.pipe_ctx[i]; in dc_plane_get_status()
286 if (!dc || !dc->current_state) in dc_plane_force_dcc_and_tiling_disable()
290 struct pipe_ctx *pipe_ctx = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_plane_force_dcc_and_tiling_disable()
/linux/tools/testing/selftests/hid/tests/
H A Dtest_tablet.py470 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 Ddcn401_hwseq.c59 struct dc_clocks *clocks = &dc->current_state->bw_ctx.bw.dcn.clk; in dcn401_initialize_min_clocks()
82 dc->current_state, in dcn401_initialize_min_clocks()
242 dc->hwss.enable_accelerated_mode(dc, dc->current_state); in dcn401_init_hw()
244 hws->funcs.init_pipes(dc, dc->current_state); in dcn401_init_hw()
1023 pipe_ctx = &dc->current_state->res_ctx.pipe_ctx[i]; in disable_link_output_symclk_on_tx_off()
1225 for (i = 0; i < dc->current_state->stream_count; i++) { in dcn401_check_no_memory_request_for_cab()
1226 if ((dc->current_state->stream_status[i].plane_count) && in dcn401_check_no_memory_request_for_cab()
1227 (dc->current_state->streams[i]->link->psr_settings.psr_version == DC_PSR_VERSION_UNSUPPORTED)) in dcn401_check_no_memory_request_for_cab()
1274 if (!dc->ctx->dmub_srv || !dc->current_state) in dcn401_apply_idle_power_optimizations()
1277 for (i = 0; i < dc->current_state->stream_count; i++) { in dcn401_apply_idle_power_optimizations()
[all …]
/linux/drivers/pwm/
H A Dpwm-keembay.c123 struct pwm_state current_state; in keembay_pwm_apply() local
139 keembay_pwm_get_state(chip, pwm, &current_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 Dcpuidle_cooling.c129 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()
/linux/drivers/md/dm-vdo/
H A Dadmin-state.h53 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 Dlo.c555 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 Dacconvert.h36 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 Dpm.c104 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 Drs780_dpm.c380 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/amd/display/dc/link/protocols/
H A Dlink_edp_panel_control.c538 if (dc->current_state->res_ctx.pipe_ctx[i].stream) { in get_pipe_from_link()
539 if (dc->current_state->res_ctx.pipe_ctx[i].stream->link == link) { in get_pipe_from_link()
540 pipe_ctx = &dc->current_state->res_ctx.pipe_ctx[i]; in get_pipe_from_link()
800 if (dc->current_state->res_ctx.pipe_ctx[i].stream in edp_setup_psr()
806 dc->current_state->res_ctx. in edp_setup_psr()
1035 if (dc->current_state->res_ctx.pipe_ctx[i].stream in edp_setup_panel_replay()
1041 dc->current_state->res_ctx.pipe_ctx[i].stream_res.tg->inst + 1; in edp_setup_panel_replay()
1141 if (dc->current_state->res_ctx.pipe_ctx[i].stream in edp_setup_freesync_replay()
1147 dc->current_state->res_ctx.pipe_ctx[i].stream_res.tg->inst + 1; in edp_setup_freesync_replay()
1315 struct pipe_ctx *pipe_ctx = &dc->current_state->res_ctx.pipe_ctx[i]; in get_abm_from_stream_res()
/linux/drivers/gpu/drm/amd/display/dc/hwss/dcn20/
H A Ddcn20_hwseq.c1786 (context == dc->current_state && plane_state->update_flags.bits.position_change) || in dcn20_update_dchubp_dpp()
1787 (context == dc->current_state && plane_state->update_flags.bits.scaling_change) || in dcn20_update_dchubp_dpp()
1788 (context == dc->current_state && pipe_ctx->stream->update_flags.bits.scaling)) { in dcn20_update_dchubp_dpp()
2059 if (resource_is_pipe_topology_changed(dc->current_state, context)) in dcn20_program_front_end_for_ctx()
2076 if (dc->current_state->res_ctx.pipe_ctx[i].plane_state) in dcn20_program_front_end_for_ctx()
2091 dcn20_detect_pipe_changes(dc->current_state, context, &dc->current_state->res_ctx.pipe_ctx[i], in dcn20_program_front_end_for_ctx()
2098 struct dc_stream_state *stream = dc->current_state->res_ctx.pipe_ctx[i].stream; in dcn20_program_front_end_for_ctx()
2100 pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dcn20_program_front_end_for_ctx()
2103 dc_state_get_pipe_subvp_type(dc->current_state, pipe) == SUBVP_PHANTOM) { in dcn20_program_front_end_for_ctx()
2104 struct timing_generator *tg = dc->current_state->res_ctx.pipe_ctx[i].stream_res.tg; in dcn20_program_front_end_for_ctx()
[all …]
/linux/drivers/vfio/pci/pds/
H A Dvfio_dev.c85 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 Dllc_c_st.h47 u8 current_state; member
/linux/drivers/gpu/drm/amd/display/dc/link/accessories/
H A Dlink_dp_cts.c70 struct dc_state *state = link->dc->current_state; in dp_retrain_link_dp_test()
74 bool was_hpo_acquired = resource_is_hpo_acquired(link->dc->current_state); in dp_retrain_link_dp_test()
195 struct pipe_ctx *pipes = link->dc->current_state->res_ctx.pipe_ctx; in dp_test_get_audio_test_data()
495 resource_build_test_pattern_params(&link->dc->current_state->res_ctx, in set_crtc_test_pattern()
655 struct pipe_ctx *pipes = link->dc->current_state->res_ctx.pipe_ctx; in dp_set_test_pattern()
973 pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dp_set_preferred_link_settings()
/linux/drivers/gpu/drm/amd/display/dc/
H A Ddc_trace.h28 struct pipe_ctx *pipe_ctx = &dc->current_state->res_ctx.pipe_ctx[index]; \
/linux/drivers/scsi/isci/
H A Dremote_node_context.c87 u32 current_state = sci_rnc->sm.current_state_id; in sci_remote_node_context_is_ready() local
89 if (current_state == SCI_RNC_READY) { in sci_remote_node_context_is_ready()
98 u32 current_state = sci_rnc->sm.current_state_id; in sci_remote_node_context_is_suspended() local
100 if (current_state == SCI_RNC_TX_RX_SUSPENDED) in sci_remote_node_context_is_suspended()
/linux/drivers/video/fbdev/riva/
H A Drivafb.h52 struct riva_regs current_state; member
/linux/drivers/gpu/drm/amd/display/modules/hdcp/
H A Dhdcp1_transition.c37 switch (current_state(hdcp)) { in mod_hdcp_hdcp1_transition()
160 switch (current_state(hdcp)) { in mod_hdcp_hdcp1_dp_transition()

1234