| /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/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/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/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 in _proc_do_string() 190 proc_dostring(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dostring() argument 647 do_proc_vec(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos,enum proc_vec_type type,union proc_vec_conv conv) do_proc_vec() argument 755 proc_douintvec_conv(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos,int (* conv)(bool * negp,ulong * u_ptr,uint * k_ptr,int dir,const struct ctl_table * table)) proc_douintvec_conv() argument 784 proc_dobool(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dobool() argument 821 proc_dointvec(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec() argument 841 proc_douintvec(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_douintvec() argument 865 proc_dointvec_minmax(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec_minmax() argument 892 proc_douintvec_minmax(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_douintvec_minmax() argument 917 proc_dou8vec_minmax(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dou8vec_minmax() argument 1065 proc_doulongvec_conv(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos,int (* conv)(bool * negp,ulong * u_ptr,ulong * k_ptr,int dir,const struct ctl_table * table)) proc_doulongvec_conv() argument 1090 proc_doulongvec_minmax(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_doulongvec_minmax() argument 1111 proc_dointvec_conv(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos,int (* conv)(bool * negp,unsigned long * u_ptr,int * k_ptr,int dir,const struct ctl_table * table)) proc_dointvec_conv() argument 1139 proc_do_large_bitmap(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_do_large_bitmap() argument 1271 proc_dostring(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dostring() argument 1277 proc_dobool(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dobool() argument 1283 proc_dointvec(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec() argument 1289 proc_douintvec(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_douintvec() argument 1295 proc_dointvec_minmax(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec_minmax() argument 1301 proc_douintvec_minmax(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_douintvec_minmax() argument 1307 proc_douintvec_conv(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos,int (* conv)(bool * negp,ulong * lvalp,uint * valp,int write,const struct ctl_table * table)) proc_douintvec_conv() argument 1334 proc_dou8vec_minmax(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dou8vec_minmax() argument 1340 proc_doulongvec_minmax(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_doulongvec_minmax() argument 1346 proc_doulongvec_conv(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos,int (* conv)(bool * negp,ulong * u_ptr,ulong * k_ptr,int dir,const struct ctl_table * table)) proc_doulongvec_conv() argument 1354 proc_dointvec_conv(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos,int (* conv)(bool * negp,unsigned long * u_ptr,int * k_ptr,int dir,const struct ctl_table * table)) proc_dointvec_conv() argument 1362 proc_do_large_bitmap(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_do_large_bitmap() argument 1371 proc_do_static_key(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_do_static_key() argument [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/include/linux/ |
| H A D | sysctl.h | 78 size_t *lenp, loff_t *ppos); 81 int proc_dostring(const struct ctl_table *ctl, int dir, void *buf, size_t *lenp, 83 int proc_dobool(const struct ctl_table *ctl, int dir, void *buf, size_t *lenp, 85 int proc_dointvec(const struct ctl_table *ctl, int dir, void *buf, size_t *lenp, 88 size_t *lenp, loff_t *ppos); 89 int proc_douintvec(const struct ctl_table *ctl, int dir, void *buf, size_t *lenp, 92 size_t *lenp, loff_t *ppos); 94 size_t *lenp, loff_t *ppos); 96 size_t *lenp, loff_t *ppos); 98 size_t *lenp, loff_t *ppos); [all …]
|
| H A D | jiffies.h | 648 size_t *lenp, loff_t *ppos); 650 void *buffer, size_t *lenp, loff_t *ppos); 652 void *buffer, size_t *lenp, loff_t *ppos); 654 size_t *lenp, loff_t *ppos); 656 void *buffer, size_t *lenp, loff_t *ppos);
|
| /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); 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 401 ret = proc_dostring(&tbl, 1, buffer, lenp, ppos); in proc_sctp_do_hmac_alg() 419 return proc_dostring(&tbl, 0, buffer, lenp, ppos); in proc_sctp_do_hmac_alg() [all …]
|
| /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/kernel/time/ |
| H A D | jiffies.c | 248 * @lenp: the size of the user buffer 259 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_jiffies() 261 return proc_dointvec_conv(table, dir, buffer, lenp, ppos, in proc_dointvec_jiffies() 271 * @lenp: the size of the user buffer 282 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_userhz_jiffies() 284 return proc_dointvec_conv(table, dir, buffer, lenp, ppos, in proc_dointvec_userhz_jiffies() 294 * @lenp: the size of the user buffer 305 size_t *lenp, loff_t *ppos) in proc_dointvec_ms_jiffies() 307 return proc_dointvec_conv(table, dir, buffer, lenp, ppos, in proc_dointvec_ms_jiffies() 313 void *buffer, size_t *lenp, loff_ in proc_dointvec_ms_jiffies_minmax() 257 proc_dointvec_jiffies(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec_jiffies() argument 280 proc_dointvec_userhz_jiffies(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec_userhz_jiffies() argument 303 proc_dointvec_ms_jiffies(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec_ms_jiffies() argument 311 proc_dointvec_ms_jiffies_minmax(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec_ms_jiffies_minmax() argument 335 proc_doulongvec_ms_jiffies_minmax(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_doulongvec_ms_jiffies_minmax() argument [all...] |
| /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/tools/perf/util/ |
| H A D | dump-insn.c | |
| 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 | 52 uint64_t ip, int *lenp, int print_opts, FILE *fp) 55 ip, lenp, print_opts, fp); in sample__fprintf_insn_asm() 47 fprintf_insn_asm(struct machine * machine,struct thread * thread,u8 cpumode,bool is64bit,const uint8_t * code,size_t code_size,uint64_t ip,int * lenp,int print_opts,FILE * fp) fprintf_insn_asm() argument
|
| /linux/net/ipv4/ |
| H A D | sysctl_net_ipv4.c | 73 void *buffer, size_t *lenp, loff_t *ppos) in ipv4_local_port_range() argument 88 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in ipv4_local_port_range() 107 void *buffer, size_t *lenp, loff_t *ppos) in ipv4_privileged_ports() argument 124 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in ipv4_privileged_ports() 170 void *buffer, size_t *lenp, loff_t *ppos) in ipv4_ping_group_range() argument 187 ret = proc_doulongvec_minmax(&tmp, write, buffer, lenp, ppos); in ipv4_ping_group_range() 205 void *buffer, size_t *lenp, loff_t *ppos) in ipv4_fwd_update_priority() argument 212 ret = proc_dou8vec_minmax(table, write, buffer, lenp, ppos); in ipv4_fwd_update_priority() 221 void *buffer, size_t *lenp, loff_t *ppos) in proc_tcp_congestion_control() argument 234 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_tcp_congestion_control() [all …]
|
| /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() 433 void *lenp; in ceph_auth_get_request() local 456 lenp = p; in ceph_auth_get_request() 465 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/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()
|
| /linux/net/rds/ |
| H A D | tcp.c | 57 void *buffer, size_t *lenp, loff_t *fpos); 59 void *buffer, size_t *lenp, loff_t *fpos); 760 void *buffer, size_t *lenp, loff_t *fpos) in rds_tcp_skbuf_handler() argument 764 err = proc_dointvec_minmax(ctl, write, buffer, lenp, fpos); in rds_tcp_skbuf_handler() 781 void *buffer, size_t *lenp, loff_t *fpos) in rds_tcp_sndbuf_handler() argument 786 return rds_tcp_skbuf_handler(rtn, ctl, write, buffer, lenp, fpos); in rds_tcp_sndbuf_handler() 790 void *buffer, size_t *lenp, loff_t *fpos) in rds_tcp_rcvbuf_handler() argument 795 return rds_tcp_skbuf_handler(rtn, ctl, write, buffer, lenp, fpos); in rds_tcp_rcvbuf_handler()
|
| /linux/net/netfilter/ |
| H A D | nf_hooks_lwtunnel.c | 32 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()
|