/* This function returns pointer to next response iocb entry in the response ring. The caller must hold hbalock to make sure that no other thread consume the next response iocb. SLI-2/SLI-3 provide different sized iocbs.  */
static IOCB_t* lpfc_resp_iocb(struct lpfc_hba *phba, struct lpfc_sli_ring *pring)
/* This function returns pointer to next response iocb entry in the response ring. The caller must hold hbalock to make sure that no other thread consume the next response iocb. SLI-2/SLI-3 provide different sized iocbs.  */
static IOCB_t* lpfc_resp_iocb(struct lpfc_hba *phba, struct lpfc_sli_ring *pring)
{
	return (IOCB_t *) (((char *) pring->rspringaddr) +
			   pring->rspidx * phba->iocb_rsp_size);
}