Home
last modified time | relevance | path

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

/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_wq.c702 int num_wqebbs, u16 idx) in copy_wqe_to_shadow() argument
707 for (i = 0; i < num_wqebbs; i++, idx++) { in copy_wqe_to_shadow()
719 int num_wqebbs, u16 idx) in copy_wqe_from_shadow() argument
724 for (i = 0; i < num_wqebbs; i++, idx++) { in copy_wqe_from_shadow()
745 int curr_pg, end_pg, num_wqebbs; in hinic_get_wqe() local
750 num_wqebbs = ALIGN(wqe_size, wq->wqebb_size) >> wq->wqebb_size_shift; in hinic_get_wqe()
752 if (atomic_sub_return(num_wqebbs, &wq->delta) <= 0) { in hinic_get_wqe()
753 atomic_add(num_wqebbs, &wq->delta); in hinic_get_wqe()
757 end_prod_idx = atomic_add_return(num_wqebbs, &wq->prod_idx); in hinic_get_wqe()
760 curr_prod_idx = end_prod_idx - num_wqebbs; in hinic_get_wqe()
[all …]
Dhinic_hw_cmdq.c347 int errcode, wrapped, num_wqebbs; in cmdq_sync_cmd_direct_resp() local
366 num_wqebbs = ALIGN(WQE_LCMD_SIZE, wq->wqebb_size) / wq->wqebb_size; in cmdq_sync_cmd_direct_resp()
367 next_prod_idx = curr_prod_idx + num_wqebbs; in cmdq_sync_cmd_direct_resp()
427 int wrapped, num_wqebbs; in cmdq_set_arm_bit() local
443 num_wqebbs = ALIGN(WQE_SCMD_SIZE, wq->wqebb_size) / wq->wqebb_size; in cmdq_set_arm_bit()
444 next_prod_idx = curr_prod_idx + num_wqebbs; in cmdq_set_arm_bit()
Dhinic_hw_qp.c877 unsigned int num_wqebbs; in hinic_rq_read_next_wqe() local
880 num_wqebbs = wqe_size / wq->wqebb_size; in hinic_rq_read_next_wqe()
882 *cons_idx = RQ_MASKED_IDX(rq, *cons_idx + num_wqebbs); in hinic_rq_read_next_wqe()
/drivers/net/ethernet/mellanox/mlx5/core/
Den_tx.c239 u8 opcode, u16 ds_cnt, u8 num_wqebbs, u32 num_bytes, u8 num_dma, in mlx5e_txwqe_complete() argument
248 wi->num_wqebbs = num_wqebbs; in mlx5e_txwqe_complete()
257 sq->pc += wi->num_wqebbs; in mlx5e_txwqe_complete()
281 u8 num_wqebbs, opcode; in mlx5e_sq_xmit() local
318 num_wqebbs = DIV_ROUND_UP(ds_cnt, MLX5_SEND_WQEBB_NUM_DS); in mlx5e_sq_xmit()
320 if (unlikely(contig_wqebbs_room < num_wqebbs)) { in mlx5e_sq_xmit()
373 mlx5e_txwqe_complete(sq, skb, opcode, ds_cnt, num_wqebbs, num_bytes, in mlx5e_sq_xmit()
486 sqcc += wi->num_wqebbs; in mlx5e_poll_tx_cq()
509 sqcc += wi->num_wqebbs; in mlx5e_poll_tx_cq()
556 sqcc += wi->num_wqebbs; in mlx5e_free_txqsq_descs()
[all …]
Den.h345 u8 num_wqebbs; member
486 u8 num_wqebbs; member
Den_main.c1363 wi->num_wqebbs = 1; in mlx5e_deactivate_txqsq()
1487 wi->num_wqebbs = 1; in mlx5e_open_xdpsq()
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dktls_tx.c106 u16 pi, u8 num_wqebbs, u32 num_bytes, in tx_fill_wi() argument
112 wi->num_wqebbs = num_wqebbs; in tx_fill_wi()
350 u8 num_wqebbs; in mlx5e_ktls_tx_handle_ooo() local
379 num_wqebbs = mlx5e_ktls_dumps_num_wqebbs(sq, info.nr_frags, info.sync_len); in mlx5e_ktls_tx_handle_ooo()
383 if (unlikely(contig_wqebbs_room < num_wqebbs)) in mlx5e_ktls_tx_handle_ooo()
/drivers/net/ethernet/mellanox/mlx5/core/en/
Dxdp.c218 wi->num_wqebbs = DIV_ROUND_UP(ds_count, MLX5_SEND_WQEBB_NUM_DS); in mlx5e_xdp_mpwqe_complete()
221 sq->pc += wi->num_wqebbs; in mlx5e_xdp_mpwqe_complete()
431 sqcc += wi->num_wqebbs; in mlx5e_poll_xdpsq_cq()
462 sq->cc += wi->num_wqebbs; in mlx5e_free_xdpsq_descs()
Dxdp.h149 wi->num_wqebbs = 1; in mlx5e_fill_xdpsq_frag_edge()
Dtxrx.h95 wi->num_wqebbs = 1; in mlx5e_fill_sq_frag_edge()
/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/
Dtx.c56 wi->num_wqebbs = 1; in mlx5e_xsk_tx_post_err()