Home
last modified time | relevance | path

Searched refs:num_q_pages (Results 1 – 2 of 2) sorted by relevance

/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_wq.c90 & ((wq)->num_q_pages - 1)); in WQE_PAGE_NUM()
383 size = wq->num_q_pages * wq->max_wqe_size; in alloc_wqes_shadow()
388 size = wq->num_q_pages * sizeof(wq->prod_idx); in alloc_wqes_shadow()
420 int num_q_pages) in free_wq_pages() argument
425 for (i = 0; i < num_q_pages; i++) { in free_wq_pages()
450 int i, err, num_q_pages; in alloc_wq_pages() local
452 num_q_pages = ALIGN(WQ_SIZE(wq), wq->wq_page_size) / wq->wq_page_size; in alloc_wq_pages()
453 if (num_q_pages > max_pages) { in alloc_wq_pages()
458 if (num_q_pages & (num_q_pages - 1)) { in alloc_wq_pages()
463 wq->num_q_pages = num_q_pages; in alloc_wq_pages()
[all …]
Dhinic_hw_wq.h40 int num_q_pages; member