Lines Matching defs:status

79 	int			status, i, flag;
96 status = tavor_umap_db_find(state->ts_instance, ddi_get_pid(),
98 if (status != DDI_SUCCESS) {
99 /* Set "status" and "errormsg" and goto failure */
119 status = tavor_rsrc_alloc(state, TAVOR_CQC, 1, sleepflag, &cqc);
120 if (status != DDI_SUCCESS) {
121 /* Set "status" and "errormsg" and goto failure */
132 status = tavor_rsrc_alloc(state, TAVOR_CQHDL, 1, sleepflag, &rsrc);
133 if (status != DDI_SUCCESS) {
134 /* Set "status" and "errormsg" and goto failure */
156 /* Set "status" and "errormsg" and goto failure */
176 /* Set "status" and "errormsg" and goto failure */
204 status = tavor_queue_alloc(state, &cq->cq_cqinfo, sleepflag);
205 if (status != DDI_SUCCESS) {
206 /* Set "status" and "errormsg" and goto failure */
245 status = tavor_mr_register(state, pd, &mr_attr, &mr, &op);
246 if (status != DDI_SUCCESS) {
247 /* Set "status" and "errormsg" and goto failure */
298 status = tavor_cmn_ownership_cmd_post(state, SW2HW_CQ, &cqc_entry,
300 if (status != TAVOR_CMD_SUCCESS) {
302 status);
304 TAVOR_TNF_ERROR, "", tnf_uint, status, status);
305 /* Set "status" and "errormsg" and goto failure */
386 return (status);
407 int status;
445 status = tavor_umap_db_find(state->ts_instance, cqnum,
448 if (status != DDI_SUCCESS) {
457 status = devmap_devmem_remap(cq->cq_umap_dhp,
460 if (status != DDI_SUCCESS) {
495 status = tavor_cmn_ownership_cmd_post(state, HW2SW_CQ, &cqc_entry,
497 if (status != TAVOR_CMD_SUCCESS) {
500 status);
502 TAVOR_TNF_ERROR, "", tnf_uint, status, status);
513 status = tavor_mr_deregister(state, &mr, TAVOR_MR_DEREG_ALL,
515 if (status != DDI_SUCCESS) {
559 int status, i, flag;
581 /* Set "status" and "errormsg" and goto failure */
610 status = tavor_queue_alloc(state, &new_cqinfo, sleepflag);
611 if (status != DDI_SUCCESS) {
612 /* Set "status" and "errormsg" and goto failure */
649 status = tavor_mr_register(state, pd, &mr_attr, &mr, &op);
650 if (status != DDI_SUCCESS) {
652 /* Set "status" and "errormsg" and goto failure */
696 status = tavor_cmn_query_cmd_post(state, QUERY_CQ,
699 if (status != TAVOR_CMD_SUCCESS) {
710 /* Set "status" and "errormsg" and goto failure */
737 * returning error. Also note that the status returned may indicate
740 status = tavor_resize_cq_cmd_post(state, &cqc_entry, cq->cq_cqnum,
742 if (status != TAVOR_CMD_SUCCESS) {
750 if (status == TAVOR_CMD_BAD_SIZE) {
755 "%08x\n", status);
757 TAVOR_TNF_ERROR, "", tnf_uint, status, status);
802 status = devmap_devmem_remap(cq->cq_umap_dhp,
805 if (status != DDI_SUCCESS) {
829 status = tavor_mr_deregister(state, &mr_old, TAVOR_MR_DEREG_ALL,
831 if (status != DDI_SUCCESS) {
833 /* Set "status" and "errormsg" and goto failure */
857 return (status);
913 int status;
958 status = tavor_cq_cqe_consume(state, cq, cqe,
960 if (status == TAVOR_CQ_SYNC_AND_DB) {
1025 status = IBT_CQ_EMPTY;
1027 status = DDI_SUCCESS;
1043 return (status);
1304 int status;
1311 * whatever status it returns. Otherwise, this is a successful
1317 status = tavor_cq_errcqe_consume(state, cq, cqe, wc);
1319 return (status);
1429 /* If we got here, completion status must be success */
1478 uint_t doorbell_cnt, status;
1492 * status here.
1495 status = imm_eth_pkey_cred >> TAVOR_CQE_ERR_STATUS_SHIFT;
1496 switch (status) {
1498 status = IBT_WC_LOCAL_LEN_ERR;
1502 status = IBT_WC_LOCAL_QP_OP_ERR;
1506 status = IBT_WC_LOCAL_PROTECT_ERR;
1510 status = IBT_WC_WR_FLUSHED_ERR;
1514 status = IBT_WC_MEM_WIN_BIND_ERR;
1518 status = IBT_WC_BAD_RESPONSE_ERR;
1522 status = IBT_WC_LOCAL_ACCESS_ERR;
1526 status = IBT_WC_REMOTE_INVALID_REQ_ERR;
1530 status = IBT_WC_REMOTE_ACCESS_ERR;
1534 status = IBT_WC_REMOTE_OP_ERR;
1538 status = IBT_WC_TRANS_TIMEOUT_ERR;
1542 status = IBT_WC_RNR_NAK_TIMEOUT_ERR;
1557 TAVOR_WARNING(state, "unknown error CQE status");
1558 status = IBT_WC_LOCAL_QP_OP_ERR;
1560 TAVOR_TNF_ERROR, "", tnf_uint, status, status);
1563 wc->wc_status = status;
1599 * Return status to indicate that doorbell and sync may be
1608 * Decrement the doorbell count, modify the error status,
1640 int status;
1655 status = ddi_dma_sync(dmahdl, offset, sizeof (tavor_hw_cqe_t), flag);
1656 if (status != DDI_SUCCESS) {