Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_wq.c700 int num_wqebbs, u16 idx) in copy_wqe_to_shadow() argument
705 for (i = 0; i < num_wqebbs; i++, idx++) { in copy_wqe_to_shadow()
717 int num_wqebbs, u16 idx) in copy_wqe_from_shadow() argument
722 for (i = 0; i < num_wqebbs; i++, idx++) { in copy_wqe_from_shadow()
743 int curr_pg, end_pg, num_wqebbs; in hinic_get_wqe() local
748 num_wqebbs = ALIGN(wqe_size, wq->wqebb_size) >> wq->wqebb_size_shift; in hinic_get_wqe()
750 if (atomic_sub_return(num_wqebbs, &wq->delta) <= 0) { in hinic_get_wqe()
751 atomic_add(num_wqebbs, &wq->delta); in hinic_get_wqe()
755 end_prod_idx = atomic_add_return(num_wqebbs, &wq->prod_idx); in hinic_get_wqe()
758 curr_prod_idx = end_prod_idx - num_wqebbs; in hinic_get_wqe()
[all …]
Dhinic_hw_cmdq.c342 int errcode, wrapped, num_wqebbs; in cmdq_sync_cmd_direct_resp() local
361 num_wqebbs = ALIGN(WQE_LCMD_SIZE, wq->wqebb_size) / wq->wqebb_size; in cmdq_sync_cmd_direct_resp()
362 next_prod_idx = curr_prod_idx + num_wqebbs; in cmdq_sync_cmd_direct_resp()
424 int wrapped, num_wqebbs; in cmdq_set_arm_bit() local
440 num_wqebbs = ALIGN(WQE_SCMD_SIZE, wq->wqebb_size) / wq->wqebb_size; in cmdq_set_arm_bit()
441 next_prod_idx = curr_prod_idx + num_wqebbs; in cmdq_set_arm_bit()
Dhinic_hw_qp.c879 unsigned int num_wqebbs; in hinic_rq_read_next_wqe() local
882 num_wqebbs = wqe_size / wq->wqebb_size; in hinic_rq_read_next_wqe()
884 *cons_idx = RQ_MASKED_IDX(rq, *cons_idx + num_wqebbs); in hinic_rq_read_next_wqe()
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en/
Dxdp.c215 .num_wqebbs = 1, in mlx5e_xdpsq_get_next_pi()
263 wi->num_wqebbs = DIV_ROUND_UP(ds_count, MLX5_SEND_WQEBB_NUM_DS); in mlx5e_xdp_mpwqe_complete()
266 sq->pc += wi->num_wqebbs; in mlx5e_xdp_mpwqe_complete()
373 u8 num_wqebbs = 1; in mlx5e_xmit_xdp_frame() local
395 num_wqebbs = DIV_ROUND_UP(ds_cnt, MLX5_SEND_WQEBB_NUM_DS); in mlx5e_xmit_xdp_frame()
399 stop_room = MLX5E_STOP_ROOM(num_wqebbs); in mlx5e_xmit_xdp_frame()
407 pi = mlx5e_xdpsq_get_next_pi(sq, num_wqebbs); in mlx5e_xmit_xdp_frame()
460 .num_wqebbs = num_wqebbs, in mlx5e_xmit_xdp_frame()
464 sq->pc += num_wqebbs; in mlx5e_xmit_xdp_frame()
550 sqcc += wi->num_wqebbs; in mlx5e_poll_xdpsq_cq()
[all …]
Dtxrx.h144 u8 num_wqebbs; member
168 .num_wqebbs = 1, in mlx5e_txqsq_get_next_pi()
191 u8 num_wqebbs; member
229 .num_wqebbs = 1, in mlx5e_icosq_get_next_pi()
Dxdp.h135 u8 num_wqebbs; member
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dktls_rx.c141 u16 pi, num_wqebbs; in post_static_params() local
143 num_wqebbs = MLX5E_TLS_SET_STATIC_PARAMS_WQEBBS; in post_static_params()
144 if (unlikely(!mlx5e_icosq_can_post_wqe(sq, num_wqebbs))) in post_static_params()
147 pi = mlx5e_icosq_get_next_pi(sq, num_wqebbs); in post_static_params()
155 .num_wqebbs = num_wqebbs, in post_static_params()
159 sq->pc += num_wqebbs; in post_static_params()
171 u16 pi, num_wqebbs; in post_progress_params() local
173 num_wqebbs = MLX5E_TLS_SET_PROGRESS_PARAMS_WQEBBS; in post_progress_params()
174 if (unlikely(!mlx5e_icosq_can_post_wqe(sq, num_wqebbs))) in post_progress_params()
177 pi = mlx5e_icosq_get_next_pi(sq, num_wqebbs); in post_progress_params()
[all …]
Dktls_tx.c532 u16 pi, u8 num_wqebbs, u32 num_bytes, in tx_fill_wi() argument
538 .num_wqebbs = num_wqebbs, in tx_fill_wi()
560 u16 pi, num_wqebbs; in post_static_params() local
562 num_wqebbs = MLX5E_TLS_SET_STATIC_PARAMS_WQEBBS; in post_static_params()
563 pi = mlx5e_txqsq_get_next_pi(sq, num_wqebbs); in post_static_params()
568 tx_fill_wi(sq, pi, num_wqebbs, 0, NULL); in post_static_params()
569 sq->pc += num_wqebbs; in post_static_params()
578 u16 pi, num_wqebbs; in post_progress_params() local
580 num_wqebbs = MLX5E_TLS_SET_PROGRESS_PARAMS_WQEBBS; in post_progress_params()
581 pi = mlx5e_txqsq_get_next_pi(sq, num_wqebbs); in post_progress_params()
[all …]
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/
Den_tx.c239 u8 num_wqebbs; member
332 .num_wqebbs = DIV_ROUND_UP(ds_cnt, MLX5_SEND_WQEBB_NUM_DS), in mlx5e_sq_calc_wqe_attr()
363 .num_wqebbs = 1, in mlx5e_tx_flush()
384 .num_wqebbs = wqe_attr->num_wqebbs, in mlx5e_txwqe_complete()
393 sq->pc += wi->num_wqebbs; in mlx5e_txwqe_complete()
574 .num_wqebbs = DIV_ROUND_UP(ds_count, MLX5_SEND_WQEBB_NUM_DS), in mlx5e_tx_mpwqe_session_complete()
579 sq->pc += wi->num_wqebbs; in mlx5e_tx_mpwqe_session_complete()
711 pi = mlx5e_txqsq_get_next_pi(sq, wqe_attr.num_wqebbs); in mlx5e_xmit()
732 pi = mlx5e_txqsq_get_next_pi(sq, wqe_attr.num_wqebbs); in mlx5e_sq_xmit_simple()
830 sqcc += wi->num_wqebbs; in mlx5e_poll_tx_cq()
[all …]
Den_txrx.c81 .num_wqebbs = 1, in mlx5e_trigger_irq()
Den_rx.c582 .num_wqebbs = wqe_bbs, in mlx5e_build_shampo_hd_umr()
691 .num_wqebbs = rq->mpwqe.umr_wqebbs, in mlx5e_alloc_rx_mpwqe()
820 sqcc += wi->num_wqebbs; in mlx5e_free_icosq_descs()
893 sqcc += wi->num_wqebbs; in mlx5e_poll_ico_cq()
901 mlx5_wq_cyc_wqe_dump(&sq->wq, ci, wi->num_wqebbs); in mlx5e_poll_ico_cq()
Den_main.c1701 .num_wqebbs = 1, in mlx5e_deactivate_txqsq()
1839 .num_wqebbs = 1, in mlx5e_open_xdpsq()
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/
Dtx.c53 wi->num_wqebbs = 1; in mlx5e_xsk_tx_post_err()
Drx.c123 .num_wqebbs = rq->mpwqe.umr_wqebbs, in mlx5e_xsk_alloc_rx_mpwqe()