/net/dccp/ccids/lib/ |
D | tfrc.h | 55 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/ |
D | sysctl_net_decnet.c | 137 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()
|
D | dn_dev.c | 171 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/ |
D | sysctl_net_ipv4.c | 70 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()
|
D | devinet.c | 1286 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()
|
D | route.c | 3039 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/ |
D | ndisc.c | 1775 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()
|
D | addrconf.c | 3993 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()
|