Home
last modified time | relevance | path

Searched refs:cur_state (Results 1 – 25 of 59) sorted by relevance

123

/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
H A Dvega20_baco.c76 enum BACO_STATE cur_state; in vega20_baco_set_state() local
79 vega20_baco_get_state(hwmgr, &cur_state); in vega20_baco_set_state()
81 if (cur_state == state) in vega20_baco_set_state()
H A Dvega10_baco.c86 enum BACO_STATE cur_state; in vega10_baco_set_state() local
88 smu9_baco_get_state(hwmgr, &cur_state); in vega10_baco_set_state()
90 if (cur_state == state) in vega10_baco_set_state()
H A Dvega12_baco.c84 enum BACO_STATE cur_state; in vega12_baco_set_state() local
86 smu9_baco_get_state(hwmgr, &cur_state); in vega12_baco_set_state()
88 if (cur_state == state) in vega12_baco_set_state()
H A Dfiji_baco.c155 enum BACO_STATE cur_state; in fiji_baco_set_state() local
157 smu7_baco_get_state(hwmgr, &cur_state); in fiji_baco_set_state()
159 if (cur_state == state) in fiji_baco_set_state()
H A Dci_baco.c157 enum BACO_STATE cur_state; in ci_baco_set_state() local
159 smu7_baco_get_state(hwmgr, &cur_state); in ci_baco_set_state()
161 if (cur_state == state) in ci_baco_set_state()
H A Dpolaris_baco.c173 enum BACO_STATE cur_state; in polaris_baco_set_state() local
175 smu7_baco_get_state(hwmgr, &cur_state); in polaris_baco_set_state()
177 if (cur_state == state) in polaris_baco_set_state()
H A Dtonga_baco.c177 enum BACO_STATE cur_state; in tonga_baco_set_state() local
179 smu7_baco_get_state(hwmgr, &cur_state); in tonga_baco_set_state()
181 if (cur_state == state) in tonga_baco_set_state()
/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_roce.c835 out_params->state = qp->cur_state; in qed_roce_query_qp()
888 qp->cur_state = QED_ROCE_QP_STATE_ERR; in qed_roce_query_qp()
890 out_params->state = qp->cur_state; in qed_roce_query_qp()
934 qp->cur_state = QED_ROCE_QP_STATE_ERR; in qed_roce_query_qp()
937 out_params->state = qp->cur_state; in qed_roce_query_qp()
957 if ((qp->cur_state != QED_ROCE_QP_STATE_RESET) && in qed_roce_destroy_qp()
958 (qp->cur_state != QED_ROCE_QP_STATE_ERR) && in qed_roce_destroy_qp()
959 (qp->cur_state != QED_ROCE_QP_STATE_INIT)) { in qed_roce_destroy_qp()
965 if (qp->cur_state != QED_ROCE_QP_STATE_RESET) { in qed_roce_destroy_qp()
992 (qp->cur_state == QED_ROCE_QP_STATE_RTR)) { in qed_roce_modify_qp()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dqp.c93 enum mlx4_qp_state cur_state, enum mlx4_qp_state new_state, in __mlx4_qp_modify() argument
145 if (cur_state >= MLX4_QP_NUM_STATE || new_state >= MLX4_QP_NUM_STATE || in __mlx4_qp_modify()
146 !op[cur_state][new_state]) in __mlx4_qp_modify()
149 if (op[cur_state][new_state] == MLX4_CMD_2RST_QP) { in __mlx4_qp_modify()
152 if (mlx4_is_master(dev) && cur_state != MLX4_QP_STATE_ERR && in __mlx4_qp_modify()
153 cur_state != MLX4_QP_STATE_RST && in __mlx4_qp_modify()
168 if (cur_state == MLX4_QP_STATE_RST && new_state == MLX4_QP_STATE_INIT) { in __mlx4_qp_modify()
175 if ((cur_state == MLX4_QP_STATE_RTR) && in __mlx4_qp_modify()
190 op[cur_state][new_state], MLX4_CMD_TIME_CLASS_C, native); in __mlx4_qp_modify()
194 if (cur_state != MLX4_QP_STATE_ERR && in __mlx4_qp_modify()
[all …]
/linux/drivers/acpi/
H A Dprocessor_thermal.c254 unsigned long *cur_state) in processor_get_cur_state() argument
266 *cur_state = cpufreq_get_cur_state(pr->id); in processor_get_cur_state()
268 *cur_state += pr->throttling.state; in processor_get_cur_state()
/linux/drivers/platform/x86/
H A Dacerhdf.c465 int cur_temp, cur_state, err = 0; in acerhdf_set_cur_state() local
476 err = acerhdf_get_fanstate(&cur_state); in acerhdf_set_cur_state()
483 if (cur_state == ACERHDF_FAN_AUTO) in acerhdf_set_cur_state()
486 if (cur_state == ACERHDF_FAN_OFF) in acerhdf_set_cur_state()
/linux/drivers/infiniband/hw/usnic/
H A Dusnic_ib_main.c108 enum ib_qp_state cur_state; in usnic_ib_qp_grp_modify_active_to_err() local
115 cur_state = qp_grp->state; in usnic_ib_qp_grp_modify_active_to_err()
116 if (cur_state == IB_QPS_INIT || in usnic_ib_qp_grp_modify_active_to_err()
117 cur_state == IB_QPS_RTR || in usnic_ib_qp_grp_modify_active_to_err()
118 cur_state == IB_QPS_RTS) { in usnic_ib_qp_grp_modify_active_to_err()
126 (cur_state), in usnic_ib_qp_grp_modify_active_to_err()
/linux/security/selinux/ss/
H A Dconditional.c99 if (new_state != node->cur_state) { in evaluate_cond_node()
100 node->cur_state = new_state; in evaluate_cond_node()
384 node->cur_state = le32_to_cpu(buf[0]); in cond_read_node()
518 buf[0] = cpu_to_le32(node->cur_state); in cond_write_node()
657 newn->cur_state = orign->cur_state; in duplicate_policydb_cond_list()
/linux/drivers/pwm/
H A Dpwm-sifive.c156 struct pwm_state cur_state; in pwm_sifive_apply() local
167 cur_state = pwm->state; in pwm_sifive_apply()
168 enabled = cur_state.enabled; in pwm_sifive_apply()
/linux/drivers/infiniband/hw/mthca/
H A Dmthca_qp.c558 enum ib_qp_state cur_state, in __mthca_modify_qp() argument
668 cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) { in __mthca_modify_qp()
788 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD && in __mthca_modify_qp()
793 err = mthca_MODIFY_QP(dev, cur_state, new_state, qp->qpn, 0, in __mthca_modify_qp()
797 cur_state, new_state, err); in __mthca_modify_qp()
819 if (cur_state != IB_QPS_RTR && in __mthca_modify_qp()
823 if (cur_state != IB_QPS_RESET && in __mthca_modify_qp()
824 cur_state != IB_QPS_ERR && in __mthca_modify_qp()
863 enum ib_qp_state cur_state, new_state; in mthca_modify_qp() local
871 cur_state = attr->cur_qp_state; in mthca_modify_qp()
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/mld/
H A Dthermal.h21 u32 cur_state; member
/linux/tools/lib/thermal/include/
H A Dthermal.h41 int (*cdev_update)(int cdev_id, int cur_state, void *arg);
81 int cur_state; member
/linux/kernel/bpf/
H A Ddiagnostics.c903 return env->cur_state->frame[env->cur_state->curframe]; in diag_current_frame()
1069 return env->cur_state->active_rcu_locks; in diag_context_depth()
1071 return env->cur_state->active_preempt_locks; in diag_context_depth()
1073 return bpf_diag_irq_depth(env->cur_state); in diag_context_depth()
1075 return env->cur_state->active_locks; in diag_context_depth()
1090 if (env->cur_state->active_rcu_locks) in bpf_diag_ctx_forbidden()
1092 else if (env->cur_state->active_preempt_locks) in bpf_diag_ctx_forbidden()
1094 else if (env->cur_state->active_irq_id) in bpf_diag_ctx_forbidden()
1096 else if (env->cur_state->active_locks) in bpf_diag_ctx_forbidden()
1474 state = env->cur_state->frame[env->cur_state->curframe]; in diag_mod_insn_origin()
[all …]
H A Dverifier.c782 bpf_for_each_reg_in_vstate_mask(env->cur_state, state, reg, stack, 1 << STACK_DYNPTR, ({ in dynptr_ref_cnt()
1120 bpf_diag_irq_depth(env->cur_state)); in unmark_stack_slot_irq_flag()
1129 for (int i = 0; i < env->cur_state->acquired_refs; i++) { in unmark_stack_slot_irq_flag()
1130 if (env->cur_state->refs[i].id == env->cur_state->active_irq_id) { in unmark_stack_slot_irq_flag()
1131 insn_idx = env->cur_state->refs[i].insn_idx; in unmark_stack_slot_irq_flag()
1137 env->cur_state->active_irq_id, insn_idx); in unmark_stack_slot_irq_flag()
1142 bpf_diag_irq_depth(env->cur_state)); in unmark_stack_slot_irq_flag()
1422 struct bpf_verifier_state *state = env->cur_state; in acquire_reference_state()
1451 struct bpf_verifier_state *state = env->cur_state; in acquire_lock_state()
1471 struct bpf_verifier_state *state = env->cur_state; in acquire_irq_state()
[all …]
/linux/tools/thermal/tmon/
H A Dsysfs.c100 sysfs_get_ulong(path, "cur_state", &cdi->cur_state); in probe_cdev()
104 cdi->type, cdi->max_state, cdi->cur_state, cdi->instance); in probe_cdev()
517 val = ptdata.cdi[i].cur_state; in update_thermal_data()
H A Dtmon.h54 unsigned long cur_state; member
/linux/Documentation/admin-guide/thermal/
H A Dintel_powerclamp.rst274 cur_state:0
278 cur_state allows user to set the desired idle percentage. Writing 0 to
279 cur_state will stop idle injection. Writing a value between 1 and
280 max_state will start the idle injection. Reading cur_state returns the
284 cur_state returns value -1 instead of 0 which is to avoid confusing
291 $ sudo sh -c "echo 25 > /sys/class/thermal/cooling_device80/cur_state
/linux/drivers/gpu/drm/amd/amdgpu/
H A Djpeg_v4_0.c226 if (adev->jpeg.cur_state != AMD_PG_STATE_GATE && in jpeg_v4_0_hw_fini()
681 adev->jpeg.cur_state = AMD_PG_STATE_UNGATE; in jpeg_v4_0_set_powergating_state()
685 if (state == adev->jpeg.cur_state) in jpeg_v4_0_set_powergating_state()
694 adev->jpeg.cur_state = state; in jpeg_v4_0_set_powergating_state()
H A Djpeg_v4_0_5.c259 if (adev->jpeg.cur_state != AMD_PG_STATE_GATE && in jpeg_v4_0_5_hw_fini()
716 adev->jpeg.cur_state = AMD_PG_STATE_UNGATE; in jpeg_v4_0_5_set_powergating_state()
720 if (state == adev->jpeg.cur_state) in jpeg_v4_0_5_set_powergating_state()
729 adev->jpeg.cur_state = state; in jpeg_v4_0_5_set_powergating_state()
/linux/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-mdio.c680 enum xgbe_an cur_state = pdata->an_state; in xgbe_an37_state_machine() local
698 cur_state = pdata->an_state; in xgbe_an37_state_machine()
719 cur_state); in xgbe_an37_state_machine()
741 enum xgbe_an cur_state = pdata->an_state; in xgbe_an73_state_machine() local
764 cur_state = pdata->an_state; in xgbe_an73_state_machine()
802 cur_state); in xgbe_an73_state_machine()
822 if (cur_state != pdata->an_state) in xgbe_an73_state_machine()

123