Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/linux/
Dlinux-sysctl.c84 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_set_timeout() argument
88 rc = proc_dointvec(table, write, buffer, lenp, ppos); in proc_set_timeout()
95 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_memory_alloc() argument
100 if (!*lenp || (*ppos && !write)) { in proc_memory_alloc()
101 *lenp = 0; in proc_memory_alloc()
108 if (len > *lenp) in proc_memory_alloc()
109 len = *lenp; in proc_memory_alloc()
113 *lenp = len; in proc_memory_alloc()
114 *ppos += *lenp; in proc_memory_alloc()
119 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_pages_alloc() argument
[all …]
/linux-4.1.27/net/decnet/
Dsysctl_net_decnet.c137 size_t *lenp, loff_t *ppos) in dn_node_address_handler() argument
143 if (!*lenp || (*ppos && !write)) { in dn_node_address_handler()
144 *lenp = 0; in dn_node_address_handler()
149 len = (*lenp < DN_ASCBUF_LEN) ? *lenp : (DN_ASCBUF_LEN-1); in dn_node_address_handler()
175 if (len > *lenp) len = *lenp; in dn_node_address_handler()
180 *lenp = len; in dn_node_address_handler()
188 size_t *lenp, loff_t *ppos) in dn_def_dev_handler() argument
194 if (!*lenp || (*ppos && !write)) { in dn_def_dev_handler()
195 *lenp = 0; in dn_def_dev_handler()
200 if (*lenp > 16) in dn_def_dev_handler()
[all …]
Ddn_dev.c248 size_t *lenp, loff_t *ppos) in dn_forwarding_proc() argument
262 err = proc_dointvec(table, write, buffer, lenp, ppos); in dn_forwarding_proc()
/linux-4.1.27/arch/frv/kernel/
Dpm.c154 void __user *buffer, size_t *lenp, loff_t *fpos) in sysctl_pm_do_suspend() argument
158 if (*lenp <= 0) in sysctl_pm_do_suspend()
161 mode = user_atoi(buffer, *lenp); in sysctl_pm_do_suspend()
201 void __user *buffer, size_t *lenp, loff_t *fpos) in cmode_procctl() argument
206 return proc_dointvec(ctl, write, buffer, lenp, fpos); in cmode_procctl()
208 new_cmode = user_atoi(buffer, *lenp); in cmode_procctl()
210 return try_set_cmode(new_cmode)?:*lenp; in cmode_procctl()
273 void __user *buffer, size_t *lenp, loff_t *fpos) in p0_procctl() argument
278 return proc_dointvec(ctl, write, buffer, lenp, fpos); in p0_procctl()
280 new_p0 = user_atoi(buffer, *lenp); in p0_procctl()
[all …]
Dsysctl.c50 void __user *buffer, size_t *lenp, in procctl_frv_cachemode() argument
57 len = *lenp; in procctl_frv_cachemode()
89 *lenp = 0; in procctl_frv_cachemode()
107 if (len > *lenp) in procctl_frv_cachemode()
108 len = *lenp; in procctl_frv_cachemode()
113 *lenp = len; in procctl_frv_cachemode()
125 void __user *buffer, size_t *lenp, in procctl_frv_pin_cxnr() argument
132 len = *lenp; in procctl_frv_pin_cxnr()
156 *lenp = 0; in procctl_frv_pin_cxnr()
161 if (len > *lenp) in procctl_frv_pin_cxnr()
[all …]
/linux-4.1.27/drivers/parport/
Dprocfs.c35 void __user *result, size_t *lenp, loff_t *ppos) in do_active_device() argument
46 *lenp = 0; in do_active_device()
60 if (len > *lenp) in do_active_device()
61 len = *lenp; in do_active_device()
63 *lenp = len; in do_active_device()
72 void __user *result, size_t *lenp, loff_t *ppos) in do_autoprobe() argument
83 *lenp = 0; in do_autoprobe()
102 if (len > *lenp) in do_autoprobe()
103 len = *lenp; in do_autoprobe()
105 *lenp = len; in do_autoprobe()
[all …]
/linux-4.1.27/arch/mips/lasat/
Dsysctl.c43 void *buffer, size_t *lenp, loff_t *ppos) in proc_dolasatstring() argument
47 r = proc_dostring(table, write, buffer, lenp, ppos); in proc_dolasatstring()
61 void *buffer, size_t *lenp, loff_t *ppos) in proc_dolasatrtc() argument
73 r = proc_dointvec(table, write, buffer, lenp, ppos); in proc_dolasatrtc()
86 void *buffer, size_t *lenp, loff_t *ppos) in proc_lasat_ip() argument
93 if (!table->data || !table->maxlen || !*lenp || in proc_lasat_ip()
95 *lenp = 0; in proc_lasat_ip()
102 while (len < *lenp) { in proc_lasat_ip()
114 *ppos += *lenp; in proc_lasat_ip()
127 if (len > *lenp) in proc_lasat_ip()
[all …]
/linux-4.1.27/arch/s390/appldata/
Dappldata_base.c52 void __user *buffer, size_t *lenp, loff_t *ppos);
55 size_t *lenp, loff_t *ppos);
205 void __user *buffer, size_t *lenp, loff_t *ppos) in appldata_timer_handler() argument
210 if (!*lenp || *ppos) { in appldata_timer_handler()
211 *lenp = 0; in appldata_timer_handler()
218 if (len > *lenp) in appldata_timer_handler()
219 len = *lenp; in appldata_timer_handler()
224 len = *lenp; in appldata_timer_handler()
234 *lenp = len; in appldata_timer_handler()
247 void __user *buffer, size_t *lenp, loff_t *ppos) in appldata_interval_handler() argument
[all …]
/linux-4.1.27/net/sunrpc/
Dsysctl.c62 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_do_xprt() argument
67 if ((*ppos && !write) || !*lenp) { in proc_do_xprt()
68 *lenp = 0; in proc_do_xprt()
72 return simple_read_from_buffer(buffer, *lenp, ppos, tmpbuf, len); in proc_do_xprt()
77 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_dodebug() argument
84 if ((*ppos && !write) || !*lenp) { in proc_dodebug()
85 *lenp = 0; in proc_dodebug()
89 left = *lenp; in proc_dodebug()
132 *lenp -= left; in proc_dodebug()
133 *ppos += *lenp; in proc_dodebug()
Dxdr.c101 unsigned int *lenp, unsigned int maxlen) in xdr_decode_string_inplace() argument
108 *lenp = len; in xdr_decode_string_inplace()
/linux-4.1.27/kernel/
Dsysctl.c178 void __user *buffer, size_t *lenp, loff_t *ppos);
180 void __user *buffer, size_t *lenp, loff_t *ppos);
185 void __user *buffer, size_t *lenp, loff_t *ppos);
189 void __user *buffer, size_t *lenp, loff_t *ppos);
192 void __user *buffer, size_t *lenp, loff_t *ppos);
200 void __user *buffer, size_t *lenp, in sysrq_sysctl_handler() argument
205 error = proc_dointvec(table, write, buffer, lenp, ppos); in sysrq_sysctl_handler()
1748 size_t *lenp, loff_t *ppos) in _proc_do_string() argument
1754 if (!data || !maxlen || !*lenp) { in _proc_do_string()
1755 *lenp = 0; in _proc_do_string()
[all …]
Dwatchdog.c772 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog_common() argument
786 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_watchdog_common()
788 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_watchdog_common()
831 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog() argument
834 table, write, buffer, lenp, ppos); in proc_watchdog()
841 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_nmi_watchdog() argument
844 table, write, buffer, lenp, ppos); in proc_nmi_watchdog()
851 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_soft_watchdog() argument
854 table, write, buffer, lenp, ppos); in proc_soft_watchdog()
861 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog_thresh() argument
[all …]
Dutsname_sysctl.c48 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_do_uts_string() argument
54 r = proc_dostring(&uts_table, write, buffer, lenp, ppos); in proc_do_uts_string()
Dhung_task.c199 size_t *lenp, loff_t *ppos) in proc_dohung_task_timeout_secs() argument
203 ret = proc_doulongvec_minmax(table, write, buffer, lenp, ppos); in proc_dohung_task_timeout_secs()
Dpid_namespace.c274 void __user *buffer, size_t *lenp, loff_t *ppos) in pid_ns_ctl_handler() argument
289 return proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in pid_ns_ctl_handler()
Dkmod.c613 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_cap_handler() argument
646 err = proc_doulongvec_minmax(&t, write, buffer, lenp, ppos); in proc_cap_handler()
Dfork.c2063 void __user *buffer, size_t *lenp, loff_t *ppos) in sysctl_max_threads() argument
2076 ret = proc_dointvec_minmax(&t, write, buffer, lenp, ppos); in sysctl_max_threads()
/linux-4.1.27/net/core/
Dsysctl_net_core.c35 void __user *buffer, size_t *lenp, loff_t *ppos) in rps_sock_flow_sysctl() argument
53 ret = proc_dointvec(&tmp, write, buffer, lenp, ppos); in rps_sock_flow_sysctl()
102 void __user *buffer, size_t *lenp, in flow_limit_cpu_sysctl() argument
114 ret = cpumask_parse_user(buffer, *lenp, mask); in flow_limit_cpu_sysctl()
145 if (*ppos || !*lenp) { in flow_limit_cpu_sysctl()
146 *lenp = 0; in flow_limit_cpu_sysctl()
159 len = min(sizeof(kbuf) - 1, *lenp); in flow_limit_cpu_sysctl()
162 *lenp = 0; in flow_limit_cpu_sysctl()
165 if (len < *lenp) in flow_limit_cpu_sysctl()
171 *lenp = len; in flow_limit_cpu_sysctl()
[all …]
Dneighbour.c2818 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_unres_qlen() argument
2828 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in proc_unres_qlen()
2881 size_t *lenp, loff_t *ppos) in neigh_proc_dointvec_zero_intmax() argument
2889 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in neigh_proc_dointvec_zero_intmax()
2895 void __user *buffer, size_t *lenp, loff_t *ppos) in neigh_proc_dointvec() argument
2897 int ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in neigh_proc_dointvec()
2906 size_t *lenp, loff_t *ppos) in neigh_proc_dointvec_jiffies() argument
2908 int ret = proc_dointvec_jiffies(ctl, write, buffer, lenp, ppos); in neigh_proc_dointvec_jiffies()
2917 size_t *lenp, loff_t *ppos) in neigh_proc_dointvec_userhz_jiffies() argument
2919 int ret = proc_dointvec_userhz_jiffies(ctl, write, buffer, lenp, ppos); in neigh_proc_dointvec_userhz_jiffies()
[all …]
/linux-4.1.27/scripts/dtc/libfdt/
Dfdt_ro.c241 int *lenp) in fdt_get_property_by_offset() argument
247 if (lenp) in fdt_get_property_by_offset()
248 *lenp = err; in fdt_get_property_by_offset()
254 if (lenp) in fdt_get_property_by_offset()
255 *lenp = fdt32_to_cpu(prop->len); in fdt_get_property_by_offset()
263 int namelen, int *lenp) in fdt_get_property_namelen() argument
270 if (!(prop = fdt_get_property_by_offset(fdt, offset, lenp))) { in fdt_get_property_namelen()
279 if (lenp) in fdt_get_property_namelen()
280 *lenp = offset; in fdt_get_property_namelen()
286 const char *name, int *lenp) in fdt_get_property() argument
[all …]
Dlibfdt.h343 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp);
412 int *lenp);
428 int namelen, int *lenp);
458 const char *name, int *lenp);
461 int *lenp) in fdt_get_property_w() argument
464 fdt_get_property(fdt, nodeoffset, name, lenp); in fdt_get_property_w()
499 const char **namep, int *lenp);
513 const char *name, int namelen, int *lenp);
543 const char *name, int *lenp);
545 const char *name, int *lenp) in fdt_getprop_w() argument
[all …]
Dfdt.c95 const uint32_t *tagp, *lenp; in fdt_next_tag() local
119 lenp = fdt_offset_ptr(fdt, offset, sizeof(*lenp)); in fdt_next_tag()
120 if (!lenp) in fdt_next_tag()
124 + fdt32_to_cpu(*lenp); in fdt_next_tag()
/linux-4.1.27/ipc/
Dipc_sysctl.c31 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_dointvec() argument
38 return proc_dointvec(&ipc_table, write, buffer, lenp, ppos); in proc_ipc_dointvec()
42 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_dointvec_minmax() argument
49 return proc_dointvec_minmax(&ipc_table, write, buffer, lenp, ppos); in proc_ipc_dointvec_minmax()
53 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_dointvec_minmax_orphans() argument
56 int err = proc_ipc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_ipc_dointvec_minmax_orphans()
66 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_doulongvec_minmax() argument
73 lenp, ppos); in proc_ipc_doulongvec_minmax()
77 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_auto_msgmni() argument
88 return proc_dointvec_minmax(&ipc_table, write, buffer, lenp, ppos); in proc_ipc_auto_msgmni()
Dmq_sysctl.c26 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_mq_dointvec() argument
32 return proc_dointvec(&mq_table, write, buffer, lenp, ppos); in proc_mq_dointvec()
36 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_mq_dointvec_minmax() argument
43 lenp, ppos); in proc_mq_dointvec_minmax()
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/
Dmodule.c496 void __user *buffer, size_t *lenp, in proc_call_handler() argument
500 int rc = handler(data, write, *ppos, buffer, *lenp); in proc_call_handler()
506 *ppos += *lenp; in proc_call_handler()
508 *lenp = rc; in proc_call_handler()
556 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_dobitmasks() argument
558 return proc_call_handler(table->data, write, ppos, buffer, lenp, in proc_dobitmasks()
575 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_dump_kernel() argument
577 return proc_call_handler(table->data, write, ppos, buffer, lenp, in proc_dump_kernel()
598 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_daemon_file() argument
600 return proc_call_handler(table->data, write, ppos, buffer, lenp, in proc_daemon_file()
[all …]
/linux-4.1.27/drivers/staging/lustre/lnet/lnet/
Drouter_proc.c94 void __user *buffer, size_t *lenp, in proc_call_handler() argument
98 int rc = handler(data, write, *ppos, buffer, *lenp); in proc_call_handler()
104 *ppos += *lenp; in proc_call_handler()
106 *lenp = rc; in proc_call_handler()
161 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_lnet_stats() argument
163 return proc_call_handler(table->data, write, ppos, buffer, lenp, in proc_lnet_stats()
168 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_lnet_routes() argument
185 if (*lenp == 0) in proc_lnet_routes()
274 if (len > *lenp) { /* linux-supplied buffer is too small */ in proc_lnet_routes()
288 *lenp = len; in proc_lnet_routes()
[all …]
/linux-4.1.27/arch/s390/mm/
Dcmm.c257 void __user *buffer, size_t *lenp, loff_t *ppos) in cmm_pages_handler() argument
263 if (!*lenp || (*ppos && !write)) { in cmm_pages_handler()
264 *lenp = 0; in cmm_pages_handler()
269 len = *lenp; in cmm_pages_handler()
286 if (len > *lenp) in cmm_pages_handler()
287 len = *lenp; in cmm_pages_handler()
291 *lenp = len; in cmm_pages_handler()
297 void __user *buffer, size_t *lenp, loff_t *ppos) in cmm_timeout_handler() argument
303 if (!*lenp || (*ppos && !write)) { in cmm_timeout_handler()
304 *lenp = 0; in cmm_timeout_handler()
[all …]
/linux-4.1.27/net/sctp/
Dsysctl.c62 void __user *buffer, size_t *lenp,
65 void __user *buffer, size_t *lenp,
68 void __user *buffer, size_t *lenp,
71 void __user *buffer, size_t *lenp,
74 void __user *buffer, size_t *lenp,
316 void __user *buffer, size_t *lenp, in proc_sctp_do_hmac_alg() argument
336 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_sctp_do_hmac_alg()
362 void __user *buffer, size_t *lenp, in proc_sctp_do_rto_min() argument
379 ret = proc_dointvec(&tbl, write, buffer, lenp, ppos); in proc_sctp_do_rto_min()
391 void __user *buffer, size_t *lenp, in proc_sctp_do_rto_max() argument
[all …]
/linux-4.1.27/include/linux/sched/
Dsysctl.h11 size_t *lenp, loff_t *ppos);
99 void __user *buffer, size_t *lenp,
103 void __user *buffer, size_t *lenp,
107 void __user *buffer, size_t *lenp,
/linux-4.1.27/arch/xtensa/boot/lib/
Dzmem.c34 void gunzip (void *dst, int dstlen, unsigned char *src, int *lenp) in gunzip() argument
56 if (i >= *lenp) { in gunzip()
68 s.avail_in = *lenp - i; in gunzip()
76 *lenp = s.next_out - (unsigned char *) dst; in gunzip()
/linux-4.1.27/include/linux/
Dwriteback.h139 void __user *buffer, size_t *lenp,
142 void __user *buffer, size_t *lenp,
145 void __user *buffer, size_t *lenp,
148 void __user *buffer, size_t *lenp,
151 void __user *buffer, size_t *lenp, loff_t *ppos);
Dsysctl.h38 void __user *buffer, size_t *lenp, loff_t *ppos);
219 void __user *buffer, size_t *lenp, loff_t *ppos);
Dof.h277 int *lenp);
313 int *lenp);
484 int *lenp) in of_find_property() argument
551 int *lenp) in of_get_property() argument
Dftrace.h57 void __user *buffer, size_t *lenp,
269 void __user *buffer, size_t *lenp,
Dbacking-dev.h281 void __user *buffer, size_t *lenp, loff_t *ppos);
Dperf_event.h847 void __user *buffer, size_t *lenp,
850 void __user *buffer, size_t *lenp,
Dfs.h2927 void __user *buffer, size_t *lenp, loff_t *ppos);
2929 void __user *buffer, size_t *lenp, loff_t *ppos);
2931 void __user *buffer, size_t *lenp, loff_t *ppos);
Dsecurity.h156 void __user *buffer, size_t *lenp, loff_t *ppos);
Dsched.h380 size_t *lenp, loff_t *ppos);
/linux-4.1.27/scripts/dtc/
Dutil.c51 int lenp = strlen(path); in join_path() local
57 len = lenp + lenn + 2; in join_path()
58 if ((lenp > 0) && (path[lenp-1] == '/')) { in join_path()
64 memcpy(str, path, lenp); in join_path()
66 str[lenp] = '/'; in join_path()
67 lenp++; in join_path()
69 memcpy(str+lenp, name, lenn+1); in join_path()
/linux-4.1.27/net/sunrpc/xprtrdma/
Dsvc_rdma.c88 void __user *buffer, size_t *lenp, in read_reset_stat() argument
106 *lenp = 0; in read_reset_stat()
111 if (len > *lenp) in read_reset_stat()
112 len = *lenp; in read_reset_stat()
115 *lenp = len; in read_reset_stat()
/linux-4.1.27/net/irda/
Dirsysctl.c77 void __user *buffer, size_t *lenp, loff_t *ppos) in do_devname() argument
81 ret = proc_dostring(table, write, buffer, lenp, ppos); in do_devname()
94 void __user *buffer, size_t *lenp, loff_t *ppos) in do_discovery() argument
98 ret = proc_dointvec(table, write, buffer, lenp, ppos); in do_discovery()
/linux-4.1.27/fs/fat/
Dnfs.c109 fat_encode_fh_nostale(struct inode *inode, __u32 *fh, int *lenp, in fat_encode_fh_nostale() argument
112 int len = *lenp; in fat_encode_fh_nostale()
120 *lenp = FAT_FID_SIZE_WITH_PARENT; in fat_encode_fh_nostale()
125 *lenp = FAT_FID_SIZE_WITHOUT_PARENT; in fat_encode_fh_nostale()
131 *lenp = FAT_FID_SIZE_WITHOUT_PARENT; in fat_encode_fh_nostale()
141 *lenp = FAT_FID_SIZE_WITH_PARENT; in fat_encode_fh_nostale()
/linux-4.1.27/net/ipv4/
Dsysctl_net_ipv4.c57 size_t *lenp, loff_t *ppos) in ipv4_local_port_range() argument
73 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in ipv4_local_port_range()
115 size_t *lenp, loff_t *ppos) in ipv4_ping_group_range() argument
132 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in ipv4_ping_group_range()
149 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_tcp_congestion_control() argument
160 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_tcp_congestion_control()
168 void __user *buffer, size_t *lenp, in proc_tcp_available_congestion_control() argument
178 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_tcp_available_congestion_control()
185 void __user *buffer, size_t *lenp, in proc_allowed_congestion_control() argument
196 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_allowed_congestion_control()
[all …]
Ddevinet.c2018 size_t *lenp, loff_t *ppos) in devinet_conf_proc() argument
2021 int ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in devinet_conf_proc()
2058 size_t *lenp, loff_t *ppos) in devinet_sysctl_forward() argument
2063 int ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in devinet_sysctl_forward()
2101 size_t *lenp, loff_t *ppos) in ipv4_doint_and_flush() argument
2105 int ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in ipv4_doint_and_flush()
Droute.c2563 size_t *lenp, loff_t *ppos) in ipv4_sysctl_rtcache_flush() argument
/linux-4.1.27/security/
Dmin_addr.c32 void __user *buffer, size_t *lenp, loff_t *ppos) in mmap_min_addr_handler() argument
39 ret = proc_doulongvec_minmax(table, write, buffer, lenp, ppos); in mmap_min_addr_handler()
/linux-4.1.27/fs/xfs/
Dxfs_sysctl.c31 size_t *lenp, in xfs_stats_clear_proc_handler() argument
37 ret = proc_dointvec_minmax(ctl, write, buffer, lenp, ppos); in xfs_stats_clear_proc_handler()
61 size_t *lenp, in xfs_panic_mask_proc_handler() argument
66 ret = proc_dointvec_minmax(ctl, write, buffer, lenp, ppos); in xfs_panic_mask_proc_handler()
Dxfs_bmap_util.h51 xfs_fileoff_t *offp, xfs_extlen_t *lenp);
/linux-4.1.27/net/phonet/
Dsysctl.c66 size_t *lenp, loff_t *ppos) in proc_local_port_range() argument
78 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in proc_local_port_range()
/linux-4.1.27/fs/nilfs2/
Dnamei.c520 static int nilfs_encode_fh(struct inode *inode, __u32 *fh, int *lenp, in nilfs_encode_fh() argument
527 if (parent && *lenp < NILFS_FID_SIZE_CONNECTABLE) { in nilfs_encode_fh()
528 *lenp = NILFS_FID_SIZE_CONNECTABLE; in nilfs_encode_fh()
531 if (*lenp < NILFS_FID_SIZE_NON_CONNECTABLE) { in nilfs_encode_fh()
532 *lenp = NILFS_FID_SIZE_NON_CONNECTABLE; in nilfs_encode_fh()
544 *lenp = NILFS_FID_SIZE_CONNECTABLE; in nilfs_encode_fh()
547 *lenp = NILFS_FID_SIZE_NON_CONNECTABLE; in nilfs_encode_fh()
/linux-4.1.27/arch/powerpc/platforms/cell/
Dspu_manage.c450 int lenp, i; in neighbour_spu() local
456 vic_handles = of_get_property(spu_dn, "vicinity", &lenp); in neighbour_spu()
457 for (i=0; i < (lenp / sizeof(phandle)); i++) { in neighbour_spu()
472 int lenp, i, added; in init_affinity_node() local
479 vic_handles = of_get_property(last_spu_dn, "vicinity", &lenp); in init_affinity_node()
485 for (i = 0; i < (lenp / sizeof(phandle)); i++) { in init_affinity_node()
/linux-4.1.27/net/ceph/
Dauth.c104 void *p = monhdr + 1, *end = buf + len, *lenp; in ceph_auth_build_hello() local
116 lenp = p; in ceph_auth_build_hello()
133 ceph_encode_32(&lenp, p - lenp - sizeof(u32)); in ceph_auth_build_hello()
/linux-4.1.27/mm/
Dutil.c378 void __user *buffer, size_t *lenp, in overcommit_ratio_handler() argument
383 ret = proc_dointvec(table, write, buffer, lenp, ppos); in overcommit_ratio_handler()
390 void __user *buffer, size_t *lenp, in overcommit_kbytes_handler() argument
395 ret = proc_doulongvec_minmax(table, write, buffer, lenp, ppos); in overcommit_kbytes_handler()
Dbacking-dev.c584 void __user *buffer, size_t *lenp, loff_t *ppos) in pdflush_proc_obsolete() argument
588 if (*ppos || *lenp < sizeof(kbuf)) { in pdflush_proc_obsolete()
589 *lenp = 0; in pdflush_proc_obsolete()
598 *lenp = 2; in pdflush_proc_obsolete()
599 *ppos += *lenp; in pdflush_proc_obsolete()
Dpage-writeback.c333 void __user *buffer, size_t *lenp, in dirty_background_ratio_handler() argument
338 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in dirty_background_ratio_handler()
345 void __user *buffer, size_t *lenp, in dirty_background_bytes_handler() argument
350 ret = proc_doulongvec_minmax(table, write, buffer, lenp, ppos); in dirty_background_bytes_handler()
357 void __user *buffer, size_t *lenp, in dirty_ratio_handler() argument
363 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in dirty_ratio_handler()
372 void __user *buffer, size_t *lenp, in dirty_bytes_handler() argument
378 ret = proc_doulongvec_minmax(table, write, buffer, lenp, ppos); in dirty_bytes_handler()
/linux-4.1.27/fs/fscache/
Dmain.c58 size_t *lenp, loff_t *ppos) in fscache_max_active_sysctl() argument
64 ret = proc_dointvec(table, write, buffer, lenp, ppos); in fscache_max_active_sysctl()
/linux-4.1.27/drivers/cpufreq/
Dpmac32-cpufreq.c478 int lenp, rc; in pmac_cpufreq_init_MacRISC3() local
481 freqs = of_get_property(cpunode, "bus-frequencies", &lenp); in pmac_cpufreq_init_MacRISC3()
482 lenp /= sizeof(u32); in pmac_cpufreq_init_MacRISC3()
483 if (freqs == NULL || lenp != 2) { in pmac_cpufreq_init_MacRISC3()
/linux-4.1.27/fs/
Dfile_table.c80 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_nr_files() argument
83 return proc_doulongvec_minmax(table, write, buffer, lenp, ppos); in proc_nr_files()
87 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_nr_files() argument
Dpipe.c1023 size_t *lenp, loff_t *ppos) in pipe_proc_fn() argument
1027 ret = proc_dointvec_minmax(table, write, buf, lenp, ppos); in pipe_proc_fn()
Dfs-writeback.c1192 void __user *buffer, size_t *lenp, loff_t *ppos) in dirtytime_interval_handler() argument
1196 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in dirtytime_interval_handler()
Dinode.c110 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_nr_inodes() argument
114 return proc_doulongvec_minmax(table, write, buffer, lenp, ppos); in proc_nr_inodes()
Ddcache.c155 size_t *lenp, loff_t *ppos) in proc_nr_dentry() argument
159 return proc_doulongvec_minmax(table, write, buffer, lenp, ppos); in proc_nr_dentry()
/linux-4.1.27/fs/nfsd/
Dnfsxdr.c57 decode_filename(__be32 *p, char **namp, unsigned int *lenp) in decode_filename() argument
62 if ((p = xdr_decode_string_inplace(p, namp, lenp, NFS_MAXNAMLEN)) != NULL) { in decode_filename()
63 for (i = 0, name = *namp; i < *lenp; i++, name++) { in decode_filename()
73 decode_pathname(__be32 *p, char **namp, unsigned int *lenp) in decode_pathname() argument
78 if ((p = xdr_decode_string_inplace(p, namp, lenp, NFS_MAXPATHLEN)) != NULL) { in decode_pathname()
79 for (i = 0, name = *namp; i < *lenp; i++, name++) { in decode_pathname()
Dnfs3xdr.c82 decode_filename(__be32 *p, char **namp, unsigned int *lenp) in decode_filename() argument
87 if ((p = xdr_decode_string_inplace(p, namp, lenp, NFS3_MAXNAMLEN)) != NULL) { in decode_filename()
88 for (i = 0, name = *namp; i < *lenp; i++, name++) { in decode_filename()
Dvfs.c1502 nfsd_readlink(struct svc_rqst *rqstp, struct svc_fh *fhp, char *buf, int *lenp) in nfsd_readlink() argument
1528 host_err = inode->i_op->readlink(path.dentry, (char __user *)buf, *lenp); in nfsd_readlink()
1533 *lenp = host_err; in nfsd_readlink()
/linux-4.1.27/include/linux/ceph/
Ddecode.h106 size_t *lenp, gfp_t gfp) in ceph_extract_encoded_string() argument
125 if (lenp) in ceph_extract_encoded_string()
126 *lenp = (size_t) len; in ceph_extract_encoded_string()
/linux-4.1.27/drivers/macintosh/
Dmac_hid.c185 void __user *buffer, size_t *lenp, in mac_hid_toggle_emumouse() argument
196 rc = proc_dointvec(table, write, buffer, lenp, ppos); in mac_hid_toggle_emumouse()
/linux-4.1.27/drivers/of/
Dbase.c214 const char *name, int *lenp) in __of_find_property() argument
223 if (lenp) in __of_find_property()
224 *lenp = pp->length; in __of_find_property()
234 int *lenp) in of_find_property() argument
240 pp = __of_find_property(np, name, lenp); in of_find_property()
291 const char *name, int *lenp) in __of_get_property() argument
293 struct property *pp = __of_find_property(np, name, lenp); in __of_get_property()
303 int *lenp) in of_get_property() argument
305 struct property *pp = of_find_property(np, name, lenp); in of_get_property()
Dof_private.h67 const char *name, int *lenp);
/linux-4.1.27/arch/sparc/include/asm/
Dmdesc.h38 u64 node, const char *name, int *lenp);
/linux-4.1.27/drivers/crypto/nx/
Dnx.c375 unsigned int bytes_so_far, i, lenp; in nx_of_update_msc() local
378 lenp = p->length; in nx_of_update_msc()
386 while ((bytes_so_far + sizeof(struct max_sync_cop)) <= lenp) { in nx_of_update_msc()
392 ((bytes_so_far + sizeof(struct msc_triplet)) <= lenp) && in nx_of_update_msc()
/linux-4.1.27/security/yama/
Dyama_lsm.c380 void __user *buffer, size_t *lenp, loff_t *ppos) in yama_dointvec_minmax() argument
392 return proc_dointvec_minmax(&table_copy, write, buffer, lenp, ppos); in yama_dointvec_minmax()
/linux-4.1.27/drivers/tty/
Dmoxa.c750 unsigned int a, lenp, lencnt; in moxa_load_fw() local
802 lenp = 0; /* bios */ in moxa_load_fw()
806 ret = moxa_load_bios(brd, ptr, lens[lenp]); in moxa_load_fw()
811 ptr += lens[lenp] + lens[lenp + 1]; in moxa_load_fw()
812 lenp += 2; /* comm */ in moxa_load_fw()
815 ret = moxa_load_320b(brd, ptr, lens[lenp]); in moxa_load_fw()
819 ptr += lens[lenp] + lens[lenp + 1]; in moxa_load_fw()
820 lenp += 2; in moxa_load_fw()
823 ret = moxa_load_code(brd, ptr, lens[lenp]); in moxa_load_fw()
/linux-4.1.27/net/netfilter/
Dnf_log.c397 void __user *buffer, size_t *lenp, loff_t *ppos) in nf_log_proc_dostring() argument
401 size_t size = *lenp; in nf_log_proc_dostring()
431 r = proc_dostring(table, write, buffer, lenp, ppos); in nf_log_proc_dostring()
/linux-4.1.27/include/net/
Dneighbour.h381 void __user *buffer, size_t *lenp, loff_t *ppos);
384 size_t *lenp, loff_t *ppos);
387 size_t *lenp, loff_t *ppos);
Dndisc.h214 void __user *buffer, size_t *lenp, loff_t *ppos);
/linux-4.1.27/kernel/trace/
Dtrace_stack.c420 void __user *buffer, size_t *lenp, in stack_trace_sysctl() argument
427 ret = proc_dointvec(table, write, buffer, lenp, ppos); in stack_trace_sysctl()
Dftrace.c5585 void __user *buffer, size_t *lenp, in ftrace_enable_sysctl() argument
5595 ret = proc_dointvec(table, write, buffer, lenp, ppos); in ftrace_enable_sysctl()
/linux-4.1.27/fs/udf/
Dnamei.c1243 static int udf_encode_fh(struct inode *inode, __u32 *fh, int *lenp, in udf_encode_fh() argument
1246 int len = *lenp; in udf_encode_fh()
1252 *lenp = 5; in udf_encode_fh()
1255 *lenp = 3; in udf_encode_fh()
1259 *lenp = 3; in udf_encode_fh()
1270 *lenp = 5; in udf_encode_fh()
/linux-4.1.27/arch/arm64/kernel/
Darmv8_deprecated.c205 void __user *buffer, size_t *lenp, in emulation_proc_handler() argument
213 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in emulation_proc_handler()
/linux-4.1.27/drivers/char/
Drandom.c1591 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_do_uuid() argument
1614 return proc_dostring(&fake_table, write, buffer, lenp, ppos); in proc_do_uuid()
1621 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_do_entropy() argument
1631 return proc_dointvec(&fake_table, write, buffer, lenp, ppos); in proc_do_entropy()
/linux-4.1.27/include/linux/sunrpc/
Dxdr.h102 __be32 *xdr_decode_string_inplace(__be32 *p, char **sp, unsigned int *lenp,
/linux-4.1.27/fs/reiserfs/
Dinode.c1736 int reiserfs_encode_fh(struct inode *inode, __u32 * data, int *lenp, in reiserfs_encode_fh() argument
1739 int maxlen = *lenp; in reiserfs_encode_fh()
1742 *lenp = 5; in reiserfs_encode_fh()
1745 *lenp = 3; in reiserfs_encode_fh()
1752 *lenp = 3; in reiserfs_encode_fh()
1756 *lenp = 5; in reiserfs_encode_fh()
1759 *lenp = 6; in reiserfs_encode_fh()
1762 return *lenp; in reiserfs_encode_fh()
Dreiserfs.h3074 int reiserfs_encode_fh(struct inode *inode, __u32 * data, int *lenp,
/linux-4.1.27/arch/sparc/kernel/
Dmdesc.c415 const char *name, int *lenp) in mdesc_get_property() argument
450 if (lenp) in mdesc_get_property()
451 *lenp = len; in mdesc_get_property()
/linux-4.1.27/net/ipv6/
Dndisc.c1699 int ndisc_ifinfo_sysctl_change(struct ctl_table *ctl, int write, void __user *buffer, size_t *lenp,… in ndisc_ifinfo_sysctl_change() argument
1710 ret = neigh_proc_dointvec(ctl, write, buffer, lenp, ppos); in ndisc_ifinfo_sysctl_change()
1714 buffer, lenp, ppos); in ndisc_ifinfo_sysctl_change()
1719 buffer, lenp, ppos); in ndisc_ifinfo_sysctl_change()
Daddrconf.c5088 void __user *buffer, size_t *lenp, loff_t *ppos) in addrconf_sysctl_forward() argument
5103 ret = proc_dointvec(&lctl, write, buffer, lenp, ppos); in addrconf_sysctl_forward()
5114 void __user *buffer, size_t *lenp, loff_t *ppos) in addrconf_sysctl_mtu() argument
5124 return proc_dointvec_minmax(&lctl, write, buffer, lenp, ppos); in addrconf_sysctl_mtu()
5188 void __user *buffer, size_t *lenp, loff_t *ppos) in addrconf_sysctl_disable() argument
5203 ret = proc_dointvec(&lctl, write, buffer, lenp, ppos); in addrconf_sysctl_disable()
5214 void __user *buffer, size_t *lenp, loff_t *ppos) in addrconf_sysctl_proxy_ndp() argument
5221 ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in addrconf_sysctl_proxy_ndp()
5252 void __user *buffer, size_t *lenp, in addrconf_sysctl_stable_secret() argument
5282 err = proc_dostring(&lctl, write, buffer, lenp, ppos); in addrconf_sysctl_stable_secret()
Droute.c3106 void __user *buffer, size_t *lenp, loff_t *ppos) in ipv6_sysctl_rtcache_flush() argument
3115 proc_dointvec(ctl, write, buffer, lenp, ppos); in ipv6_sysctl_rtcache_flush()
/linux-4.1.27/net/netfilter/ipvs/
Dip_vs_ctl.c1616 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_do_defense_mode() argument
1623 rc = proc_dointvec(table, write, buffer, lenp, ppos); in proc_do_defense_mode()
1637 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_do_sync_threshold() argument
1646 rc = proc_dointvec(table, write, buffer, lenp, ppos); in proc_do_sync_threshold()
1657 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_do_sync_mode() argument
1663 rc = proc_dointvec(table, write, buffer, lenp, ppos); in proc_do_sync_mode()
1675 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_do_sync_ports() argument
1681 rc = proc_dointvec(table, write, buffer, lenp, ppos); in proc_do_sync_ports()
/linux-4.1.27/net/bridge/
Dbr_netfilter.c1045 void __user *buffer, size_t *lenp, loff_t *ppos) in brnf_sysctl_call_tables() argument
1049 ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in brnf_sysctl_call_tables()
/linux-4.1.27/drivers/cdrom/
Dcdrom.c3474 void __user *buffer, size_t *lenp, loff_t *ppos) in cdrom_sysctl_info() argument
3480 if (!*lenp || (*ppos && !write)) { in cdrom_sysctl_info()
3481 *lenp = 0; in cdrom_sysctl_info()
3550 return proc_dostring(ctl, write, buffer, lenp, ppos); in cdrom_sysctl_info()
3587 void __user *buffer, size_t *lenp, loff_t *ppos) in cdrom_sysctl_handler() argument
3591 ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in cdrom_sysctl_handler()
/linux-4.1.27/net/mpls/
Daf_mpls.c1023 void __user *buffer, size_t *lenp, loff_t *ppos) in mpls_platform_labels() argument
1037 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in mpls_platform_labels()
/linux-4.1.27/arch/s390/kernel/
Ddebug.c893 void __user *buffer, size_t *lenp, loff_t *ppos) in s390dbf_procactive() argument
896 return proc_dointvec(table, write, buffer, lenp, ppos); in s390dbf_procactive()
/linux-4.1.27/security/selinux/ss/
Dservices.c2464 int lenp, seqno = 0; in security_set_bools() local
2470 lenp = policydb.p_bools.nprim; in security_set_bools()
2471 if (len != lenp) in security_set_bools()
/linux-4.1.27/drivers/net/ethernet/ti/
Dcpsw.c2023 int lenp; in cpsw_probe_dt() local
2032 parp = of_get_property(slave_node, "phy_id", &lenp); in cpsw_probe_dt()
2033 if ((parp == NULL) || (lenp != (sizeof(void *) * 2))) { in cpsw_probe_dt()
/linux-4.1.27/kernel/sched/
Dcore.c1868 void __user *buffer, size_t *lenp, loff_t *ppos) in sysctl_numa_balancing() argument
1879 err = proc_dointvec_minmax(&t, write, buffer, lenp, ppos); in sysctl_numa_balancing()
7898 void __user *buffer, size_t *lenp, in sched_rt_handler() argument
7909 ret = proc_dointvec(table, write, buffer, lenp, ppos); in sched_rt_handler()
7938 void __user *buffer, size_t *lenp, in sched_rr_handler() argument
7945 ret = proc_dointvec(table, write, buffer, lenp, ppos); in sched_rr_handler()
Dfair.c575 void __user *buffer, size_t *lenp, in sched_proc_update_handler() argument
578 int ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in sched_proc_update_handler()
/linux-4.1.27/fs/quota/
Ddquot.c2745 void __user *buffer, size_t *lenp, loff_t *ppos) in do_proc_dqstats() argument
2752 return proc_dointvec(table, write, buffer, lenp, ppos); in do_proc_dqstats()
/linux-4.1.27/drivers/block/
Drbd.c4815 static inline char *dup_token(const char **buf, size_t *lenp) in dup_token() argument
4827 if (lenp) in dup_token()
4828 *lenp = len; in dup_token()
/linux-4.1.27/kernel/events/
Dcore.c208 void __user *buffer, size_t *lenp, in perf_proc_update_handler() argument
211 int ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in perf_proc_update_handler()
226 void __user *buffer, size_t *lenp, in perf_cpu_time_max_percent_handler() argument
229 int ret = proc_dointvec(table, write, buffer, lenp, ppos); in perf_cpu_time_max_percent_handler()
/linux-4.1.27/fs/xfs/libxfs/
Dxfs_bmap.c3187 xfs_extlen_t *lenp) /* in/out: aligned length */ in xfs_bmap_extsize_align() argument
3202 orig_alen = align_alen = *lenp; in xfs_bmap_extsize_align()
3345 *lenp = align_alen; in xfs_bmap_extsize_align()