Home
last modified time | relevance | path

Searched refs:newval (Results 1 – 8 of 8) sorted by relevance

/net/dccp/ccids/lib/
Dtfrc.h55 static inline u32 tfrc_ewma(const u32 avg, const u32 newval, const u8 weight) in tfrc_ewma() argument
57 return avg ? (weight * avg + (10 - weight) * newval) / 10 : newval; in tfrc_ewma()
/net/decnet/
Dsysctl_net_decnet.c137 void __user *newval, size_t newlen) in dn_node_address_strategy() argument
152 if (newval && newlen) { in dn_node_address_strategy()
155 if (get_user(addr, (__le16 __user *)newval)) in dn_node_address_strategy()
222 void __user *newval, size_t newlen) in dn_def_dev_strategy() argument
253 if (newval && newlen) { in dn_def_dev_strategy()
257 if (copy_from_user(devname, newval, newlen)) in dn_def_dev_strategy()
Ddn_dev.c171 void __user *newval, size_t newlen);
323 void __user *newval, size_t newlen) in dn_forwarding_sysctl() argument
335 if (newval && newlen) { in dn_forwarding_sysctl()
339 if (get_user(value, (int __user *)newval)) in dn_forwarding_sysctl()
/net/ipv4/
Dsysctl_net_ipv4.c70 void __user *newval, size_t newlen) in ipv4_sysctl_local_port_range() argument
83 ret = sysctl_intvec(&tmp, oldval, oldlenp, newval, newlen); in ipv4_sysctl_local_port_range()
84 if (ret == 0 && newval && newlen) { in ipv4_sysctl_local_port_range()
115 void __user *newval, size_t newlen) in sysctl_tcp_congestion_control() argument
125 ret = sysctl_string(&tbl, oldval, oldlenp, newval, newlen); in sysctl_tcp_congestion_control()
126 if (ret == 1 && newval && newlen) in sysctl_tcp_congestion_control()
171 void __user *newval, in strategy_allowed_congestion_control() argument
182 ret = sysctl_string(&tbl, oldval, oldlenp, newval, newlen); in strategy_allowed_congestion_control()
183 if (ret == 1 && newval && newlen) in strategy_allowed_congestion_control()
Ddevinet.c1286 void __user *newval, size_t newlen) in devinet_conf_sysctl() argument
1294 if (!newval || !newlen) in devinet_conf_sysctl()
1300 if (get_user(new, (int __user *)newval)) in devinet_conf_sysctl()
1382 void __user *newval, size_t newlen) in ipv4_doint_and_flush_strategy() argument
1384 int ret = devinet_conf_sysctl(table, oldval, oldlenp, newval, newlen); in ipv4_doint_and_flush_strategy()
Droute.c3039 void __user *newval, in ipv4_sysctl_rtcache_flush_strategy() argument
3046 if (get_user(delay, (int __user *)newval)) in ipv4_sysctl_rtcache_flush_strategy()
3101 void __user *newval, in ipv4_sysctl_rt_secret_interval_strategy() argument
3105 int ret = sysctl_jiffies(table, oldval, oldlenp, newval, newlen); in ipv4_sysctl_rt_secret_interval_strategy()
/net/ipv6/
Dndisc.c1775 void __user *newval, size_t newlen) in ndisc_ifinfo_sysctl_strategy() argument
1787 ret = sysctl_jiffies(ctl, oldval, oldlenp, newval, newlen); in ndisc_ifinfo_sysctl_strategy()
1791 ret = sysctl_ms_jiffies(ctl, oldval, oldlenp, newval, newlen); in ndisc_ifinfo_sysctl_strategy()
1797 if (newval && newlen && ret > 0 && in ndisc_ifinfo_sysctl_strategy()
Daddrconf.c3993 void __user *newval, size_t newlen) in addrconf_sysctl_forward_strategy() argument
3999 if (!newval || !newlen) in addrconf_sysctl_forward_strategy()
4003 if (get_user(new, (int __user *)newval)) in addrconf_sysctl_forward_strategy()