Lines Matching refs:adj_dev
6721 static struct netdev_adjacent *__netdev_find_adj(struct net_device *adj_dev, in __netdev_find_adj() argument
6727 if (adj->dev == adj_dev) in __netdev_find_adj()
7421 struct net_device *adj_dev, in netdev_adjacent_sysfs_add() argument
7427 "upper_%s" : "lower_%s", adj_dev->name); in netdev_adjacent_sysfs_add()
7428 return sysfs_create_link(&(dev->dev.kobj), &(adj_dev->dev.kobj), in netdev_adjacent_sysfs_add()
7443 struct net_device *adj_dev, in netdev_adjacent_is_neigh_list() argument
7448 net_eq(dev_net(dev), dev_net(adj_dev)); in netdev_adjacent_is_neigh_list()
7452 struct net_device *adj_dev, in __netdev_adjacent_dev_insert() argument
7459 adj = __netdev_find_adj(adj_dev, dev_list); in __netdev_adjacent_dev_insert()
7464 dev->name, adj_dev->name, adj->ref_nr); in __netdev_adjacent_dev_insert()
7473 adj->dev = adj_dev; in __netdev_adjacent_dev_insert()
7478 netdev_hold(adj_dev, &adj->dev_tracker, GFP_KERNEL); in __netdev_adjacent_dev_insert()
7481 dev->name, adj_dev->name, adj->ref_nr, adj_dev->name); in __netdev_adjacent_dev_insert()
7483 if (netdev_adjacent_is_neigh_list(dev, adj_dev, dev_list)) { in __netdev_adjacent_dev_insert()
7484 ret = netdev_adjacent_sysfs_add(dev, adj_dev, dev_list); in __netdev_adjacent_dev_insert()
7492 &(adj_dev->dev.kobj), "master"); in __netdev_adjacent_dev_insert()
7504 if (netdev_adjacent_is_neigh_list(dev, adj_dev, dev_list)) in __netdev_adjacent_dev_insert()
7505 netdev_adjacent_sysfs_del(dev, adj_dev->name, dev_list); in __netdev_adjacent_dev_insert()
7507 netdev_put(adj_dev, &adj->dev_tracker); in __netdev_adjacent_dev_insert()
7514 struct net_device *adj_dev, in __netdev_adjacent_dev_remove() argument
7521 dev->name, adj_dev->name, ref_nr); in __netdev_adjacent_dev_remove()
7523 adj = __netdev_find_adj(adj_dev, dev_list); in __netdev_adjacent_dev_remove()
7527 dev->name, adj_dev->name); in __netdev_adjacent_dev_remove()
7534 dev->name, adj_dev->name, ref_nr, in __netdev_adjacent_dev_remove()
7543 if (netdev_adjacent_is_neigh_list(dev, adj_dev, dev_list)) in __netdev_adjacent_dev_remove()
7544 netdev_adjacent_sysfs_del(dev, adj_dev->name, dev_list); in __netdev_adjacent_dev_remove()
7548 adj_dev->name, dev->name, adj_dev->name); in __netdev_adjacent_dev_remove()
7549 netdev_put(adj_dev, &adj->dev_tracker); in __netdev_adjacent_dev_remove()