/* This routine is invoked to release an rpi to the pool of available rpis maintained by the driver.  */
void lpfc_sli4_free_rpi(struct lpfc_hba *phba, int rpi)
/* This routine is invoked to release an rpi to the pool of available rpis maintained by the driver.  */
void lpfc_sli4_free_rpi(struct lpfc_hba *phba, int rpi)
{
	spin_lock_irq(&phba->hbalock);
	clear_bit(rpi, phba->sli4_hba.rpi_bmask);
	phba->sli4_hba.rpi_count--;
	phba->sli4_hba.max_cfg_param.rpi_used--;
	spin_unlock_irq(&phba->hbalock);
}