Home
last modified time | relevance | path

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

1234

/linux/kernel/
H A Dsysctl.c77 char *buffer, size_t *lenp, loff_t *ppos) in _proc_do_string() argument
82 if (!data || !maxlen || !*lenp) { in _proc_do_string()
83 *lenp = 0; in _proc_do_string()
102 *ppos += *lenp; in _proc_do_string()
104 while ((p - buffer) < *lenp && len < maxlen - 1) { in _proc_do_string()
117 *lenp = 0; in _proc_do_string()
124 if (len > *lenp) in _proc_do_string()
125 len = *lenp; in _proc_do_string()
128 if (len < *lenp) { in _proc_do_string()
132 *lenp = len; in _proc_do_string()
[all …]
H A Dwatchdog.c1084 void *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog_common() argument
1097 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_watchdog_common()
1100 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_watchdog_common()
1112 void *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog() argument
1116 table, write, buffer, lenp, ppos); in proc_watchdog()
1123 void *buffer, size_t *lenp, loff_t *ppos) in proc_nmi_watchdog() argument
1128 table, write, buffer, lenp, ppos); in proc_nmi_watchdog()
1136 void *buffer, size_t *lenp, loff_t *ppos) in proc_soft_watchdog() argument
1139 table, write, buffer, lenp, ppos); in proc_soft_watchdog()
1147 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 …]
/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/core/
H A Dsysctl_net_core.c56 static int dump_cpumask(void *buffer, size_t *lenp, loff_t *ppos, in dump_cpumask() argument
62 if (*ppos || !*lenp) { in dump_cpumask()
63 *lenp = 0; in dump_cpumask()
71 len = min(DIV_ROUND_UP(nr_cpumask_bits, 32) * (8 + 1), *lenp); in dump_cpumask()
74 *lenp = 0; in dump_cpumask()
80 *lenp = 0; in dump_cpumask()
89 *lenp = len; in dump_cpumask()
103 void *buffer, size_t *lenp, loff_t *ppos) in rps_default_mask_sysctl() argument
128 err = dump_cpumask(buffer, lenp, ppos, in rps_default_mask_sysctl()
138 void *buffer, size_t *lenp, loff_ in rps_sock_flow_sysctl() argument
210 flow_limit_cpu_sysctl(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) flow_limit_cpu_sysctl() argument
267 flow_limit_table_len_sysctl(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) flow_limit_table_len_sysctl() argument
289 set_default_qdisc(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) set_default_qdisc() argument
308 proc_do_dev_weight(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_do_dev_weight() argument
326 proc_do_rss_key(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_do_rss_key() argument
339 proc_dointvec_minmax_bpf_enable(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec_minmax_bpf_enable() argument
372 proc_dointvec_minmax_bpf_restricted(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec_minmax_bpf_restricted() argument
383 proc_dolongvec_minmax_bpf_restricted(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_dolongvec_minmax_bpf_restricted() argument
[all...]
/linux/kernel/time/
H A Djiffies.c140 void *buffer, size_t *lenp, loff_t *ppos) in SYSCTL_USER_TO_KERN_INT_CONV()
142 return proc_dointvec_conv(table, dir, buffer, lenp, ppos, in SYSCTL_USER_TO_KERN_INT_CONV()
163 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_userhz_jiffies() argument
167 return proc_dointvec_conv(table, dir, buffer, lenp, ppos, in proc_dointvec_userhz_jiffies()
188 size_t *lenp, loff_t *ppos) in proc_dointvec_ms_jiffies() argument
190 return proc_dointvec_conv(table, dir, buffer, lenp, ppos, in proc_dointvec_ms_jiffies()
196 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_ms_jiffies_minmax() argument
198 return proc_dointvec_conv(table, dir, buffer, lenp, ppos, in proc_dointvec_ms_jiffies_minmax()
220 void *buffer, size_t *lenp, loff_t *ppos) in proc_doulongvec_ms_jiffies_minmax() argument
222 return proc_doulongvec_minmax_conv(table, dir, buffer, lenp, ppos, in proc_doulongvec_ms_jiffies_minmax()
/linux/lib/
H A Dsys_info.c54 void *buffer, size_t *lenp, loff_t *ppos, in sys_info_write_handler() argument
60 ret = proc_dostring(table, 1, buffer, lenp, ppos); in sys_info_write_handler()
73 void *buffer, size_t *lenp, loff_t *ppos, in sys_info_read_handler() argument
92 return proc_dostring(table, 0, buffer, lenp, ppos); in sys_info_read_handler()
96 void *buffer, size_t *lenp, in sysctl_sys_info_handler() argument
116 return sys_info_write_handler(&table, buffer, lenp, ppos, ro_table->data); in sysctl_sys_info_handler()
118 return sys_info_read_handler(&table, buffer, lenp, ppos, ro_table->data); in sysctl_sys_info_handler()
/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.h180 size_t *lenp, loff_t *ppos);
184 size_t *lenp, loff_t *ppos);
187 size_t *lenp, loff_t *ppos);
189 size_t *lenp, loff_t *ppos,
194 size_t *lenp, loff_t *ppos);
196 size_t *lenp, loff_t *ppos,
201 size_t *lenp, loff_t *ppos);
204 void *buffer, size_t *lenp, loff_t *ppos,
208 size_t *lenp, loff_t *ppos);
H A Djiffies.h616 size_t *lenp, loff_t *ppos);
618 void *buffer, size_t *lenp, loff_t *ppos);
620 void *buffer, size_t *lenp, loff_t *ppos);
622 size_t *lenp, loff_t *ppos);
624 void *buffer, size_t *lenp, loff_t *ppos);
/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/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()
H A Dprint_insn.c47 uint64_t ip, int *lenp, int print_opts, FILE *fp) in fprintf_insn_asm() argument
50 ip, lenp, print_opts, fp); in fprintf_insn_asm()
/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/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
H A Dring.c143 void *get_buf(unsigned *lenp, void **bufp) in get_buf() argument
153 *lenp = ring[head].len; in get_buf()
226 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()
/linux/net/phonet/
H A 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()
/linux/net/rds/
H A Dtcp.c65 void *buffer, size_t *lenp, loff_t *fpos);
67 void *buffer, size_t *lenp, loff_t *fpos);
685 void *buffer, size_t *lenp, loff_t *fpos) in rds_tcp_skbuf_handler() argument
689 err = proc_dointvec_minmax(ctl, write, buffer, lenp, fpos); in rds_tcp_skbuf_handler()
706 void *buffer, size_t *lenp, loff_t *fpos) in rds_tcp_sndbuf_handler() argument
711 return rds_tcp_skbuf_handler(rtn, ctl, write, buffer, lenp, fpos); in rds_tcp_sndbuf_handler()
715 void *buffer, size_t *lenp, loff_t *fpos) in rds_tcp_rcvbuf_handler() argument
720 return rds_tcp_skbuf_handler(rtn, ctl, write, buffer, lenp, fpos); in rds_tcp_rcvbuf_handler()
/linux/net/netfilter/
H A 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()
/linux/net/ipv6/
H A 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()

1234