Home
last modified time | relevance | path

Searched refs:lenp (Results 1 – 25 of 130) sorted by relevance

123456

/linux-6.1.9/kernel/
Dsysctl.c148 char *buffer, size_t *lenp, loff_t *ppos) in _proc_do_string() argument
153 if (!data || !maxlen || !*lenp) { in _proc_do_string()
154 *lenp = 0; in _proc_do_string()
173 *ppos += *lenp; in _proc_do_string()
175 while ((p - buffer) < *lenp && len < maxlen - 1) { in _proc_do_string()
188 *lenp = 0; in _proc_do_string()
195 if (len > *lenp) in _proc_do_string()
196 len = *lenp; in _proc_do_string()
199 if (len < *lenp) { in _proc_do_string()
203 *lenp = len; in _proc_do_string()
[all …]
Dwatchdog.c659 void *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog_common() argument
671 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_watchdog_common()
674 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_watchdog_common()
686 void *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog() argument
689 table, write, buffer, lenp, ppos); in proc_watchdog()
696 void *buffer, size_t *lenp, loff_t *ppos) in proc_nmi_watchdog() argument
701 table, write, buffer, lenp, ppos); in proc_nmi_watchdog()
708 void *buffer, size_t *lenp, loff_t *ppos) in proc_soft_watchdog() argument
711 table, write, buffer, lenp, ppos); in proc_soft_watchdog()
718 void *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog_thresh() argument
[all …]
/linux-6.1.9/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dxtlv.c45 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-6.1.9/scripts/dtc/libfdt/
Dfdt_ro.c34 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()
358 int *lenp) in fdt_get_property_by_offset_() argument
365 if (lenp) in fdt_get_property_by_offset_()
366 *lenp = err; in fdt_get_property_by_offset_()
[all …]
Dlibfdt.h353 const char *fdt_get_string(const void *fdt, int stroffset, int *lenp);
563 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp);
662 int *lenp);
682 int namelen, int *lenp);
714 const char *name, int *lenp);
717 int *lenp) in fdt_get_property_w() argument
720 fdt_get_property(fdt, nodeoffset, name, lenp); in fdt_get_property_w()
756 const char **namep, int *lenp);
774 const char *name, int namelen, int *lenp);
777 int *lenp) in fdt_getprop_namelen_w() argument
[all …]
Dfdt.c167 const fdt32_t *tagp, *lenp; in fdt_next_tag() local
191 lenp = fdt_offset_ptr(fdt, offset, sizeof(*lenp)); in fdt_next_tag()
192 if (!can_assume(VALID_DTB) && !lenp) in fdt_next_tag()
196 + fdt32_to_cpu(*lenp); in fdt_next_tag()
198 fdt_version(fdt) < 0x10 && fdt32_to_cpu(*lenp) >= 8 && in fdt_next_tag()
199 ((offset - fdt32_to_cpu(*lenp)) % 8) != 0) in fdt_next_tag()
/linux-6.1.9/drivers/parport/
Dprocfs.c37 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-6.1.9/net/sunrpc/
Dsysctl.c63 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_xprt() argument
69 *lenp = 0; in proc_do_xprt()
73 len = memory_read_from_buffer(buffer, *lenp, ppos, tmpbuf, len); in proc_do_xprt()
76 *lenp = 0; in proc_do_xprt()
79 *lenp = len; in proc_do_xprt()
84 proc_dodebug(struct ctl_table *table, int write, void *buffer, size_t *lenp, in proc_dodebug() argument
92 if ((*ppos && !write) || !*lenp) { in proc_dodebug()
93 *lenp = 0; in proc_dodebug()
97 left = *lenp; in proc_dodebug()
140 *lenp -= left; in proc_dodebug()
[all …]
/linux-6.1.9/net/core/
Dsysctl_net_core.c50 void *buffer, size_t *lenp, loff_t *ppos) in rps_sock_flow_sysctl() argument
68 ret = proc_dointvec(&tmp, write, buffer, lenp, ppos); in rps_sock_flow_sysctl()
119 void *buffer, size_t *lenp, loff_t *ppos) in flow_limit_cpu_sysctl() argument
160 if (*ppos || !*lenp) { in flow_limit_cpu_sysctl()
161 *lenp = 0; in flow_limit_cpu_sysctl()
174 len = min(sizeof(kbuf) - 1, *lenp); in flow_limit_cpu_sysctl()
177 *lenp = 0; in flow_limit_cpu_sysctl()
180 if (len < *lenp) in flow_limit_cpu_sysctl()
183 *lenp = len; in flow_limit_cpu_sysctl()
193 void *buffer, size_t *lenp, loff_t *ppos) in flow_limit_table_len_sysctl() argument
[all …]
/linux-6.1.9/net/sctp/
Dsysctl.c47 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);
381 void *buffer, size_t *lenp, loff_t *ppos) in proc_sctp_do_hmac_alg() argument
400 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_sctp_do_hmac_alg()
426 void *buffer, size_t *lenp, loff_t *ppos) in proc_sctp_do_rto_min() argument
[all …]
/linux-6.1.9/arch/s390/mm/
Dcmm.c247 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
277 rc = proc_doulongvec_minmax(&ctl_entry, write, buffer, lenp, ppos); in cmm_timed_pages_handler()
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()
[all …]
/linux-6.1.9/include/linux/
Dsysctl.h65 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);
242 void *buffer, size_t *lenp, loff_t *ppos,
307 size_t *lenp, loff_t *ppos);
/linux-6.1.9/arch/xtensa/boot/lib/
Dzmem.c35 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-6.1.9/tools/perf/util/
Ddump-insn.c10 int inlen __maybe_unused, int *lenp) in dump_insn() argument
12 if (lenp) in dump_insn()
13 *lenp = 0; in dump_insn()
/linux-6.1.9/net/ipv4/
Dsysctl_net_ipv4.c64 void *buffer, size_t *lenp, loff_t *ppos) in ipv4_local_port_range() argument
80 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in ipv4_local_port_range()
99 void *buffer, size_t *lenp, loff_t *ppos) in ipv4_privileged_ports() argument
116 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in ipv4_privileged_ports()
160 void *buffer, size_t *lenp, loff_t *ppos) in ipv4_ping_group_range() argument
177 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in ipv4_ping_group_range()
195 void *buffer, size_t *lenp, loff_t *ppos) in ipv4_fwd_update_priority() argument
202 ret = proc_dou8vec_minmax(table, write, buffer, lenp, ppos); in ipv4_fwd_update_priority()
211 void *buffer, size_t *lenp, loff_t *ppos) in proc_tcp_congestion_control() argument
224 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_tcp_congestion_control()
[all …]
/linux-6.1.9/fs/xfs/
Dxfs_sysctl.c17 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()
/linux-6.1.9/scripts/dtc/
Dutil.c86 int lenp = strlen(path); in join_path() local
92 len = lenp + lenn + 2; in join_path()
93 if ((lenp > 0) && (path[lenp-1] == '/')) { in join_path()
99 memcpy(str, path, lenp); in join_path()
101 str[lenp] = '/'; in join_path()
102 lenp++; in join_path()
104 memcpy(str+lenp, name, lenn+1); in join_path()
/linux-6.1.9/net/sunrpc/xprtrdma/
Dsvc_rdma.c78 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()
/linux-6.1.9/arch/s390/appldata/
Dappldata_base.c54 void *buffer, size_t *lenp, loff_t *ppos);
56 void *buffer, size_t *lenp, loff_t *ppos);
219 void *buffer, size_t *lenp, loff_t *ppos) in appldata_timer_handler() argument
231 rc = proc_douintvec_minmax(&ctl_entry, write, buffer, lenp, ppos); in appldata_timer_handler()
252 void *buffer, size_t *lenp, loff_t *ppos) in appldata_interval_handler() argument
263 rc = proc_dointvec_minmax(&ctl_entry, write, buffer, lenp, ppos); in appldata_interval_handler()
282 void *buffer, size_t *lenp, loff_t *ppos) in appldata_generic_handler() argument
315 rc = proc_douintvec_minmax(&ctl_entry, write, buffer, lenp, ppos); in appldata_generic_handler()
/linux-6.1.9/fs/fat/
Dnfs.c100 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-6.1.9/ipc/
Dipc_sysctl.c20 void *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_dointvec_minmax_orphans() argument
26 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_ipc_dointvec_minmax_orphans()
36 void *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_auto_msgmni() argument
47 return proc_dointvec_minmax(&ipc_table, write, buffer, lenp, ppos); in proc_ipc_auto_msgmni()
51 void *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_sem_dointvec() argument
58 ret = proc_dointvec(table, write, buffer, lenp, ppos); in proc_ipc_sem_dointvec()
/linux-6.1.9/tools/virtio/ringtest/
Dnoring.c23 void *get_buf(unsigned *lenp, void **bufp) in get_buf() argument
64 bool use_buf(unsigned *lenp, void **bufp) in use_buf() argument
Dvirtio_ring_0_9.c152 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()
/linux-6.1.9/security/
Dmin_addr.c33 void *buffer, size_t *lenp, loff_t *ppos) in mmap_min_addr_handler() argument
40 ret = proc_doulongvec_minmax(table, write, buffer, lenp, ppos); in mmap_min_addr_handler()
/linux-6.1.9/net/netfilter/
Dnf_hooks_lwtunnel.c29 void *buffer, size_t *lenp, loff_t *ppos) in nf_hooks_lwtunnel_sysctl_handler() argument
45 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in nf_hooks_lwtunnel_sysctl_handler()

123456