Lines Matching defs:slave

58 	int slave;
320 mlx4_ib_warn(ibdev, "%s: id{slave: %d, sl_cm_id: 0x%x} Failed to id_map_alloc\n",
333 pr_debug("id{slave: %d, sl_cm_id: 0x%x} is NULL! attr_id: 0x%x\n",
360 static int alloc_rej_tmout(struct mlx4_ib_sriov *sriov, u32 rem_pv_cm_id, int slave)
384 item->slave = slave;
409 int slave;
415 pr_debug("Could not find slave. rem_pv_cm_id 0x%x error: %d\n",
417 slave = !item ? -ENOENT : xa_err(item);
419 slave = item->slave;
423 return slave;
426 int mlx4_ib_demux_cm_handler(struct ib_device *ibdev, int port, int *slave,
439 if (!slave)
443 *slave = mlx4_ib_find_real_gid(ibdev, port, gid.global.interface_id);
444 if (*slave < 0) {
450 sts = alloc_rej_tmout(sriov, rem_pv_cm_id, *slave);
452 /* Even if this fails, we pass on the REQ to the slave */
453 pr_debug("Could not allocate rej_tmout entry. rem_pv_cm_id 0x%x slave %d status %d\n",
454 rem_pv_cm_id, *slave, sts);
464 REJ_REASON(mad) == IB_CM_REJ_TIMEOUT && slave) {
465 *slave = lookup_rej_tmout_slave(sriov, rem_pv_cm_id);
467 return (*slave < 0) ? *slave : 0;
474 if (slave)
475 *slave = id->slave_id;
494 static void rej_tmout_xa_cleanup(struct mlx4_ib_sriov *sriov, int slave)
503 if (slave < 0 || slave == item->slave) {
513 pr_debug("Deleted %d entries in xarray for slave %d during cleanup\n",
514 cnt, slave);
517 if (slave < 0)
521 /* slave = -1 ==> all slaves */
522 /* TBD -- call paravirt clean for single slave. Need for slave RESET event */
523 void mlx4_ib_cm_paravirt_clean(struct mlx4_ib_dev *dev, int slave)
535 if (slave < 0 || slave == map->slave_id) {
548 if (slave < 0) {
559 /* first, move nodes belonging to slave to db remove list */
565 if (ent->slave_id == slave)
576 if (slave == map->slave_id)
589 rej_tmout_xa_cleanup(sriov, slave);