Lines Matching refs:slave_id
79 int slave_id; in mlx4_ib_update_cache_on_guid_change() local
94 slave_id = (block_num * NUM_ALIAS_GUID_IN_REC) + i ; in mlx4_ib_update_cache_on_guid_change()
95 if (slave_id >= dev->dev->num_slaves) { in mlx4_ib_update_cache_on_guid_change()
96 pr_debug("The last slave: %d\n", slave_id); in mlx4_ib_update_cache_on_guid_change()
101 memcpy(&dev->sriov.demux[port_index].guid_cache[slave_id], in mlx4_ib_update_cache_on_guid_change()
191 int slave_id, slave_port; in mlx4_ib_notify_slaves_on_guid_change() local
216 slave_id = (block_num * NUM_ALIAS_GUID_IN_REC) + i ; in mlx4_ib_notify_slaves_on_guid_change()
217 if (slave_id >= dev->dev->persist->num_vfs + 1) in mlx4_ib_notify_slaves_on_guid_change()
220 slave_port = mlx4_phys_to_slave_port(dev->dev, slave_id, port_num); in mlx4_ib_notify_slaves_on_guid_change()
254 mlx4_gen_guid_change_eqe(dev->dev, slave_id, port_num); in mlx4_ib_notify_slaves_on_guid_change()
258 prev_state = mlx4_get_slave_port_state(dev->dev, slave_id, port_num); in mlx4_ib_notify_slaves_on_guid_change()
259 new_state = set_and_calc_slave_port_state(dev->dev, slave_id, port_num, in mlx4_ib_notify_slaves_on_guid_change()
264 slave_id, port_num, prev_state, new_state, gen_event); in mlx4_ib_notify_slaves_on_guid_change()
267 slave_id, port_num); in mlx4_ib_notify_slaves_on_guid_change()
268 mlx4_gen_port_state_change_eqe(dev->dev, slave_id, in mlx4_ib_notify_slaves_on_guid_change()
272 set_and_calc_slave_port_state(dev->dev, slave_id, port_num, in mlx4_ib_notify_slaves_on_guid_change()
277 slave_id, port_num); in mlx4_ib_notify_slaves_on_guid_change()
279 slave_id, in mlx4_ib_notify_slaves_on_guid_change()