Searched refs:cur_state (Results 26 - 50 of 98) sorted by relevance

1234

/linux-master/tools/thermal/thermal-engine/
H A Dthermal-engine.c181 static int cdev_update(int cdev_id, int cur_state, __maybe_unused void *arg) argument
183 INFO("cdev:%d state:%d\n", cdev_id, cur_state);
/linux-master/tools/testing/selftests/hid/tests/
H A Dtest_tablet.py694 cur_state = PenState.PEN_IS_OUT_OF_RANGE
700 cur_state, p, evdev, events, allow_intermediate_states, button
703 cur_state = p.current_state
706 if scribble and cur_state != PenState.PEN_IS_OUT_OF_RANGE:
711 cur_state, p, evdev, events, allow_intermediate_states, button
720 cur_state, p, evdev, events, allow_intermediate_states, button
722 cur_state = p.current_state
/linux-master/drivers/infiniband/hw/mlx4/
H A Dqp.c2110 enum ib_qp_state cur_state,
2222 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) {
2240 if (cur_state == IB_QPS_SQD && new_state == IB_QPS_SQD &&
2247 if (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) {
2316 (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR)) {
2436 cur_state == IB_QPS_RESET &&
2440 if (cur_state == IB_QPS_INIT &&
2496 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD &&
2503 cur_state == IB_QPS_RESET &&
2514 cur_state
2108 __mlx4_ib_modify_qp(void *src, enum mlx4_ib_source_type src_type, const struct ib_qp_attr *attr, int attr_mask, enum ib_qp_state cur_state, enum ib_qp_state new_state, struct ib_udata *udata) argument
2700 enum ib_qp_state cur_state, new_state; local
4266 enum ib_wq_state cur_state, new_state; local
[all...]
/linux-master/drivers/net/ethernet/google/gve/
H A Dgve_tx_dqo.c167 struct gve_tx_pending_packet_dqo *cur_state = local
171 for (j = 0; j < cur_state->num_bufs; j++) {
174 dma_unmap_addr(cur_state, dma[j]),
175 dma_unmap_len(cur_state, len[j]),
179 dma_unmap_addr(cur_state, dma[j]),
180 dma_unmap_len(cur_state, len[j]),
184 if (cur_state->skb) {
185 dev_consume_skb_any(cur_state->skb);
186 cur_state->skb = NULL;
/linux-master/tools/thermal/tmon/
H A Dsysfs.c100 sysfs_get_ulong(path, "cur_state", &cdi->cur_state);
104 cdi->type, cdi->max_state, cdi->cur_state, cdi->instance);
517 val = ptdata.cdi[i].cur_state;
555 sysfs_set_ulong(ctrl_cdev_path, "cur_state",
584 sysfs_get_ulong(ctrl_cdev_path, "cur_state", state);
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Djpeg_v3_0.c176 if (adev->jpeg.cur_state != AMD_PG_STATE_GATE &&
501 if(state == adev->jpeg.cur_state)
510 adev->jpeg.cur_state = state;
H A Djpeg_v5_0_0.c166 if (adev->jpeg.cur_state != AMD_PG_STATE_GATE &&
457 if (state == adev->jpeg.cur_state)
466 adev->jpeg.cur_state = state;
H A Djpeg_v4_0.c202 if (adev->jpeg.cur_state != AMD_PG_STATE_GATE &&
659 adev->jpeg.cur_state = AMD_PG_STATE_UNGATE;
663 if (state == adev->jpeg.cur_state)
672 adev->jpeg.cur_state = state;
H A Djpeg_v4_0_5.c233 if (adev->jpeg.cur_state != AMD_PG_STATE_GATE &&
692 adev->jpeg.cur_state = AMD_PG_STATE_UNGATE;
696 if (state == adev->jpeg.cur_state)
705 adev->jpeg.cur_state = state;
H A Djpeg_v2_0.c159 if (adev->jpeg.cur_state != AMD_PG_STATE_GATE &&
703 if (state == adev->jpeg.cur_state)
712 adev->jpeg.cur_state = state;
H A Djpeg_v2_5.c222 if (adev->jpeg.cur_state != AMD_PG_STATE_GATE &&
554 if (state == adev->jpeg.cur_state)
563 adev->jpeg.cur_state = state;
/linux-master/drivers/infiniband/hw/mthca/
H A Dmthca_qp.c558 enum ib_qp_state cur_state,
668 cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) {
788 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD &&
793 err = mthca_MODIFY_QP(dev, cur_state, new_state, qp->qpn, 0,
797 cur_state, new_state, err);
819 if (cur_state != IB_QPS_RTR &&
823 if (cur_state != IB_QPS_RESET &&
824 cur_state != IB_QPS_ERR &&
863 enum ib_qp_state cur_state, new_state; local
871 cur_state
556 __mthca_modify_qp(struct ib_qp *ibqp, const struct ib_qp_attr *attr, int attr_mask, enum ib_qp_state cur_state, enum ib_qp_state new_state, struct ib_udata *udata) argument
[all...]
/linux-master/drivers/net/ethernet/qlogic/qed/
H A Dqed_rdma.h94 enum qed_roce_qp_state cur_state; member in struct:qed_rdma_qp
/linux-master/drivers/gpu/drm/i915/display/
H A Dvlv_dsi_pll.c595 bool cur_state; local
598 cur_state = vlv_cck_read(i915, CCK_REG_DSI_PLL_CONTROL) & DSI_PLL_VCO_EN;
601 I915_STATE_WARN(i915, cur_state != state,
603 str_on_off(state), str_on_off(cur_state));
H A Dg4x_dp.c170 bool cur_state = intel_de_read(dev_priv, intel_dp->output_reg) & DP_PORT_EN; local
172 I915_STATE_WARN(dev_priv, cur_state != state,
175 str_on_off(state), str_on_off(cur_state));
181 bool cur_state = intel_de_read(dev_priv, DP_A) & DP_PLL_ENABLE; local
183 I915_STATE_WARN(dev_priv, cur_state != state,
185 str_on_off(state), str_on_off(cur_state));
/linux-master/drivers/infiniband/hw/efa/
H A Defa_verbs.c860 static bool efa_modify_srd_qp_is_ok(enum ib_qp_state cur_state, argument
867 cur_state != IB_QPS_RTR && cur_state != IB_QPS_RTS &&
868 cur_state != IB_QPS_SQD && cur_state != IB_QPS_SQE)
871 if (!srd_qp_state_table[cur_state][next_state].valid)
874 req_param = srd_qp_state_table[cur_state][next_state].req_param;
875 opt_param = srd_qp_state_table[cur_state][next_state].opt_param;
888 enum ib_qp_state cur_state,
906 err = !efa_modify_srd_qp_is_ok(cur_state, new_stat
886 efa_modify_qp_validate(struct efa_dev *dev, struct efa_qp *qp, struct ib_qp_attr *qp_attr, int qp_attr_mask, enum ib_qp_state cur_state, enum ib_qp_state new_state) argument
936 enum ib_qp_state cur_state; local
[all...]
/linux-master/drivers/platform/x86/
H A Dacerhdf.c486 int cur_temp, cur_state, err = 0; local
497 err = acerhdf_get_fanstate(&cur_state);
504 if (cur_state == ACERHDF_FAN_AUTO)
507 if (cur_state == ACERHDF_FAN_OFF)
/linux-master/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-mdio.c780 enum xgbe_an cur_state = pdata->an_state; local
798 cur_state = pdata->an_state;
819 cur_state);
841 enum xgbe_an cur_state = pdata->an_state; local
864 cur_state = pdata->an_state;
902 cur_state);
922 if (cur_state != pdata->an_state)
/linux-master/sound/drivers/vx/
H A Dvx_pcm.c320 int err, i, cur_state; local
323 if (vx_get_pipe_state(chip, pipe, &cur_state) < 0)
325 if (state == cur_state)
357 err = vx_get_pipe_state(chip, pipe, &cur_state);
358 if (err < 0 || cur_state == state)
/linux-master/drivers/hwmon/
H A Daspeed-pwm-tacho.c178 u8 cur_state; member in struct:aspeed_cooling_device
788 *state = cdev->cur_state;
802 cdev->cur_state = state;
804 cdev->cooling_levels[cdev->cur_state];
806 cdev->cooling_levels[cdev->cur_state]);
/linux-master/drivers/infiniband/sw/rxe/
H A Drxe_qp.c587 enum ib_qp_state cur_state; local
590 cur_state = (mask & IB_QP_CUR_STATE) ?
593 attr->qp_state : cur_state;
595 if (!ib_modify_qp_is_ok(cur_state, new_state, qp_type(qp), mask))
598 if (mask & IB_QP_STATE && cur_state == IB_QPS_SQD) {
/linux-master/drivers/infiniband/hw/vmw_pvrdma/
H A Dpvrdma_qp.c533 enum ib_qp_state cur_state, next_state; local
541 cur_state = (attr_mask & IB_QP_CUR_STATE) ? attr->cur_qp_state :
543 next_state = (attr_mask & IB_QP_STATE) ? attr->qp_state : cur_state;
545 if (!ib_modify_qp_is_ok(cur_state, next_state, ibqp->qp_type,
576 if (cur_state == next_state && cur_state == IB_QPS_RESET) {
/linux-master/drivers/spi/
H A Dspi-qup.c210 u32 cur_state; local
225 cur_state = readl_relaxed(controller->base + QUP_STATE);
230 if (((cur_state & QUP_STATE_MASK) == QUP_STATE_PAUSE) &&
235 cur_state &= ~QUP_STATE_MASK;
236 cur_state |= state;
237 writel_relaxed(cur_state, controller->base + QUP_STATE);
/linux-master/drivers/infiniband/hw/mlx5/
H A Dqp.c4104 enum ib_qp_state cur_state,
4190 cur_state == IB_QPS_RESET &&
4299 if (qp->rq.wqe_cnt && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT)
4302 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) {
4317 if (!ibqp->uobject && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT)
4323 mlx5_cur = to_mlx5_state(cur_state);
4341 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) {
4452 static bool modify_dci_qp_is_ok(enum ib_qp_state cur_state, enum ib_qp_state new_state, argument
4460 } else if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) {
4463 } else if (cur_state
4102 __mlx5_ib_modify_qp(struct ib_qp *ibqp, const struct ib_qp_attr *attr, int attr_mask, enum ib_qp_state cur_state, enum ib_qp_state new_state, const struct mlx5_ib_modify_qp *ucmd, struct mlx5_ib_modify_qp_resp *resp, struct ib_udata *udata) argument
4497 enum ib_qp_state cur_state, new_state; local
4662 enum ib_qp_state cur_state, new_state; local
[all...]
/linux-master/drivers/video/fbdev/i810/
H A Di810.h281 u32 cur_state; member in struct:i810fb_par

Completed in 500 milliseconds

1234