Lines Matching refs:port_num
270 static int mlx5_ib_get_cc_params(struct mlx5_ib_dev *dev, u8 port_num, in mlx5_ib_get_cc_params() argument
281 mdev = mlx5_ib_get_native_port_mdev(dev, port_num + 1, NULL); in mlx5_ib_get_cc_params()
303 mlx5_ib_put_native_port_mdev(dev, port_num + 1); in mlx5_ib_get_cc_params()
307 static int mlx5_ib_set_cc_params(struct mlx5_ib_dev *dev, u8 port_num, in mlx5_ib_set_cc_params() argument
319 mdev = mlx5_ib_get_native_port_mdev(dev, port_num + 1, NULL); in mlx5_ib_set_cc_params()
345 mlx5_ib_put_native_port_mdev(dev, port_num + 1); in mlx5_ib_set_cc_params()
369 ret = mlx5_ib_set_cc_params(param->dev, param->port_num, offset, var); in set_param()
382 ret = mlx5_ib_get_cc_params(param->dev, param->port_num, offset, &var); in get_param()
400 void mlx5_ib_cleanup_cong_debugfs(struct mlx5_ib_dev *dev, u8 port_num) in mlx5_ib_cleanup_cong_debugfs() argument
403 !dev->port[port_num].dbg_cc_params || in mlx5_ib_cleanup_cong_debugfs()
404 !dev->port[port_num].dbg_cc_params->root) in mlx5_ib_cleanup_cong_debugfs()
407 debugfs_remove_recursive(dev->port[port_num].dbg_cc_params->root); in mlx5_ib_cleanup_cong_debugfs()
408 kfree(dev->port[port_num].dbg_cc_params); in mlx5_ib_cleanup_cong_debugfs()
409 dev->port[port_num].dbg_cc_params = NULL; in mlx5_ib_cleanup_cong_debugfs()
412 void mlx5_ib_init_cong_debugfs(struct mlx5_ib_dev *dev, u8 port_num) in mlx5_ib_init_cong_debugfs() argument
422 mdev = mlx5_ib_get_native_port_mdev(dev, port_num + 1, NULL); in mlx5_ib_init_cong_debugfs()
434 dev->port[port_num].dbg_cc_params = dbg_cc_params; in mlx5_ib_init_cong_debugfs()
442 dbg_cc_params->params[i].port_num = port_num; in mlx5_ib_init_cong_debugfs()
451 mlx5_ib_put_native_port_mdev(dev, port_num + 1); in mlx5_ib_init_cong_debugfs()
456 mlx5_ib_cleanup_cong_debugfs(dev, port_num); in mlx5_ib_init_cong_debugfs()
457 mlx5_ib_put_native_port_mdev(dev, port_num + 1); in mlx5_ib_init_cong_debugfs()