/* This function is called from SLI initialization code path with no lock held to post initial HBQ buffers to firmware. The function returns the number of HBQ entries successfully allocated.  */
static int lpfc_sli_hbqbuf_init_hbqs(struct lpfc_hba *phba, uint32_t qno)
/* This function is called from SLI initialization code path with no lock held to post initial HBQ buffers to firmware. The function returns the number of HBQ entries successfully allocated.  */
static int lpfc_sli_hbqbuf_init_hbqs(struct lpfc_hba *phba, uint32_t qno)
{
	if (phba->sli_rev == LPFC_SLI_REV4)
		return lpfc_sli_hbqbuf_fill_hbqs(phba, qno,
					 lpfc_hbq_defs[qno]->entry_count);
	else
		return lpfc_sli_hbqbuf_fill_hbqs(phba, qno,
					 lpfc_hbq_defs[qno]->init_count);
}