Lines Matching refs:status

369 	int		status, indx;  in tavor_ci_query_hca_ports()  local
394 status = tavor_port_query(state, port, &info_p[indx]); in tavor_ci_query_hca_ports()
395 if (status != DDI_SUCCESS) { in tavor_ci_query_hca_ports()
396 return (status); in tavor_ci_query_hca_ports()
414 int status; in tavor_ci_modify_ports() local
425 status = tavor_port_modify(state, port, flags, init_type); in tavor_ci_modify_ports()
426 if (status != DDI_SUCCESS) { in tavor_ci_modify_ports()
427 return (status); in tavor_ci_modify_ports()
463 int status; in tavor_ci_alloc_pd() local
476 status = tavor_pd_alloc(state, &pdhdl, TAVOR_NOSLEEP); in tavor_ci_alloc_pd()
477 if (status != DDI_SUCCESS) { in tavor_ci_alloc_pd()
478 return (status); in tavor_ci_alloc_pd()
498 int status; in tavor_ci_free_pd() local
515 status = tavor_pd_free(state, &pdhdl); in tavor_ci_free_pd()
516 if (status != DDI_SUCCESS) { in tavor_ci_free_pd()
517 return (status); in tavor_ci_free_pd()
576 int status; in tavor_ci_alloc_ah() local
593 status = tavor_ah_alloc(state, pdhdl, attr_p, &ahhdl, TAVOR_NOSLEEP); in tavor_ci_alloc_ah()
594 if (status != DDI_SUCCESS) { in tavor_ci_alloc_ah()
595 return (status); in tavor_ci_alloc_ah()
615 int status; in tavor_ci_free_ah() local
632 status = tavor_ah_free(state, &ahhdl, TAVOR_NOSLEEP); in tavor_ci_free_ah()
633 if (status != DDI_SUCCESS) { in tavor_ci_free_ah()
634 return (status); in tavor_ci_free_ah()
653 int status; in tavor_ci_query_ah() local
670 status = tavor_ah_query(state, ahhdl, &pdhdl, attr_p); in tavor_ci_query_ah()
671 if (status != DDI_SUCCESS) { in tavor_ci_query_ah()
672 return (status); in tavor_ci_query_ah()
692 int status; in tavor_ci_modify_ah() local
709 status = tavor_ah_modify(state, ahhdl, attr_p); in tavor_ci_modify_ah()
710 if (status != DDI_SUCCESS) { in tavor_ci_modify_ah()
711 return (status); in tavor_ci_modify_ah()
731 int status; in tavor_ci_alloc_qp() local
751 status = tavor_qp_alloc(state, &qpinfo, TAVOR_NOSLEEP, &op); in tavor_ci_alloc_qp()
752 if (status != DDI_SUCCESS) { in tavor_ci_alloc_qp()
753 return (status); in tavor_ci_alloc_qp()
777 int status; in tavor_ci_alloc_special_qp() local
797 status = tavor_special_qp_alloc(state, &qpinfo, TAVOR_NOSLEEP, &op); in tavor_ci_alloc_special_qp()
798 if (status != DDI_SUCCESS) { in tavor_ci_alloc_special_qp()
799 return (status); in tavor_ci_alloc_special_qp()
831 int status; in tavor_ci_free_qp() local
848 status = tavor_qp_free(state, &qphdl, free_qp_flags, qpnh_p, in tavor_ci_free_qp()
850 if (status != DDI_SUCCESS) { in tavor_ci_free_qp()
851 return (status); in tavor_ci_free_qp()
901 int status; in tavor_ci_query_qp() local
918 status = tavor_qp_query(state, qphdl, attr_p); in tavor_ci_query_qp()
919 if (status != DDI_SUCCESS) { in tavor_ci_query_qp()
920 return (status); in tavor_ci_query_qp()
939 int status; in tavor_ci_modify_qp() local
956 status = tavor_qp_modify(state, qphdl, flags, info_p, actual_sz); in tavor_ci_modify_qp()
957 if (status != DDI_SUCCESS) { in tavor_ci_modify_qp()
958 return (status); in tavor_ci_modify_qp()
977 int status; in tavor_ci_alloc_cq() local
988 status = tavor_cq_alloc(state, ibt_cqhdl, attr_p, actual_size, in tavor_ci_alloc_cq()
990 if (status != DDI_SUCCESS) { in tavor_ci_alloc_cq()
991 return (status); in tavor_ci_alloc_cq()
1011 int status; in tavor_ci_free_cq() local
1028 status = tavor_cq_free(state, &cqhdl, TAVOR_NOSLEEP); in tavor_ci_free_cq()
1029 if (status != DDI_SUCCESS) { in tavor_ci_free_cq()
1030 return (status); in tavor_ci_free_cq()
1084 int status; in tavor_ci_resize_cq() local
1101 status = tavor_cq_resize(state, cqhdl, size, actual_size, in tavor_ci_resize_cq()
1103 if (status != DDI_SUCCESS) { in tavor_ci_resize_cq()
1104 return (status); in tavor_ci_resize_cq()
1260 int status; in tavor_ci_register_mr() local
1296 status = tavor_mr_register(state, pdhdl, mr_attr, &mrhdl, &op); in tavor_ci_register_mr()
1297 if (status != DDI_SUCCESS) { in tavor_ci_register_mr()
1298 return (status); in tavor_ci_register_mr()
1341 int status; in tavor_ci_register_buf() local
1377 status = tavor_mr_register_buf(state, pdhdl, attrp, buf, &mrhdl, &op); in tavor_ci_register_buf()
1378 if (status != DDI_SUCCESS) { in tavor_ci_register_buf()
1379 return (status); in tavor_ci_register_buf()
1417 int status; in tavor_ci_deregister_mr() local
1436 status = tavor_mr_deregister(state, &mrhdl, TAVOR_MR_DEREG_ALL, in tavor_ci_deregister_mr()
1438 if (status != DDI_SUCCESS) { in tavor_ci_deregister_mr()
1439 return (status); in tavor_ci_deregister_mr()
1457 int status; in tavor_ci_query_mr() local
1476 status = tavor_mr_query(state, mrhdl, mr_attr); in tavor_ci_query_mr()
1477 if (status != DDI_SUCCESS) { in tavor_ci_query_mr()
1478 return (status); in tavor_ci_query_mr()
1499 int status; in tavor_ci_register_shared_mr() local
1537 status = tavor_mr_register_shared(state, mrhdl, pdhdl, mr_attr, in tavor_ci_register_shared_mr()
1539 if (status != DDI_SUCCESS) { in tavor_ci_register_shared_mr()
1540 return (status); in tavor_ci_register_shared_mr()
1583 int status; in tavor_ci_reregister_mr() local
1608 status = tavor_mr_reregister(state, mrhdl, pdhdl, mr_attr, in tavor_ci_reregister_mr()
1610 if (status != DDI_SUCCESS) { in tavor_ci_reregister_mr()
1611 return (status); in tavor_ci_reregister_mr()
1654 int status; in tavor_ci_reregister_buf() local
1679 status = tavor_mr_reregister_buf(state, mrhdl, pdhdl, attrp, buf, in tavor_ci_reregister_buf()
1681 if (status != DDI_SUCCESS) { in tavor_ci_reregister_buf()
1682 return (status); in tavor_ci_reregister_buf()
1718 int status; in tavor_ci_sync_mr() local
1731 status = tavor_mr_sync(state, mr_segs, num_segs); in tavor_ci_sync_mr()
1732 if (status != DDI_SUCCESS) { in tavor_ci_sync_mr()
1733 return (status); in tavor_ci_sync_mr()
1752 int status; in tavor_ci_alloc_mw() local
1772 status = tavor_mw_alloc(state, pdhdl, flags, &mwhdl); in tavor_ci_alloc_mw()
1773 if (status != DDI_SUCCESS) { in tavor_ci_alloc_mw()
1774 return (status); in tavor_ci_alloc_mw()
1796 int status; in tavor_ci_free_mw() local
1813 status = tavor_mw_free(state, &mwhdl, TAVOR_NOSLEEP); in tavor_ci_free_mw()
1814 if (status != DDI_SUCCESS) { in tavor_ci_free_mw()
1815 return (status); in tavor_ci_free_mw()
1865 int status; in tavor_ci_register_dma_mr() local
1897 status = tavor_dma_mr_register(state, pdhdl, mr_attr, &mrhdl); in tavor_ci_register_dma_mr()
1898 if (status != DDI_SUCCESS) { in tavor_ci_register_dma_mr()
1899 return (status); in tavor_ci_register_dma_mr()
1937 int status; in tavor_ci_attach_mcg() local
1954 status = tavor_mcg_attach(state, qphdl, gid, lid); in tavor_ci_attach_mcg()
1955 if (status != DDI_SUCCESS) { in tavor_ci_attach_mcg()
1956 return (status); in tavor_ci_attach_mcg()
1974 int status; in tavor_ci_detach_mcg() local
1991 status = tavor_mcg_detach(state, qphdl, gid, lid); in tavor_ci_detach_mcg()
1992 if (status != DDI_SUCCESS) { in tavor_ci_detach_mcg()
1993 return (status); in tavor_ci_detach_mcg()
2011 int status; in tavor_ci_post_send() local
2031 status = tavor_post_send(state, qphdl, wr_p, num_wr, num_posted_p); in tavor_ci_post_send()
2032 if (status != DDI_SUCCESS) { in tavor_ci_post_send()
2033 return (status); in tavor_ci_post_send()
2051 int status; in tavor_ci_post_recv() local
2071 status = tavor_post_recv(state, qphdl, wr_p, num_wr, num_posted_p); in tavor_ci_post_recv()
2072 if (status != DDI_SUCCESS) { in tavor_ci_post_recv()
2073 return (status); in tavor_ci_post_recv()
2092 int status; in tavor_ci_poll_cq() local
2116 status = tavor_cq_poll(state, cqhdl, wc_p, num_wc, &polled); in tavor_ci_poll_cq()
2129 if (status != DDI_SUCCESS) { in tavor_ci_poll_cq()
2130 return (status); in tavor_ci_poll_cq()
2148 int status; in tavor_ci_notify_cq() local
2165 status = tavor_cq_notify(state, cqhdl, flags); in tavor_ci_notify_cq()
2166 if (status != DDI_SUCCESS) { in tavor_ci_notify_cq()
2167 return (status); in tavor_ci_notify_cq()
2184 int status; in tavor_ci_ci_data_in() local
2195 status = tavor_umap_ci_data_in(state, flags, object, in tavor_ci_ci_data_in()
2197 if (status != DDI_SUCCESS) { in tavor_ci_ci_data_in()
2198 return (status); in tavor_ci_ci_data_in()
2215 int status; in tavor_ci_ci_data_out() local
2226 status = tavor_umap_ci_data_out(state, flags, object, in tavor_ci_ci_data_out()
2228 if (status != DDI_SUCCESS) { in tavor_ci_ci_data_out()
2229 return (status); in tavor_ci_ci_data_out()
2251 int status; in tavor_ci_alloc_srq() local
2279 status = tavor_srq_alloc(state, &srqinfo, TAVOR_NOSLEEP, &op); in tavor_ci_alloc_srq()
2280 if (status != DDI_SUCCESS) { in tavor_ci_alloc_srq()
2281 return (status); in tavor_ci_alloc_srq()
2299 int status; in tavor_ci_free_srq() local
2321 status = tavor_srq_free(state, &srqhdl, TAVOR_NOSLEEP); in tavor_ci_free_srq()
2322 if (status != DDI_SUCCESS) { in tavor_ci_free_srq()
2323 return (status); in tavor_ci_free_srq()
2388 int status; in tavor_ci_modify_srq() local
2464 status = tavor_srq_modify(state, srqhdl, size, ret_size_p, in tavor_ci_modify_srq()
2466 if (status != DDI_SUCCESS) { in tavor_ci_modify_srq()
2469 return (status); in tavor_ci_modify_srq()
2486 int status; in tavor_ci_post_srq() local
2507 status = tavor_post_srq(state, srqhdl, wr, num_wr, num_posted_p); in tavor_ci_post_srq()
2508 if (status != DDI_SUCCESS) { in tavor_ci_post_srq()
2509 return (status); in tavor_ci_post_srq()
2560 int status; in tavor_ci_map_mem_iov() local
2617 status = ddi_dma_alloc_handle(state->ts_dip, &dma_attr, in tavor_ci_map_mem_iov()
2619 if (status != DDI_SUCCESS) { in tavor_ci_map_mem_iov()
2623 status = ddi_dma_buf_bind_handle(dmahdl, iov_attr->iov_buf, in tavor_ci_map_mem_iov()
2626 if (status != DDI_DMA_MAPPED) { in tavor_ci_map_mem_iov()
2633 status = ddi_dma_unbind_handle(dmahdl); in tavor_ci_map_mem_iov()
2671 status = ddi_dma_alloc_handle(state->ts_dip, &dma_attr, in tavor_ci_map_mem_iov()
2673 if (status != DDI_SUCCESS) { in tavor_ci_map_mem_iov()
2677 status = ddi_dma_addr_bind_handle(dmahdl, iov_attr->iov_as, in tavor_ci_map_mem_iov()
2681 if (status != DDI_DMA_MAPPED) { in tavor_ci_map_mem_iov()
2712 status = ddi_dma_unbind_handle(mi_hdl->imh_dmahandle[i]); in tavor_ci_map_mem_iov()
2865 int status; in tavor_ci_alloc_io_mem() local
2881 status = tavor_mem_alloc(state, size, mr_flag, kaddrp, in tavor_ci_alloc_io_mem()
2884 if (status != DDI_SUCCESS) { in tavor_ci_alloc_io_mem()
2885 return (status); in tavor_ci_alloc_io_mem()
2935 int status; in tavor_mem_alloc() local
2943 status = ddi_dma_alloc_handle(state->ts_dip, &dma_attr, ddi_cb, in tavor_mem_alloc()
2945 if (status != DDI_SUCCESS) { in tavor_mem_alloc()
2950 status = ddi_dma_mem_alloc(dma_hdl, size, in tavor_mem_alloc()
2954 if (status != DDI_SUCCESS) { in tavor_mem_alloc()