Lines Matching +full:op +full:- +full:tee

1 /*-
14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
51 return -EINVAL; in mlx5_fpga_access_reg()
53 return -EINVAL; in mlx5_fpga_access_reg()
55 return -EINVAL; in mlx5_fpga_access_reg()
77 return mlx5_core_access_reg(dev, in, sizeof(in), dev->caps.fpga, in mlx5_fpga_caps()
82 int mlx5_fpga_ctrl_op(struct mlx5_core_dev *dev, u8 op) in mlx5_fpga_ctrl_op() argument
87 MLX5_SET(fpga_ctrl, in, operation, op); in mlx5_fpga_ctrl_op()
103 return -EINVAL; in mlx5_fpga_sbu_caps()
117 cap_size -= read; in mlx5_fpga_sbu_caps()
125 static int mlx5_fpga_ctrl_write(struct mlx5_core_dev *dev, u8 op, in mlx5_fpga_ctrl_write() argument
131 MLX5_SET(fpga_ctrl, in, operation, op); in mlx5_fpga_ctrl_write()
160 query->image_status = MLX5_GET(fpga_ctrl, out, status); in mlx5_fpga_query()
161 query->admin_image = MLX5_GET(fpga_ctrl, out, flash_select_admin); in mlx5_fpga_query()
162 query->oper_image = MLX5_GET(fpga_ctrl, out, flash_select_oper); in mlx5_fpga_query()
200 MLX5_SET(mtmp_reg, in, sensor_index, temp->index); in mlx5_fpga_query_mtmp()
202 ((temp->index < MLX5_FPGA_INTERNAL_SENSORS_LOW) || in mlx5_fpga_query_mtmp()
203 (temp->index > MLX5_FPGA_INTERNAL_SENSORS_HIGH)) ? 1 : 0); in mlx5_fpga_query_mtmp()
210 temp->index = MLX5_GET(mtmp_reg, out, sensor_index); in mlx5_fpga_query_mtmp()
211 temp->temperature = MLX5_GET(mtmp_reg, out, temperature); in mlx5_fpga_query_mtmp()
212 temp->mte = MLX5_GET(mtmp_reg, out, mte); in mlx5_fpga_query_mtmp()
213 temp->max_temperature = MLX5_GET(mtmp_reg, out, max_temperature); in mlx5_fpga_query_mtmp()
214 temp->tee = MLX5_GET(mtmp_reg, out, tee); in mlx5_fpga_query_mtmp()
215 temp->temperature_threshold_hi = MLX5_GET(mtmp_reg, out, in mlx5_fpga_query_mtmp()
217 temp->temperature_threshold_lo = MLX5_GET(mtmp_reg, out, in mlx5_fpga_query_mtmp()
219 memcpy(temp->sensor_name, MLX5_ADDR_OF(mtmp_reg, out, sensor_name), in mlx5_fpga_query_mtmp()
308 data->rx_ack_packets = MLX5_GET64(fpga_query_qp_counters_out, out, in mlx5_fpga_query_qp_counters()
310 data->rx_send_packets = MLX5_GET64(fpga_query_qp_counters_out, out, in mlx5_fpga_query_qp_counters()
312 data->tx_ack_packets = MLX5_GET64(fpga_query_qp_counters_out, out, in mlx5_fpga_query_qp_counters()
314 data->tx_send_packets = MLX5_GET64(fpga_query_qp_counters_out, out, in mlx5_fpga_query_qp_counters()
316 data->rx_total_drop = MLX5_GET64(fpga_query_qp_counters_out, out, in mlx5_fpga_query_qp_counters()
335 data->ddr_read_requests = MLX5_GET64(fpga_shell_counters, out, in mlx5_fpga_shell_counters()
337 data->ddr_write_requests = MLX5_GET64(fpga_shell_counters, out, in mlx5_fpga_shell_counters()
339 data->ddr_read_bytes = MLX5_GET64(fpga_shell_counters, out, in mlx5_fpga_shell_counters()
341 data->ddr_write_bytes = MLX5_GET64(fpga_shell_counters, out, in mlx5_fpga_shell_counters()