Lines Matching refs:port_num

128 static struct net_device *mlx4_ib_get_netdev(struct ib_device *device, u8 port_num)  in mlx4_ib_get_netdev()  argument
134 dev = mlx4_get_protocol_dev(ibdev->dev, MLX4_PROT_ETH, port_num); in mlx4_ib_get_netdev()
159 u8 port_num) in mlx4_ib_update_gids() argument
177 MLX4_SET_PORT_GID_TABLE << 8 | port_num, in mlx4_ib_update_gids()
191 u8 port_num, in mlx4_ib_add_gid() argument
206 if (!rdma_cap_roce_gid_table(device, port_num)) in mlx4_ib_add_gid()
209 if (port_num > MLX4_MAX_PORTS) in mlx4_ib_add_gid()
215 port_gid_table = &iboe->gids[port_num - 1]; in mlx4_ib_add_gid()
258 ret = mlx4_ib_update_gids(gids, ibdev, port_num); in mlx4_ib_add_gid()
266 u8 port_num, in mlx4_ib_del_gid() argument
278 if (!rdma_cap_roce_gid_table(device, port_num)) in mlx4_ib_del_gid()
281 if (port_num > MLX4_MAX_PORTS) in mlx4_ib_del_gid()
284 port_gid_table = &iboe->gids[port_num - 1]; in mlx4_ib_del_gid()
311 ret = mlx4_ib_update_gids(gids, ibdev, port_num); in mlx4_ib_del_gid()
318 u8 port_num, int index) in mlx4_ib_gid_index_to_real_index() argument
329 if (port_num > MLX4_MAX_PORTS) in mlx4_ib_gid_index_to_real_index()
333 port_num = 1; in mlx4_ib_gid_index_to_real_index()
335 if (!rdma_cap_roce_gid_table(&ibdev->ib_dev, port_num)) in mlx4_ib_gid_index_to_real_index()
338 ret = ib_get_cached_gid(&ibdev->ib_dev, port_num, index, &gid, NULL); in mlx4_ib_gid_index_to_real_index()
346 port_gid_table = &iboe->gids[port_num - 1]; in mlx4_ib_gid_index_to_real_index()
508 mlx4_ib_port_link_layer(struct ib_device *device, u8 port_num) in mlx4_ib_port_link_layer() argument
512 return dev->caps.port_mask[port_num] == MLX4_PORT_TYPE_IB ? in mlx4_ib_port_link_layer()
2118 static int mlx4_port_immutable(struct ib_device *ibdev, u8 port_num, in mlx4_port_immutable() argument
2124 err = mlx4_ib_query_port(ibdev, port_num, &attr); in mlx4_port_immutable()
2131 if (mlx4_ib_port_link_layer(ibdev, port_num) == IB_LINK_LAYER_INFINIBAND) in mlx4_port_immutable()
2744 ibev.element.port_num = 1; in handle_bonded_port_state_event()
2855 ibev.element.port_num = mlx4_is_bonded(ibdev->dev) ? 1 : (u8)p; in mlx4_ib_event()