Searched refs:wqebb_size (Results 1 – 6 of 6) sorted by relevance
/openbmc/linux/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_hw_wq.c | 513 if (!is_power_of_2(wqebb_size)) { in hinic_wq_allocate() 528 wqebb_size_shift = ilog2(wqebb_size); in hinic_wq_allocate() 545 wq->wqebb_size = wqebb_size; in hinic_wq_allocate() 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() 648 wq[i].wqebb_size = wqebb_size; in hinic_wqs_cmdq_alloc() 712 shadow_addr += wq->wqebb_size; in copy_wqe_to_shadow() 728 shadow_addr += wq->wqebb_size; in copy_wqe_from_shadow() 791 int num_wqebbs = ALIGN(wqe_size, wq->wqebb_size) / wq->wqebb_size; in hinic_return_wqe() 805 int num_wqebbs = ALIGN(wqe_size, wq->wqebb_size) in hinic_put_wqe() [all …]
|
H A 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,
|
H A 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)
|
H A 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()
|
H A 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()
|
H A 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()
|