| /Linux-v5.4/drivers/thermal/ |
| D | step_wise.c | 41 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 …]
|
| /Linux-v5.4/drivers/gpu/drm/amd/powerplay/hwmgr/ |
| D | vega20_baco.c | 77 enum BACO_STATE cur_state; in vega20_baco_set_state() local 80 vega20_baco_get_state(hwmgr, &cur_state); in vega20_baco_set_state() 82 if (cur_state == state) in vega20_baco_set_state()
|
| D | vega10_baco.c | 90 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()
|
| D | vega12_baco.c | 88 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()
|
| /Linux-v5.4/drivers/net/ethernet/qlogic/qed/ |
| D | qed_roce.c | 862 out_params->state = qp->cur_state; in qed_roce_query_qp() 915 qp->cur_state = QED_ROCE_QP_STATE_ERR; in qed_roce_query_qp() 917 out_params->state = qp->cur_state; in qed_roce_query_qp() 962 qp->cur_state = QED_ROCE_QP_STATE_ERR; in qed_roce_query_qp() 965 out_params->state = qp->cur_state; in qed_roce_query_qp() 985 if ((qp->cur_state != QED_ROCE_QP_STATE_RESET) && in qed_roce_destroy_qp() 986 (qp->cur_state != QED_ROCE_QP_STATE_ERR) && in qed_roce_destroy_qp() 987 (qp->cur_state != QED_ROCE_QP_STATE_INIT)) { in qed_roce_destroy_qp() 993 if (qp->cur_state != QED_ROCE_QP_STATE_RESET) { in qed_roce_destroy_qp() 1020 (qp->cur_state == QED_ROCE_QP_STATE_RTR)) { in qed_roce_modify_qp() [all …]
|
| /Linux-v5.4/drivers/net/ethernet/mellanox/mlx4/ |
| D | qp.c | 88 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 …]
|
| /Linux-v5.4/drivers/acpi/ |
| D | processor_thermal.c | 212 unsigned long *cur_state) in processor_get_cur_state() argument 224 *cur_state = cpufreq_get_cur_state(pr->id); in processor_get_cur_state() 226 *cur_state += pr->throttling.state; in processor_get_cur_state()
|
| D | power.c | 212 int cur_state; in acpi_power_get_list_state() local 218 cur_state = 0; in acpi_power_get_list_state() 225 result = acpi_power_get_state(handle, &cur_state); in acpi_power_get_list_state() 230 if (cur_state != ACPI_POWER_RESOURCE_STATE_ON) in acpi_power_get_list_state() 235 cur_state ? "on" : "off")); in acpi_power_get_list_state() 237 *state = cur_state; in acpi_power_get_list_state()
|
| /Linux-v5.4/fs/gfs2/ |
| D | trace_gfs2.h | 101 __field( u8, cur_state ) 112 __entry->cur_state = glock_trace_state(gl->gl_state); 122 glock_trace_name(__entry->cur_state), 140 __field( u8, cur_state ) 148 __entry->cur_state = glock_trace_state(gl->gl_state); 155 glock_trace_name(__entry->cur_state), 172 __field( u8, cur_state ) 182 __entry->cur_state = glock_trace_state(gl->gl_state); 191 glock_trace_name(__entry->cur_state),
|
| /Linux-v5.4/drivers/misc/cxl/ |
| D | guest.c | 823 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 …]
|
| /Linux-v5.4/drivers/hwmon/ |
| D | mlxreg-fan.c | 293 unsigned long cur_state; in mlxreg_fan_set_cur_state() local 320 cur_state = MLXREG_FAN_PWM_DUTY2STATE(regval); in mlxreg_fan_set_cur_state() 321 if (state < cur_state) in mlxreg_fan_set_cur_state() 324 state = cur_state; in mlxreg_fan_set_cur_state()
|
| /Linux-v5.4/net/netfilter/ |
| D | nf_conntrack_proto_sctp.c | 202 enum sctp_conntrack cur_state, in sctp_new_state() argument 257 sctp_conntrack_names[cur_state]); in sctp_new_state() 258 return cur_state; in sctp_new_state() 262 dir, sctp_conntrack_names[cur_state], chunk_type, in sctp_new_state() 263 sctp_conntrack_names[sctp_conntracks[dir][i][cur_state]]); in sctp_new_state() 265 return sctp_conntracks[dir][i][cur_state]; in sctp_new_state()
|
| /Linux-v5.4/drivers/infiniband/hw/usnic/ |
| D | usnic_ib_main.c | 108 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-v5.4/drivers/infiniband/hw/mlx4/ |
| D | qp.c | 2133 enum ib_qp_state cur_state, in __mlx4_ib_modify_qp() argument 2245 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) { in __mlx4_ib_modify_qp() 2263 if (cur_state == IB_QPS_SQD && new_state == IB_QPS_SQD && in __mlx4_ib_modify_qp() 2270 if (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) { in __mlx4_ib_modify_qp() 2339 (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR)) { in __mlx4_ib_modify_qp() 2459 cur_state == IB_QPS_RESET && in __mlx4_ib_modify_qp() 2463 if (cur_state == IB_QPS_INIT && in __mlx4_ib_modify_qp() 2519 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD && in __mlx4_ib_modify_qp() 2526 cur_state == IB_QPS_RESET && in __mlx4_ib_modify_qp() 2537 cur_state == IB_QPS_RESET && in __mlx4_ib_modify_qp() [all …]
|
| /Linux-v5.4/drivers/platform/x86/ |
| D | acerhdf.c | 527 int cur_temp, cur_state, err = 0; in acerhdf_set_cur_state() local 538 err = acerhdf_get_fanstate(&cur_state); in acerhdf_set_cur_state() 545 if (cur_state == ACERHDF_FAN_AUTO) in acerhdf_set_cur_state() 548 if (cur_state == ACERHDF_FAN_OFF) in acerhdf_set_cur_state()
|
| /Linux-v5.4/drivers/pwm/ |
| D | pwm-sifive.c | 153 struct pwm_state cur_state; in pwm_sifive_apply() local 170 cur_state = pwm->state; in pwm_sifive_apply() 171 enabled = cur_state.enabled; in pwm_sifive_apply()
|
| D | pwm-rcar.c | 164 struct pwm_state cur_state; in rcar_pwm_apply() local 168 pwm_get_state(pwm, &cur_state); in rcar_pwm_apply()
|
| /Linux-v5.4/drivers/infiniband/hw/mthca/ |
| D | mthca_qp.c | 558 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 …]
|
| /Linux-v5.4/include/linux/ |
| D | bpf_verifier.h | 359 struct bpf_verifier_state *cur_state; /* current verifier state */ member 403 struct bpf_verifier_state *cur = env->cur_state; in cur_func()
|
| /Linux-v5.4/security/selinux/ss/ |
| D | conditional.h | 54 int cur_state; member
|
| D | conditional.c | 94 if (new_state != node->cur_state) { in evaluate_cond_node() 95 node->cur_state = new_state; in evaluate_cond_node() 406 node->cur_state = le32_to_cpu(buf[0]); in cond_read_node() 558 buf[0] = cpu_to_le32(node->cur_state); in cond_write_node()
|
| /Linux-v5.4/drivers/infiniband/hw/hns/ |
| D | hns_roce_hw_v1.c | 2491 enum hns_roce_qp_state cur_state, in hns_roce_v1_qp_modify() argument 2539 if (cur_state >= HNS_ROCE_QP_NUM_STATE || in hns_roce_v1_qp_modify() 2541 !op[cur_state][new_state]) { in hns_roce_v1_qp_modify() 2543 cur_state, new_state); in hns_roce_v1_qp_modify() 2547 if (op[cur_state][new_state] == HNS_ROCE_CMD_2RST_QP) in hns_roce_v1_qp_modify() 2552 if (op[cur_state][new_state] == HNS_ROCE_CMD_2ERR_QP) in hns_roce_v1_qp_modify() 2564 op[cur_state][new_state], in hns_roce_v1_qp_modify() 2572 int attr_mask, enum ib_qp_state cur_state, in hns_roce_v1_m_sqp() argument 2598 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) { in hns_roce_v1_m_sqp() 2717 int attr_mask, enum ib_qp_state cur_state, in hns_roce_v1_m_qp() argument [all …]
|
| D | hns_roce_qp.c | 1177 enum ib_qp_state cur_state, new_state; in hns_roce_modify_qp() local 1182 cur_state = attr_mask & IB_QP_CUR_STATE ? in hns_roce_modify_qp() 1184 new_state = attr_mask & IB_QP_STATE ? attr->qp_state : cur_state; in hns_roce_modify_qp() 1200 if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type, in hns_roce_modify_qp() 1210 if (cur_state == new_state && cur_state == IB_QPS_RESET) { in hns_roce_modify_qp() 1214 "cur_state=%d new_state=%d\n", cur_state, in hns_roce_modify_qp() 1223 ret = hr_dev->hw->modify_qp(ibqp, attr, attr_mask, cur_state, in hns_roce_modify_qp()
|
| /Linux-v5.4/Documentation/driver-api/thermal/ |
| D | intel_powerclamp.rst | 270 cur_state:0 274 cur_state allows user to set the desired idle percentage. Writing 0 to 275 cur_state will stop idle injection. Writing a value between 1 and 276 max_state will start the idle injection. Reading cur_state returns the 280 cur_state returns value -1 instead of 0 which is to avoid confusing 286 $ sudo sh -c "echo 25 > /sys/class/thermal/cooling_device80/cur_state
|
| /Linux-v5.4/drivers/net/ethernet/amd/xgbe/ |
| D | xgbe-mdio.c | 765 enum xgbe_an cur_state = pdata->an_state; in xgbe_an37_state_machine() local 783 cur_state = pdata->an_state; in xgbe_an37_state_machine() 804 cur_state); in xgbe_an37_state_machine() 826 enum xgbe_an cur_state = pdata->an_state; in xgbe_an73_state_machine() local 849 cur_state = pdata->an_state; in xgbe_an73_state_machine() 887 cur_state); in xgbe_an73_state_machine() 907 if (cur_state != pdata->an_state) in xgbe_an73_state_machine()
|