/* This function is called with hbalock. This function gives back the hbq buffer to firmware. If the HBQ does not have space to post the buffer, it will free the buffer.  */
void lpfc_sli_free_hbq(struct lpfc_hba *phba, struct hbq_dmabuf *hbq_buffer)
/* This function is called with hbalock. This function gives back the hbq buffer to firmware. If the HBQ does not have space to post the buffer, it will free the buffer.  */
void lpfc_sli_free_hbq(struct lpfc_hba *phba, struct hbq_dmabuf *hbq_buffer)
{
	uint32_t hbqno;
	if (hbq_buffer) {
		hbqno = hbq_buffer->tag >> 16;
		if (lpfc_sli_hbq_to_firmware(phba, hbqno, hbq_buffer))
			(phba->hbqs[hbqno].hbq_free_buffer)(phba, hbq_buffer);
	}
}