Lines Matching defs:rpi
2477 uint16_t rpi, vpi;
2494 rpi = pmb->u.mb.un.varWords[0];
2498 lpfc_unreg_login(phba, vpi, rpi, pmb);
2567 * This function is the unreg rpi mailbox completion handler. It
2570 * lpfc_nlp_release from freeing the rpi bit in the bitmask before
2591 "rpi:%x DID:%x defer x%x flg x%x "
5847 * @type: the extent type (rpi, xri, vfi, vpi).
6711 "rpi:%d\n", count);
7638 * Allocate all resources (xri,rpi,vpi,vfi) now. Subsequent
7826 /* Post the rpi header region to the device. */
7830 "0393 Error %d during rpi post operation\n",
10418 uint16_t rpi = 0, vpi = 0;
10421 /* The rpi in the ulpContext is vport-sensitive. */
10423 rpi = iocbq->iocb.ulpContext;
10427 "on vpi %d rpi %d status 0x%x\n",
10428 vpi, rpi, iocbq->iocb.ulpStatus);
10433 ndlp = lpfc_findnode_rpi(vport, rpi);
10444 "action on vpi %d rpi %d status 0x%x, reason 0x%x\n",
10446 vpi, rpi);
10475 "vpi %d rpi %d xri x%x status 0x%x parameter x%x\n",
11699 "3096 ABORT_XRI_CN completing on rpi x%x "
12814 "MBOX dflt rpi: : "
12815 "status:x%x rpi:x%x",
13421 "MBOX dflt rpi: status:x%x rpi:x%x",
16973 * lpfc_sli4_alloc_xri - Get an available rpi in the device's range
16976 * This routine is invoked to post rpi header templates to the
16979 * SLI4_PAGE_SIZE modulo 64 rpi context headers.
16982 * A nonzero rpi defined as rpi_base <= rpi < max_rpi if successful
18514 * lpfc_sli4_post_all_rpi_hdrs - Post the rpi header memory region to the port
18517 * This routine is invoked to post rpi header templates to the
18520 * SLI4_PAGE_SIZE modulo 64 rpi context headers.
18530 * to have any rpi regions posted to the device and
18549 * Assign the rpi headers a physical rpi only if the driver
18560 "2008 Error %d posting all rpi "
18574 * lpfc_sli4_post_rpi_hdr - Post an rpi header memory region to the port
18576 * @rpi_page: pointer to the rpi memory region.
18578 * This routine is invoked to post a single rpi header to the
18580 * maps up to 64 rpi context regions.
18611 /* Post all rpi memory regions to the port. */
18620 /* Post the physical rpi to the port for this rpi header. */
18641 * The next_rpi stores the next logical module-64 rpi value used
18642 * to post physical rpis in subsequent rpi postings.
18652 * lpfc_sli4_alloc_rpi - Get an available rpi in the device's range
18655 * This routine is invoked to post rpi header templates to the
18658 * SLI4_PAGE_SIZE modulo 64 rpi context headers.
18661 * A nonzero rpi defined as rpi_base <= rpi < max_rpi if successful
18667 unsigned long rpi;
18674 * Fetch the next logical rpi. Because this index is logical,
18681 rpi = find_next_zero_bit(phba->sli4_hba.rpi_bmask, rpi_limit, 0);
18682 if (rpi >= rpi_limit)
18683 rpi = LPFC_RPI_ALLOC_ERROR;
18685 set_bit(rpi, phba->sli4_hba.rpi_bmask);
18691 "0001 Allocated rpi:x%x max:x%x lim:x%x\n",
18692 (int) rpi, max_rpi, rpi_limit);
18695 * Don't try to allocate more rpi header regions if the device limit
18698 if ((rpi == LPFC_RPI_ALLOC_ERROR) &&
18701 return rpi;
18710 return rpi;
18714 * If the driver is running low on rpi resources, allocate another
18725 "2002 Error Could not grow rpi "
18734 return rpi;
18738 * lpfc_sli4_free_rpi - Release an rpi for reuse.
18740 * @rpi: rpi to free
18742 * This routine is invoked to release an rpi to the pool of
18746 __lpfc_sli4_free_rpi(struct lpfc_hba *phba, int rpi)
18749 * if the rpi value indicates a prior unreg has already
18752 if (rpi == LPFC_RPI_ALLOC_ERROR)
18755 if (test_and_clear_bit(rpi, phba->sli4_hba.rpi_bmask)) {
18761 "2016 rpi %x not inuse\n",
18762 rpi);
18767 * lpfc_sli4_free_rpi - Release an rpi for reuse.
18769 * @rpi: rpi to free
18771 * This routine is invoked to release an rpi to the pool of
18775 lpfc_sli4_free_rpi(struct lpfc_hba *phba, int rpi)
18778 __lpfc_sli4_free_rpi(phba, rpi);
18783 * lpfc_sli4_remove_rpis - Remove the rpi bitmask region
18787 * provided rpi via a bitmask.
18798 * lpfc_sli4_resume_rpi - Remove the rpi bitmask region
18804 * provided rpi via a bitmask.
18819 /* Post all rpi memory regions to the port. */