• Home
  • Raw
  • Download

Lines Matching refs:slave

172 			       struct net_device *slave)  in bond_create_slave_symlinks()  argument
178 ret = sysfs_create_link(&(slave->dev.kobj), &(master->dev.kobj), in bond_create_slave_symlinks()
183 sprintf(linkname, "slave_%s", slave->name); in bond_create_slave_symlinks()
184 ret = sysfs_create_link(&(master->dev.kobj), &(slave->dev.kobj), in bond_create_slave_symlinks()
189 sysfs_remove_link(&(slave->dev.kobj), "master"); in bond_create_slave_symlinks()
196 struct net_device *slave) in bond_destroy_slave_symlinks() argument
200 sysfs_remove_link(&(slave->dev.kobj), "master"); in bond_destroy_slave_symlinks()
201 sprintf(linkname, "slave_%s", slave->name); in bond_destroy_slave_symlinks()
212 struct slave *slave; in bonding_show_slaves() local
217 bond_for_each_slave(bond, slave, i) { in bonding_show_slaves()
225 res += sprintf(buf + res, "%s ", slave->dev->name); in bonding_show_slaves()
1046 struct slave *slave; in bonding_store_primary() local
1074 bond_for_each_slave(bond, slave, i) { in bonding_store_primary()
1075 if (strncmp(slave->dev->name, ifname, IFNAMSIZ) == 0) { in bonding_store_primary()
1077 bond->dev->name, slave->dev->name); in bonding_store_primary()
1078 bond->primary_slave = slave; in bonding_store_primary()
1079 strcpy(bond->params.primary, slave->dev->name); in bonding_store_primary()
1203 struct slave *curr; in bonding_show_active_slave()
1221 struct slave *slave; in bonding_store_active_slave() local
1222 struct slave *old_active = NULL; in bonding_store_active_slave()
1223 struct slave *new_active = NULL; in bonding_store_active_slave()
1251 bond_for_each_slave(bond, slave, i) { in bonding_store_active_slave()
1252 if (strncmp(slave->dev->name, ifname, IFNAMSIZ) == 0) { in bonding_store_active_slave()
1254 new_active = slave; in bonding_store_active_slave()
1260 slave->dev->name); in bonding_store_active_slave()
1271 slave->dev->name); in bonding_store_active_slave()
1280 slave->dev->name, in bonding_store_active_slave()
1281 slave->dev->name); in bonding_store_active_slave()
1311 struct slave *curr; in bonding_show_mii_status()
1437 struct slave *slave; in bonding_show_queue_id() local
1445 bond_for_each_slave(bond, slave, i) { in bonding_show_queue_id()
1454 slave->dev->name, slave->queue_id); in bonding_show_queue_id()
1471 struct slave *slave, *update_slave; in bonding_store_queue_id() local
1509 bond_for_each_slave(bond, slave, i) { in bonding_store_queue_id()
1510 if (sdev == slave->dev) in bonding_store_queue_id()
1515 update_slave = slave; in bonding_store_queue_id()
1516 else if (qid && qid == slave->queue_id) { in bonding_store_queue_id()
1563 struct slave *slave; in bonding_store_slaves_active() local
1585 bond_for_each_slave(bond, slave, i) { in bonding_store_slaves_active()
1586 if (!bond_is_active_slave(slave)) { in bonding_store_slaves_active()
1588 slave->inactive = 0; in bonding_store_slaves_active()
1590 slave->inactive = 1; in bonding_store_slaves_active()