| /linux/kernel/ |
| H A D | sysctl.c | 77 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 D | watchdog.c | 1086 void *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog_common() argument 1099 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_watchdog_common() 1102 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_watchdog_common() 1114 void *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog() argument 1118 table, write, buffer, lenp, ppos); in proc_watchdog() 1125 void *buffer, size_t *lenp, loff_t *ppos) in proc_nmi_watchdog() argument 1130 table, write, buffer, lenp, ppos); in proc_nmi_watchdog() 1138 void *buffer, size_t *lenp, loff_t *ppos) in proc_soft_watchdog() argument 1141 table, write, buffer, lenp, ppos); in proc_soft_watchdog() 1149 void *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog_thresh() argument [all …]
|
| /linux/scripts/dtc/libfdt/ |
| H A D | fdt_ro.c | 34 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 in fdt_get_property_by_offset_() 383 fdt_get_property_by_offset(const void * fdt,int offset,int * lenp) fdt_get_property_by_offset() argument 401 fdt_get_property_namelen_(const void * fdt,int offset,const char * name,int namelen,int * lenp,int * poffset) fdt_get_property_namelen_() argument 431 fdt_get_property_namelen(const void * fdt,int offset,const char * name,int namelen,int * lenp) fdt_get_property_namelen() argument 448 fdt_get_property(const void * fdt,int nodeoffset,const char * name,int * lenp) fdt_get_property() argument 455 fdt_getprop_namelen(const void * fdt,int nodeoffset,const char * name,int namelen,int * lenp) fdt_getprop_namelen() argument 473 fdt_getprop_by_offset(const void * fdt,int offset,const char ** namep,int * lenp) fdt_getprop_by_offset() argument 506 fdt_getprop(const void * fdt,int nodeoffset,const char * name,int * lenp) fdt_getprop() argument 530 fdt_path_getprop_namelen(const void * fdt,const char * path,const char * propname,int propnamelen,int * lenp) fdt_path_getprop_namelen() argument 809 fdt_stringlist_get(const void * fdt,int nodeoffset,const char * property,int idx,int * lenp) fdt_stringlist_get() argument [all...] |
| /linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
| H A D | xtlv.c | 45 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 D | procfs.c | 37 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 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(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 D | sysctl_net_core.c | 57 static int dump_cpumask(void *buffer, size_t *lenp, loff_t *ppos, in dump_cpumask() argument 63 if (*ppos || !*lenp) { in dump_cpumask() 64 *lenp = 0; in dump_cpumask() 72 len = min(DIV_ROUND_UP(nr_cpumask_bits, 32) * (8 + 1), *lenp); in dump_cpumask() 75 *lenp = 0; in dump_cpumask() 81 *lenp = 0; in dump_cpumask() 90 *lenp = len; in dump_cpumask() 104 void *buffer, size_t *lenp, loff_t *ppos) in rps_default_mask_sysctl() argument 129 err = dump_cpumask(buffer, lenp, ppos, in rps_default_mask_sysctl() 139 void *buffer, size_t *lenp, loff_t *ppos) in rps_sock_flow_sysctl() argument [all …]
|
| /linux/kernel/time/ |
| H A D | jiffies.c | 234 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_jiffies() argument 236 return proc_dointvec_conv(table, dir, buffer, lenp, ppos, in proc_dointvec_jiffies() 257 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_userhz_jiffies() argument 261 return proc_dointvec_conv(table, dir, buffer, lenp, ppos, in proc_dointvec_userhz_jiffies() 282 size_t *lenp, loff_t *ppos) in proc_dointvec_ms_jiffies() argument 284 return proc_dointvec_conv(table, dir, buffer, lenp, ppos, in proc_dointvec_ms_jiffies() 290 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_ms_jiffies_minmax() argument 292 return proc_dointvec_conv(table, dir, buffer, lenp, ppos, in proc_dointvec_ms_jiffies_minmax() 314 void *buffer, size_t *lenp, loff_t *ppos) in proc_doulongvec_ms_jiffies_minmax() argument 316 return proc_doulongvec_minmax_conv(table, dir, buffer, lenp, ppos, in proc_doulongvec_ms_jiffies_minmax()
|
| /linux/lib/ |
| H A D | sys_info.c | 54 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 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()
|
| /linux/include/linux/ |
| H A D | sysctl.h | 78 size_t *lenp, loff_t *ppos); 82 size_t *lenp, loff_t *ppos); 86 size_t *lenp, loff_t *ppos); 88 size_t *lenp, loff_t *ppos, 102 size_t *lenp, loff_t *ppos); 104 size_t *lenp, loff_t *ppos, 116 size_t *lenp, loff_t *ppos); 119 void *buffer, size_t *lenp, loff_t *ppos, 123 size_t *lenp, loff_t *ppos);
|
| H A D | jiffies.h | 616 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/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); 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 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()
|
| H A D | capstone.h | 20 uint64_t ip, int *lenp, int print_opts, FILE *fp); 34 int *lenp __maybe_unused, in capstone__fprintf_insn_asm()
|
| H A D | print_insn.c | 47 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 D | nfs.c | 100 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 D | virtio_ring_0_9.c | 152 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 D | noring.c | 23 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 D | ring.c | 143 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 D | min_addr.c | 31 void *buffer, size_t *lenp, loff_t *ppos) in mmap_min_addr_handler() argument 38 ret = proc_doulongvec_minmax(table, write, buffer, lenp, ppos); in mmap_min_addr_handler()
|
| /linux/net/ceph/ |
| H A D | auth.c | 124 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/kernel/printk/ |
| H A D | sysctl.c | 14 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_minmax_sysadmin() argument 19 return proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_dointvec_minmax_sysadmin()
|
| /linux/net/rds/ |
| H A D | tcp.c | 65 void *buffer, size_t *lenp, loff_t *fpos); 67 void *buffer, size_t *lenp, loff_t *fpos); 681 void *buffer, size_t *lenp, loff_t *fpos) in rds_tcp_skbuf_handler() argument 685 err = proc_dointvec_minmax(ctl, write, buffer, lenp, fpos); in rds_tcp_skbuf_handler() 702 void *buffer, size_t *lenp, loff_t *fpos) in rds_tcp_sndbuf_handler() argument 707 return rds_tcp_skbuf_handler(rtn, ctl, write, buffer, lenp, fpos); in rds_tcp_sndbuf_handler() 711 void *buffer, size_t *lenp, loff_t *fpos) in rds_tcp_rcvbuf_handler() argument 716 return rds_tcp_skbuf_handler(rtn, ctl, write, buffer, lenp, fpos); in rds_tcp_rcvbuf_handler()
|
| /linux/net/phonet/ |
| H A D | sysctl.c | 52 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()
|