Lines Matching refs:newval
22 const struct bond_opt_value *newval);
24 const struct bond_opt_value *newval);
26 const struct bond_opt_value *newval);
28 const struct bond_opt_value *newval);
30 const struct bond_opt_value *newval);
32 const struct bond_opt_value *newval);
36 const struct bond_opt_value *newval);
38 const struct bond_opt_value *newval);
40 const struct bond_opt_value *newval);
42 const struct bond_opt_value *newval);
44 const struct bond_opt_value *newval);
46 const struct bond_opt_value *newval);
48 const struct bond_opt_value *newval);
50 const struct bond_opt_value *newval);
52 const struct bond_opt_value *newval);
54 const struct bond_opt_value *newval);
56 const struct bond_opt_value *newval);
58 const struct bond_opt_value *newval);
60 const struct bond_opt_value *newval);
62 const struct bond_opt_value *newval);
64 const struct bond_opt_value *newval);
66 const struct bond_opt_value *newval);
68 const struct bond_opt_value *newval);
70 const struct bond_opt_value *newval);
72 const struct bond_opt_value *newval);
74 const struct bond_opt_value *newval);
76 const struct bond_opt_value *newval);
78 const struct bond_opt_value *newval);
720 const struct bond_opt_value *newval) in bond_option_mode_set() argument
722 if (!bond_mode_uses_arp(newval->value) && bond->params.arp_interval) { in bond_option_mode_set()
724 newval->string); in bond_option_mode_set()
735 bond->params.mode = newval->value; in bond_option_mode_set()
741 const struct bond_opt_value *newval) in bond_option_active_slave_set() argument
747 sscanf(newval->string, "%15s", ifname); /* IFNAMSIZ */ in bond_option_active_slave_set()
748 if (!strlen(ifname) || newval->string[0] == '\n') { in bond_option_active_slave_set()
810 const struct bond_opt_value *newval) in bond_option_miimon_set() argument
813 newval->value); in bond_option_miimon_set()
814 bond->params.miimon = newval->value; in bond_option_miimon_set()
821 if (newval->value && bond->params.arp_interval) { in bond_option_miimon_set()
833 if (!newval->value) { in bond_option_miimon_set()
849 const struct bond_opt_value *newval) in bond_option_updelay_set() argument
851 int value = newval->value; in bond_option_updelay_set()
871 const struct bond_opt_value *newval) in bond_option_downdelay_set() argument
873 int value = newval->value; in bond_option_downdelay_set()
893 const struct bond_opt_value *newval) in bond_option_use_carrier_set() argument
896 newval->value); in bond_option_use_carrier_set()
897 bond->params.use_carrier = newval->value; in bond_option_use_carrier_set()
907 const struct bond_opt_value *newval) in bond_option_arp_interval_set() argument
910 newval->value); in bond_option_arp_interval_set()
911 bond->params.arp_interval = newval->value; in bond_option_arp_interval_set()
912 if (newval->value) { in bond_option_arp_interval_set()
926 if (!newval->value) { in bond_option_arp_interval_set()
1039 const struct bond_opt_value *newval) in bond_option_arp_ip_targets_set() argument
1044 if (newval->string) { in bond_option_arp_ip_targets_set()
1045 if (!in4_pton(newval->string+1, -1, (u8 *)&target, -1, NULL)) { in bond_option_arp_ip_targets_set()
1050 if (newval->string[0] == '+') in bond_option_arp_ip_targets_set()
1052 else if (newval->string[0] == '-') in bond_option_arp_ip_targets_set()
1057 target = newval->value; in bond_option_arp_ip_targets_set()
1065 const struct bond_opt_value *newval) in bond_option_arp_validate_set() argument
1068 newval->string, newval->value); in bond_option_arp_validate_set()
1071 if (!newval->value) in bond_option_arp_validate_set()
1076 bond->params.arp_validate = newval->value; in bond_option_arp_validate_set()
1082 const struct bond_opt_value *newval) in bond_option_arp_all_targets_set() argument
1085 newval->string, newval->value); in bond_option_arp_all_targets_set()
1086 bond->params.arp_all_targets = newval->value; in bond_option_arp_all_targets_set()
1092 const struct bond_opt_value *newval) in bond_option_primary_set() argument
1094 char *p, *primary = newval->string; in bond_option_primary_set()
1141 const struct bond_opt_value *newval) in bond_option_primary_reselect_set() argument
1144 newval->string, newval->value); in bond_option_primary_reselect_set()
1145 bond->params.primary_reselect = newval->value; in bond_option_primary_reselect_set()
1155 const struct bond_opt_value *newval) in bond_option_fail_over_mac_set() argument
1158 newval->string, newval->value); in bond_option_fail_over_mac_set()
1159 bond->params.fail_over_mac = newval->value; in bond_option_fail_over_mac_set()
1165 const struct bond_opt_value *newval) in bond_option_xmit_hash_policy_set() argument
1168 newval->string, newval->value); in bond_option_xmit_hash_policy_set()
1169 bond->params.xmit_policy = newval->value; in bond_option_xmit_hash_policy_set()
1175 const struct bond_opt_value *newval) in bond_option_resend_igmp_set() argument
1178 newval->value); in bond_option_resend_igmp_set()
1179 bond->params.resend_igmp = newval->value; in bond_option_resend_igmp_set()
1185 const struct bond_opt_value *newval) in bond_option_num_peer_notif_set() argument
1187 bond->params.num_peer_notif = newval->value; in bond_option_num_peer_notif_set()
1193 const struct bond_opt_value *newval) in bond_option_all_slaves_active_set() argument
1198 if (newval->value == bond->params.all_slaves_active) in bond_option_all_slaves_active_set()
1200 bond->params.all_slaves_active = newval->value; in bond_option_all_slaves_active_set()
1203 if (newval->value) in bond_option_all_slaves_active_set()
1214 const struct bond_opt_value *newval) in bond_option_min_links_set() argument
1217 newval->value); in bond_option_min_links_set()
1218 bond->params.min_links = newval->value; in bond_option_min_links_set()
1225 const struct bond_opt_value *newval) in bond_option_lp_interval_set() argument
1227 bond->params.lp_interval = newval->value; in bond_option_lp_interval_set()
1233 const struct bond_opt_value *newval) in bond_option_pps_set() argument
1235 bond->params.packets_per_slave = newval->value; in bond_option_pps_set()
1236 if (newval->value > 0) { in bond_option_pps_set()
1238 reciprocal_value(newval->value); in bond_option_pps_set()
1251 const struct bond_opt_value *newval) in bond_option_lacp_rate_set() argument
1254 newval->string, newval->value); in bond_option_lacp_rate_set()
1255 bond->params.lacp_fast = newval->value; in bond_option_lacp_rate_set()
1262 const struct bond_opt_value *newval) in bond_option_ad_select_set() argument
1265 newval->string, newval->value); in bond_option_ad_select_set()
1266 bond->params.ad_select = newval->value; in bond_option_ad_select_set()
1272 const struct bond_opt_value *newval) in bond_option_queue_id_set() argument
1282 delim = strchr(newval->string, ':'); in bond_option_queue_id_set()
1294 if (!dev_valid_name(newval->string) || in bond_option_queue_id_set()
1299 sdev = __dev_get_by_name(dev_net(bond->dev), newval->string); in bond_option_queue_id_set()
1333 const struct bond_opt_value *newval) in bond_option_slaves_set() argument
1340 sscanf(newval->string, "%16s", command); /* IFNAMSIZ*/ in bond_option_slaves_set()
1379 const struct bond_opt_value *newval) in bond_option_tlb_dynamic_lb_set() argument
1382 newval->string, newval->value); in bond_option_tlb_dynamic_lb_set()
1383 bond->params.tlb_dynamic_lb = newval->value; in bond_option_tlb_dynamic_lb_set()
1389 const struct bond_opt_value *newval) in bond_option_ad_actor_sys_prio_set() argument
1392 newval->value); in bond_option_ad_actor_sys_prio_set()
1394 bond->params.ad_actor_sys_prio = newval->value; in bond_option_ad_actor_sys_prio_set()
1399 const struct bond_opt_value *newval) in bond_option_ad_actor_system_set() argument
1405 if (newval->string) { in bond_option_ad_actor_system_set()
1406 i = sscanf(newval->string, "%hhx:%hhx:%hhx:%hhx:%hhx:%hhx", in bond_option_ad_actor_system_set()
1413 mac = (u8 *)&newval->value; in bond_option_ad_actor_system_set()
1429 const struct bond_opt_value *newval) in bond_option_ad_user_port_key_set() argument
1432 newval->value); in bond_option_ad_user_port_key_set()
1434 bond->params.ad_user_port_key = newval->value; in bond_option_ad_user_port_key_set()