Lines Matching refs:entry_count
109 idx = ((q->host_index + 1) % q->entry_count); in lpfc_sli4_wq_put()
167 q->hba_index = ((q->hba_index + 1) % q->entry_count); in lpfc_sli4_wq_release()
197 if (((q->host_index + 1) % q->entry_count) == q->hba_index) in lpfc_sli4_mq_put()
204 q->host_index = ((q->host_index + 1) % q->entry_count); in lpfc_sli4_mq_put()
233 q->hba_index = ((q->hba_index + 1) % q->entry_count); in lpfc_sli4_mq_release()
261 idx = ((q->hba_index + 1) % q->entry_count); in lpfc_sli4_eq_get()
329 q->host_index = ((q->host_index + 1) % q->entry_count); in lpfc_sli4_eq_release()
375 idx = ((q->hba_index + 1) % q->entry_count); in lpfc_sli4_cq_get()
425 q->host_index = ((q->host_index + 1) % q->entry_count); in lpfc_sli4_cq_release()
476 if (((hq->host_index + 1) % hq->entry_count) == hq->hba_index) in lpfc_sli4_rq_put()
482 hq->host_index = ((hq->host_index + 1) % hq->entry_count); in lpfc_sli4_rq_put()
483 dq->host_index = ((dq->host_index + 1) % dq->entry_count); in lpfc_sli4_rq_put()
525 hq->hba_index = ((hq->hba_index + 1) % hq->entry_count); in lpfc_sli4_rq_release()
526 dq->hba_index = ((dq->hba_index + 1) % dq->entry_count); in lpfc_sli4_rq_release()
1651 ++hbqp->next_hbqPutIdx >= hbqp->entry_count) in lpfc_sli_next_hbq_slot()
1660 if (unlikely(hbqp->local_hbqGetIdx >= hbqp->entry_count)) { in lpfc_sli_next_hbq_slot()
1666 hbqp->entry_count); in lpfc_sli_next_hbq_slot()
1827 .entry_count = 256,
1839 .entry_count = 200,
1875 lpfc_hbq_defs[hbqno]->entry_count) in lpfc_sli_hbqbuf_fill_hbqs()
1876 count = lpfc_hbq_defs[hbqno]->entry_count - in lpfc_sli_hbqbuf_fill_hbqs()
1947 lpfc_hbq_defs[qno]->entry_count); in lpfc_sli_hbqbuf_init_hbqs()
4369 count += lpfc_hbq_defs[i]->entry_count; in lpfc_sli_hbq_entry_count()
4422 phba->hbqs[hbqno].entry_count = in lpfc_sli_hbq_setup()
4423 lpfc_hbq_defs[hbqno]->entry_count; in lpfc_sli_hbq_setup()
4426 hbq_entry_index += phba->hbqs[hbqno].entry_count; in lpfc_sli_hbq_setup()
4467 phba->hbqs[0].entry_count = lpfc_hbq_defs[0]->entry_count; in lpfc_sli4_rb_setup()
6722 idx = (idx + 1) % mcq->entry_count; in lpfc_sli4_mbox_completions_pending()
12780 uint32_t entry_count) in lpfc_sli4_queue_alloc() argument
12792 (sizeof(union sli4_qe) * entry_count), GFP_KERNEL); in lpfc_sli4_queue_alloc()
12795 queue->page_count = (ALIGN(entry_size * entry_count, in lpfc_sli4_queue_alloc()
12815 for (; total_qe_count < entry_count && in lpfc_sli4_queue_alloc()
12822 queue->entry_count = entry_count; in lpfc_sli4_queue_alloc()
12829 queue->entry_repost = (entry_count >> 3); in lpfc_sli4_queue_alloc()
13010 switch (eq->entry_count) { in lpfc_eq_create()
13014 eq->entry_count); in lpfc_eq_create()
13015 if (eq->entry_count < 256) in lpfc_eq_create()
13136 switch (cq->entry_count) { in lpfc_cq_create()
13140 cq->entry_count); in lpfc_cq_create()
13141 if (cq->entry_count < 256) { in lpfc_cq_create()
13232 switch (mq->entry_count) { in lpfc_mq_create_fb_init()
13330 switch (mq->entry_count) { in lpfc_mq_create()
13334 mq->entry_count); in lpfc_mq_create()
13335 if (mq->entry_count < 16) { in lpfc_mq_create()
13496 &wq_create->u.request_1, wq->entry_count); in lpfc_wq_create()
13509 wq->entry_count); in lpfc_wq_create()
13637 cnt = lpfc_hbq_defs[qno]->entry_count; in lpfc_rq_adjust_repost()
13691 if (hrq->entry_count != drq->entry_count) in lpfc_rq_create()
13708 hrq->entry_count); in lpfc_rq_create()
13717 switch (hrq->entry_count) { in lpfc_rq_create()
13721 hrq->entry_count); in lpfc_rq_create()
13722 if (hrq->entry_count < 512) { in lpfc_rq_create()
13841 &rq_create->u.request.context, hrq->entry_count); in lpfc_rq_create()
13848 switch (drq->entry_count) { in lpfc_rq_create()
13852 drq->entry_count); in lpfc_rq_create()
13853 if (drq->entry_count < 512) { in lpfc_rq_create()