Searched refs:peer_dev (Results 1 – 8 of 8) sorted by relevance
/openbmc/linux/drivers/infiniband/hw/mlx5/ |
H A D | ib_rep.c | 35 struct mlx5_core_dev *peer_dev; in mlx5_ib_num_ports_update() local 38 mlx5_lag_for_each_peer_mdev(dev, peer_dev, i) { in mlx5_ib_num_ports_update() 39 u32 peer_num_ports = mlx5_eswitch_get_total_vports(peer_dev); in mlx5_ib_num_ports_update() 41 if (mlx5_lag_is_mpesw(peer_dev)) in mlx5_ib_num_ports_update() 55 struct mlx5_core_dev *peer_dev; in mlx5_ib_vport_rep_load() local 73 mlx5_lag_for_each_peer_mdev(dev, peer_dev, i) { in mlx5_ib_vport_rep_load() 74 u32 peer_n_ports = mlx5_eswitch_get_total_vports(peer_dev); in mlx5_ib_vport_rep_load() 76 if (mlx5_lag_is_master(peer_dev)) in mlx5_ib_vport_rep_load() 77 lag_master = peer_dev; in mlx5_ib_vport_rep_load() 82 if (mlx5_get_dev_index(peer_dev) < mlx5_get_dev_index(dev)) in mlx5_ib_vport_rep_load()
|
/openbmc/linux/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_topology.c | 1243 struct kfd_topology_device *peer_dev; in kfd_fill_iolink_non_crat_info() local 1252 peer_dev = kfd_topology_device_by_proximity_domain( in kfd_fill_iolink_non_crat_info() 1255 if (!peer_dev) in kfd_fill_iolink_non_crat_info() 1259 if (!peer_dev->gpu && in kfd_fill_iolink_non_crat_info() 1267 peer_dev->node_props.hive_id = dev->node_props.hive_id; in kfd_fill_iolink_non_crat_info() 1270 list_for_each_entry(inbound_link, &peer_dev->io_link_props, in kfd_fill_iolink_non_crat_info() 1276 kfd_set_iolink_no_atomics(peer_dev, dev, inbound_link); in kfd_fill_iolink_non_crat_info() 1277 kfd_set_iolink_non_coherent(peer_dev, link, inbound_link); in kfd_fill_iolink_non_crat_info() 1285 peer_dev = kfd_topology_device_by_proximity_domain( in kfd_fill_iolink_non_crat_info() 1288 if (!peer_dev) in kfd_fill_iolink_non_crat_info() [all …]
|
H A D | kfd_crat.c | 2042 struct kfd_topology_device *peer_dev; in kfd_create_vcrat_image_gpu() local 2168 peer_dev = kfd_topology_device_by_proximity_domain_no_lock(nid); in kfd_create_vcrat_image_gpu() 2169 if (!peer_dev->gpu) in kfd_create_vcrat_image_gpu() 2171 if (peer_dev->gpu->kfd->hive_id != kdev->kfd->hive_id) in kfd_create_vcrat_image_gpu() 2177 &avail_size, kdev, peer_dev->gpu, in kfd_create_vcrat_image_gpu()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | fs_cmd.c | 247 struct mlx5_core_dev *peer_dev; in mlx5_cmd_update_root_ft() local 250 mlx5_lag_for_each_peer_mdev(dev, peer_dev, i) { in mlx5_cmd_update_root_ft() 251 err = mlx5_cmd_set_slave_root_fdb(dev, peer_dev, !disconnect, in mlx5_cmd_update_root_ft() 254 mlx5_lag_for_each_peer_mdev(dev, peer_dev, j) { in mlx5_cmd_update_root_ft() 256 mlx5_cmd_set_slave_root_fdb(dev, peer_dev, 1, in mlx5_cmd_update_root_ft()
|
H A D | dev.c | 542 bool mlx5_same_hw_devs(struct mlx5_core_dev *dev, struct mlx5_core_dev *peer_dev) in mlx5_same_hw_devs() argument 547 psystem_guid = mlx5_query_nic_system_image_guid(peer_dev); in mlx5_same_hw_devs()
|
H A D | eswitch_offloads.c | 1118 struct mlx5_core_dev *peer_dev, in peer_miss_rules_setup() argument 1136 MLX5_CAP_GEN(peer_dev, vhca_id)); in peer_miss_rules_setup() 1148 dest->vport.num = peer_dev->priv.eswitch->manager_vport; in peer_miss_rules_setup() 1149 dest->vport.vhca_id = MLX5_CAP_GEN(peer_dev, vhca_id); in peer_miss_rules_setup() 1174 struct mlx5_core_dev *peer_dev) in esw_add_fdb_peer_miss_rules() argument 1195 peer_miss_rules_setup(esw, peer_dev, spec, &dest); in esw_add_fdb_peer_miss_rules() 1235 peer_dev->priv.eswitch, in esw_add_fdb_peer_miss_rules() 1249 if (i >= mlx5_core_max_ec_vfs(peer_dev)) in esw_add_fdb_peer_miss_rules() 1263 pfindex = mlx5_get_dev_index(peer_dev); in esw_add_fdb_peer_miss_rules() 1305 struct mlx5_core_dev *peer_dev) in esw_del_fdb_peer_miss_rules() argument [all …]
|
H A D | mlx5_core.h | 345 bool mlx5_same_hw_devs(struct mlx5_core_dev *dev, struct mlx5_core_dev *peer_dev);
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/lag/ |
H A D | lag.c | 1543 struct mlx5_core_dev *peer_dev = NULL; in mlx5_lag_get_next_peer_mdev() local 1565 peer_dev = ldev->pf[idx].dev; in mlx5_lag_get_next_peer_mdev() 1569 return peer_dev; in mlx5_lag_get_next_peer_mdev()
|