Lines Matching refs:port_num
292 static int mlx5_ib_get_cc_params(struct mlx5_ib_dev *dev, u32 port_num, in mlx5_ib_get_cc_params() argument
303 mdev = mlx5_ib_get_native_port_mdev(dev, port_num + 1, NULL); in mlx5_ib_get_cc_params()
325 mlx5_ib_put_native_port_mdev(dev, port_num + 1); in mlx5_ib_get_cc_params()
329 static int mlx5_ib_set_cc_params(struct mlx5_ib_dev *dev, u32 port_num, in mlx5_ib_set_cc_params() argument
341 mdev = mlx5_ib_get_native_port_mdev(dev, port_num + 1, NULL); in mlx5_ib_set_cc_params()
367 mlx5_ib_put_native_port_mdev(dev, port_num + 1); in mlx5_ib_set_cc_params()
391 ret = mlx5_ib_set_cc_params(param->dev, param->port_num, offset, var); in set_param()
404 ret = mlx5_ib_get_cc_params(param->dev, param->port_num, offset, &var); in get_param()
422 void mlx5_ib_cleanup_cong_debugfs(struct mlx5_ib_dev *dev, u32 port_num) in mlx5_ib_cleanup_cong_debugfs() argument
425 !dev->port[port_num].dbg_cc_params || in mlx5_ib_cleanup_cong_debugfs()
426 !dev->port[port_num].dbg_cc_params->root) in mlx5_ib_cleanup_cong_debugfs()
429 debugfs_remove_recursive(dev->port[port_num].dbg_cc_params->root); in mlx5_ib_cleanup_cong_debugfs()
430 kfree(dev->port[port_num].dbg_cc_params); in mlx5_ib_cleanup_cong_debugfs()
431 dev->port[port_num].dbg_cc_params = NULL; in mlx5_ib_cleanup_cong_debugfs()
434 void mlx5_ib_init_cong_debugfs(struct mlx5_ib_dev *dev, u32 port_num) in mlx5_ib_init_cong_debugfs() argument
444 mdev = mlx5_ib_get_native_port_mdev(dev, port_num + 1, NULL); in mlx5_ib_init_cong_debugfs()
456 dev->port[port_num].dbg_cc_params = dbg_cc_params; in mlx5_ib_init_cong_debugfs()
469 dbg_cc_params->params[i].port_num = port_num; in mlx5_ib_init_cong_debugfs()
478 mlx5_ib_put_native_port_mdev(dev, port_num + 1); in mlx5_ib_init_cong_debugfs()
483 mlx5_ib_cleanup_cong_debugfs(dev, port_num); in mlx5_ib_init_cong_debugfs()
484 mlx5_ib_put_native_port_mdev(dev, port_num + 1); in mlx5_ib_init_cong_debugfs()