Lines Matching refs:rc

38 static inline void zpci_err_clp(unsigned int rsp, int rc)
42 int rc;
43 } __packed data = {rsp, rc};
125 int rc;
137 rc = clp_req(rrb, CLP_LPS_PCI);
138 if (!rc && rrb->response.hdr.rsp == CLP_RC_OK)
142 zpci_err_clp(rrb->response.hdr.rsp, rc);
143 rc = -EIO;
146 return rc;
192 int rc;
204 rc = clp_req(rrb, CLP_LPS_PCI);
205 if (!rc && rrb->response.hdr.rsp == CLP_RC_OK) {
206 rc = clp_store_query_pci_fn(zdev, &rrb->response);
207 if (rc)
209 rc = clp_query_pci_fngrp(zdev, rrb->response.pfgid);
212 zpci_err_clp(rrb->response.hdr.rsp, rc);
213 rc = -EIO;
217 return rc;
233 int rc, retries = 100;
254 rc = clp_req(rrb, CLP_LPS_PCI);
263 if (!rc && rrb->response.hdr.rsp == CLP_RC_OK) {
267 zpci_err_clp(rrb->response.hdr.rsp, rc);
268 if (!rc)
269 rc = rrb->response.hdr.rsp;
272 return rc;
279 int rc;
290 rc = clp_req(rrb, CLP_LPS_PCI);
291 if (!rc && rrb->response.hdr.rsp == CLP_RC_OK) {
302 zpci_err_clp(rrb->response.hdr.rsp, rc);
303 rc = -EIO;
306 return rc;
311 int rc;
313 rc = clp_set_pci_fn(zdev, fh, nr_dma_as, CLP_SET_ENABLE_PCI_FN);
314 zpci_dbg(3, "ena fid:%x, fh:%x, rc:%d\n", zdev->fid, *fh, rc);
315 if (!rc && zpci_use_mio(zdev)) {
316 rc = clp_set_pci_fn(zdev, fh, nr_dma_as, CLP_SET_ENABLE_MIO);
317 zpci_dbg(3, "ena mio fid:%x, fh:%x, rc:%d\n",
318 zdev->fid, *fh, rc);
319 if (rc)
322 return rc;
327 int rc;
332 rc = clp_set_pci_fn(zdev, fh, 0, CLP_SET_DISABLE_PCI_FN);
333 zpci_dbg(3, "dis fid:%x, fh:%x, rc:%d\n", zdev->fid, *fh, rc);
334 return rc;
340 int rc;
350 rc = clp_req(rrb, CLP_LPS_PCI);
351 if (rc || rrb->response.hdr.rsp != CLP_RC_OK) {
353 zpci_err_clp(rrb->response.hdr.rsp, rc);
365 return rc;
372 int nentries, i, rc;
375 rc = clp_list_pci_req(rrb, &resume_token, &nentries);
376 if (rc)
377 return rc;
382 return rc;
390 int nentries, i, rc;
393 rc = clp_list_pci_req(rrb, &resume_token, &nentries);
394 if (rc)
395 return rc;
426 int rc;
432 rc = clp_list_pci(rrb, NULL, __clp_add);
435 return rc;
445 int rc;
451 rc = clp_find_pci(rrb, fid, &entry);
452 if (!rc)
456 return rc;
463 int rc;
469 rc = clp_find_pci(rrb, fid, &entry);
470 if (!rc) {
472 } else if (rc == -ENODEV) {
474 rc = 0;
478 return rc;
570 int rc;
572 rc = -EINVAL;
576 rc = -ENOMEM;
581 rc = -EFAULT;
586 rc = -EINVAL;
592 rc = clp_base_command(req, lpcb);
595 rc = clp_pci_command(req, lpcb);
598 if (rc)
601 rc = -EFAULT;
605 rc = 0;
610 return rc;