Lines Matching refs:newval
20 const struct bond_opt_value *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);
762 const struct bond_opt_value *newval) in bond_option_mode_set() argument
764 if (!bond_mode_uses_arp(newval->value)) { in bond_option_mode_set()
767 newval->string); in bond_option_mode_set()
780 if (newval->value == BOND_MODE_ALB) in bond_option_mode_set()
784 bond_set_xfrm_features(bond->dev, newval->value); in bond_option_mode_set()
788 bond->params.mode = newval->value; in bond_option_mode_set()
794 const struct bond_opt_value *newval) in bond_option_active_slave_set() argument
800 sscanf(newval->string, "%15s", ifname); /* IFNAMSIZ */ in bond_option_active_slave_set()
801 if (!strlen(ifname) || newval->string[0] == '\n') { in bond_option_active_slave_set()
858 const struct bond_opt_value *newval) in bond_option_miimon_set() argument
861 newval->value); in bond_option_miimon_set()
862 bond->params.miimon = newval->value; in bond_option_miimon_set()
872 if (newval->value && bond->params.arp_interval) { in bond_option_miimon_set()
884 if (!newval->value) { in bond_option_miimon_set()
900 const struct bond_opt_value *newval, in _bond_option_delay_set() argument
904 int value = newval->value; in _bond_option_delay_set()
928 const struct bond_opt_value *newval) in bond_option_updelay_set() argument
930 return _bond_option_delay_set(bond, newval, "up delay", in bond_option_updelay_set()
935 const struct bond_opt_value *newval) in bond_option_downdelay_set() argument
937 return _bond_option_delay_set(bond, newval, "down delay", in bond_option_downdelay_set()
942 const struct bond_opt_value *newval) in bond_option_peer_notif_delay_set() argument
944 int ret = _bond_option_delay_set(bond, newval, in bond_option_peer_notif_delay_set()
951 const struct bond_opt_value *newval) in bond_option_use_carrier_set() argument
954 newval->value); in bond_option_use_carrier_set()
955 bond->params.use_carrier = newval->value; in bond_option_use_carrier_set()
965 const struct bond_opt_value *newval) in bond_option_arp_interval_set() argument
968 newval->value); in bond_option_arp_interval_set()
969 bond->params.arp_interval = newval->value; in bond_option_arp_interval_set()
970 if (newval->value) { in bond_option_arp_interval_set()
984 if (!newval->value) { in bond_option_arp_interval_set()
1097 const struct bond_opt_value *newval) in bond_option_arp_ip_targets_set() argument
1102 if (newval->string) { in bond_option_arp_ip_targets_set()
1103 if (!in4_pton(newval->string+1, -1, (u8 *)&target, -1, NULL)) { in bond_option_arp_ip_targets_set()
1108 if (newval->string[0] == '+') in bond_option_arp_ip_targets_set()
1110 else if (newval->string[0] == '-') in bond_option_arp_ip_targets_set()
1115 target = newval->value; in bond_option_arp_ip_targets_set()
1123 const struct bond_opt_value *newval) in bond_option_arp_validate_set() argument
1126 newval->string, newval->value); in bond_option_arp_validate_set()
1127 bond->params.arp_validate = newval->value; in bond_option_arp_validate_set()
1133 const struct bond_opt_value *newval) in bond_option_arp_all_targets_set() argument
1136 newval->string, newval->value); in bond_option_arp_all_targets_set()
1137 bond->params.arp_all_targets = newval->value; in bond_option_arp_all_targets_set()
1143 const struct bond_opt_value *newval) in bond_option_primary_set() argument
1145 char *p, *primary = newval->string; in bond_option_primary_set()
1192 const struct bond_opt_value *newval) in bond_option_primary_reselect_set() argument
1195 newval->string, newval->value); in bond_option_primary_reselect_set()
1196 bond->params.primary_reselect = newval->value; in bond_option_primary_reselect_set()
1206 const struct bond_opt_value *newval) in bond_option_fail_over_mac_set() argument
1209 newval->string, newval->value); in bond_option_fail_over_mac_set()
1210 bond->params.fail_over_mac = newval->value; in bond_option_fail_over_mac_set()
1216 const struct bond_opt_value *newval) in bond_option_xmit_hash_policy_set() argument
1219 newval->string, newval->value); in bond_option_xmit_hash_policy_set()
1220 bond->params.xmit_policy = newval->value; in bond_option_xmit_hash_policy_set()
1226 const struct bond_opt_value *newval) in bond_option_resend_igmp_set() argument
1229 newval->value); in bond_option_resend_igmp_set()
1230 bond->params.resend_igmp = newval->value; in bond_option_resend_igmp_set()
1236 const struct bond_opt_value *newval) in bond_option_num_peer_notif_set() argument
1238 bond->params.num_peer_notif = newval->value; in bond_option_num_peer_notif_set()
1244 const struct bond_opt_value *newval) in bond_option_all_slaves_active_set() argument
1249 if (newval->value == bond->params.all_slaves_active) in bond_option_all_slaves_active_set()
1251 bond->params.all_slaves_active = newval->value; in bond_option_all_slaves_active_set()
1254 if (newval->value) in bond_option_all_slaves_active_set()
1265 const struct bond_opt_value *newval) in bond_option_min_links_set() argument
1268 newval->value); in bond_option_min_links_set()
1269 bond->params.min_links = newval->value; in bond_option_min_links_set()
1276 const struct bond_opt_value *newval) in bond_option_lp_interval_set() argument
1278 bond->params.lp_interval = newval->value; in bond_option_lp_interval_set()
1284 const struct bond_opt_value *newval) in bond_option_pps_set() argument
1287 newval->value); in bond_option_pps_set()
1288 bond->params.packets_per_slave = newval->value; in bond_option_pps_set()
1289 if (newval->value > 0) { in bond_option_pps_set()
1291 reciprocal_value(newval->value); in bond_option_pps_set()
1304 const struct bond_opt_value *newval) in bond_option_lacp_rate_set() argument
1307 newval->string, newval->value); in bond_option_lacp_rate_set()
1308 bond->params.lacp_fast = newval->value; in bond_option_lacp_rate_set()
1315 const struct bond_opt_value *newval) in bond_option_ad_select_set() argument
1318 newval->string, newval->value); in bond_option_ad_select_set()
1319 bond->params.ad_select = newval->value; in bond_option_ad_select_set()
1325 const struct bond_opt_value *newval) in bond_option_queue_id_set() argument
1335 delim = strchr(newval->string, ':'); in bond_option_queue_id_set()
1347 if (!dev_valid_name(newval->string) || in bond_option_queue_id_set()
1352 sdev = __dev_get_by_name(dev_net(bond->dev), newval->string); in bond_option_queue_id_set()
1386 const struct bond_opt_value *newval) in bond_option_slaves_set() argument
1393 sscanf(newval->string, "%16s", command); /* IFNAMSIZ*/ in bond_option_slaves_set()
1434 const struct bond_opt_value *newval) in bond_option_tlb_dynamic_lb_set() argument
1437 newval->string, newval->value); in bond_option_tlb_dynamic_lb_set()
1438 bond->params.tlb_dynamic_lb = newval->value; in bond_option_tlb_dynamic_lb_set()
1444 const struct bond_opt_value *newval) in bond_option_ad_actor_sys_prio_set() argument
1447 newval->value); in bond_option_ad_actor_sys_prio_set()
1449 bond->params.ad_actor_sys_prio = newval->value; in bond_option_ad_actor_sys_prio_set()
1456 const struct bond_opt_value *newval) in bond_option_ad_actor_system_set() argument
1461 if (newval->string) { in bond_option_ad_actor_system_set()
1462 if (!mac_pton(newval->string, macaddr)) in bond_option_ad_actor_system_set()
1466 mac = (u8 *)&newval->value; in bond_option_ad_actor_system_set()
1484 const struct bond_opt_value *newval) in bond_option_ad_user_port_key_set() argument
1487 newval->value); in bond_option_ad_user_port_key_set()
1489 bond->params.ad_user_port_key = newval->value; in bond_option_ad_user_port_key_set()