Home
last modified time | relevance | path

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

/freebsd/sys/dev/mlx4/mlx4_core/
H A Dmlx4_qp.c89 enum mlx4_qp_state cur_state, enum mlx4_qp_state new_state, in __mlx4_qp_modify() argument
141 if (cur_state >= MLX4_QP_NUM_STATE || new_state >= MLX4_QP_NUM_STATE || in __mlx4_qp_modify()
142 !op[cur_state][new_state]) in __mlx4_qp_modify()
145 if (op[cur_state][new_state] == MLX4_CMD_2RST_QP) { in __mlx4_qp_modify()
148 if (mlx4_is_master(dev) && cur_state != MLX4_QP_STATE_ERR && in __mlx4_qp_modify()
149 cur_state != MLX4_QP_STATE_RST && in __mlx4_qp_modify()
164 if (cur_state == MLX4_QP_STATE_RST && new_state == MLX4_QP_STATE_INIT) { in __mlx4_qp_modify()
171 if ((cur_state == MLX4_QP_STATE_RTR) && in __mlx4_qp_modify()
186 op[cur_state][new_state], MLX4_CMD_TIME_CLASS_C, native); in __mlx4_qp_modify()
190 if (cur_state != MLX4_QP_STATE_ERR && in __mlx4_qp_modify()
[all …]
H A Dmlx4_eq.c370 enum slave_port_state cur_state = in set_and_calc_slave_port_state() local
385 switch (cur_state) { in set_and_calc_slave_port_state()
/freebsd/sys/dev/qcom_qup/
H A Dqcom_spi_hw.c151 uint32_t cur_state; in qcom_spi_hw_qup_set_state_locked() local
162 cur_state = QCOM_SPI_READ_4(sc, QUP_STATE); in qcom_spi_hw_qup_set_state_locked()
166 __func__, state, cur_state); in qcom_spi_hw_qup_set_state_locked()
173 && ((cur_state & QUP_STATE_MASK) == QUP_STATE_PAUSE)) { in qcom_spi_hw_qup_set_state_locked()
179 cur_state &= ~QUP_STATE_MASK; in qcom_spi_hw_qup_set_state_locked()
180 cur_state |= state; in qcom_spi_hw_qup_set_state_locked()
181 QCOM_SPI_WRITE_4(sc, QUP_STATE, cur_state); in qcom_spi_hw_qup_set_state_locked()
191 cur_state = QCOM_SPI_READ_4(sc, QUP_STATE); in qcom_spi_hw_qup_set_state_locked()
195 __func__, state, cur_state); in qcom_spi_hw_qup_set_state_locked()
/freebsd/sys/cam/scsi/
H A Dscsi_enc.c757 struct enc_fsm_state *cur_state; in enc_fsm_step() local
766 cur_state = &enc->enc_fsm_states[enc->current_action]; in enc_fsm_step()
769 if (cur_state->buf_size != 0) { in enc_fsm_step()
771 buf = malloc(cur_state->buf_size, M_SCSIENC, M_WAITOK|M_ZERO); in enc_fsm_step()
777 if (cur_state->fill != NULL) { in enc_fsm_step()
780 error = cur_state->fill(enc, cur_state, ccb, buf); in enc_fsm_step()
784 error = cam_periph_runccb(ccb, cur_state->error, in enc_fsm_step()
798 cur_state->done(enc, cur_state, ccb, &buf, error, xfer_len); in enc_fsm_step()
H A Dscsi_sa.c628 static void sapopulateprots(struct sa_prot_state *cur_state,
1200 sapopulateprots(struct sa_prot_state *cur_state, struct sa_prot_map *new_table, in sapopulateprots() argument
1211 new_table[i].value = (uint32_t *)((uint8_t *)cur_state + in sapopulateprots()
/freebsd/sys/dev/qlnx/qlnxe/
H A Decore_roce.c1137 qp->cur_state = ECORE_ROCE_QP_STATE_ERR; in ecore_roce_sp_query_responder()
1202 qp->cur_state = ECORE_ROCE_QP_STATE_ERR; in ecore_roce_sp_query_requester()
1231 out_params->state = qp->cur_state; in ecore_roce_query_qp()
1249 if ((qp->cur_state != ECORE_ROCE_QP_STATE_RESET) && in ecore_roce_destroy_qp()
1250 (qp->cur_state != ECORE_ROCE_QP_STATE_ERR) && in ecore_roce_destroy_qp()
1251 (qp->cur_state != ECORE_ROCE_QP_STATE_INIT)) in ecore_roce_destroy_qp()
1259 if (qp->cur_state != ECORE_ROCE_QP_STATE_RESET) { in ecore_roce_destroy_qp()
1397 (qp->cur_state == ECORE_ROCE_QP_STATE_RTR)) in ecore_roce_modify_qp()
1410 (qp->cur_state == ECORE_ROCE_QP_STATE_RTS)) in ecore_roce_modify_qp()
1423 (qp->cur_state == ECORE_ROCE_QP_STATE_RTS)) in ecore_roce_modify_qp()
[all …]
H A Decore_rdma.h153 enum ecore_roce_qp_state cur_state; member
H A Decore_rdma.c1570 qp->cur_state = ECORE_ROCE_QP_STATE_RESET; in ecore_rdma_create_qp()
1750 prev_state = qp->cur_state; in ecore_rdma_modify_qp()
1754 qp->cur_state = params->new_state; in ecore_rdma_modify_qp()
1756 qp->cur_state); in ecore_rdma_modify_qp()
1771 ecore_roce2iwarp_state(qp->cur_state); in ecore_rdma_modify_qp()
/freebsd/sys/dev/mthca/
H A Dmthca_qp.c546 enum ib_qp_state cur_state, in __mthca_modify_qp() argument
656 cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) { in __mthca_modify_qp()
776 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD && in __mthca_modify_qp()
781 err = mthca_MODIFY_QP(dev, cur_state, new_state, qp->qpn, 0, in __mthca_modify_qp()
785 cur_state, new_state, err); in __mthca_modify_qp()
807 if (cur_state != IB_QPS_RTR && in __mthca_modify_qp()
811 if (cur_state != IB_QPS_RESET && in __mthca_modify_qp()
812 cur_state != IB_QPS_ERR && in __mthca_modify_qp()
851 enum ib_qp_state cur_state, new_state; in mthca_modify_qp() local
856 cur_state = attr->cur_qp_state; in mthca_modify_qp()
[all …]
/freebsd/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_qp.c1626 enum ib_qp_state cur_state, in __mlx4_ib_modify_qp() argument
1704 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) { in __mlx4_ib_modify_qp()
1722 if (cur_state == IB_QPS_SQD && new_state == IB_QPS_SQD && in __mlx4_ib_modify_qp()
1729 if (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) { in __mlx4_ib_modify_qp()
1808 (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR)) { in __mlx4_ib_modify_qp()
1921 if (qp->rq.wqe_cnt && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in __mlx4_ib_modify_qp()
1924 if (cur_state == IB_QPS_INIT && in __mlx4_ib_modify_qp()
1982 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD && in __mlx4_ib_modify_qp()
1988 if (!ibqp->uobject && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in __mlx4_ib_modify_qp()
1997 if (!ibqp->uobject && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) { in __mlx4_ib_modify_qp()
[all …]
/freebsd/sys/dev/axgbe/
H A Dxgbe-mdio.c729 enum xgbe_an cur_state = pdata->an_state; in xgbe_an37_state_machine() local
742 cur_state = pdata->an_state; in xgbe_an37_state_machine()
761 cur_state); in xgbe_an37_state_machine()
788 enum xgbe_an cur_state = pdata->an_state; in xgbe_an73_state_machine() local
811 cur_state = pdata->an_state; in xgbe_an73_state_machine()
849 cur_state); in xgbe_an73_state_machine()
869 if (cur_state != pdata->an_state) in xgbe_an73_state_machine()
/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_verbs.c1247 bool ib_modify_qp_is_ok(enum ib_qp_state cur_state, enum ib_qp_state next_state, in ib_modify_qp_is_ok() argument
1253 cur_state != IB_QPS_RTR && cur_state != IB_QPS_RTS && in ib_modify_qp_is_ok()
1254 cur_state != IB_QPS_SQD && cur_state != IB_QPS_SQE) in ib_modify_qp_is_ok()
1257 if (!qp_state_table[cur_state][next_state].valid) in ib_modify_qp_is_ok()
1260 req_param = qp_state_table[cur_state][next_state].req_param[type]; in ib_modify_qp_is_ok()
1261 opt_param = qp_state_table[cur_state][next_state].opt_param[type]; in ib_modify_qp_is_ok()
/freebsd/tests/sys/cddl/zfs/include/
H A Dlibtest.kshlib1564 cur_state=$(get_device_state $pool $disk "spares")
1566 if [[ $state != ${cur_state} ]]; then
1585 cur_state=$(get_device_state $pool $disk "logs")
1587 if [[ $state != ${cur_state} ]]; then
1613 cur_state=$(get_device_state $pool $disk)
1615 if [[ $state != ${cur_state} ]]; then
/freebsd/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_qp.c2679 enum ib_qp_state cur_state, enum ib_qp_state new_state) in __mlx5_ib_modify_qp() argument
2859 if (qp->rq.wqe_cnt && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in __mlx5_ib_modify_qp()
2862 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) { in __mlx5_ib_modify_qp()
2870 if (!ibqp->uobject && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in __mlx5_ib_modify_qp()
2876 mlx5_cur = to_mlx5_state(cur_state); in __mlx5_ib_modify_qp()
2887 if (cur_state != IB_QPS_RESET && cur_state != IB_QPS_ERR && in __mlx5_ib_modify_qp()
2904 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) { in __mlx5_ib_modify_qp()
2917 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT && in __mlx5_ib_modify_qp()
2963 enum ib_qp_state cur_state, new_state; in mlx5_ib_modify_qp() local
2978 cur_state = attr_mask & IB_QP_CUR_STATE ? attr->cur_qp_state : qp->state; in mlx5_ib_modify_qp()
[all …]
/freebsd/sys/contrib/dev/iwlwifi/mvm/
H A Dtt.c534 mvm->cooling_dev.cur_state = state; in iwl_mvm_ctdp_command()
722 *state = mvm->cooling_dev.cur_state; in iwl_mvm_thermal_zone_register()
H A Dfw.c1527 mvm->cooling_dev.cur_state); in iwl_mvm_up()
H A Dmvm.h683 * @cur_state: current state
687 u32 cur_state;
550 u32 cur_state; global() member
/freebsd/sys/dev/mrsas/
H A Dmrsas.c2958 u_int32_t cur_state __unused; in mrsas_transition_to_ready()
2974 cur_state = MFI_STATE_FAULT; in mrsas_transition_to_ready()
2982 cur_state = MFI_STATE_WAIT_HANDSHAKE; in mrsas_transition_to_ready()
2987 cur_state = MFI_STATE_BOOT_MESSAGE_PENDING; in mrsas_transition_to_ready()
3002 cur_state = MFI_STATE_OPERATIONAL; in mrsas_transition_to_ready()
3009 cur_state = MFI_STATE_UNDEFINED; in mrsas_transition_to_ready()
3012 cur_state = MFI_STATE_BB_INIT; in mrsas_transition_to_ready()
3015 cur_state = MFI_STATE_FW_INIT; in mrsas_transition_to_ready()
3018 cur_state = MFI_STATE_FW_INIT_2; in mrsas_transition_to_ready()
3021 cur_state = MFI_STATE_DEVICE_SCAN; in mrsas_transition_to_ready()
[all …]
/freebsd/sys/dev/mlx4/
H A Dqp.h481 enum mlx4_qp_state cur_state, enum mlx4_qp_state new_state,
/freebsd/sys/dev/bnxt/bnxt_re/
H A Dqplib_sp.h390 bool ib_modify_qp_is_ok_compat(enum ib_qp_state cur_state, enum ib_qp_state next_state,
H A Dib_verbs.c2556 bool ib_modify_qp_is_ok_compat(enum ib_qp_state cur_state, in ib_modify_qp_is_ok_compat() argument
2561 return (ib_modify_qp_is_ok(cur_state, next_state, in ib_modify_qp_is_ok_compat()
/freebsd/sys/dev/mfi/
H A Dmfi.c274 uint32_t fw_state, cur_state; in mfi_transition_firmware() local
285 cur_state = fw_state; in mfi_transition_firmware()
334 if (fw_state == cur_state) in mfi_transition_firmware()
345 if (fw_state == cur_state) { in mfi_transition_firmware()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/include/
H A Dlibtest.shlib1901 cur_state=$(get_device_state $pool $disk "spares")
1903 [ $state = $cur_state ]
1942 cur_state=$(get_device_state $pool $disk)
1944 [ $state = $cur_state ]
/freebsd/sys/ofed/include/rdma/
H A Dib_verbs.h2596 bool ib_modify_qp_is_ok(enum ib_qp_state cur_state, enum ib_qp_state next_state,
/freebsd/sys/dev/cxgbe/firmware/
H A Dt4fw_interface.h2334 __u8 cur_state; member