Lines Matching defs:rc

202 	int				rc;
222 rc = EINVAL;
230 rc = ENOMEM;
256 rc = EINVAL;
266 rc = EINVAL;
286 rc = ibt_alloc_cq(uctxt->hca->hdl, &cq_attr, &ucq->cq, &real_size);
288 if (rc != IBT_SUCCESS) {
290 "create_cq: ibt_alloc_cq() (rc=%d)", rc);
291 rc = sol_uverbs_ibt_to_kernel_status(rc);
299 "create_cq: ib_alloc_cq() (rc=%d), real_size=%d",
300 rc, real_size);
306 rc = ibt_ci_data_out(uctxt->hca->hdl, IBT_CI_NO_FLAGS, IBT_HDL_CQ,
308 if (rc != IBT_SUCCESS) {
310 "create_cq: ibt_ci_data_out() rc=%d", rc);
311 rc = EFAULT;
319 rc = ENOMEM;
332 rc = copyout((void*)&resp, (void*)cmd.response.r_laddr, sizeof (resp));
334 rc = copyout((void*)&resp, (void*)cmd.response.r_addr, sizeof (resp));
336 if (rc != 0) {
338 "create_cq: copyout failed %x", rc);
339 rc = EFAULT;
352 rc = ENOMEM;
386 return (rc);
392 int rc;
394 rc = ibt_free_cq(ucq->cq);
395 if (rc != IBT_SUCCESS) {
397 "destroy_id: ibt_free_cq() rc=%d",
398 rc);
399 rc = sol_uverbs_ibt_to_kernel_status(rc);
401 return (rc);
438 int rc;
451 rc = EINVAL;
464 rc = uverbs_ucq_free(ucq, uctxt);
465 if (rc)
470 rc = copyout((void*)&resp, (void*)cmd.response.r_laddr, sizeof (resp));
472 rc = copyout((void*)&resp, (void*)cmd.response.r_addr, sizeof (resp));
474 if (rc != 0) {
476 "destroy_cq: copuout failed %x", rc);
477 rc = EFAULT;
484 return (rc);
510 int rc;
524 rc = EINVAL;
539 rc = sol_uverbs_ibt_to_kernel_status(resize_status);
545 rc = ibt_ci_data_out(uctxt->hca->hdl, IBT_CI_NO_FLAGS, IBT_HDL_CQ,
547 if (rc != IBT_SUCCESS) {
550 "(rc=%d)", rc);
551 rc = EFAULT;
561 rc = copyout((void*)&resp, (void*)cmd.response.r_laddr, sizeof (resp));
563 rc = copyout((void*)&resp, (void*)cmd.response.r_addr, sizeof (resp));
565 if (rc != 0) {
567 "resize_cq: copyout %d", rc);
568 rc = EFAULT;
575 return (rc);
602 int rc;
613 rc = EINVAL;
623 rc = ibt_enable_cq_notify(ucq->cq, flag);
624 if (rc != IBT_SUCCESS) {
627 "(rc=%d)", rc);
628 rc = sol_uverbs_ibt_to_kernel_status(rc);
639 return (rc);
669 int rc;
684 rc = EINVAL;
693 rc = ENOMEM;
697 rc = ibt_poll_cq(ucq->cq, completions, cmd.ne, &resp.count);
698 if (rc != IBT_SUCCESS) {
700 "poll_cq: ibt_poll_cq() (rc=%d)", rc);
701 rc = sol_uverbs_ibt_to_kernel_status(rc);
706 rc = copyout((void*)&resp, (void*)cmd.response.r_laddr, sizeof (resp));
708 rc = copyout((void*)&resp, (void*)cmd.response.r_addr, sizeof (resp));
710 if (rc != 0) {
712 "poll_cq: copyout %x", rc);
713 rc = EFAULT;
722 rc = copyout((void*)&ofed_wc,
725 rc = copyout((void*)&ofed_wc,
728 if (rc != 0) {
730 "poll_cq: copyout wc data %x", rc);
731 rc = EFAULT;
748 return (rc);