Lines Matching refs:bn
54 struct bond_net *bn = in bonding_show_bonds() local
61 list_for_each_entry(bond, &bn->dev_list, bond_list) { in bonding_show_bonds()
78 static struct net_device *bond_get_by_name(struct bond_net *bn, const char *ifname) in bond_get_by_name() argument
82 list_for_each_entry(bond, &bn->dev_list, bond_list) { in bond_get_by_name()
98 struct bond_net *bn = in bonding_store_bonds() local
112 rv = bond_create(bn->net, ifname); in bonding_store_bonds()
124 bond_dev = bond_get_by_name(bn, ifname); in bonding_store_bonds()
770 int bond_create_sysfs(struct bond_net *bn) in bond_create_sysfs() argument
774 bn->class_attr_bonding_masters = class_attr_bonding_masters; in bond_create_sysfs()
775 sysfs_attr_init(&bn->class_attr_bonding_masters.attr); in bond_create_sysfs()
777 ret = netdev_class_create_file_ns(&bn->class_attr_bonding_masters, in bond_create_sysfs()
778 bn->net); in bond_create_sysfs()
791 if (__dev_get_by_name(bn->net, in bond_create_sysfs()
803 void bond_destroy_sysfs(struct bond_net *bn) in bond_destroy_sysfs() argument
805 netdev_class_remove_file_ns(&bn->class_attr_bonding_masters, bn->net); in bond_destroy_sysfs()