Searched refs:cur_state (Results 1 - 19 of 19) sorted by relevance

/drivers/net/ethernet/mellanox/mlx4/
H A Dqp.c77 enum mlx4_qp_state cur_state, enum mlx4_qp_state new_state,
127 if (cur_state >= MLX4_QP_NUM_STATE || new_state >= MLX4_QP_NUM_STATE ||
128 !op[cur_state][new_state])
131 if (op[cur_state][new_state] == MLX4_CMD_2RST_QP) {
134 if (mlx4_is_master(dev) && cur_state != MLX4_QP_STATE_ERR &&
135 cur_state != MLX4_QP_STATE_RST &&
147 if (cur_state == MLX4_QP_STATE_RST && new_state == MLX4_QP_STATE_INIT) {
163 op[cur_state][new_state], MLX4_CMD_TIME_CLASS_C, native);
170 enum mlx4_qp_state cur_state, enum mlx4_qp_state new_state,
175 return __mlx4_qp_modify(dev, mtt, cur_state, new_stat
76 __mlx4_qp_modify(struct mlx4_dev *dev, struct mlx4_mtt *mtt, enum mlx4_qp_state cur_state, enum mlx4_qp_state new_state, struct mlx4_qp_context *context, enum mlx4_qp_optpar optpar, int sqd_event, struct mlx4_qp *qp, int native) argument
169 mlx4_qp_modify(struct mlx4_dev *dev, struct mlx4_mtt *mtt, enum mlx4_qp_state cur_state, enum mlx4_qp_state new_state, struct mlx4_qp_context *context, enum mlx4_qp_optpar optpar, int sqd_event, struct mlx4_qp *qp) argument
[all...]
/drivers/acpi/
H A Dprocessor_thermal.c232 unsigned long *cur_state)
240 *cur_state = cpufreq_get_cur_state(pr->id);
242 *cur_state += pr->throttling.state;
231 processor_get_cur_state(struct thermal_cooling_device *cdev, unsigned long *cur_state) argument
H A Dpower.c167 int cur_state; local
186 result = acpi_power_get_state(handle, &cur_state);
193 if (cur_state != ACPI_POWER_RESOURCE_STATE_ON)
198 cur_state ? "on" : "off"));
200 *state = cur_state;
/drivers/infiniband/core/
H A Dverbs.c773 int ib_modify_qp_is_ok(enum ib_qp_state cur_state, enum ib_qp_state next_state, argument
778 if (cur_state < 0 || cur_state > IB_QPS_ERR ||
783 cur_state != IB_QPS_RTR && cur_state != IB_QPS_RTS &&
784 cur_state != IB_QPS_SQD && cur_state != IB_QPS_SQE)
787 if (!qp_state_table[cur_state][next_state].valid)
790 req_param = qp_state_table[cur_state][next_state].req_param[type];
791 opt_param = qp_state_table[cur_state][next_stat
[all...]
/drivers/infiniband/hw/mlx4/
H A Dqp.c1008 enum ib_qp_state cur_state, enum ib_qp_state new_state)
1069 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) {
1083 if (cur_state == IB_QPS_SQD && new_state == IB_QPS_SQD &&
1090 if (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) {
1197 if (qp->rq.wqe_cnt && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT)
1200 if (cur_state == IB_QPS_INIT &&
1211 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD &&
1217 if (!ibqp->uobject && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT)
1226 if (!ibqp->uobject && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) {
1240 err = mlx4_qp_modify(dev->dev, &qp->mtt, to_mlx4_state(cur_state),
1006 __mlx4_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) argument
1306 enum ib_qp_state cur_state, new_state; local
[all...]
/drivers/infiniband/hw/mthca/
H A Dmthca_qp.c543 enum ib_qp_state cur_state, enum ib_qp_state new_state)
650 cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) {
770 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD &&
775 err = mthca_MODIFY_QP(dev, cur_state, new_state, qp->qpn, 0,
779 cur_state, new_state, err);
801 if (cur_state != IB_QPS_RTR &&
805 if (cur_state != IB_QPS_RESET &&
806 cur_state != IB_QPS_ERR &&
845 enum ib_qp_state cur_state, new_state; local
850 cur_state
541 __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) argument
[all...]
/drivers/platform/x86/
H A Dacerhdf.c465 int cur_temp, cur_state, err = 0; local
476 err = acerhdf_get_fanstate(&cur_state);
484 if ((cur_state == ACERHDF_FAN_AUTO) &&
488 if (cur_state == ACERHDF_FAN_OFF)
/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_execbuf.c667 SVGA3dTextureState *cur_state = (SVGA3dTextureState *) local
675 for (; cur_state < last_state; ++cur_state) {
676 if (likely(cur_state->name != SVGA3D_TS_BIND_TEXTURE))
680 &cur_state->value);
/drivers/infiniband/hw/ipath/
H A Dipath_qp.c455 enum ib_qp_state cur_state, new_state; local
461 cur_state = attr_mask & IB_QP_CUR_STATE ?
463 new_state = attr_mask & IB_QP_STATE ? attr->qp_state : cur_state;
465 if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type,
/drivers/video/i810/
H A Di810.h282 u32 cur_state; member in struct:i810fb_par
H A Di810_main.c1568 par->cur_state = mesg.event;
1599 int cur_state = par->cur_state; local
1601 par->cur_state = PM_EVENT_ON;
1603 if (cur_state == PM_EVENT_FREEZE) {
/drivers/infiniband/hw/qib/
H A Dqib_qp.c569 enum ib_qp_state cur_state, new_state; local
579 cur_state = attr_mask & IB_QP_CUR_STATE ?
581 new_state = attr_mask & IB_QP_STATE ? attr->qp_state : cur_state;
583 if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type,
823 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT)
/drivers/media/rc/
H A Dnuvoton-cir.c762 u8 status, iren, cur_state; local
818 cur_state = nvt->study_state;
822 if (cur_state == ST_STUDY_NONE)
/drivers/scsi/megaraid/
H A Dmegaraid_sas_base.c2626 u32 cur_state; local
2646 cur_state = MFI_STATE_FAULT;
2673 cur_state = MFI_STATE_WAIT_HANDSHAKE;
2692 cur_state = MFI_STATE_BOOT_MESSAGE_PENDING;
2729 cur_state = MFI_STATE_OPERATIONAL;
2737 cur_state = MFI_STATE_UNDEFINED;
2742 cur_state = MFI_STATE_BB_INIT;
2747 cur_state = MFI_STATE_FW_INIT;
2752 cur_state = MFI_STATE_FW_INIT_2;
2757 cur_state
[all...]
/drivers/gpu/drm/i915/
H A Dintel_display.c800 bool cur_state; local
804 cur_state = !!(val & DPLL_VCO_ENABLE);
805 WARN(cur_state != state,
807 state_string(state), state_string(cur_state));
818 bool cur_state; local
835 cur_state = !!(val & DPLL_VCO_ENABLE);
836 WARN(cur_state != state,
838 state_string(state), state_string(cur_state));
848 bool cur_state; local
852 cur_state
865 bool cur_state; local
937 bool cur_state; local
956 bool cur_state; local
[all...]
/drivers/scsi/lpfc/
H A Dlpfc_nportdisc.c2338 uint32_t cur_state, rc; local
2346 cur_state = ndlp->nlp_state;
2348 /* DSM in event <evt> on NPort <nlp_DID> in state <cur_state> */
2352 evt, ndlp->nlp_DID, cur_state, ndlp->nlp_flag);
2356 evt, cur_state, ndlp->nlp_DID);
2358 func = lpfc_disc_action[(cur_state * NLP_EVT_MAX_EVENT) + evt];
/drivers/block/
H A Dsx8.c1036 int cur_state, int next_state)
1042 assert(host->state == cur_state);
1034 carm_handle_generic(struct carm_host *host, struct carm_request *crq, int error, int cur_state, int next_state) argument
/drivers/thermal/
H A Dthermal_sys.c379 static DEVICE_ATTR(cur_state, 0644,
/drivers/video/savage/
H A Dsavagefb_driver.c2415 int cur_state = par->pm_state; local
2425 if (cur_state == PM_EVENT_FREEZE) {

Completed in 1995 milliseconds