Home
last modified time | relevance | path

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

1234567

/openbmc/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 = len; in _proc_do_string()
[all …]
H A Dwatchdog.c749 void *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog_common() argument
761 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_watchdog_common()
764 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_watchdog_common()
776 void *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog() argument
780 table, write, buffer, lenp, ppos); in proc_watchdog()
787 void *buffer, size_t *lenp, loff_t *ppos) in proc_nmi_watchdog() argument
792 table, write, buffer, lenp, ppos); in proc_nmi_watchdog()
799 void *buffer, size_t *lenp, loff_t *ppos) in proc_soft_watchdog() argument
802 table, write, buffer, lenp, ppos); in proc_soft_watchdog()
809 void *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog_thresh() argument
[all …]
/openbmc/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()
358 int *lenp) in fdt_get_property_by_offset_() argument
365 if (lenp) in fdt_get_property_by_offset_()
366 *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);
563 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp);
662 int *lenp);
665 int *lenp) in fdt_get_property_by_offset_w() argument
668 fdt_get_property_by_offset(fdt, offset, lenp); in fdt_get_property_by_offset_w()
689 int namelen, int *lenp);
721 const char *name, int *lenp);
724 int *lenp) in fdt_get_property_w() argument
727 fdt_get_property(fdt, nodeoffset, name, lenp); in fdt_get_property_w()
763 const char **namep, int *lenp);
[all …]
/openbmc/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 …]
/openbmc/u-boot/scripts/dtc/libfdt/
H A Dfdt_ro.c292 int *lenp) in fdt_get_property_by_offset_() argument
298 if (lenp) in fdt_get_property_by_offset_()
299 *lenp = err; in fdt_get_property_by_offset_()
305 if (lenp) in fdt_get_property_by_offset_()
306 *lenp = fdt32_to_cpu(prop->len); in fdt_get_property_by_offset_()
313 int *lenp) in fdt_get_property_by_offset() argument
319 if (lenp) in fdt_get_property_by_offset()
320 *lenp = -FDT_ERR_BADVERSION; in fdt_get_property_by_offset()
324 return fdt_get_property_by_offset_(fdt, offset, lenp); in fdt_get_property_by_offset()
331 int *lenp, in fdt_get_property_namelen_() argument
[all …]
H A Dlibfdt.h449 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp);
548 int *lenp);
565 int namelen, int *lenp);
597 const char *name, int *lenp);
600 int *lenp) in fdt_get_property_w() argument
603 fdt_get_property(fdt, nodeoffset, name, lenp); in fdt_get_property_w()
639 const char **namep, int *lenp);
655 const char *name, int namelen, int *lenp);
658 int *lenp) in fdt_getprop_namelen_w() argument
661 namelen, lenp); in fdt_getprop_namelen_w()
[all …]
H A Dfdt.c96 const fdt32_t *tagp, *lenp; in fdt_next_tag() local
120 lenp = fdt_offset_ptr(fdt, offset, sizeof(*lenp)); in fdt_next_tag()
121 if (!lenp) in fdt_next_tag()
125 + fdt32_to_cpu(*lenp); in fdt_next_tag()
126 if (fdt_version(fdt) < 0x10 && fdt32_to_cpu(*lenp) >= 8 && in fdt_next_tag()
127 ((offset - fdt32_to_cpu(*lenp)) % 8) != 0) in fdt_next_tag()
/openbmc/linux/drivers/parport/
H A Dprocfs.c44 void *result, size_t *lenp, loff_t *ppos) in do_active_device() argument
55 *lenp = 0; in do_active_device()
69 if (len > *lenp) in do_active_device()
70 len = *lenp; in do_active_device()
72 *lenp = len; in do_active_device()
81 void *result, size_t *lenp, loff_t *ppos) in do_autoprobe() argument
92 *lenp = 0; in do_autoprobe()
111 if (len > *lenp) in do_autoprobe()
112 len = *lenp; in do_autoprobe()
114 *lenp = len; in do_autoprobe()
[all …]
/openbmc/u-boot/lib/
H A Dgzip.c38 int gzip(void *dst, unsigned long *lenp, in gzip() argument
41 return zzip(dst, lenp, src, srclen, 1, NULL); in gzip()
47 int zzip(void *dst, unsigned long *lenp, unsigned char *src, in zzip() argument
63 orig = *lenp; in zzip()
86 left_len = (*lenp > CONFIG_GZIP_COMPRESS_DEF_SZ) ? in zzip()
87 CONFIG_GZIP_COMPRESS_DEF_SZ : *lenp; in zzip()
98 *lenp -= (left_len - s.avail_out); in zzip()
105 } while (s.avail_out == 0 && (*lenp > 0)); in zzip()
111 if (*lenp == 0) { in zzip()
124 *lenp = orig - *lenp; in zzip()
/openbmc/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(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 …]
/openbmc/u-boot/lib/libfdt/
H A Dfdt_ro.c252 int *lenp) in fdt_get_property_by_offset() argument
258 if (lenp) in fdt_get_property_by_offset()
259 *lenp = err; in fdt_get_property_by_offset()
265 if (lenp) in fdt_get_property_by_offset()
266 *lenp = fdt32_to_cpu(prop->len); in fdt_get_property_by_offset()
274 int namelen, int *lenp) in fdt_get_property_namelen() argument
281 if (!(prop = fdt_get_property_by_offset(fdt, offset, lenp))) { in fdt_get_property_namelen()
290 if (lenp) in fdt_get_property_namelen()
291 *lenp = offset; in fdt_get_property_namelen()
297 const char *name, int *lenp) in fdt_get_property() argument
[all …]
/openbmc/linux/net/core/
H A Dsysctl_net_core.c52 static void dump_cpumask(void *buffer, size_t *lenp, loff_t *ppos, in dump_cpumask()
58 if (*ppos || !*lenp) { in dump_cpumask()
59 *lenp = 0; in dump_cpumask()
63 len = min(sizeof(kbuf) - 1, *lenp); in dump_cpumask()
66 *lenp = 0; in dump_cpumask()
70 if (len < *lenp) in dump_cpumask()
73 *lenp = len; in dump_cpumask()
97 void *buffer, size_t *lenp, loff_t *ppos) in rps_default_mask_sysctl()
118 dump_cpumask(buffer, lenp, ppos, in rps_default_mask_sysctl()
128 void *buffer, size_t *lenp, loff_ in rps_sock_flow_sysctl()
51 dump_cpumask(void * buffer,size_t * lenp,loff_t * ppos,struct cpumask * mask) dump_cpumask() argument
96 rps_default_mask_sysctl(struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) rps_default_mask_sysctl() argument
127 rps_sock_flow_sysctl(struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) rps_sock_flow_sysctl() argument
196 flow_limit_cpu_sysctl(struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) flow_limit_cpu_sysctl() argument
253 flow_limit_table_len_sysctl(struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) flow_limit_table_len_sysctl() argument
275 set_default_qdisc(struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) set_default_qdisc() argument
294 proc_do_dev_weight(struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_do_dev_weight() argument
312 proc_do_rss_key(struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_do_rss_key() argument
325 proc_dointvec_minmax_bpf_enable(struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec_minmax_bpf_enable() argument
358 proc_dointvec_minmax_bpf_restricted(struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec_minmax_bpf_restricted() argument
369 proc_dolongvec_minmax_bpf_restricted(struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_dolongvec_minmax_bpf_restricted() argument
[all...]
/openbmc/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);
392 void *buffer, size_t *lenp, loff_t *ppos) in proc_sctp_do_hmac_alg() argument
412 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_sctp_do_hmac_alg()
438 void *buffer, size_t *lenp, loff_t *ppos) in proc_sctp_do_rto_min() argument
[all …]
/openbmc/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 …]
/openbmc/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()
/openbmc/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);
246 void *buffer, size_t *lenp, loff_t *ppos,
298 size_t *lenp, loff_t *ppos);
/openbmc/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()
/openbmc/linux/net/ipv4/
H A 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 …]
/openbmc/u-boot/scripts/dtc/
H A Dutil.c81 int lenp = strlen(path); in join_path() local
87 len = lenp + lenn + 2; in join_path()
88 if ((lenp > 0) && (path[lenp-1] == '/')) { in join_path()
94 memcpy(str, path, lenp); in join_path()
96 str[lenp] = '/'; in join_path()
97 lenp++; in join_path()
99 memcpy(str+lenp, name, lenn+1); in join_path()
/openbmc/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);
204 void *buffer, size_t *lenp, loff_t *ppos) in appldata_timer_handler() argument
216 rc = proc_douintvec_minmax(&ctl_entry, write, buffer, lenp, ppos); in appldata_timer_handler()
237 void *buffer, size_t *lenp, loff_t *ppos) in appldata_interval_handler() argument
248 rc = proc_dointvec_minmax(&ctl_entry, write, buffer, lenp, ppos); in appldata_interval_handler()
267 void *buffer, size_t *lenp, loff_t *ppos) in appldata_generic_handler() argument
300 rc = proc_douintvec_minmax(&ctl_entry, write, buffer, lenp, ppos); in appldata_generic_handler()
/openbmc/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()
/openbmc/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()
/openbmc/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()
/openbmc/qemu/system/
H A Ddevice_tree.c432 const char *property, int *lenp, Error **errp) in qemu_fdt_getprop() argument
437 if (!lenp) { in qemu_fdt_getprop()
438 lenp = &len; in qemu_fdt_getprop()
440 r = fdt_getprop(fdt, findnode_nofail(fdt, node_path), property, lenp); in qemu_fdt_getprop()
443 node_path, property, fdt_strerror(*lenp)); in qemu_fdt_getprop()
449 const char *property, int *lenp, Error **errp) in qemu_fdt_getprop_cell() argument
454 if (!lenp) { in qemu_fdt_getprop_cell()
455 lenp = &len; in qemu_fdt_getprop_cell()
457 p = qemu_fdt_getprop(fdt, node_path, property, lenp, errp); in qemu_fdt_getprop_cell()
460 } else if (*lenp != 4) { in qemu_fdt_getprop_cell()
[all …]

1234567