Searched refs:wqebb_size (Results 1 – 6 of 6) sorted by relevance
/linux-6.6.21/drivers/net/ethernet/huawei/hinic/ |
D | hinic_hw_wq.c | 34 #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 …]
|
D | hinic_hw_wq.h | 28 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,
|
D | hinic_hw_qp.h | 55 ALIGN(HINIC_SQ_WQE_SIZE(1), (wq)->wqebb_size) 58 (HINIC_MIN_TX_WQE_SIZE((sq)->wq) / (sq)->wq->wqebb_size)
|
D | hinic_hw_qp.c | 641 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()
|
D | hinic_hw_cmdq.c | 361 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()
|
D | hinic_tx.c | 720 (((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()
|