Lines Matching defs:iboe
259 struct mlx4_ib_iboe *iboe = &ibdev->iboe;
281 port_gid_table = &iboe->gids[attr->port_num - 1];
282 spin_lock_bh(&iboe->lock);
332 spin_unlock_bh(&iboe->lock);
337 spin_lock_bh(&iboe->lock);
340 spin_unlock_bh(&iboe->lock);
352 struct mlx4_ib_iboe *iboe = &ibdev->iboe;
364 port_gid_table = &iboe->gids[attr->port_num - 1];
365 spin_lock_bh(&iboe->lock);
392 spin_unlock_bh(&iboe->lock);
404 struct mlx4_ib_iboe *iboe = &ibdev->iboe;
421 spin_lock_irqsave(&iboe->lock, flags);
422 port_gid_table = &iboe->gids[port_num - 1];
433 spin_unlock_irqrestore(&iboe->lock, flags);
758 struct mlx4_ib_iboe *iboe = &mdev->iboe;
791 spin_lock_bh(&iboe->lock);
792 ndev = iboe->netdevs[port - 1];
808 spin_unlock_bh(&iboe->lock);
1313 spin_lock_bh(&mdev->iboe.lock);
1314 ndev = mdev->iboe.netdevs[mqp->port - 1];
1317 spin_unlock_bh(&mdev->iboe.lock);
1964 spin_lock_bh(&mdev->iboe.lock);
1965 ndev = ge->added ? mdev->iboe.netdevs[ge->port - 1] : NULL;
1968 spin_unlock_bh(&mdev->iboe.lock);
2268 atomic64_set(&ibdev->iboe.mac[port - 1], new_smac);
2318 struct mlx4_ib_iboe *iboe;
2324 iboe = &ibdev->iboe;
2326 spin_lock_bh(&iboe->lock);
2329 iboe->netdevs[port - 1] =
2332 if (dev == iboe->netdevs[port - 1] &&
2337 if (dev == iboe->netdevs[port - 1] &&
2348 iboe->last_port_state[port - 1] != IB_PORT_DOWN))
2352 iboe->last_port_state[port - 1] != IB_PORT_ACTIVE))
2354 iboe->last_port_state[port - 1] = port_state;
2364 spin_unlock_bh(&iboe->lock);
2379 ibdev = container_of(this, struct mlx4_ib_dev, iboe.nb);
2608 struct mlx4_ib_iboe *iboe;
2632 iboe = &ibdev->iboe;
2721 spin_lock_init(&iboe->lock);
2730 iboe->last_port_state[i] = IB_PORT_DOWN;
2823 atomic64_set(&iboe->mac[j - 1], ibdev->dev->caps.def_mac[j]);
2839 if (!iboe->nb.notifier_call) {
2840 iboe->nb.notifier_call = mlx4_ib_netdev_event;
2841 err = register_netdevice_notifier(&iboe->nb);
2843 iboe->nb.notifier_call = NULL;
2873 if (ibdev->iboe.nb.notifier_call) {
2874 if (unregister_netdevice_notifier(&ibdev->iboe.nb))
2876 ibdev->iboe.nb.notifier_call = NULL;
2992 if (ibdev->iboe.nb.notifier_call) {
2993 if (unregister_netdevice_notifier(&ibdev->iboe.nb))
2995 ibdev->iboe.nb.notifier_call = NULL;
3142 spin_lock_bh(&ibdev->iboe.lock);
3144 struct net_device *curr_netdev = ibdev->iboe.netdevs[i];
3158 spin_unlock_bh(&ibdev->iboe.lock);