/Linux-v4.19/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-v4.19/arch/mips/lasat/ |
D | sysctl.c | 42 void *buffer, size_t *lenp, loff_t *ppos) in proc_dolasatstring() argument 46 r = proc_dostring(table, write, buffer, lenp, ppos); in proc_dolasatstring() 60 void *buffer, size_t *lenp, loff_t *ppos) in proc_dolasatrtc() argument 72 r = proc_dointvec(table, write, buffer, lenp, ppos); in proc_dolasatrtc() 93 void *buffer, size_t *lenp, loff_t *ppos) in proc_lasat_ip() argument 100 if (!table->data || !table->maxlen || !*lenp || in proc_lasat_ip() 102 *lenp = 0; in proc_lasat_ip() 109 while (len < *lenp) { in proc_lasat_ip() 121 *ppos += *lenp; in proc_lasat_ip() 134 if (len > *lenp) in proc_lasat_ip() [all …]
|
/Linux-v4.19/scripts/dtc/libfdt/ |
D | fdt_ro.c | 292 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 …]
|
D | libfdt.h | 449 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 …]
|
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()
|
/Linux-v4.19/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-v4.19/kernel/ |
D | sysctl.c | 208 void __user *buffer, size_t *lenp, loff_t *ppos); 210 void __user *buffer, size_t *lenp, loff_t *ppos); 215 void __user *buffer, size_t *lenp, loff_t *ppos); 219 void __user *buffer, size_t *lenp, loff_t *ppos); 222 void __user *buffer, size_t *lenp, loff_t *ppos); 225 void __user *buffer, size_t *lenp, loff_t *ppos); 232 void __user *buffer, size_t *lenp, in sysrq_sysctl_handler() argument 237 error = proc_dointvec(table, write, buffer, lenp, ppos); in sysrq_sysctl_handler() 1923 size_t *lenp, loff_t *ppos) in _proc_do_string() argument 1929 if (!data || !maxlen || !*lenp) { in _proc_do_string() [all …]
|
D | watchdog.c | 672 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog_common() argument 684 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_watchdog_common() 687 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_watchdog_common() 699 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog() argument 702 table, write, buffer, lenp, ppos); in proc_watchdog() 709 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_nmi_watchdog() argument 714 table, write, buffer, lenp, ppos); in proc_nmi_watchdog() 721 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_soft_watchdog() argument 724 table, write, buffer, lenp, ppos); in proc_soft_watchdog() 731 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog_thresh() argument [all …]
|
/Linux-v4.19/net/sunrpc/ |
D | sysctl.c | 62 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_do_xprt() argument 67 if ((*ppos && !write) || !*lenp) { in proc_do_xprt() 68 *lenp = 0; in proc_do_xprt() 72 return simple_read_from_buffer(buffer, *lenp, ppos, tmpbuf, len); in proc_do_xprt() 77 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_dodebug() argument 84 if ((*ppos && !write) || !*lenp) { in proc_dodebug() 85 *lenp = 0; in proc_dodebug() 89 left = *lenp; in proc_dodebug() 133 *lenp -= left; in proc_dodebug() 134 *ppos += *lenp; in proc_dodebug()
|
/Linux-v4.19/net/core/ |
D | sysctl_net_core.c | 39 void __user *buffer, size_t *lenp, loff_t *ppos) in rps_sock_flow_sysctl() argument 57 ret = proc_dointvec(&tmp, write, buffer, lenp, ppos); in rps_sock_flow_sysctl() 109 void __user *buffer, size_t *lenp, in flow_limit_cpu_sysctl() argument 121 ret = cpumask_parse_user(buffer, *lenp, mask); in flow_limit_cpu_sysctl() 152 if (*ppos || !*lenp) { in flow_limit_cpu_sysctl() 153 *lenp = 0; in flow_limit_cpu_sysctl() 166 len = min(sizeof(kbuf) - 1, *lenp); in flow_limit_cpu_sysctl() 169 *lenp = 0; in flow_limit_cpu_sysctl() 172 if (len < *lenp) in flow_limit_cpu_sysctl() 178 *lenp = len; in flow_limit_cpu_sysctl() [all …]
|
/Linux-v4.19/ipc/ |
D | ipc_sysctl.c | 31 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_dointvec() argument 38 return proc_dointvec(&ipc_table, write, buffer, lenp, ppos); in proc_ipc_dointvec() 42 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_dointvec_minmax() argument 49 return proc_dointvec_minmax(&ipc_table, write, buffer, lenp, ppos); in proc_ipc_dointvec_minmax() 53 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_dointvec_minmax_orphans() argument 56 int err = proc_ipc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_ipc_dointvec_minmax_orphans() 66 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_doulongvec_minmax() argument 73 lenp, ppos); in proc_ipc_doulongvec_minmax() 77 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_auto_msgmni() argument 88 return proc_dointvec_minmax(&ipc_table, write, buffer, lenp, ppos); in proc_ipc_auto_msgmni()
|
D | mq_sysctl.c | 26 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_mq_dointvec() argument 32 return proc_dointvec(&mq_table, write, buffer, lenp, ppos); in proc_mq_dointvec() 36 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_mq_dointvec_minmax() argument 43 lenp, ppos); in proc_mq_dointvec_minmax()
|
/Linux-v4.19/include/linux/sched/ |
D | sysctl.h | 17 size_t *lenp, loff_t *ppos); 71 void __user *buffer, size_t *lenp, 75 void __user *buffer, size_t *lenp, 79 void __user *buffer, size_t *lenp, 83 void __user *buffer, size_t *lenp,
|
/Linux-v4.19/net/sctp/ |
D | sysctl.c | 62 void __user *buffer, size_t *lenp, 65 void __user *buffer, size_t *lenp, 68 void __user *buffer, size_t *lenp, 71 void __user *buffer, size_t *lenp, 74 void __user *buffer, size_t *lenp, 337 void __user *buffer, size_t *lenp, in proc_sctp_do_hmac_alg() argument 357 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_sctp_do_hmac_alg() 383 void __user *buffer, size_t *lenp, in proc_sctp_do_rto_min() argument 400 ret = proc_dointvec(&tbl, write, buffer, lenp, ppos); in proc_sctp_do_rto_min() 412 void __user *buffer, size_t *lenp, in proc_sctp_do_rto_max() argument [all …]
|
/Linux-v4.19/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 = *lenp; in cmm_timeout_handler() 314 if (len > *lenp) in cmm_timeout_handler() 315 len = *lenp; in cmm_timeout_handler() [all …]
|
/Linux-v4.19/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-v4.19/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-v4.19/net/ipv4/ |
D | sysctl_net_ipv4.c | 74 size_t *lenp, loff_t *ppos) in ipv4_local_port_range() argument 90 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in ipv4_local_port_range() 109 void __user *buffer, size_t *lenp, loff_t *ppos) in ipv4_privileged_ports() argument 126 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in ipv4_privileged_ports() 171 size_t *lenp, loff_t *ppos) in ipv4_ping_group_range() argument 188 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in ipv4_ping_group_range() 207 size_t *lenp, loff_t *ppos) in ipv4_fwd_update_priority() argument 214 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in ipv4_fwd_update_priority() 223 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_tcp_congestion_control() argument 236 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_tcp_congestion_control() [all …]
|
/Linux-v4.19/net/sunrpc/xprtrdma/ |
D | svc_rdma.c | 85 void __user *buffer, size_t *lenp, in read_reset_stat() argument 102 *lenp = 0; in read_reset_stat() 106 if (len > *lenp) in read_reset_stat() 107 len = *lenp; in read_reset_stat() 110 *lenp = len; in read_reset_stat()
|
/Linux-v4.19/scripts/dtc/ |
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()
|
/Linux-v4.19/arch/s390/appldata/ |
D | appldata_base.c | 54 void __user *buffer, size_t *lenp, loff_t *ppos); 57 size_t *lenp, loff_t *ppos); 207 void __user *buffer, size_t *lenp, loff_t *ppos) in appldata_timer_handler() argument 221 rc = proc_douintvec_minmax(&ctl_entry, write, buffer, lenp, ppos); in appldata_timer_handler() 242 void __user *buffer, size_t *lenp, loff_t *ppos) in appldata_interval_handler() argument 254 rc = proc_dointvec_minmax(&ctl_entry, write, buffer, lenp, ppos); in appldata_interval_handler() 273 void __user *buffer, size_t *lenp, loff_t *ppos) in appldata_generic_handler() argument 308 rc = proc_douintvec_minmax(&ctl_entry, write, buffer, lenp, ppos); in appldata_generic_handler()
|
/Linux-v4.19/fs/fat/ |
D | nfs.c | 109 fat_encode_fh_nostale(struct inode *inode, __u32 *fh, int *lenp, in fat_encode_fh_nostale() argument 112 int len = *lenp; in fat_encode_fh_nostale() 120 *lenp = FAT_FID_SIZE_WITH_PARENT; in fat_encode_fh_nostale() 125 *lenp = FAT_FID_SIZE_WITHOUT_PARENT; in fat_encode_fh_nostale() 131 *lenp = FAT_FID_SIZE_WITHOUT_PARENT; in fat_encode_fh_nostale() 141 *lenp = FAT_FID_SIZE_WITH_PARENT; in fat_encode_fh_nostale()
|
/Linux-v4.19/include/linux/ |
D | writeback.h | 336 void __user *buffer, size_t *lenp, 339 void __user *buffer, size_t *lenp, 342 void __user *buffer, size_t *lenp, 345 void __user *buffer, size_t *lenp, 348 void __user *buffer, size_t *lenp, loff_t *ppos);
|
/Linux-v4.19/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
|
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()
|