Lines Matching defs:ndev

82 	struct net_device *ndev;
90 /* Store the ndev pointer to release reference later on in
228 WARN_ON(!storage->ndev);
230 * as all callers working on gid_attr->ndev are done
233 dev_put(storage->ndev);
297 struct net_device *ndev;
303 ndev = rcu_dereference_protected(attr->ndev, 1);
304 if (ndev) {
311 dev_hold(ndev);
312 entry->ndev_storage->ndev = ndev;
356 if (!attr->ndev) {
409 rcu_assign_pointer(entry->attr.ndev, NULL);
524 attr->ndev != val->ndev)
642 struct net_device *ndev)
654 table->data_vec[ix]->attr.ndev == ndev) {
676 * @ndev: In RoCE, the net device of the device. NULL means ignore.
686 u32 port, struct net_device *ndev)
692 struct ib_gid_attr val = {.ndev = ndev, .gid_type = gid_type};
701 if (ndev)
728 * while filter is executed, ndev field is valid and the structure won't
838 struct net_device *ndev,
851 gid_attr.ndev = ndev;
860 make_default_gid(ndev, &gid);
1007 * @ndev: In RoCE, the net device of the device. NULL means ignore.
1018 struct net_device *ndev)
1022 struct ib_gid_attr gid_attr_val = {.ndev = ndev, .gid_type = gid_type};
1025 if (ndev)
1261 struct net_device *ndev;
1282 ndev = rcu_dereference_protected(
1283 gid_attr->ndev,
1285 if (ndev)
1286 entries->netdev_ifindex = ndev->ifindex;
1357 struct net_device *ndev = ERR_PTR(-EINVAL);
1368 ndev = rcu_dereference(attr->ndev);
1369 if (!ndev)
1370 ndev = ERR_PTR(-ENODEV);
1373 return ndev;
1409 struct net_device *ndev;
1412 ndev = rcu_dereference(attr->ndev);
1413 if (!ndev) {
1418 ether_addr_copy(smac, ndev->dev_addr);
1421 if (is_vlan_dev(ndev)) {
1422 *vlan_id = vlan_dev_vlan_id(ndev);
1428 netdev_walk_all_lower_dev_rcu(attr->ndev,
1462 struct net_device *ndev;
1464 ndev = ib_device_get_netdev(device, port);
1465 if (!ndev)
1467 RCU_INIT_POINTER(gid_attr.ndev, ndev);
1468 dev_put(ndev);