Home
last modified time | relevance | path

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

123

/Linux-v4.19/drivers/thermal/
Dstep_wise.c53 unsigned long cur_state; in get_target_state() local
61 cdev->ops->get_cur_state(cdev, &cur_state); in get_target_state()
63 dev_dbg(&cdev->device, "cur_state=%ld\n", cur_state); in get_target_state()
67 next_target = (cur_state + 1) >= instance->upper ? in get_target_state()
69 ((cur_state + 1) < instance->lower ? in get_target_state()
70 instance->lower : (cur_state + 1)); in get_target_state()
81 next_target = cur_state < instance->upper ? in get_target_state()
82 (cur_state + 1) : instance->upper; in get_target_state()
92 if (cur_state <= instance->lower) { in get_target_state()
97 next_target = cur_state - 1; in get_target_state()
[all …]
/Linux-v4.19/drivers/net/ethernet/qlogic/qed/
Dqed_roce.c861 out_params->state = qp->cur_state; in qed_roce_query_qp()
914 qp->cur_state = QED_ROCE_QP_STATE_ERR; in qed_roce_query_qp()
916 out_params->state = qp->cur_state; in qed_roce_query_qp()
961 qp->cur_state = QED_ROCE_QP_STATE_ERR; in qed_roce_query_qp()
964 out_params->state = qp->cur_state; in qed_roce_query_qp()
984 if ((qp->cur_state != QED_ROCE_QP_STATE_RESET) && in qed_roce_destroy_qp()
985 (qp->cur_state != QED_ROCE_QP_STATE_ERR) && in qed_roce_destroy_qp()
986 (qp->cur_state != QED_ROCE_QP_STATE_INIT)) { in qed_roce_destroy_qp()
992 if (qp->cur_state != QED_ROCE_QP_STATE_RESET) { in qed_roce_destroy_qp()
1019 (qp->cur_state == QED_ROCE_QP_STATE_RTR)) { in qed_roce_modify_qp()
[all …]
/Linux-v4.19/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 …]
/Linux-v4.19/drivers/acpi/
Dprocessor_thermal.c217 unsigned long *cur_state) in processor_get_cur_state() argument
229 *cur_state = cpufreq_get_cur_state(pr->id); in processor_get_cur_state()
231 *cur_state += pr->throttling.state; in processor_get_cur_state()
Dpower.c197 int cur_state; in acpi_power_get_list_state() local
203 cur_state = 0; in acpi_power_get_list_state()
210 result = acpi_power_get_state(handle, &cur_state); in acpi_power_get_list_state()
215 if (cur_state != ACPI_POWER_RESOURCE_STATE_ON) in acpi_power_get_list_state()
220 cur_state ? "on" : "off")); in acpi_power_get_list_state()
222 *state = cur_state; in acpi_power_get_list_state()
/Linux-v4.19/fs/gfs2/
Dtrace_gfs2.h101 __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-v4.19/include/linux/
Dbpf_verifier.h191 struct bpf_verifier_state *cur_state; /* current verifier state */ member
211 struct bpf_verifier_state *cur = env->cur_state; in cur_regs()
/Linux-v4.19/drivers/misc/cxl/
Dguest.c825 int rc, cur_state; in afu_update_state() local
827 rc = afu_read_error_state(afu, &cur_state); in afu_update_state()
831 if (afu->guest->previous_state == cur_state) in afu_update_state()
834 pr_devel("AFU(%d) update state to %#x\n", afu->slice, cur_state); in afu_update_state()
836 switch (cur_state) { in afu_update_state()
838 afu->guest->previous_state = cur_state; in afu_update_state()
849 rc = afu_read_error_state(afu, &cur_state); in afu_update_state()
850 if (!rc && cur_state == H_STATE_NORMAL) { in afu_update_state()
859 afu->guest->previous_state = cur_state; in afu_update_state()
866 afu->guest->previous_state = cur_state; in afu_update_state()
[all …]
/Linux-v4.19/drivers/platform/x86/
Dacerhdf.c528 int cur_temp, cur_state, err = 0; in acerhdf_set_cur_state() local
539 err = acerhdf_get_fanstate(&cur_state); in acerhdf_set_cur_state()
546 if (cur_state == ACERHDF_FAN_AUTO) in acerhdf_set_cur_state()
549 if (cur_state == ACERHDF_FAN_OFF) in acerhdf_set_cur_state()
/Linux-v4.19/drivers/hwmon/
Dmlxreg-fan.c309 unsigned long cur_state; in mlxreg_fan_set_cur_state() local
336 cur_state = MLXREG_FAN_PWM_DUTY2STATE(regval); in mlxreg_fan_set_cur_state()
337 if (state < cur_state) in mlxreg_fan_set_cur_state()
340 state = cur_state; in mlxreg_fan_set_cur_state()
Daspeed-pwm-tacho.c180 u8 cur_state; member
801 *state = cdev->cur_state; in aspeed_pwm_cz_get_cur_state()
815 cdev->cur_state = state; in aspeed_pwm_cz_set_cur_state()
817 cdev->cooling_levels[cdev->cur_state]; in aspeed_pwm_cz_set_cur_state()
819 cdev->cooling_levels[cdev->cur_state]); in aspeed_pwm_cz_set_cur_state()
/Linux-v4.19/drivers/infiniband/hw/mlx4/
Dqp.c2045 enum ib_qp_state cur_state, enum ib_qp_state new_state) in __mlx4_ib_modify_qp() argument
2156 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) { in __mlx4_ib_modify_qp()
2176 if (cur_state == IB_QPS_SQD && new_state == IB_QPS_SQD && in __mlx4_ib_modify_qp()
2183 if (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) { in __mlx4_ib_modify_qp()
2250 (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR)) { in __mlx4_ib_modify_qp()
2370 cur_state == IB_QPS_RESET && in __mlx4_ib_modify_qp()
2374 if (cur_state == IB_QPS_INIT && in __mlx4_ib_modify_qp()
2430 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD && in __mlx4_ib_modify_qp()
2437 cur_state == IB_QPS_RESET && in __mlx4_ib_modify_qp()
2448 cur_state == IB_QPS_RESET && in __mlx4_ib_modify_qp()
[all …]
/Linux-v4.19/drivers/infiniband/hw/usnic/
Dusnic_ib_main.c102 enum ib_qp_state cur_state; in usnic_ib_qp_grp_modify_active_to_err() local
109 cur_state = qp_grp->state; in usnic_ib_qp_grp_modify_active_to_err()
110 if (cur_state == IB_QPS_INIT || in usnic_ib_qp_grp_modify_active_to_err()
111 cur_state == IB_QPS_RTR || in usnic_ib_qp_grp_modify_active_to_err()
112 cur_state == IB_QPS_RTS) { in usnic_ib_qp_grp_modify_active_to_err()
120 (cur_state), in usnic_ib_qp_grp_modify_active_to_err()
/Linux-v4.19/net/netfilter/
Dnf_conntrack_proto_sctp.c210 enum sctp_conntrack cur_state, in sctp_new_state() argument
265 sctp_conntrack_names[cur_state]); in sctp_new_state()
266 return cur_state; in sctp_new_state()
270 dir, sctp_conntrack_names[cur_state], chunk_type, in sctp_new_state()
271 sctp_conntrack_names[sctp_conntracks[dir][i][cur_state]]); in sctp_new_state()
273 return sctp_conntracks[dir][i][cur_state]; in sctp_new_state()
/Linux-v4.19/drivers/infiniband/hw/mthca/
Dmthca_qp.c557 enum ib_qp_state cur_state, enum ib_qp_state new_state) in __mthca_modify_qp() argument
664 cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) { in __mthca_modify_qp()
784 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD && in __mthca_modify_qp()
789 err = mthca_MODIFY_QP(dev, cur_state, new_state, qp->qpn, 0, in __mthca_modify_qp()
793 cur_state, new_state, err); in __mthca_modify_qp()
815 if (cur_state != IB_QPS_RTR && in __mthca_modify_qp()
819 if (cur_state != IB_QPS_RESET && in __mthca_modify_qp()
820 cur_state != IB_QPS_ERR && in __mthca_modify_qp()
859 enum ib_qp_state cur_state, new_state; in mthca_modify_qp() local
864 cur_state = attr->cur_qp_state; in mthca_modify_qp()
[all …]
/Linux-v4.19/drivers/infiniband/hw/hns/
Dhns_roce_qp.c931 enum ib_qp_state cur_state, new_state; in hns_roce_modify_qp() local
939 cur_state = attr_mask & IB_QP_CUR_STATE ? in hns_roce_modify_qp()
942 attr->qp_state : cur_state; in hns_roce_modify_qp()
955 if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type, attr_mask, in hns_roce_modify_qp()
1007 if (cur_state == new_state && cur_state == IB_QPS_RESET) { in hns_roce_modify_qp()
1010 dev_err(dev, "cur_state=%d new_state=%d\n", cur_state, in hns_roce_modify_qp()
1019 ret = hr_dev->hw->modify_qp(ibqp, attr, attr_mask, cur_state, in hns_roce_modify_qp()
Dhns_roce_hw_v1.c2527 enum hns_roce_qp_state cur_state, in hns_roce_v1_qp_modify() argument
2575 if (cur_state >= HNS_ROCE_QP_NUM_STATE || in hns_roce_v1_qp_modify()
2577 !op[cur_state][new_state]) { in hns_roce_v1_qp_modify()
2579 cur_state, new_state); in hns_roce_v1_qp_modify()
2583 if (op[cur_state][new_state] == HNS_ROCE_CMD_2RST_QP) in hns_roce_v1_qp_modify()
2588 if (op[cur_state][new_state] == HNS_ROCE_CMD_2ERR_QP) in hns_roce_v1_qp_modify()
2600 op[cur_state][new_state], in hns_roce_v1_qp_modify()
2608 int attr_mask, enum ib_qp_state cur_state, in hns_roce_v1_m_sqp() argument
2634 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) { in hns_roce_v1_m_sqp()
2753 int attr_mask, enum ib_qp_state cur_state, in hns_roce_v1_m_qp() argument
[all …]
/Linux-v4.19/security/selinux/ss/
Dconditional.h56 int cur_state; member
Dconditional.c96 if (new_state != node->cur_state) { in evaluate_cond_node()
97 node->cur_state = new_state; in evaluate_cond_node()
412 node->cur_state = le32_to_cpu(buf[0]); in cond_read_node()
564 buf[0] = cpu_to_le32(node->cur_state); in cond_write_node()
/Linux-v4.19/Documentation/thermal/
Dintel_powerclamp.txt267 cur_state:0
271 cur_state allows user to set the desired idle percentage. Writing 0 to
272 cur_state will stop idle injection. Writing a value between 1 and
273 max_state will start the idle injection. Reading cur_state returns the
277 cur_state returns value -1 instead of 0 which is to avoid confusing
282 $ sudo sh -c "echo 25 > /sys/class/thermal/cooling_device80/cur_state
/Linux-v4.19/drivers/net/ethernet/amd/xgbe/
Dxgbe-mdio.c765 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()
/Linux-v4.19/tools/thermal/tmon/
Dsysfs.c108 sysfs_get_ulong(path, "cur_state", &cdi->cur_state); in probe_cdev()
112 cdi->type, cdi->max_state, cdi->cur_state, cdi->instance); in probe_cdev()
524 val = ptdata.cdi[i].cur_state; in update_thermal_data()
Dtmon.h60 unsigned long cur_state; member
/Linux-v4.19/drivers/spi/
Dspi-qup.c195 u32 cur_state; in spi_qup_set_state() local
210 cur_state = readl_relaxed(controller->base + QUP_STATE); in spi_qup_set_state()
215 if (((cur_state & QUP_STATE_MASK) == QUP_STATE_PAUSE) && in spi_qup_set_state()
220 cur_state &= ~QUP_STATE_MASK; in spi_qup_set_state()
221 cur_state |= state; in spi_qup_set_state()
222 writel_relaxed(cur_state, controller->base + QUP_STATE); in spi_qup_set_state()
/Linux-v4.19/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_qp.c492 enum ib_qp_state cur_state, next_state; in pvrdma_modify_qp() local
497 cur_state = (attr_mask & IB_QP_CUR_STATE) ? attr->cur_qp_state : in pvrdma_modify_qp()
499 next_state = (attr_mask & IB_QP_STATE) ? attr->qp_state : cur_state; in pvrdma_modify_qp()
501 if (!ib_modify_qp_is_ok(cur_state, next_state, ibqp->qp_type, in pvrdma_modify_qp()
532 if (cur_state == next_state && cur_state == IB_QPS_RESET) { in pvrdma_modify_qp()

123