• Home
  • Raw
  • Download

Lines Matching refs:iboe

260 	struct mlx4_ib_iboe *iboe = &ibdev->iboe;  in mlx4_ib_add_gid()  local
282 port_gid_table = &iboe->gids[attr->port_num - 1]; in mlx4_ib_add_gid()
283 spin_lock_bh(&iboe->lock); in mlx4_ib_add_gid()
333 spin_unlock_bh(&iboe->lock); in mlx4_ib_add_gid()
338 spin_lock_bh(&iboe->lock); in mlx4_ib_add_gid()
341 spin_unlock_bh(&iboe->lock); in mlx4_ib_add_gid()
353 struct mlx4_ib_iboe *iboe = &ibdev->iboe; in mlx4_ib_del_gid() local
365 port_gid_table = &iboe->gids[attr->port_num - 1]; in mlx4_ib_del_gid()
366 spin_lock_bh(&iboe->lock); in mlx4_ib_del_gid()
393 spin_unlock_bh(&iboe->lock); in mlx4_ib_del_gid()
405 struct mlx4_ib_iboe *iboe = &ibdev->iboe; in mlx4_ib_gid_index_to_real_index() local
422 spin_lock_irqsave(&iboe->lock, flags); in mlx4_ib_gid_index_to_real_index()
423 port_gid_table = &iboe->gids[port_num - 1]; in mlx4_ib_gid_index_to_real_index()
434 spin_unlock_irqrestore(&iboe->lock, flags); in mlx4_ib_gid_index_to_real_index()
759 struct mlx4_ib_iboe *iboe = &mdev->iboe; in eth_link_query_port() local
792 spin_lock_bh(&iboe->lock); in eth_link_query_port()
793 ndev = iboe->netdevs[port - 1]; in eth_link_query_port()
809 spin_unlock_bh(&iboe->lock); in eth_link_query_port()
1316 spin_lock_bh(&mdev->iboe.lock); in mlx4_ib_add_mc()
1317 ndev = mdev->iboe.netdevs[mqp->port - 1]; in mlx4_ib_add_mc()
1320 spin_unlock_bh(&mdev->iboe.lock); in mlx4_ib_add_mc()
1964 spin_lock_bh(&mdev->iboe.lock); in mlx4_ib_mcg_detach()
1965 ndev = ge->added ? mdev->iboe.netdevs[ge->port - 1] : NULL; in mlx4_ib_mcg_detach()
1968 spin_unlock_bh(&mdev->iboe.lock); in mlx4_ib_mcg_detach()
2291 atomic64_set(&ibdev->iboe.mac[port - 1], new_smac); in mlx4_ib_update_qps()
2341 struct mlx4_ib_iboe *iboe; in mlx4_ib_scan_netdevs() local
2347 iboe = &ibdev->iboe; in mlx4_ib_scan_netdevs()
2349 spin_lock_bh(&iboe->lock); in mlx4_ib_scan_netdevs()
2352 iboe->netdevs[port - 1] = in mlx4_ib_scan_netdevs()
2355 if (dev == iboe->netdevs[port - 1] && in mlx4_ib_scan_netdevs()
2360 if (dev == iboe->netdevs[port - 1] && in mlx4_ib_scan_netdevs()
2371 iboe->last_port_state[port - 1] != IB_PORT_DOWN)) in mlx4_ib_scan_netdevs()
2375 iboe->last_port_state[port - 1] != IB_PORT_ACTIVE)) in mlx4_ib_scan_netdevs()
2377 iboe->last_port_state[port - 1] = port_state; in mlx4_ib_scan_netdevs()
2387 spin_unlock_bh(&iboe->lock); in mlx4_ib_scan_netdevs()
2402 ibdev = container_of(this, struct mlx4_ib_dev, iboe.nb); in mlx4_ib_netdev_event()
2633 struct mlx4_ib_iboe *iboe; in mlx4_ib_add() local
2657 iboe = &ibdev->iboe; in mlx4_ib_add()
2710 spin_lock_init(&iboe->lock); in mlx4_ib_add()
2719 iboe->last_port_state[i] = IB_PORT_DOWN; in mlx4_ib_add()
2812 atomic64_set(&iboe->mac[j - 1], ibdev->dev->caps.def_mac[j]); in mlx4_ib_add()
2827 if (!iboe->nb.notifier_call) { in mlx4_ib_add()
2828 iboe->nb.notifier_call = mlx4_ib_netdev_event; in mlx4_ib_add()
2829 err = register_netdevice_notifier(&iboe->nb); in mlx4_ib_add()
2831 iboe->nb.notifier_call = NULL; in mlx4_ib_add()
2861 if (ibdev->iboe.nb.notifier_call) { in mlx4_ib_add()
2862 if (unregister_netdevice_notifier(&ibdev->iboe.nb)) in mlx4_ib_add()
2864 ibdev->iboe.nb.notifier_call = NULL; in mlx4_ib_add()
2980 if (ibdev->iboe.nb.notifier_call) { in mlx4_ib_remove()
2981 if (unregister_netdevice_notifier(&ibdev->iboe.nb)) in mlx4_ib_remove()
2983 ibdev->iboe.nb.notifier_call = NULL; in mlx4_ib_remove()
3130 spin_lock_bh(&ibdev->iboe.lock); in handle_bonded_port_state_event()
3132 struct net_device *curr_netdev = ibdev->iboe.netdevs[i]; in handle_bonded_port_state_event()
3146 spin_unlock_bh(&ibdev->iboe.lock); in handle_bonded_port_state_event()