Lines Matching refs:rc
58 int rc;
81 return rc;
87 int rc;
89 rc = iflib_dma_alloc(softc->ctx, PAGE_SIZE, &softc->hwrm_cmd_resp,
91 return rc;
222 int rc;
225 rc = _hwrm_send_message(softc, msg, msg_len);
227 return rc;
237 int rc = 0;
243 rc = _hwrm_send_message(softc, &req, sizeof(req));
244 if (rc)
248 rc = -EINVAL;
263 return (rc);
272 int rc;
286 rc = _hwrm_send_message(softc, &req, sizeof(req));
287 if (rc)
358 return rc;
416 int rc = 0;
426 rc = _hwrm_send_message(softc, &req, sizeof(req));
427 if (rc)
466 return rc;
476 int rc;
481 rc = _hwrm_send_message(softc, &req, sizeof(req));
482 if (rc)
491 return rc;
589 int rc;
610 rc = _hwrm_send_message(softc, &req, sizeof(req));
612 if (!rc) {
623 return rc;
658 int rc;
672 rc = _hwrm_send_message(softc, &req, sizeof(req));
673 if (rc)
680 return (rc);
689 int rc;
700 rc = _hwrm_send_message(softc, &req, sizeof(req));
701 if (rc)
708 return (rc);
716 int rc = 0;
732 rc = _hwrm_send_message(softc, &req, sizeof(req));
733 if (rc)
740 return rc;
753 int rc;
787 rc = _hwrm_send_message(softc, &req, sizeof(req));
788 if (rc)
795 return rc;
804 int rc = 0;
820 rc = _hwrm_send_message(softc, &req, sizeof(req));
821 if (rc)
829 return rc;
836 int rc = 0;
845 rc = _hwrm_send_message(softc, &req, sizeof(req));
848 return rc;
861 int rc;
879 rc = iflib_dma_alloc(softc->ctx, 4 * num_vlan_tags,
881 if (rc)
882 return rc;
908 int rc = 0;
930 rc = _hwrm_send_message(softc, &req, sizeof(req));
931 if (rc)
939 return (rc);
961 int rc = 0;
972 rc = hwrm_send_message(softc, &req, sizeof(req));
982 rc = hwrm_send_message(softc, &req, sizeof(req));
984 return rc;
1051 int rc = 0;
1070 rc = _hwrm_send_message(softc, &req, sizeof(req));
1072 if (rc)
1087 return (rc);
1095 int rc;
1099 rc = EINVAL;
1110 rc = _hwrm_send_message(softc, &req, sizeof(req));
1113 if (rc)
1120 return rc;
1129 int rc;
1134 rc = iflib_dma_alloc(softc->ctx, length, &dma_data,
1136 if (rc)
1139 rc = copyin(data, dma_data.idi_vaddr, length);
1140 if (rc)
1156 rc = _hwrm_send_message(softc, &req, sizeof(req));
1162 return rc;
1172 int rc;
1181 rc = _hwrm_send_message(softc, &req, sizeof(req));
1182 if (rc)
1188 return rc;
1197 int rc;
1205 rc = _hwrm_send_message(softc, &req, sizeof(req));
1206 if (rc)
1212 return rc;
1225 int rc;
1229 rc = iflib_dma_alloc(softc->ctx, data_length, &dma_data,
1231 if (rc)
1234 rc = copyin(data, dma_data.idi_vaddr, data_length);
1235 if (rc)
1265 rc = _hwrm_send_message(softc, &req, sizeof(req));
1267 if (rc)
1279 return rc;
1287 int rc;
1294 rc = _hwrm_send_message(softc, &req, sizeof(req));
1297 return rc;
1307 int rc;
1315 rc = _hwrm_send_message(softc, &req, sizeof(req));
1317 if (rc)
1327 return rc;
1337 int rc;
1345 rc = bnxt_hwrm_nvm_get_dir_info(softc, entries, entry_length);
1346 if (rc)
1349 rc = EINVAL;
1363 rc = _hwrm_send_message(softc, &req, sizeof(req));
1366 if (rc)
1372 return rc;
1383 int rc;
1391 rc = _hwrm_send_message(softc, &req, sizeof(req));
1393 if (rc)
1411 return rc;
1422 int rc;
1431 rc = _hwrm_send_message(softc, &req, sizeof(req));
1433 if (rc)
1447 return rc;
1456 int rc;
1467 rc = _hwrm_send_message(softc, &req, sizeof(req));
1470 return rc;
1481 int rc;
1486 rc = _hwrm_send_message(softc, &req, sizeof(req));
1487 if (rc)
1509 return rc;
1539 int rc = 0;
1544 rc = _hwrm_send_message(softc, &req, sizeof(req));
1545 if (rc)
1615 return rc;
1625 int rc;
1630 rc = hwrm_send_message(softc, &req, sizeof(req));
1631 if (!rc) {
1650 int rc;
1658 rc = hwrm_send_message(softc, &req, sizeof(req));
1659 if (!rc)
1662 return rc;
1695 int i, rc = 0;
1755 rc = hwrm_send_message(softc, req, sizeof(*req));
1756 if (rc)
1759 return rc;