Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/huawei/hinic/
H A Dhinic_hw_wq.c83 return (((idx) & ((wq)->num_wqebbs_per_page - 1)) in WQE_PAGE_OFF()
509 u16 num_wqebbs_per_page; in hinic_wq_allocate() local
529 num_wqebbs_per_page = ALIGN(wq_page_size, wqebb_size) in hinic_wq_allocate()
532 if (!is_power_of_2(num_wqebbs_per_page)) { in hinic_wq_allocate()
549 wq->num_wqebbs_per_page = num_wqebbs_per_page; in hinic_wq_allocate()
550 wq->wqebbs_per_page_shift = ilog2(num_wqebbs_per_page); in hinic_wq_allocate()
606 u16 num_wqebbs_per_page; in hinic_wqs_cmdq_alloc() local
626 num_wqebbs_per_page = ALIGN(wq_page_size, wqebb_size) in hinic_wqs_cmdq_alloc()
629 if (!is_power_of_2(num_wqebbs_per_page)) { in hinic_wqs_cmdq_alloc()
641 num_wqebbs_per_page_shift = ilog2(num_wqebbs_per_page); in hinic_wqs_cmdq_alloc()
[all …]
H A Dhinic_hw_wq.h32 u16 num_wqebbs_per_page; member