Home
last modified time | relevance | path

Searched refs:wqebb_size (Results 1 – 6 of 6) sorted by relevance

/linux-6.6.21/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_wq.c34 #define WQ_SIZE(wq) ((wq)->q_depth * (wq)->wqebb_size)
504 u16 wqebb_size, u32 wq_page_size, u16 q_depth, in hinic_wq_allocate() argument
513 if (!is_power_of_2(wqebb_size)) { in hinic_wq_allocate()
528 wqebb_size_shift = ilog2(wqebb_size); in hinic_wq_allocate()
529 num_wqebbs_per_page = ALIGN(wq_page_size, wqebb_size) in hinic_wq_allocate()
545 wq->wqebb_size = wqebb_size; in hinic_wq_allocate()
601 int cmdq_blocks, u16 wqebb_size, u32 wq_page_size, in hinic_wqs_cmdq_alloc() argument
610 if (!is_power_of_2(wqebb_size)) { in hinic_wqs_cmdq_alloc()
625 wqebb_size_shift = ilog2(wqebb_size); in hinic_wqs_cmdq_alloc()
626 num_wqebbs_per_page = ALIGN(wq_page_size, wqebb_size) in hinic_wqs_cmdq_alloc()
[all …]
Dhinic_hw_wq.h28 u16 wqebb_size; member
79 int cmdq_blocks, u16 wqebb_size, u32 wq_page_size,
91 u16 wqebb_size, u32 wq_page_size, u16 q_depth,
Dhinic_hw_qp.h55 ALIGN(HINIC_SQ_WQE_SIZE(1), (wq)->wqebb_size)
58 (HINIC_MIN_TX_WQE_SIZE((sq)->wq) / (sq)->wq->wqebb_size)
Dhinic_hw_qp.c641 prod_idx += ALIGN(wqe_size, wq->wqebb_size) / wq->wqebb_size; in hinic_sq_write_db()
735 *wqe_size = ALIGN(*wqe_size, sq->wq->wqebb_size); in hinic_sq_read_wqebb()
881 wqe_size = ALIGN(wqe_size, wq->wqebb_size); in hinic_rq_read_next_wqe()
882 num_wqebbs = wqe_size / wq->wqebb_size; in hinic_rq_read_next_wqe()
Dhinic_hw_cmdq.c361 num_wqebbs = ALIGN(WQE_LCMD_SIZE, wq->wqebb_size) / wq->wqebb_size; in cmdq_sync_cmd_direct_resp()
440 num_wqebbs = ALIGN(WQE_SCMD_SIZE, wq->wqebb_size) / wq->wqebb_size; in cmdq_set_arm_bit()
Dhinic_tx.c720 (((hw_ci - sw_ci) & wq->mask) * wq->wqebb_size < wqe_size)) in free_tx_poll()
726 if (wqe_size > wq->wqebb_size) { in free_tx_poll()