Lines Matching defs:iboe
258 struct mlx4_ib_iboe *iboe = &ibdev->iboe;
280 port_gid_table = &iboe->gids[attr->port_num - 1];
281 spin_lock_bh(&iboe->lock);
330 spin_unlock_bh(&iboe->lock);
335 spin_lock_bh(&iboe->lock);
338 spin_unlock_bh(&iboe->lock);
350 struct mlx4_ib_iboe *iboe = &ibdev->iboe;
362 port_gid_table = &iboe->gids[attr->port_num - 1];
363 spin_lock_bh(&iboe->lock);
390 spin_unlock_bh(&iboe->lock);
402 struct mlx4_ib_iboe *iboe = &ibdev->iboe;
419 spin_lock_irqsave(&iboe->lock, flags);
420 port_gid_table = &iboe->gids[port_num - 1];
431 spin_unlock_irqrestore(&iboe->lock, flags);
756 struct mlx4_ib_iboe *iboe = &mdev->iboe;
789 spin_lock_bh(&iboe->lock);
790 ndev = iboe->netdevs[port - 1];
806 spin_unlock_bh(&iboe->lock);
1313 spin_lock_bh(&mdev->iboe.lock);
1314 ndev = mdev->iboe.netdevs[mqp->port - 1];
1316 spin_unlock_bh(&mdev->iboe.lock);
1960 spin_lock_bh(&mdev->iboe.lock);
1961 ndev = ge->added ? mdev->iboe.netdevs[ge->port - 1] : NULL;
1963 spin_unlock_bh(&mdev->iboe.lock);
2283 atomic64_set(&ibdev->iboe.mac[port - 1], new_smac);
2333 struct mlx4_ib_iboe *iboe = &ibdev->iboe;
2340 spin_lock_bh(&iboe->lock);
2342 iboe->netdevs[dev->dev_port] = event != NETDEV_UNREGISTER ? dev : NULL;
2354 iboe->last_port_state[dev->dev_port] != IB_PORT_DOWN))
2358 iboe->last_port_state[dev->dev_port] != IB_PORT_ACTIVE))
2360 iboe->last_port_state[dev->dev_port] = port_state;
2370 spin_unlock_bh(&iboe->lock);
2386 ibdev = container_of(this, struct mlx4_ib_dev, iboe.nb);
2620 struct mlx4_ib_iboe *iboe;
2644 iboe = &ibdev->iboe;
2701 spin_lock_init(&iboe->lock);
2711 iboe->last_port_state[i] = IB_PORT_DOWN;
2807 atomic64_set(&iboe->mac[j - 1], ibdev->dev->caps.def_mac[j]);
2826 if (!iboe->nb.notifier_call) {
2827 iboe->nb.notifier_call = mlx4_ib_netdev_event;
2828 err = register_netdevice_notifier(&iboe->nb);
2830 iboe->nb.notifier_call = NULL;
2867 if (ibdev->iboe.nb.notifier_call) {
2868 if (unregister_netdevice_notifier(&ibdev->iboe.nb))
2870 ibdev->iboe.nb.notifier_call = NULL;
2990 if (ibdev->iboe.nb.notifier_call) {
2991 if (unregister_netdevice_notifier(&ibdev->iboe.nb))
2993 ibdev->iboe.nb.notifier_call = NULL;
3140 spin_lock_bh(&ibdev->iboe.lock);
3142 struct net_device *curr_netdev = ibdev->iboe.netdevs[i];
3156 spin_unlock_bh(&ibdev->iboe.lock);