cmd.c (98817a84ff1c755c347ac633ff017a623a631fad) | cmd.c (64825827ae3a53e01fc9bb9483b1a2ed7cb2b657) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 2/* 3 * Copyright (c) 2017-2020, Mellanox Technologies inc. All rights reserved. 4 */ 5 6#include "cmd.h" 7 8int mlx5_cmd_dump_fill_mkey(struct mlx5_core_dev *dev, u32 *mkey) --- 134 unchanged lines hidden (view full) --- 143 return; 144 145 spin_lock(&dm->lock); 146 bitmap_clear(dm->memic_alloc_pages, 147 start_page_idx, num_pages); 148 spin_unlock(&dm->lock); 149} 150 | 1// SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 2/* 3 * Copyright (c) 2017-2020, Mellanox Technologies inc. All rights reserved. 4 */ 5 6#include "cmd.h" 7 8int mlx5_cmd_dump_fill_mkey(struct mlx5_core_dev *dev, u32 *mkey) --- 134 unchanged lines hidden (view full) --- 143 return; 144 145 spin_lock(&dm->lock); 146 bitmap_clear(dm->memic_alloc_pages, 147 start_page_idx, num_pages); 148 spin_unlock(&dm->lock); 149} 150 |
151int mlx5_cmd_query_ext_ppcnt_counters(struct mlx5_core_dev *dev, void *out) 152{ 153 u32 in[MLX5_ST_SZ_DW(ppcnt_reg)] = {}; 154 int sz = MLX5_ST_SZ_BYTES(ppcnt_reg); 155 156 MLX5_SET(ppcnt_reg, in, local_port, 1); 157 158 MLX5_SET(ppcnt_reg, in, grp, MLX5_ETHERNET_EXTENDED_COUNTERS_GROUP); 159 return mlx5_core_access_reg(dev, in, sz, out, sz, MLX5_REG_PPCNT, 160 0, 0); 161} 162 | |
163void mlx5_cmd_destroy_tir(struct mlx5_core_dev *dev, u32 tirn, u16 uid) 164{ 165 u32 in[MLX5_ST_SZ_DW(destroy_tir_in)] = {}; 166 167 MLX5_SET(destroy_tir_in, in, opcode, MLX5_CMD_OP_DESTROY_TIR); 168 MLX5_SET(destroy_tir_in, in, tirn, tirn); 169 MLX5_SET(destroy_tir_in, in, uid, uid); 170 mlx5_cmd_exec_in(dev, destroy_tir, in); --- 151 unchanged lines hidden --- | 151void mlx5_cmd_destroy_tir(struct mlx5_core_dev *dev, u32 tirn, u16 uid) 152{ 153 u32 in[MLX5_ST_SZ_DW(destroy_tir_in)] = {}; 154 155 MLX5_SET(destroy_tir_in, in, opcode, MLX5_CMD_OP_DESTROY_TIR); 156 MLX5_SET(destroy_tir_in, in, tirn, tirn); 157 MLX5_SET(destroy_tir_in, in, uid, uid); 158 mlx5_cmd_exec_in(dev, destroy_tir, in); --- 151 unchanged lines hidden --- |