Lines Matching refs:slave
693 struct slave *slave) in __bond_option_active_slave_get() argument
695 return bond_uses_primary(bond) && slave ? slave->dev : NULL; in __bond_option_active_slave_get()
700 struct slave *slave = rcu_dereference(bond->curr_active_slave); in bond_option_active_slave_get_rcu() local
702 return __bond_option_active_slave_get(bond, slave); in bond_option_active_slave_get_rcu()
742 struct slave *old_active = rtnl_dereference(bond->curr_active_slave); in bond_option_active_slave_set()
743 struct slave *new_active = bond_slave_get_rtnl(slave_dev); in bond_option_active_slave_set()
912 struct slave *slave; in _bond_options_arp_ip_target_set() local
915 bond_for_each_slave(bond, slave, iter) in _bond_options_arp_ip_target_set()
916 slave->target_last_arp_rx[slot] = last_rx; in _bond_options_arp_ip_target_set()
960 struct slave *slave; in bond_option_arp_ip_target_rem() local
982 bond_for_each_slave(bond, slave, iter) { in bond_option_arp_ip_target_rem()
983 targets_rx = slave->target_last_arp_rx; in bond_option_arp_ip_target_rem()
1061 struct slave *slave; in bond_option_primary_set() local
1077 bond_for_each_slave(bond, slave, iter) { in bond_option_primary_set()
1078 if (strncmp(slave->dev->name, primary, IFNAMSIZ) == 0) { in bond_option_primary_set()
1080 slave->dev->name); in bond_option_primary_set()
1081 rcu_assign_pointer(bond->primary_slave, slave); in bond_option_primary_set()
1082 strcpy(bond->params.primary, slave->dev->name); in bond_option_primary_set()
1161 struct slave *slave; in bond_option_all_slaves_active_set() local
1166 bond_for_each_slave(bond, slave, iter) { in bond_option_all_slaves_active_set()
1167 if (!bond_is_active_slave(slave)) { in bond_option_all_slaves_active_set()
1169 slave->inactive = 0; in bond_option_all_slaves_active_set()
1171 slave->inactive = 1; in bond_option_all_slaves_active_set()
1239 struct slave *slave, *update_slave; in bond_option_queue_id_set() local
1270 bond_for_each_slave(bond, slave, iter) { in bond_option_queue_id_set()
1271 if (sdev == slave->dev) in bond_option_queue_id_set()
1275 update_slave = slave; in bond_option_queue_id_set()
1276 else if (qid && qid == slave->queue_id) { in bond_option_queue_id_set()