Lines Matching refs:vport_index
13 int vport_index) in mlx5_ib_set_vport_rep() argument
21 ibdev->port[vport_index].rep = rep; in mlx5_ib_set_vport_rep()
23 write_lock(&ibdev->port[vport_index].roce.netdev_lock); in mlx5_ib_set_vport_rep()
24 ibdev->port[vport_index].roce.netdev = in mlx5_ib_set_vport_rep()
26 write_unlock(&ibdev->port[vport_index].roce.netdev_lock); in mlx5_ib_set_vport_rep()
41 int vport_index; in mlx5_ib_vport_rep_load() local
44 vport_index = rep->vport_index; in mlx5_ib_vport_rep_load()
55 vport_index += peer_num_ports; in mlx5_ib_vport_rep_load()
63 return mlx5_ib_set_vport_rep(dev, rep, vport_index); in mlx5_ib_vport_rep_load()
77 vport_index = rep->vport_index; in mlx5_ib_vport_rep_load()
78 ibdev->port[vport_index].rep = rep; in mlx5_ib_vport_rep_load()
79 ibdev->port[vport_index].roce.netdev = in mlx5_ib_vport_rep_load()
111 int vport_index = rep->vport_index; in mlx5_ib_vport_rep_unload() local
124 vport_index += mlx5_eswitch_get_total_vports(peer_mdev); in mlx5_ib_vport_rep_unload()
130 port = &dev->port[vport_index]; in mlx5_ib_vport_rep_unload()