Home
last modified time | relevance | path

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

12345

/linux/kernel/
H A Dsysctl.c147 char *buffer, size_t *lenp, loff_t *ppos) in _proc_do_string() argument
152 if (!data || !maxlen || !*lenp) { in _proc_do_string()
153 *lenp = 0; in _proc_do_string()
172 *ppos += *lenp; in _proc_do_string()
174 while ((p - buffer) < *lenp && len < maxlen - 1) { in _proc_do_string()
187 *lenp = 0; in _proc_do_string()
194 if (len > *lenp) in _proc_do_string()
195 len = *lenp; in _proc_do_string()
198 if (len < *lenp) { in _proc_do_string()
202 *lenp in _proc_do_string()
260 proc_dostring(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_dostring() argument
473 __do_proc_dointvec(void * tbl_data,const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos,int (* conv)(bool * negp,unsigned long * lvalp,int * valp,int write,void * data),void * data) __do_proc_dointvec() argument
545 do_proc_dointvec(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos,int (* conv)(bool * negp,unsigned long * lvalp,int * valp,int write,void * data),void * data) do_proc_dointvec() argument
557 do_proc_douintvec_w(unsigned int * tbl_data,const struct ctl_table * table,void * buffer,size_t * lenp,loff_t * ppos,int (* conv)(unsigned long * lvalp,unsigned int * valp,int write,void * data),void * data) do_proc_douintvec_w() argument
612 do_proc_douintvec_r(unsigned int * tbl_data,void * buffer,size_t * lenp,loff_t * ppos,int (* conv)(unsigned long * lvalp,unsigned int * valp,int write,void * data),void * data) do_proc_douintvec_r() argument
644 __do_proc_douintvec(void * tbl_data,const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos,int (* conv)(unsigned long * lvalp,unsigned int * valp,int write,void * data),void * data) __do_proc_douintvec() argument
679 do_proc_douintvec(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos,int (* conv)(unsigned long * lvalp,unsigned int * valp,int write,void * data),void * data) do_proc_douintvec() argument
706 proc_dobool(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_dobool() argument
743 proc_dointvec(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec() argument
762 proc_douintvec(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_douintvec() argument
773 proc_taint(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_taint() argument
868 proc_dointvec_minmax(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec_minmax() argument
937 proc_douintvec_minmax(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_douintvec_minmax() argument
965 proc_dou8vec_minmax(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_dou8vec_minmax() argument
1002 sysrq_sysctl_handler(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) sysrq_sysctl_handler() argument
1022 __do_proc_doulongvec_minmax(void * data,const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos,unsigned long convmul,unsigned long convdiv) __do_proc_doulongvec_minmax() argument
1095 do_proc_doulongvec_minmax(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos,unsigned long convmul,unsigned long convdiv) do_proc_doulongvec_minmax() argument
1119 proc_doulongvec_minmax(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_doulongvec_minmax() argument
1142 proc_doulongvec_ms_jiffies_minmax(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_doulongvec_ms_jiffies_minmax() argument
1263 proc_dointvec_jiffies(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec_jiffies() argument
1270 proc_dointvec_ms_jiffies_minmax(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec_ms_jiffies_minmax() argument
1296 proc_dointvec_userhz_jiffies(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec_userhz_jiffies() argument
1319 proc_dointvec_ms_jiffies(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec_ms_jiffies() argument
1326 proc_do_cad_pid(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_do_cad_pid() argument
1365 proc_do_large_bitmap(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_do_large_bitmap() argument
1497 proc_dostring(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_dostring() argument
1503 proc_dobool(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_dobool() argument
1509 proc_dointvec(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec() argument
1515 proc_douintvec(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_douintvec() argument
1521 proc_dointvec_minmax(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec_minmax() argument
1527 proc_douintvec_minmax(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_douintvec_minmax() argument
1533 proc_dou8vec_minmax(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_dou8vec_minmax() argument
1539 proc_dointvec_jiffies(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec_jiffies() argument
1545 proc_dointvec_ms_jiffies_minmax(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec_ms_jiffies_minmax() argument
1551 proc_dointvec_userhz_jiffies(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec_userhz_jiffies() argument
1557 proc_dointvec_ms_jiffies(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec_ms_jiffies() argument
1563 proc_doulongvec_minmax(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_doulongvec_minmax() argument
1569 proc_doulongvec_ms_jiffies_minmax(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_doulongvec_ms_jiffies_minmax() argument
1575 proc_do_large_bitmap(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_do_large_bitmap() argument
1584 proc_do_static_key(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_do_static_key() argument
[all...]
H A Dwatchdog.c995 void *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog_common() argument
1008 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_watchdog_common()
1011 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_watchdog_common()
1023 void *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog() argument
1027 table, write, buffer, lenp, ppos); in proc_watchdog()
1034 void *buffer, size_t *lenp, loff_t *ppos) in proc_nmi_watchdog() argument
1039 table, write, buffer, lenp, ppos); in proc_nmi_watchdog()
1047 void *buffer, size_t *lenp, loff_t *ppos) in proc_soft_watchdog() argument
1050 table, write, buffer, lenp, ppos); in proc_soft_watchdog()
1058 void *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog_thresh() argument
[all …]
/linux/scripts/dtc/libfdt/
H A Dfdt_ro.c34 const char *fdt_get_string(const void *fdt, int stroffset, int *lenp) in fdt_get_string() argument
45 if (lenp) in fdt_get_string()
46 *lenp = strlen(s); in fdt_get_string()
90 if (lenp) in fdt_get_string()
91 *lenp = n - s; in fdt_get_string()
95 if (lenp) in fdt_get_string()
96 *lenp = err; in fdt_get_string()
361 int *lenp) in fdt_get_property_by_offset_() argument
368 if (lenp) in fdt_get_property_by_offset_()
369 *lenp = err; in fdt_get_property_by_offset_()
[all …]
H A Dlibfdt.h353 const char *fdt_get_string(const void *fdt, int stroffset, int *lenp);
588 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp);
687 int *lenp);
690 int *lenp) in fdt_get_property_by_offset_w() argument
693 fdt_get_property_by_offset(fdt, offset, lenp); in fdt_get_property_by_offset_w()
714 int namelen, int *lenp);
746 const char *name, int *lenp);
749 int *lenp) in fdt_get_property_w() argument
752 fdt_get_property(fdt, nodeoffset, name, lenp); in fdt_get_property_w()
788 const char **namep, int *lenp);
[all …]
H A Dfdt.c164 const fdt32_t *tagp, *lenp; in fdt_next_tag() local
188 lenp = fdt_offset_ptr(fdt, offset, sizeof(*lenp)); in fdt_next_tag()
189 if (!can_assume(VALID_DTB) && !lenp) in fdt_next_tag()
192 len = fdt32_to_cpu(*lenp); in fdt_next_tag()
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dxtlv.c45 u8 *lenp = idp + sizeof(xtlv->id); in brcmf_xtlv_pack_header() local
48 put_unaligned_le16(len, lenp); in brcmf_xtlv_pack_header()
49 data_buf = lenp + sizeof(u16); in brcmf_xtlv_pack_header()
52 u8 *lenp = idp + 1; in brcmf_xtlv_pack_header() local
55 *lenp = (u8)len; in brcmf_xtlv_pack_header()
56 data_buf = lenp + sizeof(u8); in brcmf_xtlv_pack_header()
59 u8 *lenp = idp + 1; in brcmf_xtlv_pack_header() local
62 put_unaligned_le16(len, lenp); in brcmf_xtlv_pack_header()
63 data_buf = lenp + sizeof(u16); in brcmf_xtlv_pack_header()
66 u8 *lenp = idp + sizeof(u16); in brcmf_xtlv_pack_header() local
[all …]
/linux/drivers/parport/
H A Dprocfs.c37 void *result, size_t *lenp, loff_t *ppos) in do_active_device() argument
48 *lenp = 0; in do_active_device()
62 if (len > *lenp) in do_active_device()
63 len = *lenp; in do_active_device()
65 *lenp = len; in do_active_device()
74 void *result, size_t *lenp, loff_t *ppos) in do_autoprobe() argument
85 *lenp = 0; in do_autoprobe()
104 if (len > *lenp) in do_autoprobe()
105 len = *lenp; in do_autoprobe()
107 *lenp = len; in do_autoprobe()
[all …]
/linux/net/sunrpc/
H A 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(const 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 …]
/linux/net/sctp/
H A 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);
388 void *buffer, size_t *lenp, loff_t *ppos) in proc_sctp_do_hmac_alg() argument
408 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_sctp_do_hmac_alg()
434 void *buffer, size_t *lenp, loff_t *ppos) in proc_sctp_do_rto_min() argument
[all …]
/linux/arch/s390/mm/
H A Dcmm.c263 void *buffer, size_t *lenp, loff_t *ppos) in cmm_pages_handler() argument
273 rc = proc_doulongvec_minmax(&ctl_entry, write, buffer, lenp, ppos); in cmm_pages_handler()
282 void *buffer, size_t *lenp, in cmm_timed_pages_handler() argument
293 rc = proc_doulongvec_minmax(&ctl_entry, write, buffer, lenp, ppos); in cmm_timed_pages_handler()
302 void *buffer, size_t *lenp, loff_t *ppos) in cmm_timeout_handler() argument
308 if (!*lenp || (*ppos && !write)) { in cmm_timeout_handler()
309 *lenp = 0; in cmm_timeout_handler()
314 len = min(*lenp, sizeof(buf)); in cmm_timeout_handler()
322 *ppos += *lenp; in cmm_timeout_handler()
326 if (len > *lenp) in cmm_timeout_handler()
[all …]
/linux/arch/xtensa/boot/lib/
H A Dzmem.c7 void gunzip(void *dst, int dstlen, unsigned char *src, int *lenp);
36 void gunzip (void *dst, int dstlen, unsigned char *src, int *lenp) in gunzip() argument
58 if (i >= *lenp) { in gunzip()
70 s.avail_in = *lenp - i; in gunzip()
78 *lenp = s.next_out - (unsigned char *) dst; in gunzip()
/linux/include/linux/
H A Dsysctl.h65 size_t *lenp, loff_t *ppos);
69 size_t *lenp, loff_t *ppos);
74 size_t *lenp, loff_t *ppos);
76 size_t *lenp, loff_t *ppos);
79 void *buffer, size_t *lenp, loff_t *ppos);
89 size_t *lenp, loff_t *ppos);
239 void *buffer, size_t *lenp, loff_t *ppos,
289 size_t *lenp, loff_t *ppos);
/linux/net/ipv4/
H A Dsysctl_net_ipv4.c66 void *buffer, size_t *lenp, loff_t *ppos) in ipv4_local_port_range() argument
81 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in ipv4_local_port_range()
100 void *buffer, size_t *lenp, loff_t *ppos) in ipv4_privileged_ports() argument
117 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in ipv4_privileged_ports()
163 void *buffer, size_t *lenp, loff_t *ppos) in ipv4_ping_group_range() argument
180 ret = proc_doulongvec_minmax(&tmp, write, buffer, lenp, ppos); in ipv4_ping_group_range()
198 void *buffer, size_t *lenp, loff_t *ppos) in ipv4_fwd_update_priority() argument
205 ret = proc_dou8vec_minmax(table, write, buffer, lenp, ppos); in ipv4_fwd_update_priority()
214 void *buffer, size_t *lenp, loff_t *ppos) in proc_tcp_congestion_control() argument
227 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_tcp_congestion_control()
[all …]
/linux/arch/s390/appldata/
H A Dappldata_base.c50 void *buffer, size_t *lenp, loff_t *ppos);
52 void *buffer, size_t *lenp, loff_t *ppos);
203 void *buffer, size_t *lenp, loff_t *ppos) in appldata_timer_handler() argument
215 rc = proc_douintvec_minmax(&ctl_entry, write, buffer, lenp, ppos); in appldata_timer_handler()
236 void *buffer, size_t *lenp, loff_t *ppos) in appldata_interval_handler() argument
247 rc = proc_dointvec_minmax(&ctl_entry, write, buffer, lenp, ppos); in appldata_interval_handler()
266 void *buffer, size_t *lenp, loff_t *ppos) in appldata_generic_handler() argument
299 rc = proc_douintvec_minmax(&ctl_entry, write, buffer, lenp, ppos); in appldata_generic_handler()
/linux/tools/perf/util/
H A Ddump-insn.c10 int inlen __maybe_unused, int *lenp) in dump_insn() argument
12 if (lenp) in dump_insn()
13 *lenp = 0; in dump_insn()
/linux/scripts/dtc/
H A Dutil.c97 int lenp = strlen(path); in join_path() local
103 len = lenp + lenn + 2; in join_path()
104 if ((lenp > 0) && (path[lenp-1] == '/')) { in join_path()
110 memcpy(str, path, lenp); in join_path()
112 str[lenp] = '/'; in join_path()
113 lenp++; in join_path()
115 memcpy(str+lenp, name, lenn+1); in join_path()
/linux/fs/xfs/
H A Dxfs_sysctl.c17 size_t *lenp, in xfs_stats_clear_proc_handler() argument
22 ret = proc_dointvec_minmax(ctl, write, buffer, lenp, ppos); in xfs_stats_clear_proc_handler()
37 size_t *lenp, in xfs_panic_mask_proc_handler() argument
42 ret = proc_dointvec_minmax(ctl, write, buffer, lenp, ppos); in xfs_panic_mask_proc_handler()
58 size_t *lenp, in xfs_deprecated_dointvec_minmax() argument
66 return proc_dointvec_minmax(ctl, write, buffer, lenp, ppos); in xfs_deprecated_dointvec_minmax()
/linux/net/sunrpc/xprtrdma/
H A 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()
/linux/fs/fat/
H A Dnfs.c100 fat_encode_fh_nostale(struct inode *inode, __u32 *fh, int *lenp, in fat_encode_fh_nostale() argument
103 int len = *lenp; in fat_encode_fh_nostale()
111 *lenp = FAT_FID_SIZE_WITH_PARENT; in fat_encode_fh_nostale()
116 *lenp = FAT_FID_SIZE_WITHOUT_PARENT; in fat_encode_fh_nostale()
122 *lenp = FAT_FID_SIZE_WITHOUT_PARENT; in fat_encode_fh_nostale()
132 *lenp = FAT_FID_SIZE_WITH_PARENT; in fat_encode_fh_nostale()
/linux/ipc/
H A Dipc_sysctl.c21 void *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_dointvec_minmax_orphans() argument
27 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_ipc_dointvec_minmax_orphans()
37 void *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_auto_msgmni() argument
48 return proc_dointvec_minmax(&ipc_table, write, buffer, lenp, ppos); in proc_ipc_auto_msgmni()
52 void *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_sem_dointvec() argument
59 ret = proc_dointvec(table, write, buffer, lenp, ppos); in proc_ipc_sem_dointvec()
/linux/net/mptcp/
H A Dctrl.c122 void *buffer, size_t *lenp, loff_t *ppos) in proc_scheduler() argument
134 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_scheduler()
143 size_t *lenp, loff_t *ppos) in proc_available_schedulers() argument
153 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_available_schedulers()
160 int write, void *buffer, size_t *lenp, in proc_blackhole_detect_timeout() argument
168 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_blackhole_detect_timeout()
/linux/tools/virtio/ringtest/
H A Dvirtio_ring_0_9.c152 void *get_buf(unsigned *lenp, void **bufp) in get_buf() argument
181 *lenp = ring.desc[index].len; in get_buf()
183 *lenp = ring.used->ring[head].len; in get_buf()
270 bool use_buf(unsigned *lenp, void **bufp) in use_buf() argument
301 *lenp = desc->len; in use_buf()
H A Dnoring.c23 void *get_buf(unsigned *lenp, void **bufp) in get_buf() argument
64 bool use_buf(unsigned *lenp, void **bufp) in use_buf() argument
/linux/security/
H A Dmin_addr.c33 void *buffer, size_t *lenp, loff_t *ppos) in mmap_min_addr_handler() argument
40 ret = proc_doulongvec_minmax(table, write, buffer, lenp, ppos); in mmap_min_addr_handler()
/linux/net/ceph/
H A 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()

12345