Lines Matching refs:iboe

349 	struct mlx4_ib_iboe *iboe = &mdev->iboe;  in eth_link_query_port()  local
380 spin_lock_bh(&iboe->lock); in eth_link_query_port()
381 ndev = iboe->netdevs[port - 1]; in eth_link_query_port()
394 spin_unlock_bh(&iboe->lock); in eth_link_query_port()
484 *gid = dev->iboe.gid_table[port - 1][index]; in iboe_query_gid()
839 spin_lock_bh(&mdev->iboe.lock); in mlx4_ib_add_mc()
840 ndev = mdev->iboe.netdevs[mqp->port - 1]; in mlx4_ib_add_mc()
843 spin_unlock_bh(&mdev->iboe.lock); in mlx4_ib_add_mc()
1390 spin_lock_bh(&mdev->iboe.lock); in mlx4_ib_mcg_detach()
1391 ndev = ge->added ? mdev->iboe.netdevs[ge->port - 1] : NULL; in mlx4_ib_mcg_detach()
1394 spin_unlock_bh(&mdev->iboe.lock); in mlx4_ib_mcg_detach()
1596 if (!memcmp(&dev->iboe.gid_table[port - 1][i], gid, in update_gid_table()
1603 dev->iboe.gid_table[port - 1][found] = in update_gid_table()
1612 !memcmp(&dev->iboe.gid_table[port - 1][i], in update_gid_table()
1620 dev->iboe.gid_table[port - 1][free] = *gid; in update_gid_table()
1631 memcpy(work->gids, dev->iboe.gid_table[port - 1], sizeof(work->gids)); in update_gid_table()
1655 memset(dev->iboe.gid_table[port - 1], 0, sizeof(work->gids)); in reset_gid_table()
1667 struct mlx4_ib_iboe *iboe; in mlx4_ib_addr_event() local
1687 iboe = &ibdev->iboe; in mlx4_ib_addr_event()
1688 spin_lock_bh(&iboe->lock); in mlx4_ib_addr_event()
1692 (real_dev == iboe->masters[port - 1])) || in mlx4_ib_addr_event()
1694 (real_dev == iboe->netdevs[port - 1]))) in mlx4_ib_addr_event()
1698 spin_unlock_bh(&iboe->lock); in mlx4_ib_addr_event()
1707 struct mlx4_ib_iboe *iboe; in mlx4_ib_get_dev_port() local
1711 iboe = &ibdev->iboe; in mlx4_ib_get_dev_port()
1715 (real_dev == iboe->masters[port - 1])) || in mlx4_ib_get_dev_port()
1717 (real_dev == iboe->netdevs[port - 1]))) in mlx4_ib_get_dev_port()
1736 ibdev = container_of(this, struct mlx4_ib_dev, iboe.nb_inet); in mlx4_ib_inet_event()
1751 ibdev = container_of(this, struct mlx4_ib_dev, iboe.nb_inet6); in mlx4_ib_inet6_event()
1771 atomic64_set(&ibdev->iboe.mac[port - 1], new_smac); in mlx4_ib_update_qps()
1873 struct mlx4_ib_iboe *iboe = &ibdev->iboe; in mlx4_ib_init_gid_table() local
1887 spin_lock_bh(&iboe->lock); in mlx4_ib_init_gid_table()
1898 spin_unlock_bh(&iboe->lock); in mlx4_ib_init_gid_table()
1909 struct mlx4_ib_iboe *iboe; in mlx4_ib_scan_netdevs() local
1913 iboe = &ibdev->iboe; in mlx4_ib_scan_netdevs()
1915 spin_lock_bh(&iboe->lock); in mlx4_ib_scan_netdevs()
1918 struct net_device *old_master = iboe->masters[port - 1]; in mlx4_ib_scan_netdevs()
1922 iboe->netdevs[port - 1] = in mlx4_ib_scan_netdevs()
1924 if (iboe->netdevs[port - 1]) in mlx4_ib_scan_netdevs()
1926 iboe->netdevs[port - 1], port); in mlx4_ib_scan_netdevs()
1927 curr_netdev = iboe->netdevs[port - 1]; in mlx4_ib_scan_netdevs()
1929 if (iboe->netdevs[port - 1] && in mlx4_ib_scan_netdevs()
1930 netif_is_bond_slave(iboe->netdevs[port - 1])) { in mlx4_ib_scan_netdevs()
1931 iboe->masters[port - 1] = netdev_master_upper_dev_get( in mlx4_ib_scan_netdevs()
1932 iboe->netdevs[port - 1]); in mlx4_ib_scan_netdevs()
1934 iboe->masters[port - 1] = NULL; in mlx4_ib_scan_netdevs()
1936 curr_master = iboe->masters[port - 1]; in mlx4_ib_scan_netdevs()
1938 if (dev == iboe->netdevs[port - 1] && in mlx4_ib_scan_netdevs()
1988 spin_unlock_bh(&iboe->lock); in mlx4_ib_scan_netdevs()
2003 ibdev = container_of(this, struct mlx4_ib_dev, iboe.nb); in mlx4_ib_netdev_event()
2123 struct mlx4_ib_iboe *iboe; in mlx4_ib_add() local
2144 iboe = &ibdev->iboe; in mlx4_ib_add()
2283 spin_lock_init(&iboe->lock); in mlx4_ib_add()
2343 atomic64_set(&iboe->mac[j - 1], ibdev->dev->caps.def_mac[j]); in mlx4_ib_add()
2355 if (!iboe->nb.notifier_call) { in mlx4_ib_add()
2356 iboe->nb.notifier_call = mlx4_ib_netdev_event; in mlx4_ib_add()
2357 err = register_netdevice_notifier(&iboe->nb); in mlx4_ib_add()
2359 iboe->nb.notifier_call = NULL; in mlx4_ib_add()
2363 if (!iboe->nb_inet.notifier_call) { in mlx4_ib_add()
2364 iboe->nb_inet.notifier_call = mlx4_ib_inet_event; in mlx4_ib_add()
2365 err = register_inetaddr_notifier(&iboe->nb_inet); in mlx4_ib_add()
2367 iboe->nb_inet.notifier_call = NULL; in mlx4_ib_add()
2372 if (!iboe->nb_inet6.notifier_call) { in mlx4_ib_add()
2373 iboe->nb_inet6.notifier_call = mlx4_ib_inet6_event; in mlx4_ib_add()
2374 err = register_inet6addr_notifier(&iboe->nb_inet6); in mlx4_ib_add()
2376 iboe->nb_inet6.notifier_call = NULL; in mlx4_ib_add()
2408 if (ibdev->iboe.nb.notifier_call) { in mlx4_ib_add()
2409 if (unregister_netdevice_notifier(&ibdev->iboe.nb)) in mlx4_ib_add()
2411 ibdev->iboe.nb.notifier_call = NULL; in mlx4_ib_add()
2413 if (ibdev->iboe.nb_inet.notifier_call) { in mlx4_ib_add()
2414 if (unregister_inetaddr_notifier(&ibdev->iboe.nb_inet)) in mlx4_ib_add()
2416 ibdev->iboe.nb_inet.notifier_call = NULL; in mlx4_ib_add()
2419 if (ibdev->iboe.nb_inet6.notifier_call) { in mlx4_ib_add()
2420 if (unregister_inet6addr_notifier(&ibdev->iboe.nb_inet6)) in mlx4_ib_add()
2422 ibdev->iboe.nb_inet6.notifier_call = NULL; in mlx4_ib_add()
2536 if (ibdev->iboe.nb.notifier_call) { in mlx4_ib_remove()
2537 if (unregister_netdevice_notifier(&ibdev->iboe.nb)) in mlx4_ib_remove()
2539 ibdev->iboe.nb.notifier_call = NULL; in mlx4_ib_remove()
2548 if (ibdev->iboe.nb_inet.notifier_call) { in mlx4_ib_remove()
2549 if (unregister_inetaddr_notifier(&ibdev->iboe.nb_inet)) in mlx4_ib_remove()
2551 ibdev->iboe.nb_inet.notifier_call = NULL; in mlx4_ib_remove()
2554 if (ibdev->iboe.nb_inet6.notifier_call) { in mlx4_ib_remove()
2555 if (unregister_inet6addr_notifier(&ibdev->iboe.nb_inet6)) in mlx4_ib_remove()
2557 ibdev->iboe.nb_inet6.notifier_call = NULL; in mlx4_ib_remove()
2697 spin_lock_bh(&ibdev->iboe.lock); in handle_bonded_port_state_event()
2699 struct net_device *curr_netdev = ibdev->iboe.netdevs[i]; in handle_bonded_port_state_event()
2713 spin_unlock_bh(&ibdev->iboe.lock); in handle_bonded_port_state_event()