Lines Matching refs:bn
38 struct bond_net *bn = in bonding_show_bonds() local
45 list_for_each_entry(bond, &bn->dev_list, bond_list) { in bonding_show_bonds()
62 static struct net_device *bond_get_by_name(struct bond_net *bn, const char *ifname) in bond_get_by_name() argument
66 list_for_each_entry(bond, &bn->dev_list, bond_list) { in bond_get_by_name()
82 struct bond_net *bn = in bonding_store_bonds() local
96 rv = bond_create(bn->net, ifname); in bonding_store_bonds()
108 bond_dev = bond_get_by_name(bn, ifname); in bonding_store_bonds()
806 int bond_create_sysfs(struct bond_net *bn) in bond_create_sysfs() argument
810 bn->class_attr_bonding_masters = class_attr_bonding_masters; in bond_create_sysfs()
811 sysfs_attr_init(&bn->class_attr_bonding_masters.attr); in bond_create_sysfs()
813 ret = netdev_class_create_file_ns(&bn->class_attr_bonding_masters, in bond_create_sysfs()
814 bn->net); in bond_create_sysfs()
827 if (netdev_name_in_use(bn->net, in bond_create_sysfs()
839 void bond_destroy_sysfs(struct bond_net *bn) in bond_destroy_sysfs() argument
841 netdev_class_remove_file_ns(&bn->class_attr_bonding_masters, bn->net); in bond_destroy_sysfs()