Home
last modified time | relevance | path

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

1234

/kernel/linux/linux-5.10/drivers/thermal/
Dgov_step_wise.c41 unsigned long cur_state; in get_target_state() local
49 cdev->ops->get_cur_state(cdev, &cur_state); in get_target_state()
51 dev_dbg(&cdev->device, "cur_state=%ld\n", cur_state); in get_target_state()
55 next_target = (cur_state + 1) >= instance->upper ? in get_target_state()
57 ((cur_state + 1) < instance->lower ? in get_target_state()
58 instance->lower : (cur_state + 1)); in get_target_state()
69 next_target = cur_state < instance->upper ? in get_target_state()
70 (cur_state + 1) : instance->upper; in get_target_state()
80 if (cur_state <= instance->lower) { in get_target_state()
85 next_target = cur_state - 1; in get_target_state()
[all …]
/kernel/linux/linux-5.10/drivers/bus/mhi/core/
Dpm.c113 unsigned long cur_state = mhi_cntrl->pm_state; in mhi_tryset_pm_state() local
114 int index = find_last_bit(&cur_state, 32); in mhi_tryset_pm_state()
117 return cur_state; in mhi_tryset_pm_state()
119 if (unlikely(dev_state_transitions[index].from_state != cur_state)) in mhi_tryset_pm_state()
120 return cur_state; in mhi_tryset_pm_state()
123 return cur_state; in mhi_tryset_pm_state()
157 enum mhi_pm_state cur_state; in mhi_ready_state_transition() local
188 cur_state = mhi_tryset_pm_state(mhi_cntrl, MHI_PM_POR); in mhi_ready_state_transition()
192 if (cur_state != MHI_PM_POR) { in mhi_ready_state_transition()
195 to_mhi_pm_state_str(cur_state)); in mhi_ready_state_transition()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dvega20_baco.c78 enum BACO_STATE cur_state; in vega20_baco_set_state() local
81 vega20_baco_get_state(hwmgr, &cur_state); in vega20_baco_set_state()
83 if (cur_state == state) in vega20_baco_set_state()
Dvega12_baco.c88 enum BACO_STATE cur_state; in vega12_baco_set_state() local
90 smu9_baco_get_state(hwmgr, &cur_state); in vega12_baco_set_state()
92 if (cur_state == state) in vega12_baco_set_state()
Dvega10_baco.c90 enum BACO_STATE cur_state; in vega10_baco_set_state() local
92 smu9_baco_get_state(hwmgr, &cur_state); in vega10_baco_set_state()
94 if (cur_state == state) in vega10_baco_set_state()
Dfiji_baco.c163 enum BACO_STATE cur_state; in fiji_baco_set_state() local
165 smu7_baco_get_state(hwmgr, &cur_state); in fiji_baco_set_state()
167 if (cur_state == state) in fiji_baco_set_state()
Dpolaris_baco.c183 enum BACO_STATE cur_state; in polaris_baco_set_state() local
185 smu7_baco_get_state(hwmgr, &cur_state); in polaris_baco_set_state()
187 if (cur_state == state) in polaris_baco_set_state()
Dci_baco.c164 enum BACO_STATE cur_state; in ci_baco_set_state() local
166 smu7_baco_get_state(hwmgr, &cur_state); in ci_baco_set_state()
168 if (cur_state == state) in ci_baco_set_state()
Dtonga_baco.c187 enum BACO_STATE cur_state; in tonga_baco_set_state() local
189 smu7_baco_get_state(hwmgr, &cur_state); in tonga_baco_set_state()
191 if (cur_state == state) in tonga_baco_set_state()
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_bridge.c757 struct drm_bridge_state *cur_state; in select_bus_fmt_recursive() local
763 cur_state = drm_atomic_get_new_bridge_state(crtc_state->state, in select_bus_fmt_recursive()
786 if (cur_state) { in select_bus_fmt_recursive()
787 cur_state->input_bus_cfg.format = MEDIA_BUS_FMT_FIXED; in select_bus_fmt_recursive()
788 cur_state->output_bus_cfg.format = out_bus_fmt; in select_bus_fmt_recursive()
798 if (WARN_ON(!cur_state)) in select_bus_fmt_recursive()
802 cur_state, in select_bus_fmt_recursive()
813 cur_state->input_bus_cfg.format = in_bus_fmts[0]; in select_bus_fmt_recursive()
814 cur_state->output_bus_cfg.format = out_bus_fmt; in select_bus_fmt_recursive()
828 cur_state->input_bus_cfg.format = in_bus_fmts[i]; in select_bus_fmt_recursive()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/
Dqed_roce.c836 out_params->state = qp->cur_state; in qed_roce_query_qp()
889 qp->cur_state = QED_ROCE_QP_STATE_ERR; in qed_roce_query_qp()
891 out_params->state = qp->cur_state; in qed_roce_query_qp()
935 qp->cur_state = QED_ROCE_QP_STATE_ERR; in qed_roce_query_qp()
938 out_params->state = qp->cur_state; in qed_roce_query_qp()
958 if ((qp->cur_state != QED_ROCE_QP_STATE_RESET) && in qed_roce_destroy_qp()
959 (qp->cur_state != QED_ROCE_QP_STATE_ERR) && in qed_roce_destroy_qp()
960 (qp->cur_state != QED_ROCE_QP_STATE_INIT)) { in qed_roce_destroy_qp()
966 if (qp->cur_state != QED_ROCE_QP_STATE_RESET) { in qed_roce_destroy_qp()
993 (qp->cur_state == QED_ROCE_QP_STATE_RTR)) { in qed_roce_modify_qp()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
Dqp.c88 enum mlx4_qp_state cur_state, enum mlx4_qp_state new_state, in __mlx4_qp_modify() argument
140 if (cur_state >= MLX4_QP_NUM_STATE || new_state >= MLX4_QP_NUM_STATE || in __mlx4_qp_modify()
141 !op[cur_state][new_state]) in __mlx4_qp_modify()
144 if (op[cur_state][new_state] == MLX4_CMD_2RST_QP) { in __mlx4_qp_modify()
147 if (mlx4_is_master(dev) && cur_state != MLX4_QP_STATE_ERR && in __mlx4_qp_modify()
148 cur_state != MLX4_QP_STATE_RST && in __mlx4_qp_modify()
163 if (cur_state == MLX4_QP_STATE_RST && new_state == MLX4_QP_STATE_INIT) { in __mlx4_qp_modify()
170 if ((cur_state == MLX4_QP_STATE_RTR) && in __mlx4_qp_modify()
185 op[cur_state][new_state], MLX4_CMD_TIME_CLASS_C, native); in __mlx4_qp_modify()
189 if (cur_state != MLX4_QP_STATE_ERR && in __mlx4_qp_modify()
[all …]
/kernel/linux/linux-5.10/drivers/acpi/
Dprocessor_thermal.c210 unsigned long *cur_state) in processor_get_cur_state() argument
222 *cur_state = cpufreq_get_cur_state(pr->id); in processor_get_cur_state()
224 *cur_state += pr->throttling.state; in processor_get_cur_state()
Dpower.c210 int cur_state; in acpi_power_get_list_state() local
216 cur_state = 0; in acpi_power_get_list_state()
223 result = acpi_power_get_state(handle, &cur_state); in acpi_power_get_list_state()
228 if (cur_state != ACPI_POWER_RESOURCE_STATE_ON) in acpi_power_get_list_state()
233 cur_state ? "on" : "off")); in acpi_power_get_list_state()
235 *state = cur_state; in acpi_power_get_list_state()
/kernel/linux/linux-5.10/fs/gfs2/
Dtrace_gfs2.h100 __field( u8, cur_state )
111 __entry->cur_state = glock_trace_state(gl->gl_state);
121 glock_trace_name(__entry->cur_state),
139 __field( u8, cur_state )
147 __entry->cur_state = glock_trace_state(gl->gl_state);
154 glock_trace_name(__entry->cur_state),
171 __field( u8, cur_state )
181 __entry->cur_state = glock_trace_state(gl->gl_state);
190 glock_trace_name(__entry->cur_state),
/kernel/linux/linux-5.10/drivers/misc/cxl/
Dguest.c823 int rc, cur_state; in afu_update_state() local
825 rc = afu_read_error_state(afu, &cur_state); in afu_update_state()
829 if (afu->guest->previous_state == cur_state) in afu_update_state()
832 pr_devel("AFU(%d) update state to %#x\n", afu->slice, cur_state); in afu_update_state()
834 switch (cur_state) { in afu_update_state()
836 afu->guest->previous_state = cur_state; in afu_update_state()
847 rc = afu_read_error_state(afu, &cur_state); in afu_update_state()
848 if (!rc && cur_state == H_STATE_NORMAL) { in afu_update_state()
857 afu->guest->previous_state = cur_state; in afu_update_state()
864 afu->guest->previous_state = cur_state; in afu_update_state()
[all …]
/kernel/linux/linux-5.10/drivers/hwmon/
Dmlxreg-fan.c293 unsigned long cur_state; in mlxreg_fan_set_cur_state() local
326 cur_state = MLXREG_FAN_PWM_DUTY2STATE(regval); in mlxreg_fan_set_cur_state()
327 if (state < cur_state) in mlxreg_fan_set_cur_state()
330 state = cur_state; in mlxreg_fan_set_cur_state()
/kernel/linux/linux-5.10/drivers/infiniband/hw/usnic/
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()
/kernel/linux/linux-5.10/drivers/platform/x86/
Dacerhdf.c513 int cur_temp, cur_state, err = 0; in acerhdf_set_cur_state() local
524 err = acerhdf_get_fanstate(&cur_state); in acerhdf_set_cur_state()
531 if (cur_state == ACERHDF_FAN_AUTO) in acerhdf_set_cur_state()
534 if (cur_state == ACERHDF_FAN_OFF) in acerhdf_set_cur_state()
/kernel/linux/linux-5.10/net/netfilter/
Dnf_conntrack_proto_sctp.c204 enum sctp_conntrack cur_state, in sctp_new_state() argument
259 sctp_conntrack_names[cur_state]); in sctp_new_state()
260 return cur_state; in sctp_new_state()
264 dir, sctp_conntrack_names[cur_state], chunk_type, in sctp_new_state()
265 sctp_conntrack_names[sctp_conntracks[dir][i][cur_state]]); in sctp_new_state()
267 return sctp_conntracks[dir][i][cur_state]; in sctp_new_state()
/kernel/linux/linux-5.10/security/selinux/ss/
Dconditional.c99 if (new_state != node->cur_state) { in evaluate_cond_node()
100 node->cur_state = new_state; in evaluate_cond_node()
385 node->cur_state = le32_to_cpu(buf[0]); in cond_read_node()
508 buf[0] = cpu_to_le32(node->cur_state); in cond_write_node()
651 newn->cur_state = orign->cur_state; in duplicate_policydb_cond_list()
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/
Dqp.c2073 enum ib_qp_state cur_state, in __mlx4_ib_modify_qp() argument
2185 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) { in __mlx4_ib_modify_qp()
2203 if (cur_state == IB_QPS_SQD && new_state == IB_QPS_SQD && in __mlx4_ib_modify_qp()
2210 if (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) { in __mlx4_ib_modify_qp()
2279 (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR)) { in __mlx4_ib_modify_qp()
2399 cur_state == IB_QPS_RESET && in __mlx4_ib_modify_qp()
2403 if (cur_state == IB_QPS_INIT && in __mlx4_ib_modify_qp()
2459 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD && in __mlx4_ib_modify_qp()
2466 cur_state == IB_QPS_RESET && in __mlx4_ib_modify_qp()
2477 cur_state == IB_QPS_RESET && in __mlx4_ib_modify_qp()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/efa/
Defa_verbs.c839 static bool efa_modify_srd_qp_is_ok(enum ib_qp_state cur_state, in efa_modify_srd_qp_is_ok() argument
846 cur_state != IB_QPS_RTR && cur_state != IB_QPS_RTS && in efa_modify_srd_qp_is_ok()
847 cur_state != IB_QPS_SQD && cur_state != IB_QPS_SQE) in efa_modify_srd_qp_is_ok()
850 if (!srd_qp_state_table[cur_state][next_state].valid) in efa_modify_srd_qp_is_ok()
853 req_param = srd_qp_state_table[cur_state][next_state].req_param; in efa_modify_srd_qp_is_ok()
854 opt_param = srd_qp_state_table[cur_state][next_state].opt_param; in efa_modify_srd_qp_is_ok()
867 enum ib_qp_state cur_state, in efa_modify_qp_validate() argument
885 err = !efa_modify_srd_qp_is_ok(cur_state, new_state, in efa_modify_qp_validate()
888 err = !ib_modify_qp_is_ok(cur_state, new_state, IB_QPT_UD, in efa_modify_qp_validate()
915 enum ib_qp_state cur_state; in efa_modify_qp() local
[all …]
/kernel/linux/linux-5.10/drivers/pwm/
Dpwm-sifive.c150 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()
/kernel/linux/linux-5.10/drivers/infiniband/hw/mthca/
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
868 cur_state = attr->cur_qp_state; in mthca_modify_qp()
[all …]

1234