Home
last modified time | relevance | path

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

/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_wq.c701 int num_wqebbs, u16 idx) in copy_wqe_to_shadow() argument
706 for (i = 0; i < num_wqebbs; i++, idx++) { in copy_wqe_to_shadow()
718 int num_wqebbs, u16 idx) in copy_wqe_from_shadow() argument
723 for (i = 0; i < num_wqebbs; i++, idx++) { in copy_wqe_from_shadow()
744 int curr_pg, end_pg, num_wqebbs; in hinic_get_wqe() local
749 num_wqebbs = ALIGN(wqe_size, wq->wqebb_size) >> wq->wqebb_size_shift; in hinic_get_wqe()
751 if (atomic_sub_return(num_wqebbs, &wq->delta) <= 0) { in hinic_get_wqe()
752 atomic_add(num_wqebbs, &wq->delta); in hinic_get_wqe()
756 end_prod_idx = atomic_add_return(num_wqebbs, &wq->prod_idx); in hinic_get_wqe()
759 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()
429 int wrapped, num_wqebbs; in cmdq_set_arm_bit() local
445 num_wqebbs = ALIGN(WQE_SCMD_SIZE, wq->wqebb_size) / wq->wqebb_size; in cmdq_set_arm_bit()
446 next_prod_idx = curr_prod_idx + num_wqebbs; in cmdq_set_arm_bit()
Dhinic_hw_qp.c883 unsigned int num_wqebbs; in hinic_rq_read_next_wqe() local
886 num_wqebbs = wqe_size / wq->wqebb_size; in hinic_rq_read_next_wqe()
888 *cons_idx = RQ_MASKED_IDX(rq, *cons_idx + num_wqebbs); in hinic_rq_read_next_wqe()
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dktls_tx.c139 u16 pi, u8 num_wqebbs, u32 num_bytes, in tx_fill_wi() argument
145 .num_wqebbs = num_wqebbs, in tx_fill_wi()
167 u16 pi, num_wqebbs; in post_static_params() local
169 num_wqebbs = MLX5E_TLS_SET_STATIC_PARAMS_WQEBBS; in post_static_params()
170 pi = mlx5e_txqsq_get_next_pi(sq, num_wqebbs); in post_static_params()
175 tx_fill_wi(sq, pi, num_wqebbs, 0, NULL); in post_static_params()
176 sq->pc += num_wqebbs; in post_static_params()
185 u16 pi, num_wqebbs; in post_progress_params() local
187 num_wqebbs = MLX5E_TLS_SET_PROGRESS_PARAMS_WQEBBS; in post_progress_params()
188 pi = mlx5e_txqsq_get_next_pi(sq, num_wqebbs); in post_progress_params()
[all …]
Dktls_rx.c140 u16 pi, num_wqebbs, room; in post_static_params() local
142 num_wqebbs = MLX5E_TLS_SET_STATIC_PARAMS_WQEBBS; in post_static_params()
143 room = mlx5e_stop_room_for_wqe(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, room; in post_progress_params() local
173 num_wqebbs = MLX5E_TLS_SET_PROGRESS_PARAMS_WQEBBS; in post_progress_params()
174 room = mlx5e_stop_room_for_wqe(num_wqebbs); in post_progress_params()
178 pi = mlx5e_icosq_get_next_pi(sq, num_wqebbs); in post_progress_params()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/
Den_tx.c274 u8 num_wqebbs; member
360 .num_wqebbs = DIV_ROUND_UP(ds_cnt, MLX5_SEND_WQEBB_NUM_DS), in mlx5e_sq_calc_wqe_attr()
392 .num_wqebbs = wqe_attr->num_wqebbs, in mlx5e_txwqe_complete()
401 sq->pc += wi->num_wqebbs; in mlx5e_txwqe_complete()
544 .num_wqebbs = DIV_ROUND_UP(ds_count, MLX5_SEND_WQEBB_NUM_DS), in mlx5e_tx_mpwqe_session_complete()
549 sq->pc += wi->num_wqebbs; in mlx5e_tx_mpwqe_session_complete()
662 pi = mlx5e_txqsq_get_next_pi(sq, wqe_attr.num_wqebbs); in mlx5e_xmit()
685 pi = mlx5e_txqsq_get_next_pi(sq, wqe_attr.num_wqebbs); in mlx5e_sq_xmit_simple()
779 sqcc += wi->num_wqebbs; in mlx5e_poll_tx_cq()
808 mlx5_wq_cyc_wqe_dump(&sq->wq, ci, wi->num_wqebbs); in mlx5e_poll_tx_cq()
[all …]
Den_txrx.c83 .num_wqebbs = 1, in mlx5e_trigger_irq()
Den_rx.c545 .num_wqebbs = MLX5E_UMR_WQEBBS, in mlx5e_alloc_rx_mpwqe()
620 sqcc += wi->num_wqebbs; in mlx5e_free_icosq_descs()
671 sqcc += wi->num_wqebbs; in mlx5e_poll_ico_cq()
Den_main.c1404 .num_wqebbs = 1, in mlx5e_deactivate_txqsq()
1524 .num_wqebbs = 1, in mlx5e_open_xdpsq()
/drivers/net/ethernet/mellanox/mlx5/core/en/
Dxdp.c182 .num_wqebbs = 1, in mlx5e_xdpsq_get_next_pi()
230 wi->num_wqebbs = DIV_ROUND_UP(ds_count, MLX5_SEND_WQEBB_NUM_DS); in mlx5e_xdp_mpwqe_complete()
233 sq->pc += wi->num_wqebbs; in mlx5e_xdp_mpwqe_complete()
435 sqcc += wi->num_wqebbs; in mlx5e_poll_xdpsq_cq()
446 mlx5_wq_cyc_wqe_dump(&sq->wq, ci, wi->num_wqebbs); in mlx5e_poll_xdpsq_cq()
475 sq->cc += wi->num_wqebbs; in mlx5e_free_xdpsq_descs()
Dtxrx.h124 u8 num_wqebbs; member
148 .num_wqebbs = 1, in mlx5e_txqsq_get_next_pi()
162 u8 num_wqebbs; member
199 .num_wqebbs = 1, in mlx5e_icosq_get_next_pi()
Dxdp.h135 u8 num_wqebbs; member
/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/
Dtx.c59 wi->num_wqebbs = 1; in mlx5e_xsk_tx_post_err()