iboe             1009 drivers/infiniband/hw/hns/hns_roce_device.h 	struct hns_roce_ib_iboe iboe;
iboe              786 drivers/infiniband/hw/hns/hns_roce_hw_v1.c 			if (hr_dev->iboe.phy_port[j] == phy_port) {
iboe             1749 drivers/infiniband/hw/hns/hns_roce_hw_v1.c 	spin_lock_irqsave(&hr_dev->iboe.lock, flags);
iboe             1767 drivers/infiniband/hw/hns/hns_roce_hw_v1.c 	spin_unlock_irqrestore(&hr_dev->iboe.lock, flags);
iboe             3301 drivers/infiniband/hw/hns/hns_roce_hw_v1.c 		hr_qp->phy_port = hr_dev->iboe.phy_port[hr_qp->port];
iboe             4586 drivers/infiniband/hw/hns/hns_roce_hw_v1.c 				hr_dev->iboe.netdevs[port_cnt] = netdev;
iboe             4587 drivers/infiniband/hw/hns/hns_roce_hw_v1.c 				hr_dev->iboe.phy_port[port_cnt] = phy_port;
iboe             4381 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 		hr_qp->phy_port = hr_dev->iboe.phy_port[hr_qp->port];
iboe             6395 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 	hr_dev->iboe.netdevs[0] = handle->rinfo.netdev;
iboe             6396 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 	hr_dev->iboe.phy_port[0] = 0;
iboe             6399 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 			    hr_dev->iboe.netdevs[0]->dev_addr);
iboe               72 drivers/infiniband/hw/hns/hns_roce_main.c 	phy_port = hr_dev->iboe.phy_port[port];
iboe              112 drivers/infiniband/hw/hns/hns_roce_main.c 	netdev = hr_dev->iboe.netdevs[port];
iboe              142 drivers/infiniband/hw/hns/hns_roce_main.c 	struct hns_roce_ib_iboe *iboe = NULL;
iboe              147 drivers/infiniband/hw/hns/hns_roce_main.c 	hr_dev = container_of(self, struct hns_roce_dev, iboe.nb);
iboe              148 drivers/infiniband/hw/hns/hns_roce_main.c 	iboe = &hr_dev->iboe;
iboe              151 drivers/infiniband/hw/hns/hns_roce_main.c 		if (dev == iboe->netdevs[port]) {
iboe              169 drivers/infiniband/hw/hns/hns_roce_main.c 			hr_dev->hw->set_mtu(hr_dev, hr_dev->iboe.phy_port[i],
iboe              172 drivers/infiniband/hw/hns/hns_roce_main.c 				       hr_dev->iboe.netdevs[i]->dev_addr);
iboe              251 drivers/infiniband/hw/hns/hns_roce_main.c 	spin_lock_irqsave(&hr_dev->iboe.lock, flags);
iboe              253 drivers/infiniband/hw/hns/hns_roce_main.c 	net_dev = hr_dev->iboe.netdevs[port];
iboe              255 drivers/infiniband/hw/hns/hns_roce_main.c 		spin_unlock_irqrestore(&hr_dev->iboe.lock, flags);
iboe              268 drivers/infiniband/hw/hns/hns_roce_main.c 	spin_unlock_irqrestore(&hr_dev->iboe.lock, flags);
iboe              409 drivers/infiniband/hw/hns/hns_roce_main.c 	struct hns_roce_ib_iboe *iboe = &hr_dev->iboe;
iboe              412 drivers/infiniband/hw/hns/hns_roce_main.c 	unregister_netdevice_notifier(&iboe->nb);
iboe              479 drivers/infiniband/hw/hns/hns_roce_main.c 	struct hns_roce_ib_iboe *iboe = NULL;
iboe              484 drivers/infiniband/hw/hns/hns_roce_main.c 	iboe = &hr_dev->iboe;
iboe              485 drivers/infiniband/hw/hns/hns_roce_main.c 	spin_lock_init(&iboe->lock);
iboe              546 drivers/infiniband/hw/hns/hns_roce_main.c 		if (!hr_dev->iboe.netdevs[i])
iboe              549 drivers/infiniband/hw/hns/hns_roce_main.c 		ret = ib_device_set_netdev(ib_dev, hr_dev->iboe.netdevs[i],
iboe              566 drivers/infiniband/hw/hns/hns_roce_main.c 	iboe->nb.notifier_call = hns_roce_netdev_event;
iboe              567 drivers/infiniband/hw/hns/hns_roce_main.c 	ret = register_netdevice_notifier(&iboe->nb);
iboe             1058 drivers/infiniband/hw/hns/hns_roce_qp.c 		hr_qp->phy_port = hr_dev->iboe.phy_port[hr_qp->port];
iboe             1063 drivers/infiniband/hw/hns/hns_roce_qp.c 					     hr_dev->iboe.phy_port[hr_qp->port];
iboe             1113 drivers/infiniband/hw/hns/hns_roce_qp.c 	active_mtu = iboe_get_mtu(hr_dev->iboe.netdevs[p]->mtu);
iboe              259 drivers/infiniband/hw/mlx4/main.c 	struct mlx4_ib_iboe *iboe = &ibdev->iboe;
iboe              276 drivers/infiniband/hw/mlx4/main.c 	port_gid_table = &iboe->gids[attr->port_num - 1];
iboe              277 drivers/infiniband/hw/mlx4/main.c 	spin_lock_bh(&iboe->lock);
iboe              325 drivers/infiniband/hw/mlx4/main.c 	spin_unlock_bh(&iboe->lock);
iboe              330 drivers/infiniband/hw/mlx4/main.c 			spin_lock_bh(&iboe->lock);
iboe              333 drivers/infiniband/hw/mlx4/main.c 			spin_unlock_bh(&iboe->lock);
iboe              345 drivers/infiniband/hw/mlx4/main.c 	struct mlx4_ib_iboe *iboe = &ibdev->iboe;
iboe              357 drivers/infiniband/hw/mlx4/main.c 	port_gid_table = &iboe->gids[attr->port_num - 1];
iboe              358 drivers/infiniband/hw/mlx4/main.c 	spin_lock_bh(&iboe->lock);
iboe              385 drivers/infiniband/hw/mlx4/main.c 	spin_unlock_bh(&iboe->lock);
iboe              397 drivers/infiniband/hw/mlx4/main.c 	struct mlx4_ib_iboe *iboe = &ibdev->iboe;
iboe              414 drivers/infiniband/hw/mlx4/main.c 	spin_lock_irqsave(&iboe->lock, flags);
iboe              415 drivers/infiniband/hw/mlx4/main.c 	port_gid_table = &iboe->gids[port_num - 1];
iboe              426 drivers/infiniband/hw/mlx4/main.c 	spin_unlock_irqrestore(&iboe->lock, flags);
iboe              758 drivers/infiniband/hw/mlx4/main.c 	struct mlx4_ib_iboe *iboe = &mdev->iboe;
iboe              790 drivers/infiniband/hw/mlx4/main.c 	spin_lock_bh(&iboe->lock);
iboe              791 drivers/infiniband/hw/mlx4/main.c 	ndev = iboe->netdevs[port - 1];
iboe              807 drivers/infiniband/hw/mlx4/main.c 	spin_unlock_bh(&iboe->lock);
iboe             1316 drivers/infiniband/hw/mlx4/main.c 	spin_lock_bh(&mdev->iboe.lock);
iboe             1317 drivers/infiniband/hw/mlx4/main.c 	ndev = mdev->iboe.netdevs[mqp->port - 1];
iboe             1320 drivers/infiniband/hw/mlx4/main.c 	spin_unlock_bh(&mdev->iboe.lock);
iboe             1980 drivers/infiniband/hw/mlx4/main.c 		spin_lock_bh(&mdev->iboe.lock);
iboe             1981 drivers/infiniband/hw/mlx4/main.c 		ndev = ge->added ? mdev->iboe.netdevs[ge->port - 1] : NULL;
iboe             1984 drivers/infiniband/hw/mlx4/main.c 		spin_unlock_bh(&mdev->iboe.lock);
iboe             2284 drivers/infiniband/hw/mlx4/main.c 	atomic64_set(&ibdev->iboe.mac[port - 1], new_smac);
iboe             2334 drivers/infiniband/hw/mlx4/main.c 	struct mlx4_ib_iboe *iboe;
iboe             2340 drivers/infiniband/hw/mlx4/main.c 	iboe = &ibdev->iboe;
iboe             2342 drivers/infiniband/hw/mlx4/main.c 	spin_lock_bh(&iboe->lock);
iboe             2345 drivers/infiniband/hw/mlx4/main.c 		iboe->netdevs[port - 1] =
iboe             2348 drivers/infiniband/hw/mlx4/main.c 		if (dev == iboe->netdevs[port - 1] &&
iboe             2353 drivers/infiniband/hw/mlx4/main.c 		if (dev == iboe->netdevs[port - 1] &&
iboe             2364 drivers/infiniband/hw/mlx4/main.c 			     iboe->last_port_state[port - 1] != IB_PORT_DOWN))
iboe             2368 drivers/infiniband/hw/mlx4/main.c 			     iboe->last_port_state[port - 1] != IB_PORT_ACTIVE))
iboe             2370 drivers/infiniband/hw/mlx4/main.c 			iboe->last_port_state[port - 1] = port_state;
iboe             2380 drivers/infiniband/hw/mlx4/main.c 	spin_unlock_bh(&iboe->lock);
iboe             2395 drivers/infiniband/hw/mlx4/main.c 	ibdev = container_of(this, struct mlx4_ib_dev, iboe.nb);
iboe             2624 drivers/infiniband/hw/mlx4/main.c 	struct mlx4_ib_iboe *iboe;
iboe             2648 drivers/infiniband/hw/mlx4/main.c 	iboe = &ibdev->iboe;
iboe             2752 drivers/infiniband/hw/mlx4/main.c 	spin_lock_init(&iboe->lock);
iboe             2761 drivers/infiniband/hw/mlx4/main.c 		iboe->last_port_state[i] = IB_PORT_DOWN;
iboe             2854 drivers/infiniband/hw/mlx4/main.c 		atomic64_set(&iboe->mac[j - 1], ibdev->dev->caps.def_mac[j]);
iboe             2869 drivers/infiniband/hw/mlx4/main.c 	if (!iboe->nb.notifier_call) {
iboe             2870 drivers/infiniband/hw/mlx4/main.c 		iboe->nb.notifier_call = mlx4_ib_netdev_event;
iboe             2871 drivers/infiniband/hw/mlx4/main.c 		err = register_netdevice_notifier(&iboe->nb);
iboe             2873 drivers/infiniband/hw/mlx4/main.c 			iboe->nb.notifier_call = NULL;
iboe             2903 drivers/infiniband/hw/mlx4/main.c 	if (ibdev->iboe.nb.notifier_call) {
iboe             2904 drivers/infiniband/hw/mlx4/main.c 		if (unregister_netdevice_notifier(&ibdev->iboe.nb))
iboe             2906 drivers/infiniband/hw/mlx4/main.c 		ibdev->iboe.nb.notifier_call = NULL;
iboe             3024 drivers/infiniband/hw/mlx4/main.c 	if (ibdev->iboe.nb.notifier_call) {
iboe             3025 drivers/infiniband/hw/mlx4/main.c 		if (unregister_netdevice_notifier(&ibdev->iboe.nb))
iboe             3027 drivers/infiniband/hw/mlx4/main.c 		ibdev->iboe.nb.notifier_call = NULL;
iboe             3174 drivers/infiniband/hw/mlx4/main.c 	spin_lock_bh(&ibdev->iboe.lock);
iboe             3176 drivers/infiniband/hw/mlx4/main.c 		struct net_device *curr_netdev = ibdev->iboe.netdevs[i];
iboe             3190 drivers/infiniband/hw/mlx4/main.c 	spin_unlock_bh(&ibdev->iboe.lock);
iboe              600 drivers/infiniband/hw/mlx4/mlx4_ib.h 	struct mlx4_ib_iboe	iboe;
iboe             1956 drivers/infiniband/hw/mlx4/qp.c 	u64_mac = atomic64_read(&dev->iboe.mac[qp->port - 1]);
iboe             3016 drivers/infiniband/hw/mlx4/qp.c 	struct mlx4_ib_iboe *iboe = &ibdev->iboe;
iboe             3020 drivers/infiniband/hw/mlx4/qp.c 	port_gid_table = &iboe->gids[port_num - 1];
iboe             3021 drivers/infiniband/hw/mlx4/qp.c 	spin_lock_irqsave(&iboe->lock, flags);
iboe             3024 drivers/infiniband/hw/mlx4/qp.c 	spin_unlock_irqrestore(&iboe->lock, flags);