Home
last modified time | relevance | path

Searched refs:lenp (Results 1 – 25 of 25) sorted by relevance

/net/sunrpc/
Dsysctl.c44 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_xprt() argument
50 *lenp = 0; in proc_do_xprt()
54 len = memory_read_from_buffer(buffer, *lenp, ppos, tmpbuf, len); in proc_do_xprt()
57 *lenp = 0; in proc_do_xprt()
60 *lenp = len; in proc_do_xprt()
65 proc_dodebug(struct ctl_table *table, int write, void *buffer, size_t *lenp, in proc_dodebug() argument
73 if ((*ppos && !write) || !*lenp) { in proc_dodebug()
74 *lenp = 0; in proc_dodebug()
78 left = *lenp; in proc_dodebug()
121 *lenp -= left; in proc_dodebug()
[all …]
Dxdr.c107 unsigned int *lenp, unsigned int maxlen) in xdr_decode_string_inplace() argument
114 *lenp = len; in xdr_decode_string_inplace()
/net/core/
Dsysctl_net_core.c51 static void dump_cpumask(void *buffer, size_t *lenp, loff_t *ppos, in dump_cpumask() argument
57 if (*ppos || !*lenp) { in dump_cpumask()
58 *lenp = 0; in dump_cpumask()
62 len = min(sizeof(kbuf) - 1, *lenp); in dump_cpumask()
65 *lenp = 0; in dump_cpumask()
69 if (len < *lenp) in dump_cpumask()
72 *lenp = len; in dump_cpumask()
96 void *buffer, size_t *lenp, loff_t *ppos) in rps_default_mask_sysctl() argument
117 dump_cpumask(buffer, lenp, ppos, in rps_default_mask_sysctl()
127 void *buffer, size_t *lenp, loff_t *ppos) in rps_sock_flow_sysctl() argument
[all …]
Dneighbour.c3542 void *buffer, size_t *lenp, loff_t *ppos) in proc_unres_qlen() argument
3552 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in proc_unres_qlen()
3594 void *buffer, size_t *lenp, in neigh_proc_dointvec_zero_intmax() argument
3603 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in neigh_proc_dointvec_zero_intmax()
3609 void *buffer, size_t *lenp, loff_t *ppos) in neigh_proc_dointvec_ms_jiffies_positive() argument
3619 ret = proc_dointvec_ms_jiffies_minmax(&tmp, write, buffer, lenp, ppos); in neigh_proc_dointvec_ms_jiffies_positive()
3625 size_t *lenp, loff_t *ppos) in neigh_proc_dointvec() argument
3627 int ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in neigh_proc_dointvec()
3635 size_t *lenp, loff_t *ppos) in neigh_proc_dointvec_jiffies() argument
3637 int ret = proc_dointvec_jiffies(ctl, write, buffer, lenp, ppos); in neigh_proc_dointvec_jiffies()
[all …]
/net/sctp/
Dsysctl.c47 void *buffer, size_t *lenp, loff_t *ppos);
49 void *buffer, size_t *lenp, loff_t *ppos);
51 size_t *lenp, loff_t *ppos);
53 size_t *lenp, loff_t *ppos);
55 void *buffer, size_t *lenp, loff_t *ppos);
57 void *buffer, size_t *lenp, loff_t *ppos);
59 void *buffer, size_t *lenp, loff_t *ppos);
392 void *buffer, size_t *lenp, loff_t *ppos) in proc_sctp_do_hmac_alg() argument
411 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_sctp_do_hmac_alg()
437 void *buffer, size_t *lenp, loff_t *ppos) in proc_sctp_do_rto_min() argument
[all …]
/net/ipv4/
Dsysctl_net_ipv4.c69 void *buffer, size_t *lenp, loff_t *ppos) in ipv4_local_port_range() argument
85 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in ipv4_local_port_range()
104 void *buffer, size_t *lenp, loff_t *ppos) in ipv4_privileged_ports() argument
121 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in ipv4_privileged_ports()
165 void *buffer, size_t *lenp, loff_t *ppos) in ipv4_ping_group_range() argument
182 ret = proc_doulongvec_minmax(&tmp, write, buffer, lenp, ppos); in ipv4_ping_group_range()
200 void *buffer, size_t *lenp, loff_t *ppos) in ipv4_fwd_update_priority() argument
207 ret = proc_dou8vec_minmax(table, write, buffer, lenp, ppos); in ipv4_fwd_update_priority()
216 void *buffer, size_t *lenp, loff_t *ppos) in proc_tcp_congestion_control() argument
229 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_tcp_congestion_control()
[all …]
Ddevinet.c2412 void *buffer, size_t *lenp, loff_t *ppos) in devinet_conf_proc() argument
2415 int ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in devinet_conf_proc()
2464 void *buffer, size_t *lenp, loff_t *ppos) in devinet_sysctl_forward() argument
2475 ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in devinet_sysctl_forward()
2511 void *buffer, size_t *lenp, loff_t *ppos) in ipv4_doint_and_flush() argument
2515 int ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in ipv4_doint_and_flush()
Desp4.c378 __be16 *lenp = (void *)esp->esph; in esp_output_tcp_encap() local
394 *lenp = htons(len); in esp_output_tcp_encap()
395 esph = (struct ip_esp_hdr *)(lenp + 1); in esp_output_tcp_encap()
Droute.c3455 void *buffer, size_t *lenp, loff_t *ppos) in ipv4_sysctl_rtcache_flush() argument
/net/sunrpc/xprtrdma/
Dsvc_rdma.c78 void *buffer, size_t *lenp, loff_t *ppos) in svcrdma_counter_handler() argument
95 *lenp = 0; in svcrdma_counter_handler()
99 if (len > *lenp) in svcrdma_counter_handler()
100 len = *lenp; in svcrdma_counter_handler()
103 *lenp = len; in svcrdma_counter_handler()
/net/ceph/
Dauth.c124 void *p = monhdr + 1, *end = buf + len, *lenp; in ceph_auth_build_hello() local
136 lenp = p; in ceph_auth_build_hello()
153 ceph_encode_32(&lenp, p - lenp - sizeof(u32)); in ceph_auth_build_hello()
431 void *lenp; in ceph_auth_get_request() local
454 lenp = p; in ceph_auth_get_request()
463 ceph_encode_32(&lenp, p - lenp - 4); in ceph_auth_get_request()
/net/phonet/
Dsysctl.c52 void *buffer, size_t *lenp, loff_t *ppos) in proc_local_port_range() argument
64 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in proc_local_port_range()
/net/ipv6/
Dsysctl_net_ipv6.c34 void *buffer, size_t *lenp, loff_t *ppos) in proc_rt6_multipath_hash_policy() argument
41 ret = proc_dou8vec_minmax(table, write, buffer, lenp, ppos); in proc_rt6_multipath_hash_policy()
50 size_t *lenp, loff_t *ppos) in proc_rt6_multipath_hash_fields() argument
57 ret = proc_douintvec_minmax(table, write, buffer, lenp, ppos); in proc_rt6_multipath_hash_fields()
Daddrconf.c6286 void *buffer, size_t *lenp, loff_t *ppos) in addrconf_sysctl_forward() argument
6301 ret = proc_dointvec(&lctl, write, buffer, lenp, ppos); in addrconf_sysctl_forward()
6311 void *buffer, size_t *lenp, loff_t *ppos) in addrconf_sysctl_mtu() argument
6321 return proc_dointvec_minmax(&lctl, write, buffer, lenp, ppos); in addrconf_sysctl_mtu()
6383 void *buffer, size_t *lenp, loff_t *ppos) in addrconf_sysctl_disable() argument
6398 ret = proc_dointvec(&lctl, write, buffer, lenp, ppos); in addrconf_sysctl_disable()
6408 void *buffer, size_t *lenp, loff_t *ppos) in addrconf_sysctl_proxy_ndp() argument
6415 ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in addrconf_sysctl_proxy_ndp()
6449 void *buffer, size_t *lenp, in addrconf_sysctl_addr_gen_mode() argument
6467 ret = proc_douintvec(&tmp, write, buffer, lenp, ppos); in addrconf_sysctl_addr_gen_mode()
[all …]
Desp6.c414 __be16 *lenp = (void *)esp->esph; in esp6_output_tcp_encap() local
430 *lenp = htons(len); in esp6_output_tcp_encap()
431 esph = (struct ip_esp_hdr *)(lenp + 1); in esp6_output_tcp_encap()
Dndisc.c1943 size_t *lenp, loff_t *ppos) in ndisc_ifinfo_sysctl_change() argument
1954 ret = neigh_proc_dointvec(ctl, write, buffer, lenp, ppos); in ndisc_ifinfo_sysctl_change()
1958 buffer, lenp, ppos); in ndisc_ifinfo_sysctl_change()
1963 buffer, lenp, ppos); in ndisc_ifinfo_sysctl_change()
Droute.c6306 void *buffer, size_t *lenp, loff_t *ppos) in ipv6_sysctl_rtcache_flush() argument
6314 ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in ipv6_sysctl_rtcache_flush()
/net/netfilter/
Dnf_hooks_lwtunnel.c32 void *buffer, size_t *lenp, loff_t *ppos) in nf_hooks_lwtunnel_sysctl_handler() argument
48 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in nf_hooks_lwtunnel_sysctl_handler()
Dnf_log.c408 void *buffer, size_t *lenp, loff_t *ppos) in nf_log_proc_dostring() argument
424 r = proc_dostring(&tmp, write, buffer, lenp, ppos); in nf_log_proc_dostring()
451 r = proc_dostring(&tmp, write, buffer, lenp, ppos); in nf_log_proc_dostring()
Dnf_conntrack_standalone.c528 void *buffer, size_t *lenp, loff_t *ppos) in nf_conntrack_hash_sysctl() argument
535 ret = proc_dointvec(table, write, buffer, lenp, ppos); in nf_conntrack_hash_sysctl()
/net/mptcp/
Dctrl.c108 void *buffer, size_t *lenp, loff_t *ppos) in proc_scheduler() argument
120 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_scheduler()
/net/netfilter/ipvs/
Dip_vs_ctl.c1850 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_defense_mode() argument
1863 rc = proc_dointvec(&tmp, write, buffer, lenp, ppos); in proc_do_defense_mode()
1877 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_sync_threshold() argument
1891 rc = proc_dointvec(&tmp, write, buffer, lenp, ppos); in proc_do_sync_threshold()
1905 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_sync_ports() argument
1917 rc = proc_dointvec(&tmp, write, buffer, lenp, ppos); in proc_do_sync_ports()
1987 void *buffer, size_t *lenp, loff_t *ppos) in ipvs_proc_est_cpulist() argument
1992 if (*ppos || !*lenp) { in ipvs_proc_est_cpulist()
1993 *lenp = 0; in ipvs_proc_est_cpulist()
2000 *ppos += *lenp; in ipvs_proc_est_cpulist()
[all …]
/net/rds/
Dtcp.c65 void *buffer, size_t *lenp, loff_t *fpos);
687 void *buffer, size_t *lenp, loff_t *fpos) in rds_tcp_skbuf_handler() argument
692 err = proc_dointvec_minmax(ctl, write, buffer, lenp, fpos); in rds_tcp_skbuf_handler()
/net/mpls/
Daf_mpls.c1367 void *buffer, size_t *lenp, loff_t *ppos) in mpls_conf_proc() argument
1370 int ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in mpls_conf_proc()
2619 void *buffer, size_t *lenp, loff_t *ppos) in mpls_platform_labels() argument
2633 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in mpls_platform_labels()
/net/bridge/
Dbr_netfilter_hooks.c1188 void *buffer, size_t *lenp, loff_t *ppos) in brnf_sysctl_call_tables() argument
1192 ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in brnf_sysctl_call_tables()