Lines Matching defs:status

85 	int			status, i, flag;
98 /* Set "status" and "errormsg" and goto failure */
109 status = tavor_rsrc_alloc(state, TAVOR_UDAV, 1, sleepflag, &udav);
110 if (status != DDI_SUCCESS) {
111 /* Set "status" and "errormsg" and goto failure */
121 status = tavor_rsrc_alloc(state, TAVOR_AHHDL, 1, sleepflag, &rsrc);
122 if (status != DDI_SUCCESS) {
123 /* Set "status" and "errormsg" and goto failure */
141 status = tavor_set_addr_path(state, attr_p,
143 if (status != DDI_SUCCESS) {
147 /* Set "status" and "errormsg" and goto failure */
148 TAVOR_TNF_FAIL(status, "failed in tavor_set_addr_path");
169 status = tavor_mr_register(state, pd, &mr_attr, &mr, &op);
170 if (status != DDI_SUCCESS) {
171 /* Set "status" and "errormsg" and goto failure */
235 return (status);
251 int status;
275 status = tavor_mr_deregister(state, &mr, TAVOR_MR_DEREG_ALL,
277 if (status != DDI_SUCCESS) {
384 int i, status;
420 status = tavor_set_addr_path(state, attr_p,
422 if (status != DDI_SUCCESS) {
427 return (status);
516 int status;
533 status = ddi_dma_sync(dmahdl, offset, sizeof (tavor_hw_udav_t), flag);
534 if (status != DDI_SUCCESS) {
559 int status;
570 /* Set "status" and "errormsg" and goto failure */
581 /* Set "status" and "errormsg" and goto failure */
591 /* Set "status" and "errormsg" and goto failure */
604 status = tavor_mgid_hash_cmd_post(state, gid.gid_prefix, gid.gid_guid,
606 if (status != TAVOR_CMD_SUCCESS) {
608 status);
610 TAVOR_TNF_ERROR, "", tnf_uint, cmd_status, status);
663 status = tavor_mcg_qplist_add(state, mcg, mcg_entry_qplist, qp,
665 if (status != DDI_SUCCESS) {
668 /* Set "status" and "errormsg" and goto failure */
669 TAVOR_TNF_FAIL(status, "failed qplist add");
683 status = tavor_write_mgm_cmd_post(state, mcg_entry, end_indx,
685 if (status != TAVOR_CMD_SUCCESS) {
690 "%08x\n", status);
692 TAVOR_TNF_ERROR, "", tnf_uint, cmd_status, status,
743 status = tavor_read_mgm_cmd_post(state, mcg_entry, end_indx,
745 if (status != TAVOR_CMD_SUCCESS) {
749 "%08x\n", status);
751 TAVOR_TNF_ERROR, "", tnf_uint, cmd_status, status,
769 status = tavor_mcg_qplist_add(state, mcg, mcg_entry_qplist, qp,
771 if (status != DDI_SUCCESS) {
773 /* Set "status" and "errormsg" and goto failure */
774 TAVOR_TNF_FAIL(status, "failed qplist add");
786 status = tavor_write_mgm_cmd_post(state, mcg_entry, end_indx,
788 if (status != TAVOR_CMD_SUCCESS) {
792 "%08x\n", status);
794 TAVOR_TNF_ERROR, "", tnf_uint, cmd_status, status,
840 status = tavor_rsrc_alloc(state, TAVOR_MCG, 1, TAVOR_NOSLEEP, &rsrc);
841 if (status != DDI_SUCCESS) {
843 /* Set "status" and "errormsg" and goto failure */
869 status = tavor_mcg_qplist_add(state, newmcg, mcg_entry_qplist, qp,
871 if (status != DDI_SUCCESS) {
875 /* Set "status" and "errormsg" and goto failure */
876 TAVOR_TNF_FAIL(status, "failed qplist add");
888 status = tavor_write_mgm_cmd_post(state, mcg_entry, rsrc->tr_indx,
890 if (status != TAVOR_CMD_SUCCESS) {
896 status);
898 TAVOR_TNF_ERROR, "", tnf_uint, cmd_status, status,
915 status = tavor_read_mgm_cmd_post(state, mcg_entry, end_indx,
917 if (status != TAVOR_CMD_SUCCESS) {
923 status);
925 TAVOR_TNF_ERROR, "", tnf_uint, cmd_status, status,
944 status = tavor_write_mgm_cmd_post(state, mcg_entry, end_indx,
946 if (status != TAVOR_CMD_SUCCESS) {
952 status);
954 TAVOR_TNF_ERROR, "", tnf_uint, cmd_status, status,
985 return (status);
1002 int status;
1026 status = tavor_mgid_hash_cmd_post(state, gid.gid_prefix, gid.gid_guid,
1028 if (status != TAVOR_CMD_SUCCESS) {
1030 status);
1032 TAVOR_TNF_ERROR, "", tnf_uint, cmd_status, status);
1078 status = tavor_read_mgm_cmd_post(state, mcg_entry, end_indx,
1080 if (status != TAVOR_CMD_SUCCESS) {
1084 status);
1086 TAVOR_TNF_ERROR, "", tnf_uint, cmd_status, status,
1097 status = tavor_mcg_qplist_remove(mcg, mcg_entry_qplist, qp);
1098 if (status != DDI_SUCCESS) {
1101 return (status);
1124 status = tavor_mcg_hash_list_remove(state, end_indx, prev_indx,
1126 if (status != DDI_SUCCESS) {
1129 return (status);
1142 status = tavor_write_mgm_cmd_post(state, mcg_entry, end_indx,
1144 if (status != TAVOR_CMD_SUCCESS) {
1148 "%08x\n", status);
1150 TAVOR_TNF_ERROR, "", tnf_uint, cmd_status, status,
1400 int status;
1423 status = tavor_mcg_entry_invalidate(state, mcg_entry,
1427 return (status);
1442 status = tavor_read_mgm_cmd_post(state, mcg_entry, next_indx,
1444 if (status != TAVOR_CMD_SUCCESS) {
1447 "%08x\n", status);
1449 TAVOR_TNF_ERROR, "", tnf_uint, cmd_status, status,
1467 status = tavor_write_mgm_cmd_post(state, mcg_entry, curr_indx,
1469 if (status != TAVOR_CMD_SUCCESS) {
1472 "%08x\n", status);
1474 TAVOR_TNF_ERROR, "", tnf_uint, cmd_status, status,
1518 status = tavor_read_mgm_cmd_post(state, mcg_entry, prev_indx,
1520 if (status != TAVOR_CMD_SUCCESS) {
1523 status);
1525 TAVOR_TNF_ERROR, "", tnf_uint, cmd_status, status,
1542 status = tavor_write_mgm_cmd_post(state, mcg_entry, prev_indx,
1544 if (status != TAVOR_CMD_SUCCESS) {
1547 status);
1549 TAVOR_TNF_ERROR, "", tnf_uint, cmd_status, status,
1586 int status;
1598 status = tavor_write_mgm_cmd_post(state, mcg_entry, indx,
1600 if (status != TAVOR_CMD_SUCCESS) {
1603 status);
1605 TAVOR_TNF_ERROR, "", tnf_uint, cmd_status, status,
1717 int status;
1728 status = tavor_rsrc_alloc(state, TAVOR_PDHDL, 1, sleepflag, &rsrc);
1729 if (status != DDI_SUCCESS) {
1837 int i, j, indx, status;
1858 status = tavor_getportinfo_cmd_post(state, port,
1860 if (status != TAVOR_CMD_SUCCESS) {
1862 "failed: %08x\n", port, status);
1864 TAVOR_TNF_ERROR, "", tnf_uint, cmd_status, status);
1921 status = tavor_getguidinfo_cmd_post(state, port, i >> 3,
1923 if (status != TAVOR_CMD_SUCCESS) {
1925 "command failed: %08x\n", port, status);
1927 TAVOR_TNF_ERROR, "", tnf_uint, cmd_status, status);
1952 status = tavor_getpkeytable_cmd_post(state, port, i,
1954 if (status != TAVOR_CMD_SUCCESS) {
1956 "command failed: %08x\n", port, status);
1958 TAVOR_TNF_ERROR, "", tnf_uint, cmd_status, status);
1987 int status;
2023 status = tavor_getportinfo_cmd_post(state, port,
2025 if (status != TAVOR_CMD_SUCCESS) {
2027 TAVOR_TNF_ERROR, "", tnf_uint, cmd_status, status);
2066 status = tavor_set_ib_cmd_post(state, capmask, port, reset_qkey,
2068 if (status != TAVOR_CMD_SUCCESS) {
2071 "%08x\n", port, status);
2073 TAVOR_TNF_ERROR, "", tnf_uint, cmd_status, status);
2350 int flag, status;
2373 status = ddi_dma_alloc_handle(state->ts_dip, &dma_attr, callback, NULL,
2375 if (status != DDI_SUCCESS) {
2418 status = ddi_dma_mem_alloc(qa_info->qa_dmahdl, realsize,
2422 if (status != DDI_SUCCESS) {