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);
672 const struct bond_opt_value *newval) in bond_option_mode_set() argument
674 if (!bond_mode_uses_arp(newval->value) && bond->params.arp_interval) { in bond_option_mode_set()
676 newval->string); in bond_option_mode_set()
687 bond->params.mode = newval->value; in bond_option_mode_set()
706 const struct bond_opt_value *newval) in bond_option_active_slave_set() argument
712 sscanf(newval->string, "%15s", ifname); /* IFNAMSIZ */ in bond_option_active_slave_set()
713 if (!strlen(ifname) || newval->string[0] == '\n') { in bond_option_active_slave_set()
775 const struct bond_opt_value *newval) in bond_option_miimon_set() argument
778 newval->value); in bond_option_miimon_set()
779 bond->params.miimon = newval->value; in bond_option_miimon_set()
786 if (newval->value && bond->params.arp_interval) { in bond_option_miimon_set()
798 if (!newval->value) { in bond_option_miimon_set()
814 const struct bond_opt_value *newval) in bond_option_updelay_set() argument
816 int value = newval->value; in bond_option_updelay_set()
836 const struct bond_opt_value *newval) in bond_option_downdelay_set() argument
838 int value = newval->value; in bond_option_downdelay_set()
858 const struct bond_opt_value *newval) in bond_option_use_carrier_set() argument
861 newval->value); in bond_option_use_carrier_set()
862 bond->params.use_carrier = newval->value; in bond_option_use_carrier_set()
872 const struct bond_opt_value *newval) in bond_option_arp_interval_set() argument
875 newval->value); in bond_option_arp_interval_set()
876 bond->params.arp_interval = newval->value; in bond_option_arp_interval_set()
877 if (newval->value) { in bond_option_arp_interval_set()
891 if (!newval->value) { in bond_option_arp_interval_set()
1004 const struct bond_opt_value *newval) in bond_option_arp_ip_targets_set() argument
1009 if (newval->string) { in bond_option_arp_ip_targets_set()
1010 if (!in4_pton(newval->string+1, -1, (u8 *)&target, -1, NULL)) { in bond_option_arp_ip_targets_set()
1015 if (newval->string[0] == '+') in bond_option_arp_ip_targets_set()
1017 else if (newval->string[0] == '-') in bond_option_arp_ip_targets_set()
1022 target = newval->value; in bond_option_arp_ip_targets_set()
1030 const struct bond_opt_value *newval) in bond_option_arp_validate_set() argument
1033 newval->string, newval->value); in bond_option_arp_validate_set()
1036 if (!newval->value) in bond_option_arp_validate_set()
1041 bond->params.arp_validate = newval->value; in bond_option_arp_validate_set()
1047 const struct bond_opt_value *newval) in bond_option_arp_all_targets_set() argument
1050 newval->string, newval->value); in bond_option_arp_all_targets_set()
1051 bond->params.arp_all_targets = newval->value; in bond_option_arp_all_targets_set()
1057 const struct bond_opt_value *newval) in bond_option_primary_set() argument
1059 char *p, *primary = newval->string; in bond_option_primary_set()
1106 const struct bond_opt_value *newval) in bond_option_primary_reselect_set() argument
1109 newval->string, newval->value); in bond_option_primary_reselect_set()
1110 bond->params.primary_reselect = newval->value; in bond_option_primary_reselect_set()
1120 const struct bond_opt_value *newval) in bond_option_fail_over_mac_set() argument
1123 newval->string, newval->value); in bond_option_fail_over_mac_set()
1124 bond->params.fail_over_mac = newval->value; in bond_option_fail_over_mac_set()
1130 const struct bond_opt_value *newval) in bond_option_xmit_hash_policy_set() argument
1133 newval->string, newval->value); in bond_option_xmit_hash_policy_set()
1134 bond->params.xmit_policy = newval->value; in bond_option_xmit_hash_policy_set()
1140 const struct bond_opt_value *newval) in bond_option_resend_igmp_set() argument
1143 newval->value); in bond_option_resend_igmp_set()
1144 bond->params.resend_igmp = newval->value; in bond_option_resend_igmp_set()
1150 const struct bond_opt_value *newval) in bond_option_num_peer_notif_set() argument
1152 bond->params.num_peer_notif = newval->value; in bond_option_num_peer_notif_set()
1158 const struct bond_opt_value *newval) in bond_option_all_slaves_active_set() argument
1163 if (newval->value == bond->params.all_slaves_active) in bond_option_all_slaves_active_set()
1165 bond->params.all_slaves_active = newval->value; in bond_option_all_slaves_active_set()
1168 if (newval->value) in bond_option_all_slaves_active_set()
1179 const struct bond_opt_value *newval) in bond_option_min_links_set() argument
1182 newval->value); in bond_option_min_links_set()
1183 bond->params.min_links = newval->value; in bond_option_min_links_set()
1190 const struct bond_opt_value *newval) in bond_option_lp_interval_set() argument
1192 bond->params.lp_interval = newval->value; in bond_option_lp_interval_set()
1198 const struct bond_opt_value *newval) in bond_option_pps_set() argument
1200 bond->params.packets_per_slave = newval->value; in bond_option_pps_set()
1201 if (newval->value > 0) { in bond_option_pps_set()
1203 reciprocal_value(newval->value); in bond_option_pps_set()
1216 const struct bond_opt_value *newval) in bond_option_lacp_rate_set() argument
1219 newval->string, newval->value); in bond_option_lacp_rate_set()
1220 bond->params.lacp_fast = newval->value; in bond_option_lacp_rate_set()
1227 const struct bond_opt_value *newval) in bond_option_ad_select_set() argument
1230 newval->string, newval->value); in bond_option_ad_select_set()
1231 bond->params.ad_select = newval->value; in bond_option_ad_select_set()
1237 const struct bond_opt_value *newval) in bond_option_queue_id_set() argument
1247 delim = strchr(newval->string, ':'); in bond_option_queue_id_set()
1259 if (!dev_valid_name(newval->string) || in bond_option_queue_id_set()
1264 sdev = __dev_get_by_name(dev_net(bond->dev), newval->string); in bond_option_queue_id_set()
1298 const struct bond_opt_value *newval) in bond_option_slaves_set() argument
1305 sscanf(newval->string, "%16s", command); /* IFNAMSIZ*/ in bond_option_slaves_set()
1344 const struct bond_opt_value *newval) in bond_option_tlb_dynamic_lb_set() argument
1347 newval->string, newval->value); in bond_option_tlb_dynamic_lb_set()
1348 bond->params.tlb_dynamic_lb = newval->value; in bond_option_tlb_dynamic_lb_set()