/* This routine will update the HBA index of a queue to reflect consumption of a Mailbox Queue Entry by the HBA. When the HBA indicates that it has consumed an entry the host calls this function to update the queue's internal pointers. This routine returns the number of entries that were consumed by the HBA.  */
static uint32_t lpfc_sli4_mq_release(struct lpfc_queue *q)
/* This routine will update the HBA index of a queue to reflect consumption of a Mailbox Queue Entry by the HBA. When the HBA indicates that it has consumed an entry the host calls this function to update the queue's internal pointers. This routine returns the number of entries that were consumed by the HBA.  */
static uint32_t lpfc_sli4_mq_release(struct lpfc_queue *q)
{
	q->phba->mbox = NULL;
	q->hba_index = ((q->hba_index + 1) % q->entry_count);
	return 1;
}