Lines Matching refs:rc
371 int rc;
376 rc = SYSCTL_IN(req, ubuf, req->newlen);
377 if (rc)
378 return (rc);
461 int rc = 0;
506 return (rc);
515 int i, loop, rc;
535 rc = sb->s_error;
536 return (rc);
570 rc = sbuf_finish(sb);
573 return (rc);
586 int rc;
594 rc = parse_mw_buf(ubuf, &cmd, buf_offset, buf_size, &pattern, &s_pflag);
595 if (rc) {
598 return (rc);
608 rc = EINVAL;
636 return (rc);
646 int rc, pidx = arg2, peer_port;
649 rc = sysctl_handle_int(oidp, &peer_port, 0, req);
650 if (rc)
652 "(%d).\n", rc);
656 return (rc);
663 int rc, local_port;
666 rc = sysctl_handle_int(oidp, &local_port, 0, req);
667 if (rc)
669 "(%d).\n", rc);
673 return (rc);
705 int rc;
713 rc = get_ubuf(req, buf);
714 if (rc)
715 return (rc);
718 rc = ntb_link_enable(tc->dev, NTB_SPEED_AUTO, NTB_WIDTH_AUTO);
720 rc = ntb_link_disable(tc->dev);
722 rc = EINVAL;
754 int rc, pidx = arg2;
760 rc = get_ubuf(req, buf);
761 if (rc)
762 return (rc);
789 int rc;
796 rc = get_ubuf(req, buf);
797 if (!rc)
801 return (rc);
810 int rc;
825 rc = ENOMEM;
833 rc = ENOMEM;
841 rc = ENOMEM;
846 rc = ntb_mw_set_trans(tc->dev, widx, inmw->dma_base, inmw->size);
847 if (rc)
868 return (rc);
898 int rc = 0;
902 rc = sb->s_error;
903 return (rc);
917 rc = sbuf_finish(sb);
920 return (rc);
928 int rc = 0;
941 rc = tool_setup_mw(tc, inmw->pidx, inmw->widx, wsize);
943 return (rc);
952 int rc;
957 rc = get_ubuf(req, buf);
958 if (rc == 0) {
963 return (rc);
971 int rc;
978 rc = get_ubuf(req, buf);
979 if (rc == 0)
984 return (rc);
1003 int widx, pidx, rc;
1021 rc = ntb_mw_get_range(tc->dev, widx, &mw->phys_addr,
1024 if (rc)
1033 return (rc);
1045 int rc;
1052 rc = get_ubuf(req, buf);
1053 if (rc == 0)
1057 return (rc);
1080 int rc;
1088 rc = get_ubuf(req, buf);
1089 if (rc == 0)
1093 return (rc);
1101 int rc;
1106 rc = get_ubuf(req, buf);
1107 if (rc == 0)
1111 return (rc);
1119 int rc;
1127 rc = get_ubuf(req, buf);
1128 if (rc == 0)
1132 return (rc);
1141 int rc;
1146 rc = get_ubuf(req, buf);
1147 if (rc)
1148 return (rc);
1167 int rc;
1170 rc = ntb_spad_read(tc->dev, sidx, &bits);
1171 if (rc)
1172 return (rc);
1177 rc = get_ubuf(req, buf);
1178 if (rc == 0) {
1183 return (rc);
1193 int rc;
1196 rc = ntb_peer_spad_read(tc->dev, sidx, &bits);
1197 if (rc)
1198 return (rc);
1203 rc = get_ubuf(req, buf);
1204 if (rc == 0) {
1209 return (rc);
1430 int rc = 0;
1433 rc = tool_check_ntb(tc);
1434 if (rc)
1439 rc = tool_init_mws(tc);
1440 if (rc)
1445 rc = tool_init_ntb(tc);
1446 if (rc)
1460 device_printf(dev, "ntb_tool attached failed with err=(%d).\n", rc);
1461 return (rc);