Lines Matching defs:slave
58 int slave;
319 mlx4_ib_warn(ibdev, "%s: id{slave: %d, sl_cm_id: 0x%x} Failed to id_map_alloc\n",
332 pr_debug("id{slave: %d, sl_cm_id: 0x%x} is NULL! attr_id: 0x%x\n",
359 static int alloc_rej_tmout(struct mlx4_ib_sriov *sriov, u32 rem_pv_cm_id, int slave)
383 item->slave = slave;
408 int slave;
414 pr_debug("Could not find slave. rem_pv_cm_id 0x%x error: %d\n",
416 slave = !item ? -ENOENT : xa_err(item);
418 slave = item->slave;
422 return slave;
425 int mlx4_ib_demux_cm_handler(struct ib_device *ibdev, int port, int *slave,
438 if (!slave)
442 *slave = mlx4_ib_find_real_gid(ibdev, port, gid.global.interface_id);
443 if (*slave < 0) {
449 sts = alloc_rej_tmout(sriov, rem_pv_cm_id, *slave);
451 /* Even if this fails, we pass on the REQ to the slave */
452 pr_debug("Could not allocate rej_tmout entry. rem_pv_cm_id 0x%x slave %d status %d\n",
453 rem_pv_cm_id, *slave, sts);
463 REJ_REASON(mad) == IB_CM_REJ_TIMEOUT && slave) {
464 *slave = lookup_rej_tmout_slave(sriov, rem_pv_cm_id);
466 return (*slave < 0) ? *slave : 0;
473 if (slave)
474 *slave = id->slave_id;
493 static void rej_tmout_xa_cleanup(struct mlx4_ib_sriov *sriov, int slave)
502 if (slave < 0 || slave == item->slave) {
512 pr_debug("Deleted %d entries in xarray for slave %d during cleanup\n",
513 cnt, slave);
516 if (slave < 0)
520 /* slave = -1 ==> all slaves */
521 /* TBD -- call paravirt clean for single slave. Need for slave RESET event */
522 void mlx4_ib_cm_paravirt_clean(struct mlx4_ib_dev *dev, int slave)
534 if (slave < 0 || slave == map->slave_id) {
547 if (slave < 0) {
558 /* first, move nodes belonging to slave to db remove list */
564 if (ent->slave_id == slave)
575 if (slave == map->slave_id)
588 rej_tmout_xa_cleanup(sriov, slave);