Home
last modified time | relevance | path

Searched refs:num_wqebbs (Results 1 – 5 of 5) sorted by relevance

/Linux-v4.19/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_wq.c696 int num_wqebbs, u16 idx) in copy_wqe_to_shadow() argument
701 for (i = 0; i < num_wqebbs; i++, idx++) { in copy_wqe_to_shadow()
713 int num_wqebbs, u16 idx) in copy_wqe_from_shadow() argument
718 for (i = 0; i < num_wqebbs; i++, idx++) { in copy_wqe_from_shadow()
739 int curr_pg, end_pg, num_wqebbs; in hinic_get_wqe() local
744 num_wqebbs = ALIGN(wqe_size, wq->wqebb_size) / wq->wqebb_size; in hinic_get_wqe()
746 if (atomic_sub_return(num_wqebbs, &wq->delta) <= 0) { in hinic_get_wqe()
747 atomic_add(num_wqebbs, &wq->delta); in hinic_get_wqe()
751 end_prod_idx = atomic_add_return(num_wqebbs, &wq->prod_idx); in hinic_get_wqe()
754 curr_prod_idx = end_prod_idx - num_wqebbs; in hinic_get_wqe()
[all …]
Dhinic_hw_cmdq.c356 int errcode, wrapped, num_wqebbs; in cmdq_sync_cmd_direct_resp() local
375 num_wqebbs = ALIGN(WQE_LCMD_SIZE, wq->wqebb_size) / wq->wqebb_size; in cmdq_sync_cmd_direct_resp()
376 next_prod_idx = curr_prod_idx + num_wqebbs; in cmdq_sync_cmd_direct_resp()
436 int wrapped, num_wqebbs; in cmdq_set_arm_bit() local
452 num_wqebbs = ALIGN(WQE_SCMD_SIZE, wq->wqebb_size) / wq->wqebb_size; in cmdq_set_arm_bit()
453 next_prod_idx = curr_prod_idx + num_wqebbs; in cmdq_set_arm_bit()
Dhinic_hw_qp.c815 unsigned int num_wqebbs; in hinic_rq_read_next_wqe() local
818 num_wqebbs = wqe_size / wq->wqebb_size; in hinic_rq_read_next_wqe()
820 *cons_idx = RQ_MASKED_IDX(rq, *cons_idx + num_wqebbs); in hinic_rq_read_next_wqe()
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/
Den_tx.c302 wi->num_wqebbs = 1; in mlx5e_fill_sq_frag_edge()
310 u8 opcode, u16 ds_cnt, u8 num_wqebbs, u32 num_bytes, u8 num_dma, in mlx5e_txwqe_complete() argument
317 wi->num_wqebbs = num_wqebbs; in mlx5e_txwqe_complete()
328 sq->pc += wi->num_wqebbs; in mlx5e_txwqe_complete()
352 u8 num_wqebbs, opcode; in mlx5e_sq_xmit() local
387 num_wqebbs = DIV_ROUND_UP(ds_cnt, MLX5_SEND_WQEBB_NUM_DS); in mlx5e_sq_xmit()
389 if (unlikely(contig_wqebbs_room < num_wqebbs)) { in mlx5e_sq_xmit()
426 mlx5e_txwqe_complete(sq, skb, opcode, ds_cnt, num_wqebbs, num_bytes, in mlx5e_sq_xmit()
557 sqcc += wi->num_wqebbs; in mlx5e_poll_tx_cq()
611 sq->cc += wi->num_wqebbs; in mlx5e_free_txqsq_descs()
[all …]
Den.h328 u8 num_wqebbs; member