Lines Matching refs:iboe

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