Lines Matching defs:len
8 static int mlx5_hv_config_common(struct mlx5_core_dev *dev, void *buf, int len,
15 if (offset % HV_CONFIG_BLOCK_SIZE_MAX || len != HV_CONFIG_BLOCK_SIZE_MAX)
27 /* Make sure len bytes were read successfully */
28 if (read && !rc && len != bytes_returned)
32 mlx5_core_err(dev, "Failed to %s hv config, err = %d, len = %d, offset = %d\n",
33 read ? "read" : "write", rc, len,
41 int mlx5_hv_read_config(struct mlx5_core_dev *dev, void *buf, int len,
44 return mlx5_hv_config_common(dev, buf, len, offset, true);
47 int mlx5_hv_write_config(struct mlx5_core_dev *dev, void *buf, int len,
50 return mlx5_hv_config_common(dev, buf, len, offset, false);