Lines Matching refs:entry_count

156 	idx = ((q->host_index + 1) % q->entry_count);  in lpfc_sli4_wq_put()
246 q->hba_index = ((q->hba_index + 1) % q->entry_count); in lpfc_sli4_wq_release()
276 if (((q->host_index + 1) % q->entry_count) == q->hba_index) in lpfc_sli4_mq_put()
283 q->host_index = ((q->host_index + 1) % q->entry_count); in lpfc_sli4_mq_put()
312 q->hba_index = ((q->hba_index + 1) % q->entry_count); in lpfc_sli4_mq_release()
342 idx = ((q->hba_index + 1) % q->entry_count); in lpfc_sli4_eq_get()
438 q->host_index = ((q->host_index + 1) % q->entry_count); in lpfc_sli4_eq_release()
496 q->host_index = ((q->host_index + 1) % q->entry_count); in lpfc_sli4_if6_eq_release()
540 idx = ((q->hba_index + 1) % q->entry_count); in lpfc_sli4_cq_get()
596 q->host_index = ((q->host_index + 1) % q->entry_count); in lpfc_sli4_cq_release()
649 q->host_index = ((q->host_index + 1) % q->entry_count); in lpfc_sli4_if6_cq_release()
699 if (((hq_put_index + 1) % hq->entry_count) == hq->hba_index) in lpfc_sli4_rq_put()
705 hq->host_index = ((hq_put_index + 1) % hq->entry_count); in lpfc_sli4_rq_put()
706 dq->host_index = ((dq_put_index + 1) % dq->entry_count); in lpfc_sli4_rq_put()
749 hq->hba_index = ((hq->hba_index + 1) % hq->entry_count); in lpfc_sli4_rq_release()
750 dq->hba_index = ((dq->hba_index + 1) % dq->entry_count); in lpfc_sli4_rq_release()
1946 ++hbqp->next_hbqPutIdx >= hbqp->entry_count) in lpfc_sli_next_hbq_slot()
1955 if (unlikely(hbqp->local_hbqGetIdx >= hbqp->entry_count)) { in lpfc_sli_next_hbq_slot()
1961 hbqp->entry_count); in lpfc_sli_next_hbq_slot()
2112 .entry_count = 256,
2147 lpfc_hbq_defs[hbqno]->entry_count) in lpfc_sli_hbqbuf_fill_hbqs()
2148 count = lpfc_hbq_defs[hbqno]->entry_count - in lpfc_sli_hbqbuf_fill_hbqs()
2219 lpfc_hbq_defs[qno]->entry_count); in lpfc_sli_hbqbuf_init_hbqs()
4800 count += lpfc_hbq_defs[i]->entry_count; in lpfc_sli_hbq_entry_count()
4853 phba->hbqs[hbqno].entry_count = in lpfc_sli_hbq_setup()
4854 lpfc_hbq_defs[hbqno]->entry_count; in lpfc_sli_hbq_setup()
4857 hbq_entry_index += phba->hbqs[hbqno].entry_count; in lpfc_sli_hbq_setup()
4898 phba->hbqs[LPFC_ELS_HBQ].entry_count = in lpfc_sli4_rb_setup()
4899 lpfc_hbq_defs[LPFC_ELS_HBQ]->entry_count; in lpfc_sli4_rb_setup()
6756 if (rqbp->buffer_count + i >= rqbp->entry_count - 1) in lpfc_post_rq_buffer()
6782 hrq->entry_count, in lpfc_post_rq_buffer()
7225 rqbp->entry_count = LPFC_NVMET_RQE_DEF_COUNT; in lpfc_sli4_hba_setup()
7470 idx = (idx + 1) % mcq->entry_count; in lpfc_sli4_mbox_completions_pending()
14199 uint32_t entry_size, uint32_t entry_count) in lpfc_sli4_queue_alloc() argument
14211 (sizeof(union sli4_qe) * entry_count), GFP_KERNEL); in lpfc_sli4_queue_alloc()
14214 queue->page_count = (ALIGN(entry_size * entry_count, in lpfc_sli4_queue_alloc()
14231 queue->entry_count = entry_count; in lpfc_sli4_queue_alloc()
14250 for (; total_qe_count < entry_count && in lpfc_sli4_queue_alloc()
14468 switch (eq->entry_count) { in lpfc_eq_create()
14472 eq->entry_count); in lpfc_eq_create()
14473 if (eq->entry_count < 256) in lpfc_eq_create()
14596 switch (cq->entry_count) { in lpfc_cq_create()
14602 cq->entry_count; in lpfc_cq_create()
14613 cq->entry_count, cq->entry_size, in lpfc_cq_create()
14615 if (cq->entry_count < 256) { in lpfc_cq_create()
14766 switch (cq->entry_count) { in lpfc_cq_create_set()
14773 cq->entry_count); in lpfc_cq_create_set()
14783 cq->entry_count); in lpfc_cq_create_set()
14784 if (cq->entry_count < 256) { in lpfc_cq_create_set()
14953 switch (mq->entry_count) { in lpfc_mq_create_fb_init()
15051 switch (mq->entry_count) { in lpfc_mq_create()
15055 mq->entry_count); in lpfc_mq_create()
15056 if (mq->entry_count < 16) { in lpfc_mq_create()
15216 wq->entry_count); in lpfc_wq_create()
15444 if (hrq->entry_count != drq->entry_count) in lpfc_rq_create()
15461 hrq->entry_count); in lpfc_rq_create()
15470 switch (hrq->entry_count) { in lpfc_rq_create()
15474 hrq->entry_count); in lpfc_rq_create()
15475 if (hrq->entry_count < 512) { in lpfc_rq_create()
15595 &rq_create->u.request.context, hrq->entry_count); in lpfc_rq_create()
15607 switch (drq->entry_count) { in lpfc_rq_create()
15611 drq->entry_count); in lpfc_rq_create()
15612 if (drq->entry_count < 512) { in lpfc_rq_create()
15773 if (hrq->entry_count != drq->entry_count) { in lpfc_mrq_create()
15797 hrq->entry_count); in lpfc_mrq_create()