Lines Matching defs:status

94 	int			status;
111 status = tavor_mr_common_reg(state, pd, &bind, mrhdl, op);
112 if (status != DDI_SUCCESS) {
116 return (status);
134 int status;
160 status = tavor_mr_common_reg(state, pd, &bind, mrhdl, op);
161 if (status != DDI_SUCCESS) {
165 return (status);
192 int status, umem_flags;
206 /* Set "status" and "errormsg" and goto failure */
222 status = tavor_rsrc_alloc(state, TAVOR_MPT, 1, sleep, &mpt);
223 if (status != DDI_SUCCESS) {
224 /* Set "status" and "errormsg" and goto failure */
235 status = tavor_rsrc_alloc(state, TAVOR_MRHDL, 1, sleep, &rsrc);
236 if (status != DDI_SUCCESS) {
237 /* Set "status" and "errormsg" and goto failure */
287 /* Set "status" and "errormsg" and goto failure */
309 status = umem_lockmemory(umem_addr, umem_len, umem_flags,
311 if (status != 0) {
313 /* Set "status" and "errormsg" and goto failure */
323 /* Set "status" and "errormsg" and goto failure */
401 status = tavor_cmn_ownership_cmd_post(state, SW2HW_MPT, &mpt_entry,
403 if (status != TAVOR_CMD_SUCCESS) {
405 status);
407 TAVOR_TNF_ERROR, "", tnf_uint, status, status);
408 /* Set "status" and "errormsg" and goto failure */
466 return (status);
485 int status, shared_mtt;
497 /* Set "status" and "errormsg" and goto failure */
502 return (status);
545 * what command status was returned from the hardware. The only
546 * "expected" error status is the one that indicates an attempt to
550 status = tavor_cmn_ownership_cmd_post(state, HW2SW_MPT,
552 if (status != TAVOR_CMD_SUCCESS) {
553 if (status == TAVOR_CMD_REG_BOUND) {
558 "failed: %08x\n", status);
560 TAVOR_TNF_ERROR, "", tnf_uint, status,
561 status);
586 status = tavor_umap_db_find(state->ts_instance,
590 if (status == DDI_SUCCESS) {
606 * (as indicated by the return status), then free the resource.
731 int status;
748 status = tavor_mr_common_rereg(state, mr, pd, &bind, mrhdl_new, op);
749 if (status != DDI_SUCCESS) {
753 return (status);
771 int status;
797 status = tavor_mr_common_rereg(state, mr, pd, &bind, mrhdl_new, op);
798 if (status != DDI_SUCCESS) {
802 return (status);
822 int status, i;
833 /* Set "status" and "errormsg" and goto failure */
848 /* Set "status" and "errormsg" and goto failure */
861 /* Set "status" and "errormsg" and goto failure */
867 /* Set "status" and "errormsg" and goto failure */
879 /* Set "status" and "errormsg" and goto failure */
896 return (status);
912 int status;
925 /* Set "status" and "errormsg" and goto failure */
942 status = tavor_rsrc_alloc(state, TAVOR_MPT, 1, sleep, &mpt);
943 if (status != DDI_SUCCESS) {
944 /* Set "status" and "errormsg" and goto failure */
957 status = tavor_rsrc_alloc(state, TAVOR_MRHDL, 1, sleep, &rsrc);
958 if (status != DDI_SUCCESS) {
959 /* Set "status" and "errormsg" and goto failure */
992 status = tavor_cmn_ownership_cmd_post(state, SW2HW_MPT, &mpt_entry,
994 if (status != TAVOR_CMD_SUCCESS) {
996 status);
998 TAVOR_TNF_ERROR, "", tnf_uint, status, status);
999 /* Set "status" and "errormsg" and goto failure */
1028 return (status);
1041 int status;
1054 /* Set "status" and "errormsg" and goto failure */
1059 return (status);
1079 status = tavor_cmn_ownership_cmd_post(state, HW2SW_MPT, NULL,
1081 if (status != TAVOR_CMD_SUCCESS) {
1083 status);
1085 tnf_uint, status, status);
1157 int status, umem_flags, bind_override_addr;
1190 /* Set "status" and "errormsg" and goto failure */
1203 /* Set "status" and "errormsg" and goto failure */
1225 status = tavor_rsrc_alloc(state, TAVOR_MPT, 1, sleep, &mpt);
1226 if (status != DDI_SUCCESS) {
1227 /* Set "status" and "errormsg" and goto failure */
1238 status = tavor_rsrc_alloc(state, TAVOR_MRHDL, 1, sleep, &rsrc);
1239 if (status != DDI_SUCCESS) {
1240 /* Set "status" and "errormsg" and goto failure */
1296 status = umem_lockmemory(umem_addr, umem_len, umem_flags,
1298 if (status != 0) {
1299 /* Set "status" and "errormsg" and goto failure */
1310 /* Set "status" and "errormsg" and goto failure */
1324 /* Set "status" and "errormsg" and goto failure */
1337 status = tavor_mr_mtt_bind(state, bh, bind_dmahdl, &mtt,
1339 if (status != DDI_SUCCESS) {
1340 /* Set "status" and "errormsg" and goto failure */
1341 TAVOR_TNF_FAIL(status, "failed mtt bind");
1358 status = tavor_rsrc_alloc(state, TAVOR_REFCNT, 1, sleep,
1360 if (status != DDI_SUCCESS) {
1361 /* Set "status" and "errormsg" and goto failure */
1406 status = tavor_cmn_ownership_cmd_post(state, SW2HW_MPT, &mpt_entry,
1408 if (status != TAVOR_CMD_SUCCESS) {
1410 status);
1412 TAVOR_TNF_ERROR, "", tnf_uint, status, status);
1413 /* Set "status" and "errormsg" and goto failure */
1486 return (status);
1498 int status;
1511 status = IBT_INVALID_PARAM;
1525 status = tavor_rsrc_alloc(state, TAVOR_MPT, 1, sleep, &mpt);
1526 if (status != DDI_SUCCESS) {
1527 status = IBT_INSUFF_RESOURCE;
1537 status = tavor_rsrc_alloc(state, TAVOR_MRHDL, 1, sleep, &rsrc);
1538 if (status != DDI_SUCCESS) {
1539 status = IBT_INSUFF_RESOURCE;
1620 status = tavor_cmn_ownership_cmd_post(state, SW2HW_MPT, &mpt_entry,
1622 if (status != TAVOR_CMD_SUCCESS) {
1624 status);
1625 status = ibc_get_ci_failure(0);
1658 return (status);
1671 int status;
1684 /* Set "status" and "errormsg" and goto failure */
1700 status = tavor_mr_mem_bind(state, bind, bind_dmahdl, sleep);
1701 if (status != DDI_SUCCESS) {
1702 /* Set "status" and "errormsg" and goto failure */
1724 status = tavor_rsrc_alloc(state, TAVOR_MTT,
1726 if (status != DDI_SUCCESS) {
1727 /* Set "status" and "errormsg" and goto failure */
1738 status = tavor_mr_fast_mtt_write(*mtt, bind, *mtt_pgsize_bits);
1739 if (status != DDI_SUCCESS) {
1740 /* Set "status" and "errormsg" and goto failure */
1758 return (status);
1800 int status;
1813 /* Set "status" and "errormsg" and goto failure */
1835 /* Set "status" and "errormsg" and goto failure */
1853 status = tavor_cmn_ownership_cmd_post(state, HW2SW_MPT, &mpt_entry,
1855 if (status != TAVOR_CMD_SUCCESS) {
1857 if (status == TAVOR_CMD_REG_BOUND) {
1862 "%08x\n", status);
1874 TAVOR_TNF_ERROR, "", tnf_uint, status, status);
1901 /* Set "status" and "errormsg" and goto failure */
1939 /* Set "status" and "errormsg" and goto failure */
1981 status = tavor_mr_rereg_xlat_helper(state, mr, bind, op,
1983 if (status != DDI_SUCCESS) {
1995 /* Set "status" and "errormsg" and goto failure */
1996 TAVOR_TNF_FAIL(status, "failed rereg helper");
2046 status = tavor_cmn_ownership_cmd_post(state, SW2HW_MPT, &mpt_entry,
2048 if (status != TAVOR_CMD_SUCCESS) {
2051 status);
2064 TAVOR_TNF_ERROR, "", tnf_uint, status, status);
2099 return (status);
2122 int status;
2157 /* Set "status" and "errormsg" and goto failure */
2223 status = tavor_mr_mem_bind(state, bind, dmahdl, sleep);
2224 if (status != DDI_SUCCESS) {
2240 /* Set "status" and "errormsg" and goto failure */
2253 status = tavor_mr_fast_mtt_write(mtt, bind, mtt_pgsize_bits);
2254 if (status != DDI_SUCCESS) {
2270 /* Set "status" and "errormsg" and goto failure */
2324 status = tavor_mr_mem_bind(state, bind, dmahdl, sleep);
2325 if (status != DDI_SUCCESS) {
2341 /* Set "status" and "errormsg" and goto failure */
2352 status = tavor_rsrc_alloc(state, TAVOR_MTT,
2354 if (status != DDI_SUCCESS) {
2370 /* Set "status" and "errormsg" and goto failure */
2386 status = tavor_rsrc_alloc(state, TAVOR_REFCNT, 1,
2388 if (status != DDI_SUCCESS) {
2408 /* Set "status"/"errormsg", goto failure */
2424 status = tavor_mr_fast_mtt_write(mtt, bind, mtt_pgsize_bits);
2425 if (status != DDI_SUCCESS) {
2447 /* Set "status" and "errormsg" and goto failure */
2490 return (status);
2531 int status;
2576 status = ddi_dma_alloc_handle(state->ts_dip, &dma_attr,
2578 if (status != DDI_SUCCESS) {
2582 return (status);
2598 status = ddi_dma_addr_bind_handle(bind->bi_dmahdl, NULL,
2603 status = ddi_dma_buf_bind_handle(bind->bi_dmahdl,
2608 if (status != DDI_DMA_MAPPED) {
2615 return (status);
2630 int status;
2656 status = ddi_dma_unbind_handle(bind->bi_dmahdl);
2657 if (status != DDI_SUCCESS) {