/Linux-v5.4/scripts/dtc/libfdt/ |
D | fdt_ro.c | 34 const char *fdt_get_string(const void *fdt, int stroffset, int *lenp) in fdt_get_string() argument 78 if (lenp) in fdt_get_string() 79 *lenp = n - s; in fdt_get_string() 83 if (lenp) in fdt_get_string() 84 *lenp = err; in fdt_get_string() 343 int *lenp) in fdt_get_property_by_offset_() argument 349 if (lenp) in fdt_get_property_by_offset_() 350 *lenp = err; in fdt_get_property_by_offset_() 356 if (lenp) in fdt_get_property_by_offset_() 357 *lenp = fdt32_ld(&prop->len); in fdt_get_property_by_offset_() [all …]
|
D | libfdt.h | 335 const char *fdt_get_string(const void *fdt, int stroffset, int *lenp); 540 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp); 639 int *lenp); 656 int namelen, int *lenp); 688 const char *name, int *lenp); 691 int *lenp) in fdt_get_property_w() argument 694 fdt_get_property(fdt, nodeoffset, name, lenp); in fdt_get_property_w() 730 const char **namep, int *lenp); 746 const char *name, int namelen, int *lenp); 749 int *lenp) in fdt_getprop_namelen_w() argument [all …]
|
D | fdt.c | 128 const fdt32_t *tagp, *lenp; in fdt_next_tag() local 152 lenp = fdt_offset_ptr(fdt, offset, sizeof(*lenp)); in fdt_next_tag() 153 if (!lenp) in fdt_next_tag() 157 + fdt32_to_cpu(*lenp); in fdt_next_tag() 158 if (fdt_version(fdt) < 0x10 && fdt32_to_cpu(*lenp) >= 8 && in fdt_next_tag() 159 ((offset - fdt32_to_cpu(*lenp)) % 8) != 0) in fdt_next_tag()
|
/Linux-v5.4/net/decnet/ |
D | sysctl_net_decnet.c | 138 size_t *lenp, loff_t *ppos) in dn_node_address_handler() argument 144 if (!*lenp || (*ppos && !write)) { in dn_node_address_handler() 145 *lenp = 0; in dn_node_address_handler() 150 len = (*lenp < DN_ASCBUF_LEN) ? *lenp : (DN_ASCBUF_LEN-1); in dn_node_address_handler() 176 if (len > *lenp) len = *lenp; in dn_node_address_handler() 181 *lenp = len; in dn_node_address_handler() 189 size_t *lenp, loff_t *ppos) in dn_def_dev_handler() argument 195 if (!*lenp || (*ppos && !write)) { in dn_def_dev_handler() 196 *lenp = 0; in dn_def_dev_handler() 201 if (*lenp > 16) in dn_def_dev_handler() [all …]
|
/Linux-v5.4/arch/mips/lasat/ |
D | sysctl.c | 30 void *buffer, size_t *lenp, loff_t *ppos) in proc_dolasatstring() argument 34 r = proc_dostring(table, write, buffer, lenp, ppos); in proc_dolasatstring() 48 void *buffer, size_t *lenp, loff_t *ppos) in proc_dolasatrtc() argument 60 r = proc_dointvec(table, write, buffer, lenp, ppos); in proc_dolasatrtc() 81 void *buffer, size_t *lenp, loff_t *ppos) in proc_lasat_ip() argument 88 if (!table->data || !table->maxlen || !*lenp || in proc_lasat_ip() 90 *lenp = 0; in proc_lasat_ip() 97 while (len < *lenp) { in proc_lasat_ip() 109 *ppos += *lenp; in proc_lasat_ip() 122 if (len > *lenp) in proc_lasat_ip() [all …]
|
/Linux-v5.4/drivers/parport/ |
D | procfs.c | 37 void __user *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 __user *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-v5.4/kernel/ |
D | sysctl.c | 212 void __user *buffer, size_t *lenp, loff_t *ppos); 214 void __user *buffer, size_t *lenp, loff_t *ppos); 219 void __user *buffer, size_t *lenp, loff_t *ppos); 223 void __user *buffer, size_t *lenp, loff_t *ppos); 226 void __user *buffer, size_t *lenp, loff_t *ppos); 229 void __user *buffer, size_t *lenp, loff_t *ppos); 236 void __user *buffer, size_t *lenp, in sysrq_sysctl_handler() argument 241 error = proc_dointvec(table, write, buffer, lenp, ppos); in sysrq_sysctl_handler() 2002 size_t *lenp, loff_t *ppos) in _proc_do_string() argument 2008 if (!data || !maxlen || !*lenp) { in _proc_do_string() [all …]
|
D | watchdog.c | 681 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog_common() argument 693 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_watchdog_common() 696 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_watchdog_common() 708 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog() argument 711 table, write, buffer, lenp, ppos); in proc_watchdog() 718 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_nmi_watchdog() argument 723 table, write, buffer, lenp, ppos); in proc_nmi_watchdog() 730 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_soft_watchdog() argument 733 table, write, buffer, lenp, ppos); in proc_soft_watchdog() 740 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog_thresh() argument [all …]
|
/Linux-v5.4/net/sunrpc/ |
D | sysctl.c | 63 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_do_xprt() argument 68 if ((*ppos && !write) || !*lenp) { in proc_do_xprt() 69 *lenp = 0; in proc_do_xprt() 73 return simple_read_from_buffer(buffer, *lenp, ppos, tmpbuf, len); in proc_do_xprt() 78 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_dodebug() argument 85 if ((*ppos && !write) || !*lenp) { in proc_dodebug() 86 *lenp = 0; in proc_dodebug() 90 left = *lenp; in proc_dodebug() 134 *lenp -= left; in proc_dodebug() 135 *ppos += *lenp; in proc_dodebug()
|
/Linux-v5.4/net/core/ |
D | sysctl_net_core.c | 48 void __user *buffer, size_t *lenp, loff_t *ppos) in rps_sock_flow_sysctl() argument 66 ret = proc_dointvec(&tmp, write, buffer, lenp, ppos); in rps_sock_flow_sysctl() 118 void __user *buffer, size_t *lenp, in flow_limit_cpu_sysctl() argument 130 ret = cpumask_parse_user(buffer, *lenp, mask); in flow_limit_cpu_sysctl() 161 if (*ppos || !*lenp) { in flow_limit_cpu_sysctl() 162 *lenp = 0; in flow_limit_cpu_sysctl() 175 len = min(sizeof(kbuf) - 1, *lenp); in flow_limit_cpu_sysctl() 178 *lenp = 0; in flow_limit_cpu_sysctl() 181 if (len < *lenp) in flow_limit_cpu_sysctl() 187 *lenp = len; in flow_limit_cpu_sysctl() [all …]
|
/Linux-v5.4/include/linux/sched/ |
D | sysctl.h | 17 size_t *lenp, loff_t *ppos); 76 void __user *buffer, size_t *lenp, 80 void __user *buffer, size_t *lenp, 85 void __user *buffer, size_t *lenp, 90 void __user *buffer, size_t *lenp, 94 void __user *buffer, size_t *lenp, 100 void __user *buffer, size_t *lenp,
|
/Linux-v5.4/ipc/ |
D | ipc_sysctl.c | 27 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_dointvec() argument 34 return proc_dointvec(&ipc_table, write, buffer, lenp, ppos); in proc_ipc_dointvec() 38 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_dointvec_minmax() argument 45 return proc_dointvec_minmax(&ipc_table, write, buffer, lenp, ppos); in proc_ipc_dointvec_minmax() 49 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_dointvec_minmax_orphans() argument 52 int err = proc_ipc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_ipc_dointvec_minmax_orphans() 62 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_doulongvec_minmax() argument 69 lenp, ppos); in proc_ipc_doulongvec_minmax() 73 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_auto_msgmni() argument 84 return proc_dointvec_minmax(&ipc_table, write, buffer, lenp, ppos); in proc_ipc_auto_msgmni() [all …]
|
D | mq_sysctl.c | 22 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_mq_dointvec() argument 28 return proc_dointvec(&mq_table, write, buffer, lenp, ppos); in proc_mq_dointvec() 32 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_mq_dointvec_minmax() argument 39 lenp, ppos); in proc_mq_dointvec_minmax()
|
/Linux-v5.4/net/sctp/ |
D | sysctl.c | 44 void __user *buffer, size_t *lenp, 47 void __user *buffer, size_t *lenp, 50 void __user *buffer, size_t *lenp, 53 void __user *buffer, size_t *lenp, 56 void __user *buffer, size_t *lenp, 326 void __user *buffer, size_t *lenp, in proc_sctp_do_hmac_alg() argument 346 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_sctp_do_hmac_alg() 372 void __user *buffer, size_t *lenp, in proc_sctp_do_rto_min() argument 389 ret = proc_dointvec(&tbl, write, buffer, lenp, ppos); in proc_sctp_do_rto_min() 401 void __user *buffer, size_t *lenp, in proc_sctp_do_rto_max() argument [all …]
|
/Linux-v5.4/arch/s390/mm/ |
D | cmm.c | 250 void __user *buffer, size_t *lenp, loff_t *ppos) in cmm_pages_handler() argument 260 rc = proc_doulongvec_minmax(&ctl_entry, write, buffer, lenp, ppos); in cmm_pages_handler() 269 void __user *buffer, size_t *lenp, in cmm_timed_pages_handler() argument 280 rc = proc_doulongvec_minmax(&ctl_entry, write, buffer, lenp, ppos); in cmm_timed_pages_handler() 289 void __user *buffer, size_t *lenp, loff_t *ppos) in cmm_timeout_handler() argument 295 if (!*lenp || (*ppos && !write)) { in cmm_timeout_handler() 296 *lenp = 0; in cmm_timeout_handler() 301 len = min(*lenp, sizeof(buf)); in cmm_timeout_handler() 310 *ppos += *lenp; in cmm_timeout_handler() 314 if (len > *lenp) in cmm_timeout_handler() [all …]
|
/Linux-v5.4/arch/xtensa/boot/lib/ |
D | zmem.c | 35 void gunzip (void *dst, int dstlen, unsigned char *src, int *lenp) in gunzip() argument 57 if (i >= *lenp) { in gunzip() 69 s.avail_in = *lenp - i; in gunzip() 77 *lenp = s.next_out - (unsigned char *) dst; in gunzip()
|
/Linux-v5.4/tools/perf/util/ |
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()
|
/Linux-v5.4/net/sunrpc/xprtrdma/ |
D | svc_rdma.c | 83 void __user *buffer, size_t *lenp, in read_reset_stat() argument 100 *lenp = 0; in read_reset_stat() 104 if (len > *lenp) in read_reset_stat() 105 len = *lenp; in read_reset_stat() 108 *lenp = len; in read_reset_stat()
|
/Linux-v5.4/net/ipv4/ |
D | sysctl_net_ipv4.c | 75 size_t *lenp, loff_t *ppos) in ipv4_local_port_range() argument 91 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in ipv4_local_port_range() 110 void __user *buffer, size_t *lenp, loff_t *ppos) in ipv4_privileged_ports() argument 127 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in ipv4_privileged_ports() 172 size_t *lenp, loff_t *ppos) in ipv4_ping_group_range() argument 189 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in ipv4_ping_group_range() 208 size_t *lenp, loff_t *ppos) in ipv4_fwd_update_priority() argument 215 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in ipv4_fwd_update_priority() 224 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_tcp_congestion_control() argument 237 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_tcp_congestion_control() [all …]
|
/Linux-v5.4/scripts/dtc/ |
D | util.c | 85 int lenp = strlen(path); in join_path() local 91 len = lenp + lenn + 2; in join_path() 92 if ((lenp > 0) && (path[lenp-1] == '/')) { in join_path() 98 memcpy(str, path, lenp); in join_path() 100 str[lenp] = '/'; in join_path() 101 lenp++; in join_path() 103 memcpy(str+lenp, name, lenn+1); in join_path()
|
/Linux-v5.4/arch/s390/appldata/ |
D | appldata_base.c | 54 void __user *buffer, size_t *lenp, loff_t *ppos); 57 size_t *lenp, loff_t *ppos); 220 void __user *buffer, size_t *lenp, loff_t *ppos) in appldata_timer_handler() argument 232 rc = proc_douintvec_minmax(&ctl_entry, write, buffer, lenp, ppos); in appldata_timer_handler() 253 void __user *buffer, size_t *lenp, loff_t *ppos) in appldata_interval_handler() argument 264 rc = proc_dointvec_minmax(&ctl_entry, write, buffer, lenp, ppos); in appldata_interval_handler() 283 void __user *buffer, size_t *lenp, loff_t *ppos) in appldata_generic_handler() argument 316 rc = proc_douintvec_minmax(&ctl_entry, write, buffer, lenp, ppos); in appldata_generic_handler()
|
/Linux-v5.4/fs/fat/ |
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-v5.4/tools/virtio/ringtest/ |
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
|
/Linux-v5.4/include/linux/ |
D | sysctl.h | 48 void __user *buffer, size_t *lenp, loff_t *ppos); 59 void __user *buffer, size_t *lenp, 74 void __user *buffer, size_t *lenp, 244 void __user *buffer, size_t *lenp, loff_t *ppos);
|
D | writeback.h | 366 void __user *buffer, size_t *lenp, 369 void __user *buffer, size_t *lenp, 372 void __user *buffer, size_t *lenp, 375 void __user *buffer, size_t *lenp, 378 void __user *buffer, size_t *lenp, loff_t *ppos);
|