/linux/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_hw_wq.c | 700 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 …]
|
H A D | hinic_hw_cmdq.c | 342 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()
|
H A D | hinic_hw_qp.c | 879 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/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | ktls_rx.c | 141 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() 156 .num_wqebbs = num_wqebbs, in post_static_params() 160 sq->pc += num_wqebbs; in post_static_params() 172 u16 pi, num_wqebbs; in post_progress_params() local 174 num_wqebbs = MLX5E_TLS_SET_PROGRESS_PARAMS_WQEBBS; in post_progress_params() 175 if (unlikely(!mlx5e_icosq_can_post_wqe(sq, num_wqebbs))) in post_progress_params() 178 pi = mlx5e_icosq_get_next_pi(sq, num_wqebbs); in post_progress_params() [all …]
|
H A D | ktls_tx.c | 526 u16 pi, u8 num_wqebbs, u32 num_bytes, in tx_fill_wi() argument 532 .num_wqebbs = num_wqebbs, in tx_fill_wi() 554 u16 pi, num_wqebbs; in post_static_params() local 556 num_wqebbs = MLX5E_TLS_SET_STATIC_PARAMS_WQEBBS; in post_static_params() 557 pi = mlx5e_txqsq_get_next_pi(sq, num_wqebbs); in post_static_params() 563 tx_fill_wi(sq, pi, num_wqebbs, 0, NULL); in post_static_params() 564 sq->pc += num_wqebbs; in post_static_params() 573 u16 pi, num_wqebbs; in post_progress_params() local 575 num_wqebbs = MLX5E_TLS_SET_PROGRESS_PARAMS_WQEBBS; in post_progress_params() 576 pi = mlx5e_txqsq_get_next_pi(sq, num_wqebbs); in post_progress_params() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | xdp.c | 365 .num_wqebbs = 1, in mlx5e_xdpsq_get_next_pi() 413 wi->num_wqebbs = DIV_ROUND_UP(ds_count, MLX5_SEND_WQEBB_NUM_DS); in mlx5e_xdp_mpwqe_complete() 416 sq->pc += wi->num_wqebbs; in mlx5e_xdp_mpwqe_complete() 544 u8 num_wqebbs = 1; in mlx5e_xmit_xdp_frame() local 575 num_wqebbs = DIV_ROUND_UP(ds_cnt, MLX5_SEND_WQEBB_NUM_DS); in mlx5e_xmit_xdp_frame() 579 stop_room = MLX5E_STOP_ROOM(num_wqebbs); in mlx5e_xmit_xdp_frame() 587 pi = mlx5e_xdpsq_get_next_pi(sq, num_wqebbs); in mlx5e_xmit_xdp_frame() 640 .num_wqebbs = num_wqebbs, in mlx5e_xmit_xdp_frame() 644 sq->pc += num_wqebbs; in mlx5e_xmit_xdp_frame() 788 sqcc += wi->num_wqebbs; in mlx5e_poll_xdpsq_cq() [all …]
|
H A D | txrx.h | 181 u8 num_wqebbs; member 205 .num_wqebbs = 1, in mlx5e_txqsq_get_next_pi() 230 u8 num_wqebbs; member 268 .num_wqebbs = 1, in mlx5e_icosq_get_next_pi()
|
H A D | xdp.h | 195 u8 num_wqebbs; member
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_tx.c | 243 u8 num_wqebbs; member 336 .num_wqebbs = DIV_ROUND_UP(ds_cnt, MLX5_SEND_WQEBB_NUM_DS), in mlx5e_sq_calc_wqe_attr() 367 .num_wqebbs = 1, in mlx5e_tx_flush() 388 .num_wqebbs = wqe_attr->num_wqebbs, in mlx5e_txwqe_complete() 397 sq->pc += wi->num_wqebbs; in mlx5e_txwqe_complete() 587 .num_wqebbs = DIV_ROUND_UP(ds_count, MLX5_SEND_WQEBB_NUM_DS), in mlx5e_tx_mpwqe_session_complete() 592 sq->pc += wi->num_wqebbs; in mlx5e_tx_mpwqe_session_complete() 723 pi = mlx5e_txqsq_get_next_pi(sq, wqe_attr.num_wqebbs); in mlx5e_xmit() 840 sqcc += wi->num_wqebbs; in mlx5e_poll_tx_cq() 869 mlx5_wq_cyc_wqe_dump(&sq->wq, ci, wi->num_wqebbs); in mlx5e_poll_tx_cq() [all …]
|
H A D | en_txrx.c | 81 .num_wqebbs = 1, in mlx5e_trigger_irq()
|
H A D | en_rx.c | 703 .num_wqebbs = wqe_bbs, in mlx5e_build_shampo_hd_umr() 826 .num_wqebbs = rq->mpwqe.umr_wqebbs, in mlx5e_alloc_rx_mpwqe() 951 sqcc += wi->num_wqebbs; in mlx5e_free_icosq_descs() 1029 sqcc += wi->num_wqebbs; in mlx5e_poll_ico_cq() 1037 mlx5_wq_cyc_wqe_dump(&sq->wq, ci, wi->num_wqebbs); in mlx5e_poll_ico_cq()
|
H A D | en_main.c | 1881 .num_wqebbs = 1, in mlx5e_deactivate_txqsq() 2059 .num_wqebbs = 1, in mlx5e_open_xdpsq()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/ |
H A D | mlx5hws_send.c | 72 ctrl.num_wqebbs = 0; in mlx5hws_send_engine_post_start() 83 idx = (send_sq->cur_post + ctrl->num_wqebbs) & send_sq->buf_mask; in mlx5hws_send_engine_post_req_wqe() 92 if (!ctrl->num_wqebbs) { in mlx5hws_send_engine_post_req_wqe() 97 ctrl->num_wqebbs++; in mlx5hws_send_engine_post_req_wqe() 167 sq->wr_priv[idx].num_wqebbs = ctrl->num_wqebbs; in mlx5hws_send_engine_post_end() 174 sq->cur_post += ctrl->num_wqebbs; in mlx5hws_send_engine_post_end() 502 cq->poll_wqe = (cq->poll_wqe + priv->num_wqebbs) & sq->buf_mask; in hws_send_engine_poll_cq() 506 cq->poll_wqe = (wqe_cnt + priv->num_wqebbs) & sq->buf_mask; in hws_send_engine_poll_cq()
|
H A D | mlx5hws_send.h | 86 u32 num_wqebbs; member 149 size_t num_wqebbs; member
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/ |
H A D | tx.c | 53 wi->num_wqebbs = 1; in mlx5e_xsk_tx_post_err()
|