| /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/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/gpu/drm/amd/display/dc/core/ |
| H A D | dc.c | 428 if (!dc->current_state) in set_long_vtotal() 434 struct pipe_ctx *pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in set_long_vtotal() 471 struct pipe_ctx *pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_get_last_used_drr_vtotal() 537 pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_forward_crc_window() 603 pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_forward_multiple_crc_window() 653 &dc->current_state->res_ctx, stream); in dc_stream_configure_crc() 728 pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_get_crc() 754 if (dc->current_state->res_ctx.pipe_ctx[i].stream in dc_stream_set_dyn_expansion() 756 pipe_ctx = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_set_dyn_expansion() 772 struct resource_context *res_ctx = &link->dc->current_state->res_ctx; in dc_stream_set_dither_option() [all …]
|
| H A D | dc_surface.c | 129 if (dc->current_state == NULL) in dc_plane_get_status() 135 &dc->current_state->res_ctx.pipe_ctx[i]; in dc_plane_get_status() 153 &dc->current_state->res_ctx.pipe_ctx[i]; in dc_plane_get_status() 328 if (!dc || !dc->current_state) in dc_plane_force_dcc_and_tiling_disable() 332 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 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/pwm/ |
| H A D | pwm-keembay.c | 122 struct pwm_state current_state; in keembay_pwm_apply() local 138 keembay_pwm_get_state(chip, pwm, ¤t_state); in keembay_pwm_apply() 141 if (current_state.enabled) in keembay_pwm_apply() 172 if (state->enabled && !current_state.enabled) in keembay_pwm_apply()
|
| /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/gpu/drm/amd/display/dc/hwss/dcn50/ |
| H A D | dcn50_hwseq.c | 55 struct dc_clocks *clocks = &dc->current_state->bw_ctx.bw.dcn.clk; in dcn50_initialize_min_clocks() 79 dc->current_state, in dcn50_initialize_min_clocks() 190 (context == dc->current_state && plane_state->update_bits.position_change) || in dcn50_update_dchubp_dpp() 191 (context == dc->current_state && plane_state->update_bits.scaling_change) || in dcn50_update_dchubp_dpp() 192 (context == dc->current_state && pipe_ctx->stream->update_flags.bits.scaling)) { in dcn50_update_dchubp_dpp() 349 (context == dc->current_state && plane_state->update_bits.position_change) || in dcn50_update_dchubp_dpp_sequence() 350 (context == dc->current_state && plane_state->update_bits.scaling_change) || in dcn50_update_dchubp_dpp_sequence() 351 (context == dc->current_state && pipe_ctx->stream->update_flags.bits.scaling)) { in dcn50_update_dchubp_dpp_sequence() 506 if (resource_is_pipe_topology_changed(dc->current_state, context)) in dcn50_program_front_end_for_ctx() 635 dc->hwss.enable_accelerated_mode(dc, dc->current_state); in dcn50_init_hw() [all …]
|
| /linux/drivers/platform/x86/intel/atomisp2/ |
| H A D | pm.c | 103 pdev->current_state = PCI_D3cold; in isp_pci_suspend() 114 pdev->current_state = PCI_D0; in isp_pci_resume()
|
| /linux/drivers/gpu/drm/amd/display/dc/hwss/dcn30/ |
| H A D | dcn30_hwseq.c | 746 hws->funcs.init_pipes(dc, dc->current_state); in dcn30_init_hw() 985 if (dc->current_state) { in dcn30_apply_idle_power_optimizations() 989 for (i = 0; i < dc->current_state->stream_count; i++) { in dcn30_apply_idle_power_optimizations() 990 if (dc->current_state->stream_status[i].plane_count) in dcn30_apply_idle_power_optimizations() 995 if (i == dc->current_state->stream_count) { in dcn30_apply_idle_power_optimizations() 1007 stream = dc->current_state->streams[0]; in dcn30_apply_idle_power_optimizations() 1008 plane = (stream ? dc->current_state->stream_status[0].plane_states[0] : NULL); in dcn30_apply_idle_power_optimizations() 1028 if (dc->current_state->stream_count == 1 && in dcn30_apply_idle_power_optimizations() 1030 dc->current_state->stream_status[0].plane_count == 1 && in dcn30_apply_idle_power_optimizations() 1066 unsigned int stutter_period = dc->current_state->perf_params.stutter_period_us; in dcn30_apply_idle_power_optimizations() [all …]
|
| /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/amd/display/dc/hwss/dcn60/ |
| H A D | dcn60_hwseq.c | 458 bool was_hpo_acquired = resource_is_hpo_acquired(dc->current_state); in dcn60_apply_ctx_to_hw() 479 &dc->current_state->res_ctx.pipe_ctx[i]; in dcn60_apply_ctx_to_hw() 505 &dc->current_state->res_ctx.pipe_ctx[i]; in dcn60_apply_ctx_to_hw() 638 dc->hwss.enable_accelerated_mode(dc, dc->current_state); in dcn60_init_hw() 640 hws->funcs.init_pipes(dc, dc->current_state); in dcn60_init_hw() 1085 for (i = 0; i < dc->current_state->stream_count; i++) { in dcn60_has_active_memory_request() 1086 const struct dc_link *link = dc->current_state->streams[i]->link; in dcn60_has_active_memory_request() 1091 if (dc->current_state->stream_status[i].plane_count && !panel_power_feature) in dcn60_has_active_memory_request() 1102 for (i = 0; i < dc->current_state->stream_count; ++i) { in dcn60_has_active_display() 1103 const struct dc_stream_state *stream = dc->current_state->streams[i]; in dcn60_has_active_display() [all …]
|
| /linux/drivers/thermal/ |
| 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/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/drivers/gpu/drm/amd/display/dc/link/ |
| H A D | link_detection.c | 816 for (i = 0; i < dc->current_state->stream_count; i++) { in should_prepare_phy_clocks_for_link_verification() 817 if (dc->current_state->streams[i]->apply_seamless_boot_optimization) { in should_prepare_phy_clocks_for_link_verification() 845 for (i = 0; i < link->dc->current_state->stream_count; i++) { in is_hdmi_frl_in_use() 846 if (dc_is_hdmi_signal(link->dc->current_state->streams[i]->signal)) in is_hdmi_frl_in_use() 848 if (link == link->dc->current_state->streams[i]->link && in is_hdmi_frl_in_use() 849 (dc_is_hdmi_frl_signal(link->dc->current_state->streams[i]->signal))) in is_hdmi_frl_in_use() 854 for (i = 0; i < link->dc->current_state->stream_count; i++) { in is_hdmi_frl_in_use() 856 link->dc->current_state->streams[i]->signal)) { in is_hdmi_frl_in_use() 983 link->dc->current_state->res_ctx.pipe_ctx; in should_verify_link_capability_destructively()
|
| /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()
|
| /linux/drivers/scsi/isci/ |
| H A D | remote_node_context.c | 87 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 D | rivafb.h | 52 struct riva_regs current_state; member
|
| /linux/drivers/xen/xenbus/ |
| H A D | xenbus_client.c | 227 int current_state; in __xenbus_switch_state() local 243 err = xenbus_scanf(xbt, dev->nodename, "state", "%d", ¤t_state); in __xenbus_switch_state() 246 if (current_state != dev->state && current_state == XenbusStateInitialising) { in __xenbus_switch_state()
|
| /linux/drivers/gpu/drm/amd/display/modules/hdcp/ |
| H A D | hdcp1_transition.c | 37 switch (current_state(hdcp)) { in mod_hdcp_hdcp1_transition() 160 switch (current_state(hdcp)) { in mod_hdcp_hdcp1_dp_transition()
|
| /linux/drivers/hwmon/ |
| H A D | hp-wmi-sensors.c | 273 const char *current_state; member 908 nsensor->current_state = string; in populate_numeric_sensor_from_wobj() 982 if (strcmp(trimmed, nsensor->current_state)) { in update_numeric_sensor_from_wobj() 985 devm_kfree(dev, nsensor->current_state); in update_numeric_sensor_from_wobj() 986 nsensor->current_state = new_string; in update_numeric_sensor_from_wobj() 1265 seq_printf(seqf, "%s\n", nsensor->current_state); in fungible_show() 1294 DEFINE_SHOW_ATTRIBUTE(current_state);
|
| /linux/drivers/platform/x86/dell/ |
| H A D | dell-wmi-privacy.c | 48 __le32 current_state; member 230 priv->last_status = le32_to_cpu(state->current_state); in get_current_status()
|