Home
last modified time | relevance | path

Searched refs:cseg (Results 1 – 9 of 9) sorted by relevance

/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dktls_txrx.c81 struct mlx5_wqe_ctrl_seg *cseg = &wqe->ctrl; in mlx5e_ktls_build_static_params() local
88 cseg->opmod_idx_opcode = cpu_to_be32((pc << 8) | MLX5_OPCODE_UMR | (opmod << 24)); in mlx5e_ktls_build_static_params()
89 cseg->qpn_ds = cpu_to_be32((sqn << MLX5_WQE_CTRL_QPN_SHIFT) | in mlx5e_ktls_build_static_params()
91 cseg->fm_ce_se = fence ? MLX5_FENCE_MODE_INITIATOR_SMALL : 0; in mlx5e_ktls_build_static_params()
92 cseg->tis_tir_num = cpu_to_be32(tis_tir_num << 8); in mlx5e_ktls_build_static_params()
123 struct mlx5_wqe_ctrl_seg *cseg = &wqe->ctrl; in mlx5e_ktls_build_progress_params() local
130 cseg->opmod_idx_opcode = in mlx5e_ktls_build_progress_params()
132 cseg->qpn_ds = cpu_to_be32((sqn << MLX5_WQE_CTRL_QPN_SHIFT) | in mlx5e_ktls_build_progress_params()
134 cseg->fm_ce_se = fence ? MLX5_FENCE_MODE_INITIATOR_SMALL : 0; in mlx5e_ktls_build_progress_params()
Dktls_rx.c199 struct mlx5_wqe_ctrl_seg *cseg; in post_rx_param_wqes() local
207 cseg = post_static_params(sq, priv_rx); in post_rx_param_wqes()
208 if (IS_ERR(cseg)) in post_rx_param_wqes()
210 cseg = post_progress_params(sq, priv_rx, next_record_tcp_sn); in post_rx_param_wqes()
211 if (IS_ERR(cseg)) in post_rx_param_wqes()
214 mlx5e_notify_hw(&sq->wq, sq->pc, sq->uar_map, cseg); in post_rx_param_wqes()
222 err = PTR_ERR(cseg); in post_rx_param_wqes()
257 struct mlx5_wqe_ctrl_seg *cseg; in resync_post_get_progress_params() local
292 cseg = &wqe->ctrl; in resync_post_get_progress_params()
293 cseg->opmod_idx_opcode = in resync_post_get_progress_params()
[all …]
Dktls_txrx.h58 mlx5e_ktls_handle_tx_wqe(struct mlx5_wqe_ctrl_seg *cseg, in mlx5e_ktls_handle_tx_wqe() argument
61 cseg->tis_tir_num = cpu_to_be32(state->tls_tisn << 8); in mlx5e_ktls_handle_tx_wqe()
Dktls_tx.c722 struct mlx5_wqe_ctrl_seg *cseg; in tx_post_resync_dump() local
736 cseg = &wqe->ctrl; in tx_post_resync_dump()
739 cseg->opmod_idx_opcode = cpu_to_be32((sq->pc << 8) | MLX5_OPCODE_DUMP); in tx_post_resync_dump()
740 cseg->qpn_ds = cpu_to_be32((sq->sqn << 8) | ds_cnt); in tx_post_resync_dump()
741 cseg->tis_tir_num = cpu_to_be32(tisn << 8); in tx_post_resync_dump()
/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtxrx.h111 struct mlx5_wqe_ctrl_seg *cseg = &wqe->ctrl; in mlx5e_post_nop() local
113 memset(cseg, 0, sizeof(*cseg)); in mlx5e_post_nop()
115 cseg->opmod_idx_opcode = cpu_to_be32((*pc << 8) | MLX5_OPCODE_NOP); in mlx5e_post_nop()
116 cseg->qpn_ds = cpu_to_be32((sqn << 8) | 0x01); in mlx5e_post_nop()
128 struct mlx5_wqe_ctrl_seg *cseg = &wqe->ctrl; in mlx5e_post_nop_fence() local
130 memset(cseg, 0, sizeof(*cseg)); in mlx5e_post_nop_fence()
132 cseg->opmod_idx_opcode = cpu_to_be32((*pc << 8) | MLX5_OPCODE_NOP); in mlx5e_post_nop_fence()
133 cseg->qpn_ds = cpu_to_be32((sqn << 8) | 0x01); in mlx5e_post_nop_fence()
134 cseg->fm_ce_se = MLX5_FENCE_MODE_INITIATOR_SMALL; in mlx5e_post_nop_fence()
Dxdp.c254 struct mlx5_wqe_ctrl_seg *cseg = &session->wqe->ctrl; in mlx5e_xdp_mpwqe_complete() local
259 cseg->opmod_idx_opcode = in mlx5e_xdp_mpwqe_complete()
261 cseg->qpn_ds = cpu_to_be32((sq->sqn << 8) | ds_count); in mlx5e_xdp_mpwqe_complete()
268 sq->doorbell_cseg = cseg; in mlx5e_xdp_mpwqe_complete()
365 struct mlx5_wqe_ctrl_seg *cseg; in mlx5e_xmit_xdp_frame() local
411 cseg = &wqe->ctrl; in mlx5e_xmit_xdp_frame()
432 cseg->opmod_idx_opcode = cpu_to_be32((sq->pc << 8) | MLX5_OPCODE_SEND); in mlx5e_xmit_xdp_frame()
438 memset(&cseg->trailer, 0, sizeof(cseg->trailer)); in mlx5e_xmit_xdp_frame()
457 cseg->qpn_ds = cpu_to_be32((sq->sqn << 8) | ds_cnt); in mlx5e_xmit_xdp_frame()
466 cseg->fm_ce_se = 0; in mlx5e_xmit_xdp_frame()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/
Den_tx.c374 struct mlx5e_tx_wqe_info *wi, struct mlx5_wqe_ctrl_seg *cseg, in mlx5e_txwqe_complete() argument
388 cseg->opmod_idx_opcode = cpu_to_be32((sq->pc << 8) | attr->opcode); in mlx5e_txwqe_complete()
389 cseg->qpn_ds = cpu_to_be32((sq->sqn << 8) | wqe_attr->ds_cnt); in mlx5e_txwqe_complete()
410 mlx5e_notify_hw(wq, sq->pc, sq->uar_map, cseg); in mlx5e_txwqe_complete()
418 struct mlx5_wqe_ctrl_seg *cseg; in mlx5e_sq_xmit_wqe() local
431 cseg = &wqe->ctrl; in mlx5e_sq_xmit_wqe()
486 mlx5e_txwqe_complete(sq, skb, attr, wqe_attr, num_dma, wi, cseg, xmit_more); in mlx5e_sq_xmit_wqe()
561 struct mlx5_wqe_ctrl_seg *cseg; in mlx5e_tx_mpwqe_session_complete() local
565 cseg = &session->wqe->ctrl; in mlx5e_tx_mpwqe_session_complete()
566 cseg->opmod_idx_opcode = cpu_to_be32((sq->pc << 8) | MLX5_OPCODE_ENHANCED_MPSW); in mlx5e_tx_mpwqe_session_complete()
[all …]
Den_main.c220 struct mlx5_wqe_ctrl_seg *cseg = &wqe->ctrl; in mlx5e_build_umr_wqe() local
229 cseg->qpn_ds = cpu_to_be32((sq->sqn << MLX5_WQE_CTRL_QPN_SHIFT) | in mlx5e_build_umr_wqe()
231 cseg->umr_mkey = rq->mpwqe.umr_mkey_be; in mlx5e_build_umr_wqe()
1806 struct mlx5_wqe_ctrl_seg *cseg = &wqe->ctrl; in mlx5e_open_xdpsq() local
1815 cseg->qpn_ds = cpu_to_be32((sq->sqn << 8) | ds_cnt); in mlx5e_open_xdpsq()
1818 dseg = (struct mlx5_wqe_data_seg *)cseg + (ds_cnt - 1); in mlx5e_open_xdpsq()
/drivers/net/ethernet/mellanox/mlx5/core/lib/
Daso.c349 struct mlx5_wqe_ctrl_seg *cseg = &aso_wqe->ctrl; in mlx5_aso_build_wqe() local
351 cseg->opmod_idx_opcode = cpu_to_be32((opc_mode << MLX5_WQE_CTRL_WQE_OPC_MOD_SHIFT) | in mlx5_aso_build_wqe()
354 cseg->qpn_ds = cpu_to_be32((aso->sqn << MLX5_WQE_CTRL_QPN_SHIFT) | ds_cnt); in mlx5_aso_build_wqe()
355 cseg->fm_ce_se = MLX5_WQE_CTRL_CQ_UPDATE; in mlx5_aso_build_wqe()
356 cseg->general_id = cpu_to_be32(obj_id); in mlx5_aso_build_wqe()