FreeBSD/sys/dev/mrsas/mrsas.c
/*
 * mrsas_reset_reply_desc:	Reset Reply descriptor as part of OCR.
 * input:					Adapter Context.
 *
 * This function will clear reply descriptor so that post OCR driver and FW will
 * lost old history.
 */
Reset Reply descriptor as part of OCR.
input:                                       Adapter Context.

This function will clear reply descriptor so that post OCR driver and FW will
lost old history.
Reset Reply descriptor as part of OCR . input : Adapter Context . This function will clear reply descriptor so that post OCR driver and FW will lost old history .
void
mrsas_reset_reply_desc(struct mrsas_softc *sc)
{
	int i, count;
	pMpi2ReplyDescriptorsUnion_t reply_desc;
	count = sc->msix_vectors > 0 ? sc->msix_vectors : 1;
	for (i = 0; i < count; i++)
		sc->last_reply_idx[i] = 0;
	reply_desc = sc->reply_desc_mem;
	for (i = 0; i < sc->reply_q_depth; i++, reply_desc++) {
		reply_desc->Words = MRSAS_ULONG_MAX;
	}
}
void mrsas_reset_reply_desc ( struct mrsas_softc * sc ) { int i , count ; pMpi2ReplyDescriptorsUnion_t reply_desc ; count = sc -> msix_vectors > 0 ? sc -> msix_vectors : 1 ; for ( i = 0 ; i < count ; i ++ ) sc -> last_reply_idx [ i ] = 0 ; reply_desc = sc -> reply_desc_mem ; for ( i = 0 ; i < sc -> reply_q_depth ; i ++ , reply_desc ++ ) { reply_desc -> Words = MRSAS_ULONG_MAX ; } }
mrsas_reset_reply_desc:      Reset Reply descriptor as part of OCR.
mrsas_reset_reply_desc : Reset Reply descriptor as part of OCR .