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);
749 const struct bond_opt_value *newval) in bond_option_mode_set() argument
751 if (!bond_mode_uses_arp(newval->value)) { in bond_option_mode_set()
754 newval->string); in bond_option_mode_set()
767 if (newval->value == BOND_MODE_ALB) in bond_option_mode_set()
772 bond->params.mode = newval->value; in bond_option_mode_set()
778 const struct bond_opt_value *newval) in bond_option_active_slave_set() argument
784 sscanf(newval->string, "%15s", ifname); /* IFNAMSIZ */ in bond_option_active_slave_set()
785 if (!strlen(ifname) || newval->string[0] == '\n') { in bond_option_active_slave_set()
842 const struct bond_opt_value *newval) in bond_option_miimon_set() argument
845 newval->value); in bond_option_miimon_set()
846 bond->params.miimon = newval->value; in bond_option_miimon_set()
856 if (newval->value && bond->params.arp_interval) { in bond_option_miimon_set()
868 if (!newval->value) { in bond_option_miimon_set()
884 const struct bond_opt_value *newval, in _bond_option_delay_set() argument
888 int value = newval->value; in _bond_option_delay_set()
912 const struct bond_opt_value *newval) in bond_option_updelay_set() argument
914 return _bond_option_delay_set(bond, newval, "up delay", in bond_option_updelay_set()
919 const struct bond_opt_value *newval) in bond_option_downdelay_set() argument
921 return _bond_option_delay_set(bond, newval, "down delay", in bond_option_downdelay_set()
926 const struct bond_opt_value *newval) in bond_option_peer_notif_delay_set() argument
928 int ret = _bond_option_delay_set(bond, newval, in bond_option_peer_notif_delay_set()
935 const struct bond_opt_value *newval) in bond_option_use_carrier_set() argument
938 newval->value); in bond_option_use_carrier_set()
939 bond->params.use_carrier = newval->value; in bond_option_use_carrier_set()
949 const struct bond_opt_value *newval) in bond_option_arp_interval_set() argument
952 newval->value); in bond_option_arp_interval_set()
953 bond->params.arp_interval = newval->value; in bond_option_arp_interval_set()
954 if (newval->value) { in bond_option_arp_interval_set()
968 if (!newval->value) { in bond_option_arp_interval_set()
1081 const struct bond_opt_value *newval) in bond_option_arp_ip_targets_set() argument
1086 if (newval->string) { in bond_option_arp_ip_targets_set()
1087 if (!in4_pton(newval->string+1, -1, (u8 *)&target, -1, NULL)) { in bond_option_arp_ip_targets_set()
1092 if (newval->string[0] == '+') in bond_option_arp_ip_targets_set()
1094 else if (newval->string[0] == '-') in bond_option_arp_ip_targets_set()
1099 target = newval->value; in bond_option_arp_ip_targets_set()
1107 const struct bond_opt_value *newval) in bond_option_arp_validate_set() argument
1110 newval->string, newval->value); in bond_option_arp_validate_set()
1111 bond->params.arp_validate = newval->value; in bond_option_arp_validate_set()
1117 const struct bond_opt_value *newval) in bond_option_arp_all_targets_set() argument
1120 newval->string, newval->value); in bond_option_arp_all_targets_set()
1121 bond->params.arp_all_targets = newval->value; in bond_option_arp_all_targets_set()
1127 const struct bond_opt_value *newval) in bond_option_primary_set() argument
1129 char *p, *primary = newval->string; in bond_option_primary_set()
1176 const struct bond_opt_value *newval) in bond_option_primary_reselect_set() argument
1179 newval->string, newval->value); in bond_option_primary_reselect_set()
1180 bond->params.primary_reselect = newval->value; in bond_option_primary_reselect_set()
1190 const struct bond_opt_value *newval) in bond_option_fail_over_mac_set() argument
1193 newval->string, newval->value); in bond_option_fail_over_mac_set()
1194 bond->params.fail_over_mac = newval->value; in bond_option_fail_over_mac_set()
1200 const struct bond_opt_value *newval) in bond_option_xmit_hash_policy_set() argument
1203 newval->string, newval->value); in bond_option_xmit_hash_policy_set()
1204 bond->params.xmit_policy = newval->value; in bond_option_xmit_hash_policy_set()
1210 const struct bond_opt_value *newval) in bond_option_resend_igmp_set() argument
1213 newval->value); in bond_option_resend_igmp_set()
1214 bond->params.resend_igmp = newval->value; in bond_option_resend_igmp_set()
1220 const struct bond_opt_value *newval) in bond_option_num_peer_notif_set() argument
1222 bond->params.num_peer_notif = newval->value; in bond_option_num_peer_notif_set()
1228 const struct bond_opt_value *newval) in bond_option_all_slaves_active_set() argument
1233 if (newval->value == bond->params.all_slaves_active) in bond_option_all_slaves_active_set()
1235 bond->params.all_slaves_active = newval->value; in bond_option_all_slaves_active_set()
1238 if (newval->value) in bond_option_all_slaves_active_set()
1249 const struct bond_opt_value *newval) in bond_option_min_links_set() argument
1252 newval->value); in bond_option_min_links_set()
1253 bond->params.min_links = newval->value; in bond_option_min_links_set()
1260 const struct bond_opt_value *newval) in bond_option_lp_interval_set() argument
1262 bond->params.lp_interval = newval->value; in bond_option_lp_interval_set()
1268 const struct bond_opt_value *newval) in bond_option_pps_set() argument
1271 newval->value); in bond_option_pps_set()
1272 bond->params.packets_per_slave = newval->value; in bond_option_pps_set()
1273 if (newval->value > 0) { in bond_option_pps_set()
1275 reciprocal_value(newval->value); in bond_option_pps_set()
1288 const struct bond_opt_value *newval) in bond_option_lacp_rate_set() argument
1291 newval->string, newval->value); in bond_option_lacp_rate_set()
1292 bond->params.lacp_fast = newval->value; in bond_option_lacp_rate_set()
1299 const struct bond_opt_value *newval) in bond_option_ad_select_set() argument
1302 newval->string, newval->value); in bond_option_ad_select_set()
1303 bond->params.ad_select = newval->value; in bond_option_ad_select_set()
1309 const struct bond_opt_value *newval) in bond_option_queue_id_set() argument
1319 delim = strchr(newval->string, ':'); in bond_option_queue_id_set()
1331 if (!dev_valid_name(newval->string) || in bond_option_queue_id_set()
1336 sdev = __dev_get_by_name(dev_net(bond->dev), newval->string); in bond_option_queue_id_set()
1370 const struct bond_opt_value *newval) in bond_option_slaves_set() argument
1377 sscanf(newval->string, "%16s", command); /* IFNAMSIZ*/ in bond_option_slaves_set()
1418 const struct bond_opt_value *newval) in bond_option_tlb_dynamic_lb_set() argument
1421 newval->string, newval->value); in bond_option_tlb_dynamic_lb_set()
1422 bond->params.tlb_dynamic_lb = newval->value; in bond_option_tlb_dynamic_lb_set()
1428 const struct bond_opt_value *newval) in bond_option_ad_actor_sys_prio_set() argument
1431 newval->value); in bond_option_ad_actor_sys_prio_set()
1433 bond->params.ad_actor_sys_prio = newval->value; in bond_option_ad_actor_sys_prio_set()
1440 const struct bond_opt_value *newval) in bond_option_ad_actor_system_set() argument
1445 if (newval->string) { in bond_option_ad_actor_system_set()
1446 if (!mac_pton(newval->string, macaddr)) in bond_option_ad_actor_system_set()
1450 mac = (u8 *)&newval->value; in bond_option_ad_actor_system_set()
1468 const struct bond_opt_value *newval) in bond_option_ad_user_port_key_set() argument
1471 newval->value); in bond_option_ad_user_port_key_set()
1473 bond->params.ad_user_port_key = newval->value; in bond_option_ad_user_port_key_set()