/drivers/thermal/ |
D | step_wise.c | 53 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 …]
|
/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 …]
|
/drivers/acpi/ |
D | processor_thermal.c | 217 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()
|
D | power.c | 197 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()
|
/drivers/infiniband/hw/hns/ |
D | hns_roce_hw_v1.c | 1744 enum hns_roce_qp_state cur_state, in hns_roce_v1_qp_modify() argument 1792 if (cur_state >= HNS_ROCE_QP_NUM_STATE || in hns_roce_v1_qp_modify() 1794 !op[cur_state][new_state]) { in hns_roce_v1_qp_modify() 1796 cur_state, new_state); in hns_roce_v1_qp_modify() 1800 if (op[cur_state][new_state] == HNS_ROCE_CMD_2RST_QP) in hns_roce_v1_qp_modify() 1805 if (op[cur_state][new_state] == HNS_ROCE_CMD_2ERR_QP) in hns_roce_v1_qp_modify() 1817 op[cur_state][new_state], in hns_roce_v1_qp_modify() 1825 int attr_mask, enum ib_qp_state cur_state, in hns_roce_v1_m_sqp() argument 1850 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) { in hns_roce_v1_m_sqp() 1965 int attr_mask, enum ib_qp_state cur_state, in hns_roce_v1_m_qp() argument [all …]
|
D | hns_roce_qp.c | 657 enum ib_qp_state cur_state, new_state; in hns_roce_modify_qp() local 665 cur_state = attr_mask & IB_QP_CUR_STATE ? in hns_roce_modify_qp() 668 attr->qp_state : cur_state; in hns_roce_modify_qp() 670 if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type, attr_mask, in hns_roce_modify_qp() 719 if (cur_state == new_state && cur_state == IB_QPS_RESET) { in hns_roce_modify_qp() 721 dev_err(dev, "cur_state=%d new_state=%d\n", cur_state, in hns_roce_modify_qp() 726 ret = hr_dev->hw->modify_qp(ibqp, attr, attr_mask, cur_state, in hns_roce_modify_qp()
|
/drivers/misc/cxl/ |
D | guest.c | 828 int rc, cur_state; in afu_update_state() local 830 rc = afu_read_error_state(afu, &cur_state); in afu_update_state() 834 if (afu->guest->previous_state == cur_state) in afu_update_state() 837 pr_devel("AFU(%d) update state to %#x\n", afu->slice, cur_state); in afu_update_state() 839 switch (cur_state) { in afu_update_state() 841 afu->guest->previous_state = cur_state; in afu_update_state() 852 rc = afu_read_error_state(afu, &cur_state); in afu_update_state() 853 if (!rc && cur_state == H_STATE_NORMAL) { in afu_update_state() 862 afu->guest->previous_state = cur_state; in afu_update_state() 869 afu->guest->previous_state = cur_state; in afu_update_state() [all …]
|
/drivers/platform/x86/ |
D | acerhdf.c | 528 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()
|
/drivers/infiniband/hw/usnic/ |
D | usnic_ib_main.c | 120 enum ib_qp_state cur_state; in usnic_ib_qp_grp_modify_active_to_err() local 127 cur_state = qp_grp->state; in usnic_ib_qp_grp_modify_active_to_err() 128 if (cur_state == IB_QPS_INIT || in usnic_ib_qp_grp_modify_active_to_err() 129 cur_state == IB_QPS_RTR || in usnic_ib_qp_grp_modify_active_to_err() 130 cur_state == IB_QPS_RTS) { in usnic_ib_qp_grp_modify_active_to_err() 138 (cur_state), in usnic_ib_qp_grp_modify_active_to_err()
|
/drivers/net/ethernet/qlogic/qed/ |
D | qed_roce.c | 1729 out_params->state = qp->cur_state; in qed_roce_query_qp() 1782 qp->cur_state = QED_ROCE_QP_STATE_ERR; in qed_roce_query_qp() 1784 out_params->state = qp->cur_state; in qed_roce_query_qp() 1829 qp->cur_state = QED_ROCE_QP_STATE_ERR; in qed_roce_query_qp() 1831 qp->cur_state = QED_ROCE_QP_STATE_SQE; in qed_roce_query_qp() 1834 out_params->state = qp->cur_state; in qed_roce_query_qp() 1856 if ((qp->cur_state != QED_ROCE_QP_STATE_RESET) && in qed_roce_destroy_qp() 1857 (qp->cur_state != QED_ROCE_QP_STATE_ERR) && in qed_roce_destroy_qp() 1858 (qp->cur_state != QED_ROCE_QP_STATE_INIT)) { in qed_roce_destroy_qp() 1996 qp->cur_state = QED_ROCE_QP_STATE_RESET; in qed_rdma_create_qp() [all …]
|
D | qed_roce.h | 103 enum qed_roce_qp_state cur_state; member
|
/drivers/infiniband/hw/mlx4/ |
D | qp.c | 1620 enum ib_qp_state cur_state, enum ib_qp_state new_state) in __mlx4_ib_modify_qp() argument 1694 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) { in __mlx4_ib_modify_qp() 1713 if (cur_state == IB_QPS_SQD && new_state == IB_QPS_SQD && in __mlx4_ib_modify_qp() 1720 if (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) { in __mlx4_ib_modify_qp() 1799 (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR)) { in __mlx4_ib_modify_qp() 1912 if (qp->rq.wqe_cnt && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in __mlx4_ib_modify_qp() 1915 if (cur_state == IB_QPS_INIT && in __mlx4_ib_modify_qp() 1973 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD && in __mlx4_ib_modify_qp() 1979 if (!ibqp->uobject && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in __mlx4_ib_modify_qp() 1988 if (!ibqp->uobject && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) { in __mlx4_ib_modify_qp() [all …]
|
/drivers/infiniband/hw/mthca/ |
D | mthca_qp.c | 545 enum ib_qp_state cur_state, enum ib_qp_state new_state) in __mthca_modify_qp() argument 652 cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) { in __mthca_modify_qp() 772 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD && in __mthca_modify_qp() 777 err = mthca_MODIFY_QP(dev, cur_state, new_state, qp->qpn, 0, in __mthca_modify_qp() 781 cur_state, new_state, err); in __mthca_modify_qp() 803 if (cur_state != IB_QPS_RTR && in __mthca_modify_qp() 807 if (cur_state != IB_QPS_RESET && in __mthca_modify_qp() 808 cur_state != IB_QPS_ERR && in __mthca_modify_qp() 847 enum ib_qp_state cur_state, new_state; in mthca_modify_qp() local 852 cur_state = attr->cur_qp_state; in mthca_modify_qp() [all …]
|
/drivers/gpu/drm/rcar-du/ |
D | rcar_du_plane.c | 56 struct rcar_du_plane_state *cur_state; in rcar_du_plane_needs_realloc() local 58 cur_state = to_rcar_plane_state(plane->plane.state); in rcar_du_plane_needs_realloc() 64 if (!cur_state->format || in rcar_du_plane_needs_realloc() 65 cur_state->format->planes != new_state->format->planes) in rcar_du_plane_needs_realloc() 69 if (cur_state->source != new_state->source) in rcar_du_plane_needs_realloc()
|
/drivers/net/ethernet/netronome/nfp/ |
D | nfp_bpf_verifier.c | 81 const struct bpf_reg_state *reg0 = &env->cur_state.regs[0]; in nfp_bpf_check_exit() 111 if (env->cur_state.regs[reg].type != PTR_TO_CTX) in nfp_bpf_check_ctx_ptr()
|
/drivers/spi/ |
D | spi-qup.c | 168 u32 cur_state; in spi_qup_set_state() local 183 cur_state = readl_relaxed(controller->base + QUP_STATE); in spi_qup_set_state() 188 if (((cur_state & QUP_STATE_MASK) == QUP_STATE_PAUSE) && in spi_qup_set_state() 193 cur_state &= ~QUP_STATE_MASK; in spi_qup_set_state() 194 cur_state |= state; in spi_qup_set_state() 195 writel_relaxed(cur_state, controller->base + QUP_STATE); in spi_qup_set_state()
|
/drivers/infiniband/core/ |
D | verbs.c | 1168 int ib_modify_qp_is_ok(enum ib_qp_state cur_state, enum ib_qp_state next_state, in ib_modify_qp_is_ok() argument 1174 if (cur_state < 0 || cur_state > IB_QPS_ERR || in ib_modify_qp_is_ok() 1179 cur_state != IB_QPS_RTR && cur_state != IB_QPS_RTS && in ib_modify_qp_is_ok() 1180 cur_state != IB_QPS_SQD && cur_state != IB_QPS_SQE) in ib_modify_qp_is_ok() 1183 if (!qp_state_table[cur_state][next_state].valid) in ib_modify_qp_is_ok() 1186 req_param = qp_state_table[cur_state][next_state].req_param[type]; in ib_modify_qp_is_ok() 1187 opt_param = qp_state_table[cur_state][next_state].opt_param[type]; in ib_modify_qp_is_ok()
|
/drivers/infiniband/hw/mlx5/ |
D | qp.c | 2576 enum ib_qp_state cur_state, enum ib_qp_state new_state) in __mlx5_ib_modify_qp() argument 2658 if ((cur_state == IB_QPS_RESET) && (new_state == IB_QPS_INIT)) { in __mlx5_ib_modify_qp() 2768 if (qp->rq.wqe_cnt && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in __mlx5_ib_modify_qp() 2771 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD && in __mlx5_ib_modify_qp() 2777 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) { in __mlx5_ib_modify_qp() 2785 if (!ibqp->uobject && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in __mlx5_ib_modify_qp() 2791 mlx5_cur = to_mlx5_state(cur_state); in __mlx5_ib_modify_qp() 2802 if (cur_state != IB_QPS_RESET && cur_state != IB_QPS_ERR && in __mlx5_ib_modify_qp() 2819 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) { in __mlx5_ib_modify_qp() 2832 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT && in __mlx5_ib_modify_qp() [all …]
|
/drivers/infiniband/sw/rxe/ |
D | rxe_qp.c | 417 enum ib_qp_state cur_state = (mask & IB_QP_CUR_STATE) ? in rxe_qp_chk_attr() local 420 attr->qp_state : cur_state; in rxe_qp_chk_attr() 422 if (!ib_modify_qp_is_ok(cur_state, new_state, qp_type(qp), mask, in rxe_qp_chk_attr() 429 if (cur_state == IB_QPS_SQD) { in rxe_qp_chk_attr()
|
/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-mdio.c | 687 enum xgbe_an cur_state = pdata->an_state; in xgbe_an_state_machine() local 714 cur_state = pdata->an_state; in xgbe_an_state_machine() 752 cur_state); in xgbe_an_state_machine() 769 if (cur_state != pdata->an_state) in xgbe_an_state_machine()
|
/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/ |
D | gk20a.c | 48 int cur_state; member
|
/drivers/net/can/usb/ |
D | kvaser_usb.c | 832 enum can_state cur_state, new_state, tx_state, rx_state; in kvaser_usb_rx_error_update_can_state() local 836 new_state = cur_state = priv->can.state; in kvaser_usb_rx_error_update_can_state() 844 if (cur_state < CAN_STATE_BUS_OFF) { in kvaser_usb_rx_error_update_can_state() 849 else if (cur_state > CAN_STATE_ERROR_ACTIVE) in kvaser_usb_rx_error_update_can_state() 857 if (new_state != cur_state) { in kvaser_usb_rx_error_update_can_state() 865 (cur_state >= CAN_STATE_BUS_OFF) && in kvaser_usb_rx_error_update_can_state()
|
/drivers/video/fbdev/i810/ |
D | i810.h | 281 u32 cur_state; member
|
/drivers/thermal/tegra/ |
D | soctherm.c | 918 unsigned long *cur_state) in throt_get_cdev_cur_state() argument 925 *cur_state = 1; in throt_get_cdev_cur_state() 927 *cur_state = 0; in throt_get_cdev_cur_state() 933 unsigned long cur_state) in throt_set_cdev_state() argument
|
/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | tt.c | 544 mvm->cooling_dev.cur_state = state; in iwl_mvm_ctdp_command() 782 *state = mvm->cooling_dev.cur_state; in iwl_mvm_tcool_get_cur_state()
|