Lines Matching refs:hq

456 lpfc_sli4_rq_put(struct lpfc_queue *hq, struct lpfc_queue *dq,  in lpfc_sli4_rq_put()  argument
465 if (unlikely(!hq) || unlikely(!dq)) in lpfc_sli4_rq_put()
467 put_index = hq->host_index; in lpfc_sli4_rq_put()
468 temp_hrqe = hq->qe[hq->host_index].rqe; in lpfc_sli4_rq_put()
471 if (hq->type != LPFC_HRQ || dq->type != LPFC_DRQ) in lpfc_sli4_rq_put()
473 if (hq->host_index != dq->host_index) in lpfc_sli4_rq_put()
476 if (((hq->host_index + 1) % hq->entry_count) == hq->hba_index) in lpfc_sli4_rq_put()
478 lpfc_sli_pcimem_bcopy(hrqe, temp_hrqe, hq->entry_size); in lpfc_sli4_rq_put()
482 hq->host_index = ((hq->host_index + 1) % hq->entry_count); in lpfc_sli4_rq_put()
486 if (!(hq->host_index % hq->entry_repost)) { in lpfc_sli4_rq_put()
488 if (hq->db_format == LPFC_DB_RING_FORMAT) { in lpfc_sli4_rq_put()
490 hq->entry_repost); in lpfc_sli4_rq_put()
491 bf_set(lpfc_rq_db_ring_fm_id, &doorbell, hq->queue_id); in lpfc_sli4_rq_put()
492 } else if (hq->db_format == LPFC_DB_LIST_FORMAT) { in lpfc_sli4_rq_put()
494 hq->entry_repost); in lpfc_sli4_rq_put()
496 hq->host_index); in lpfc_sli4_rq_put()
497 bf_set(lpfc_rq_db_list_fm_id, &doorbell, hq->queue_id); in lpfc_sli4_rq_put()
501 writel(doorbell.word0, hq->db_regaddr); in lpfc_sli4_rq_put()
517 lpfc_sli4_rq_release(struct lpfc_queue *hq, struct lpfc_queue *dq) in lpfc_sli4_rq_release() argument
520 if (unlikely(!hq) || unlikely(!dq)) in lpfc_sli4_rq_release()
523 if ((hq->type != LPFC_HRQ) || (dq->type != LPFC_DRQ)) in lpfc_sli4_rq_release()
525 hq->hba_index = ((hq->hba_index + 1) % hq->entry_count); in lpfc_sli4_rq_release()