/openbmc/linux/kernel/ |
H A D | sysctl.c | 153 *lenp = 0; in _proc_do_string() 187 *lenp = 0; in _proc_do_string() 195 len = *lenp; in _proc_do_string() 202 *lenp = len; in _proc_do_string() 483 *lenp = 0; in __do_proc_dointvec() 489 left = *lenp; in __do_proc_dointvec() 569 left = *lenp; in do_proc_douintvec_w() 653 *lenp = 0; in __do_proc_douintvec() 665 *lenp = 0; in __do_proc_douintvec() 1036 *lenp = 0; in __do_proc_doulongvec_minmax() [all …]
|
H A D | watchdog.c | 749 void *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog_common() argument 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 816 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_watchdog_thresh() 832 void *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog_cpumask() argument [all …]
|
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
H A D | xtlv.c | 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 69 *lenp = (u8)len; in brcmf_xtlv_pack_header() [all …]
|
/openbmc/linux/scripts/dtc/libfdt/ |
H A D | fdt_ro.c | 45 if (lenp) in fdt_get_string() 90 if (lenp) in fdt_get_string() 95 if (lenp) in fdt_get_string() 96 *lenp = err; in fdt_get_string() 365 if (lenp) in fdt_get_property_by_offset_() 372 if (lenp) in fdt_get_property_by_offset_() 386 if (lenp) in fdt_get_property_by_offset() 419 if (lenp) in fdt_get_property_namelen_() 433 if (lenp) in fdt_get_property_namelen() 787 if (lenp) in fdt_stringlist_get() [all …]
|
H A D | libfdt.h | 662 int *lenp); 665 int *lenp) in fdt_get_property_by_offset_w() argument 689 int namelen, int *lenp); 721 const char *name, int *lenp); 724 int *lenp) in fdt_get_property_w() argument 763 const char **namep, int *lenp); 784 int *lenp) in fdt_getprop_namelen_w() argument 787 namelen, lenp); in fdt_getprop_namelen_w() 820 const char *name, int *lenp); 822 const char *name, int *lenp) in fdt_getprop_w() argument [all …]
|
/openbmc/u-boot/lib/ |
H A D | gzip.c | 38 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()
|
H A D | gunzip.c | 72 int gunzip(void *dst, int dstlen, unsigned char *src, unsigned long *lenp) in gunzip() argument 74 int offset = gzip_parse_header(src, *lenp); in gunzip() 79 return zunzip(dst, dstlen, src, lenp, 1, offset); in gunzip() 275 int zunzip(void *dst, int dstlen, unsigned char *src, unsigned long *lenp, in zunzip() argument 291 s.avail_in = *lenp - offset; in zunzip() 303 *lenp = s.next_out - (unsigned char *) dst; in zunzip()
|
/openbmc/u-boot/scripts/dtc/libfdt/ |
H A D | fdt_ro.c | 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_() 319 if (lenp) in fdt_get_property_by_offset() 351 if (lenp) in fdt_get_property_namelen_() 352 *lenp = offset; in fdt_get_property_namelen_() 365 if (lenp) in fdt_get_property_namelen() 701 if (lenp) in fdt_stringlist_get() 714 if (lenp) in fdt_stringlist_get() 721 if (lenp) in fdt_stringlist_get() [all …]
|
H A D | libfdt.h | 548 int *lenp); 565 int namelen, int *lenp); 597 const char *name, int *lenp); 600 int *lenp) in fdt_get_property_w() argument 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() 694 const char *name, int *lenp); 696 const char *name, int *lenp) in fdt_getprop_w() argument [all …]
|
H A D | fdt.c | 96 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 D | procfs.c | 55 *lenp = 0; in do_active_device() 70 len = *lenp; in do_active_device() 72 *lenp = len; in do_active_device() 92 *lenp = 0; in do_autoprobe() 112 len = *lenp; in do_autoprobe() 114 *lenp = len; in do_autoprobe() 131 *lenp = 0; in do_hardware_base_addr() 141 len = *lenp; in do_hardware_base_addr() 158 *lenp = 0; in do_hardware_irq() 185 *lenp = 0; in do_hardware_dma() [all …]
|
/openbmc/linux/net/sunrpc/ |
H A D | sysctl.c | 44 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 D | fdt_ro.c | 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() 290 if (lenp) in fdt_get_property_namelen() 291 *lenp = offset; in fdt_get_property_namelen() 603 int *lenp) in fdt_stringlist_get() argument 610 if (lenp) in fdt_stringlist_get() 611 *lenp = length; in fdt_stringlist_get() 623 if (lenp) in fdt_stringlist_get() 630 if (lenp) in fdt_stringlist_get() [all …]
|
/openbmc/linux/net/core/ |
H A D | sysctl_net_core.c | 57 if (*ppos || !*lenp) { in dump_cpumask() 58 *lenp = 0; in dump_cpumask() 62 len = min(sizeof(kbuf) - 1, *lenp); in dump_cpumask() 65 *lenp = 0; in dump_cpumask() 69 if (len < *lenp) in dump_cpumask() 72 *lenp = len; in dump_cpumask() 117 dump_cpumask(buffer, lenp, ppos, in rps_default_mask_sysctl() 127 void *buffer, size_t *lenp, loff_t *ppos) in rps_sock_flow_sysctl() argument 196 void *buffer, size_t *lenp, loff_t *ppos) in flow_limit_cpu_sysctl() argument 244 dump_cpumask(buffer, lenp, ppos, mask); in flow_limit_cpu_sysctl() [all …]
|
/openbmc/linux/net/sctp/ |
H A D | sysctl.c | 47 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); 392 void *buffer, size_t *lenp, loff_t *ppos) in proc_sctp_do_hmac_alg() argument 437 void *buffer, size_t *lenp, loff_t *ppos) in proc_sctp_do_rto_min() argument 465 void *buffer, size_t *lenp, loff_t *ppos) in proc_sctp_do_rto_max() argument 493 void *buffer, size_t *lenp, loff_t *ppos) in proc_sctp_do_alpha_beta() argument [all …]
|
/openbmc/linux/arch/xtensa/boot/lib/ |
H A D | zmem.c | 7 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/arch/s390/mm/ |
H A D | cmm.c | 247 void *buffer, size_t *lenp, loff_t *ppos) in cmm_pages_handler() argument 257 rc = proc_doulongvec_minmax(&ctl_entry, write, buffer, lenp, ppos); in cmm_pages_handler() 266 void *buffer, size_t *lenp, in cmm_timed_pages_handler() argument 286 void *buffer, size_t *lenp, loff_t *ppos) in cmm_timeout_handler() argument 292 if (!*lenp || (*ppos && !write)) { in cmm_timeout_handler() 293 *lenp = 0; in cmm_timeout_handler() 298 len = min(*lenp, sizeof(buf)); in cmm_timeout_handler() 306 *ppos += *lenp; in cmm_timeout_handler() 310 if (len > *lenp) in cmm_timeout_handler() 311 len = *lenp; in cmm_timeout_handler() [all …]
|
/openbmc/linux/include/linux/ |
H A D | sysctl.h | 65 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 D | dump-insn.c | 10 int inlen __maybe_unused, int *lenp) in dump_insn() argument 12 if (lenp) in dump_insn() 13 *lenp = 0; in dump_insn()
|
/openbmc/u-boot/scripts/dtc/ |
H A D | util.c | 81 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 D | appldata_base.c | 50 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/fs/xfs/ |
H A D | xfs_sysctl.c | 17 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/ipv4/ |
H A D | sysctl_net_ipv4.c | 69 void *buffer, size_t *lenp, loff_t *ppos) in ipv4_local_port_range() argument 104 void *buffer, size_t *lenp, loff_t *ppos) in ipv4_privileged_ports() argument 165 void *buffer, size_t *lenp, loff_t *ppos) in ipv4_ping_group_range() argument 237 size_t *lenp, loff_t *ppos) in proc_tcp_available_congestion_control() argument 253 size_t *lenp, loff_t *ppos) in proc_allowed_congestion_control() argument 289 void *buffer, size_t *lenp, loff_t *ppos) in proc_tcp_fastopen_key() argument 361 size_t *lenp, loff_t *ppos) in proc_tfo_blackhole_detect_timeout() argument 375 int write, void *buffer, size_t *lenp, in proc_tcp_available_ulp() argument 416 void *buffer, size_t *lenp, loff_t *ppos) in proc_udp_hash_entries() argument 440 void *buffer, size_t *lenp, in proc_fib_multipath_hash_policy() argument [all …]
|
/openbmc/linux/scripts/dtc/ |
H A D | util.c | 97 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/net/sunrpc/xprtrdma/ |
H A D | svc_rdma.c | 78 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()
|