Lines Matching defs:rpi
2878 uint16_t rpi, vpi;
2894 rpi = pmb->u.mb.un.varWords[0];
2898 lpfc_unreg_login(phba, vpi, rpi, pmb);
2976 * This function is the unreg rpi mailbox completion handler. It
2979 * lpfc_nlp_release from freeing the rpi bit in the bitmask before
3000 "rpi:%x DID:%x defer x%x flg x%x "
6327 * @type: the extent type (rpi, xri, vfi, vpi).
7240 "rpi:%d\n", count);
8736 * Allocate all resources (xri,rpi,vpi,vfi) now. Subsequent
8925 /* Post the rpi header region to the device. */
8929 "0393 Error %d during rpi post operation\n",
10916 u16 rpi, u32 num_entry, u8 tmo)
10932 cmd->ulpContext = rpi;
10943 u16 rpi, u32 num_entry, u8 tmo)
10983 bf_set(wqe_ctxt_tag, &cmdwqe->gen_req.wqe_com, rpi);
10997 struct lpfc_dmabuf *bmp, u16 rpi, u32 num_entry, u8 tmo)
10999 phba->__lpfc_sli_prep_gen_req(cmdiocbq, bmp, rpi, num_entry, tmo);
11004 struct lpfc_dmabuf *bmp, u16 rpi, u16 ox_id,
11029 icmd->ulpContext = rpi;
11043 struct lpfc_dmabuf *bmp, u16 rpi, u16 ox_id,
11066 bf_set(wqe_ctxt_tag, &wqe->xmit_sequence.wqe_com, rpi);
11087 struct lpfc_dmabuf *bmp, u16 rpi, u16 ox_id,
11090 phba->__lpfc_sli_prep_xmit_seq64(cmdiocbq, bmp, rpi, ox_id, num_entry,
11408 uint16_t rpi = 0, vpi = 0;
11411 /* The rpi in the ulpContext is vport-sensitive. */
11413 rpi = iocbq->iocb.ulpContext;
11417 "on vpi %d rpi %d status 0x%x\n",
11418 vpi, rpi, iocbq->iocb.ulpStatus);
11423 ndlp = lpfc_findnode_rpi(vport, rpi);
11434 "action on vpi %d rpi %d status 0x%x, reason 0x%x\n",
11435 vpi, rpi, iocbq->iocb.ulpStatus,
11465 "vpi %d rpi %d xri x%x status 0x%x parameter x%x\n",
12723 "3096 ABORT_XRI_CX completing on rpi x%x "
13823 "MBOX dflt rpi: : "
13824 "status:x%x rpi:x%x",
14335 "MBOX dflt rpi: status:x%x rpi:x%x",
14357 * taken in the reg rpi path and is released when
17981 * lpfc_sli4_alloc_xri - Get an available rpi in the device's range
17984 * This routine is invoked to post rpi header templates to the
17987 * SLI4_PAGE_SIZE modulo 64 rpi context headers.
17990 * A nonzero rpi defined as rpi_base <= rpi < max_rpi if successful
19525 * lpfc_sli4_post_all_rpi_hdrs - Post the rpi header memory region to the port
19528 * This routine is invoked to post rpi header templates to the
19531 * SLI4_PAGE_SIZE modulo 64 rpi context headers.
19541 * to have any rpi regions posted to the device and
19560 * Assign the rpi headers a physical rpi only if the driver
19571 "2008 Error %d posting all rpi "
19585 * lpfc_sli4_post_rpi_hdr - Post an rpi header memory region to the port
19587 * @rpi_page: pointer to the rpi memory region.
19589 * This routine is invoked to post a single rpi header to the
19591 * maps up to 64 rpi context regions.
19622 /* Post all rpi memory regions to the port. */
19631 /* Post the physical rpi to the port for this rpi header. */
19652 * The next_rpi stores the next logical module-64 rpi value used
19653 * to post physical rpis in subsequent rpi postings.
19663 * lpfc_sli4_alloc_rpi - Get an available rpi in the device's range
19666 * This routine is invoked to post rpi header templates to the
19669 * SLI4_PAGE_SIZE modulo 64 rpi context headers.
19672 * A nonzero rpi defined as rpi_base <= rpi < max_rpi if successful
19678 unsigned long rpi;
19685 * Fetch the next logical rpi. Because this index is logical,
19692 rpi = find_first_zero_bit(phba->sli4_hba.rpi_bmask, rpi_limit);
19693 if (rpi >= rpi_limit)
19694 rpi = LPFC_RPI_ALLOC_ERROR;
19696 set_bit(rpi, phba->sli4_hba.rpi_bmask);
19702 "0001 Allocated rpi:x%x max:x%x lim:x%x\n",
19703 (int) rpi, max_rpi, rpi_limit);
19706 * Don't try to allocate more rpi header regions if the device limit
19709 if ((rpi == LPFC_RPI_ALLOC_ERROR) &&
19712 return rpi;
19721 return rpi;
19725 * If the driver is running low on rpi resources, allocate another
19736 "2002 Error Could not grow rpi "
19745 return rpi;
19749 * __lpfc_sli4_free_rpi - Release an rpi for reuse.
19751 * @rpi: rpi to free
19753 * This routine is invoked to release an rpi to the pool of
19757 __lpfc_sli4_free_rpi(struct lpfc_hba *phba, int rpi)
19760 * if the rpi value indicates a prior unreg has already
19763 if (rpi == LPFC_RPI_ALLOC_ERROR)
19766 if (test_and_clear_bit(rpi, phba->sli4_hba.rpi_bmask)) {
19772 "2016 rpi %x not inuse\n",
19773 rpi);
19778 * lpfc_sli4_free_rpi - Release an rpi for reuse.
19780 * @rpi: rpi to free
19782 * This routine is invoked to release an rpi to the pool of
19786 lpfc_sli4_free_rpi(struct lpfc_hba *phba, int rpi)
19789 __lpfc_sli4_free_rpi(phba, rpi);
19794 * lpfc_sli4_remove_rpis - Remove the rpi bitmask region
19798 * provided rpi via a bitmask.
19809 * lpfc_sli4_resume_rpi - Remove the rpi bitmask region
19815 * provided rpi via a bitmask.
19844 /* Post all rpi memory regions to the port. */