Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/huawei/hinic/
H A Dhinic_hw_wq.c90 & ((wq)->num_q_pages - 1)); in WQE_PAGE_NUM()
381 wq->shadow_wqe = devm_kcalloc(&pdev->dev, wq->num_q_pages, in alloc_wqes_shadow()
386 wq->shadow_idx = devm_kcalloc(&pdev->dev, wq->num_q_pages, in alloc_wqes_shadow()
418 int num_q_pages) in free_wq_pages() argument
423 for (i = 0; i < num_q_pages; i++) { in free_wq_pages()
448 int i, err, num_q_pages; in alloc_wq_pages() local
450 num_q_pages = ALIGN(WQ_SIZE(wq), wq->wq_page_size) / wq->wq_page_size; in alloc_wq_pages()
451 if (num_q_pages > max_pages) { in alloc_wq_pages()
456 if (num_q_pages & (num_q_pages - 1)) { in alloc_wq_pages()
461 wq->num_q_pages = num_q_pages; in alloc_wq_pages()
[all …]
H A Dhinic_hw_wq.h40 int num_q_pages; member
H A Dhinic_hw_cmdq.c713 if (wq->num_q_pages != 1) { in cmdq_init_queue_ctxt()
H A Dhinic_hw_qp.c112 if (wq->num_q_pages == 1) in hinic_sq_prepare_ctxt()