Home
last modified time | relevance | path

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

1234

/linux-3.4.99/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()
58 void *buffer, size_t *lenp, loff_t *ppos) in proc_dolasatint() argument
62 r = proc_dointvec(table, write, buffer, lenp, ppos); in proc_dolasatint()
76 void *buffer, size_t *lenp, loff_t *ppos) in proc_dolasatrtc() argument
88 r = proc_dointvec(table, write, buffer, lenp, ppos); in proc_dolasatrtc()
101 void *buffer, size_t *lenp, loff_t *ppos) in proc_lasat_ip() argument
108 if (!table->data || !table->maxlen || !*lenp || in proc_lasat_ip()
110 *lenp = 0; in proc_lasat_ip()
117 while (len < *lenp) { in proc_lasat_ip()
[all …]
/linux-3.4.99/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 …]
/linux-3.4.99/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-3.4.99/scripts/dtc/
Dutil.c39 int lenp = strlen(path); in join_path() local
45 len = lenp + lenn + 2; in join_path()
46 if ((lenp > 0) && (path[lenp-1] == '/')) { in join_path()
52 memcpy(str, path, lenp); in join_path()
54 str[lenp] = '/'; in join_path()
55 lenp++; in join_path()
57 memcpy(str+lenp, name, lenn+1); in join_path()
/linux-3.4.99/arch/frv/kernel/
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 …]
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()
202 void __user *buffer, size_t *lenp, loff_t *fpos) in cmode_procctl() argument
207 return proc_dointvec(ctl, write, buffer, lenp, fpos); in cmode_procctl()
209 new_cmode = user_atoi(buffer, *lenp); in cmode_procctl()
211 return try_set_cmode(new_cmode)?:*lenp; in cmode_procctl()
274 void __user *buffer, size_t *lenp, loff_t *fpos) in p0_procctl() argument
279 return proc_dointvec(ctl, write, buffer, lenp, fpos); in p0_procctl()
281 new_p0 = user_atoi(buffer, *lenp); in p0_procctl()
[all …]
/linux-3.4.99/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_callback_dointvec() argument
69 size_t lenp_bef = *lenp; in proc_ipc_callback_dointvec()
75 rc = proc_dointvec(&ipc_table, write, buffer, lenp, ppos); in proc_ipc_callback_dointvec()
77 if (write && !rc && lenp_bef == *lenp) in proc_ipc_callback_dointvec()
[all …]
Dmq_sysctl.c35 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_mq_dointvec() argument
41 return proc_dointvec(&mq_table, write, buffer, lenp, ppos); in proc_mq_dointvec()
45 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_mq_dointvec_minmax() argument
52 lenp, ppos); in proc_mq_dointvec_minmax()
/linux-3.4.99/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()
/linux-3.4.99/kernel/
Dsysctl.c172 void __user *buffer, size_t *lenp, loff_t *ppos);
174 void __user *buffer, size_t *lenp, loff_t *ppos);
179 void __user *buffer, size_t *lenp, loff_t *ppos);
187 void __user *buffer, size_t *lenp, in sysrq_sysctl_handler() argument
192 error = proc_dointvec(table, write, buffer, lenp, ppos); in sysrq_sysctl_handler()
1574 size_t *lenp, loff_t *ppos) in _proc_do_string() argument
1580 if (!data || !maxlen || !*lenp) { in _proc_do_string()
1581 *lenp = 0; in _proc_do_string()
1588 while (len < *lenp) { in _proc_do_string()
1600 *ppos += *lenp; in _proc_do_string()
[all …]
/linux-3.4.99/arch/s390/appldata/
Dappldata_base.c54 void __user *buffer, size_t *lenp, loff_t *ppos);
57 size_t *lenp, loff_t *ppos);
248 void __user *buffer, size_t *lenp, loff_t *ppos) in appldata_timer_handler() argument
253 if (!*lenp || *ppos) { in appldata_timer_handler()
254 *lenp = 0; in appldata_timer_handler()
259 if (len > *lenp) in appldata_timer_handler()
260 len = *lenp; in appldata_timer_handler()
265 len = *lenp; in appldata_timer_handler()
277 *lenp = len; in appldata_timer_handler()
290 void __user *buffer, size_t *lenp, loff_t *ppos) in appldata_interval_handler() argument
[all …]
/linux-3.4.99/arch/s390/mm/
Dcmm.c257 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 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-3.4.99/scripts/dtc/libfdt/
Dfdt.c95 const uint32_t *tagp, *lenp; in fdt_next_tag() local
118 lenp = fdt_offset_ptr(fdt, offset, sizeof(*lenp)); in fdt_next_tag()
119 if (! lenp) in fdt_next_tag()
122 offset += 2*FDT_TAGSIZE + fdt32_to_cpu(*lenp); in fdt_next_tag()
Dlibfdt.h343 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp);
373 const char *name, int *lenp);
376 int *lenp) in fdt_get_property_w() argument
379 fdt_get_property(fdt, nodeoffset, name, lenp); in fdt_get_property_w()
410 const char *name, int *lenp);
412 const char *name, int *lenp) in fdt_getprop_w() argument
414 return (void *)(uintptr_t)fdt_getprop(fdt, nodeoffset, name, lenp); in fdt_getprop_w()
Dfdt_ro.c183 const char *name, int *lenp) in fdt_get_property() argument
224 if (lenp) in fdt_get_property()
225 *lenp = len; in fdt_get_property()
239 if (lenp) in fdt_get_property()
240 *lenp = err; in fdt_get_property()
245 const char *name, int *lenp) in fdt_getprop() argument
249 prop = fdt_get_property(fdt, nodeoffset, name, lenp); in fdt_getprop()
/linux-3.4.99/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-3.4.99/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-3.4.99/net/ipv4/
Dsysctl_net_ipv4.c54 size_t *lenp, loff_t *ppos) in ipv4_local_port_range() argument
67 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in ipv4_local_port_range()
105 size_t *lenp, loff_t *ppos) in ipv4_ping_group_range() argument
118 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in ipv4_ping_group_range()
127 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_tcp_congestion_control() argument
138 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_tcp_congestion_control()
146 void __user *buffer, size_t *lenp, in proc_tcp_available_congestion_control() argument
156 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_tcp_available_congestion_control()
163 void __user *buffer, size_t *lenp, in proc_allowed_congestion_control() argument
174 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_allowed_congestion_control()
[all …]
/linux-3.4.99/include/linux/
Dwriteback.h140 void __user *buffer, size_t *lenp,
143 void __user *buffer, size_t *lenp,
146 void __user *buffer, size_t *lenp,
149 void __user *buffer, size_t *lenp,
Dof.h204 int *lenp);
228 int *lenp);
280 int *lenp) in of_find_property() argument
322 int *lenp) in of_get_property() argument
/linux-3.4.99/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-3.4.99/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-3.4.99/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()
/linux-3.4.99/net/phonet/
Dsysctl.c61 size_t *lenp, loff_t *ppos) in proc_local_port_range() argument
73 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in proc_local_port_range()
/linux-3.4.99/arch/powerpc/platforms/cell/
Dspu_manage.c451 int lenp, i; in neighbour_spu() local
457 vic_handles = of_get_property(spu_dn, "vicinity", &lenp); in neighbour_spu()
458 for (i=0; i < (lenp / sizeof(phandle)); i++) { in neighbour_spu()
473 int lenp, i, added; in init_affinity_node() local
480 vic_handles = of_get_property(last_spu_dn, "vicinity", &lenp); in init_affinity_node()
486 for (i = 0; i < (lenp / sizeof(phandle)); i++) { in init_affinity_node()

1234