Home
last modified time | relevance | path

Searched refs:buflen (Results 1 – 25 of 31) sorted by relevance

12

/net/sunrpc/
Daddr.c29 char *buf, const int buflen) in rpc_ntop6_noscopeid() argument
40 return snprintf(buf, buflen, "::"); in rpc_ntop6_noscopeid()
48 return snprintf(buf, buflen, "::1"); in rpc_ntop6_noscopeid()
57 return snprintf(buf, buflen, "::ffff:%pI4", in rpc_ntop6_noscopeid()
63 return snprintf(buf, buflen, "%pI6c", addr); in rpc_ntop6_noscopeid()
67 char *buf, const size_t buflen) in rpc_ntop6() argument
74 len = rpc_ntop6_noscopeid(sap, buf, buflen); in rpc_ntop6()
89 if (unlikely(len > buflen)) in rpc_ntop6()
99 char *buf, const int buflen) in rpc_ntop6_noscopeid() argument
105 char *buf, const size_t buflen) in rpc_ntop6() argument
[all …]
Dxdr.c183 unsigned int buflen = head->iov_len; in xdr_inline_pages() local
192 tail->iov_len = buflen - offset; in xdr_inline_pages()
196 xdr->buflen += len; in xdr_inline_pages()
430 buf->buflen -= len; in xdr_shrink_bufhead()
432 if (buf->len > buf->buflen) in xdr_shrink_bufhead()
433 buf->len = buf->buflen; in xdr_shrink_bufhead()
459 tailbuf_len = buf->buflen - buf->head->iov_len - buf->page_len; in xdr_shrink_pagelen()
483 buf->buflen -= len; in xdr_shrink_pagelen()
485 if (buf->len > buf->buflen) in xdr_shrink_pagelen()
486 buf->len = buf->buflen; in xdr_shrink_pagelen()
[all …]
Dsvcsock.c323 unsigned int nr, size_t buflen, unsigned int base) in svc_recvfrom() argument
333 iov_iter_kvec(&msg.msg_iter, READ, iov, nr, buflen); in svc_recvfrom()
336 buflen -= base; in svc_recvfrom()
342 if (len == buflen) in svc_recvfrom()
Dclnt.c1397 static int rpc_anyaddr(int family, struct sockaddr *buf, size_t buflen) in rpc_anyaddr() argument
1401 if (buflen < sizeof(rpc_inaddr_loopback)) in rpc_anyaddr()
1407 if (buflen < sizeof(rpc_in6addr_loopback)) in rpc_anyaddr()
1437 int rpc_localaddr(struct rpc_clnt *clnt, struct sockaddr *buf, size_t buflen) in rpc_localaddr() argument
1458 return rpc_anyaddr(sap->sa_family, buf, buflen); in rpc_localaddr()
Dsvc_xprt.c1329 int svc_xprt_names(struct svc_serv *serv, char *buf, const int buflen) in svc_xprt_names() argument
1344 len = svc_one_xprt_name(xprt, pos, buflen - totlen); in svc_xprt_names()
Drpc_pipe.c105 char __user *dst, size_t buflen) in rpc_pipe_generic_upcall() argument
108 size_t mlen = min(msg->len - msg->copied, buflen); in rpc_pipe_generic_upcall()
Dxprt.c1726 req->rq_snd_buf.buflen = 0; in xprt_request_init()
1728 req->rq_rcv_buf.buflen = 0; in xprt_request_init()
/net/mac80211/
Ddebugfs_netdev.c70 int buflen) \
72 return scnprintf(buf, buflen, format_string, sdata->field); \
86 char *buf, int buflen) \
91 p += scnprintf(p, buflen + buf - p, "%.2x ", \
94 p += scnprintf(p, buflen + buf - p, "\n"); \
101 char *buf, int buflen) \
103 return scnprintf(buf, buflen, "%d\n", atomic_read(&sdata->field));\
109 int buflen) \
111 return scnprintf(buf, buflen, "%pM\n", sdata->field); \
117 char *buf, int buflen) \
[all …]
Ddebugfs.c367 int buflen)) in format_devstat_counter() argument
384 char *buf, int buflen) \
386 return scnprintf(buf, buflen, "%u\n", stats->name); \
/net/netfilter/
Dnf_nat_sip.c38 const char *buffer, unsigned int buflen) in mangle_packet() argument
52 buffer, buflen, false)) in mangle_packet()
60 buffer, buflen)) in mangle_packet()
66 *datalen += buflen - matchlen; in mangle_packet()
103 unsigned int buflen; in map_addr() local
122 buflen = sip_sprintf_addr_port(ct, buffer, &newaddr, ntohs(newport)); in map_addr()
124 matchoff, matchlen, buffer, buflen); in map_addr()
182 unsigned int olen, matchend, poff, plen, buflen, n; in nf_nat_sip() local
215 buflen = sip_sprintf_addr(ct, buffer, in nf_nat_sip()
219 poff, plen, buffer, buflen)) { in nf_nat_sip()
[all …]
Dnf_nat_ftp.c34 char *buffer, size_t buflen, in nf_nat_ftp_fmt_cmd() argument
40 return snprintf(buffer, buflen, "%u,%u,%u,%u,%u,%u", in nf_nat_ftp_fmt_cmd()
49 return snprintf(buffer, buflen, "|1|%pI4|%u|", in nf_nat_ftp_fmt_cmd()
52 return snprintf(buffer, buflen, "|2|%pI6|%u|", in nf_nat_ftp_fmt_cmd()
55 return snprintf(buffer, buflen, "|||%u|", port); in nf_nat_ftp_fmt_cmd()
76 unsigned int buflen; in nf_nat_ftp() local
108 buflen = nf_nat_ftp_fmt_cmd(ct, type, buffer, sizeof(buffer), in nf_nat_ftp()
110 if (!buflen) in nf_nat_ftp()
116 matchlen, buffer, buflen)) in nf_nat_ftp()
/net/wireless/
Ddebugfs.c13 #define DEBUGFS_READONLY_FILE(name, buflen, fmt, value...) \ argument
18 char buf[buflen]; \
21 res = scnprintf(buf, buflen, fmt "\n", ##value); \
/net/rds/
Dmessage.c238 unsigned int *pos, void *buf, unsigned int *buflen) in rds_message_next_extension() argument
258 if (ext_len < *buflen) in rds_message_next_extension()
259 *buflen = ext_len; in rds_message_next_extension()
260 memcpy(buf, src + offset, *buflen); in rds_message_next_extension()
265 *buflen = 0; in rds_message_next_extension()
Drds.h862 unsigned int *pos, void *buf, unsigned int *buflen);
/net/sunrpc/auth_gss/
Dauth_gss.c430 char __user *buf, size_t buflen) in gss_v0_upcall() argument
437 return rpc_pipe_generic_upcall(file, msg, buf, buflen); in gss_v0_upcall()
448 size_t buflen = sizeof(gss_msg->databuf); in gss_encode_v1_msg() local
451 len = scnprintf(p, buflen, "mech=%s uid=%d", mech->gm_name, in gss_encode_v1_msg()
453 buflen -= len; in gss_encode_v1_msg()
462 len = scnprintf(p, buflen, " target=%s", target_name); in gss_encode_v1_msg()
463 buflen -= len; in gss_encode_v1_msg()
482 len = scnprintf(p, buflen, " service=%s", in gss_encode_v1_msg()
485 len = scnprintf(p, buflen, in gss_encode_v1_msg()
489 buflen -= len; in gss_encode_v1_msg()
[all …]
/net/dccp/
Doptions.c400 const u16 buflen = dccp_ackvec_buflen(av); in dccp_insert_option_ackvec() local
402 const u8 nr_opts = DIV_ROUND_UP(buflen, DCCP_SINGLE_OPT_MAXLEN); in dccp_insert_option_ackvec()
403 u16 len = buflen + 2 * nr_opts; in dccp_insert_option_ackvec()
429 len = buflen; in dccp_insert_option_ackvec()
/net/netfilter/ipvs/
Dip_vs_sync.c963 const size_t buflen) in ip_vs_process_message_v0() argument
977 if (p + SIMPLE_CONN_SIZE > buffer+buflen) { in ip_vs_process_message_v0()
987 if (p > buffer+buflen) { in ip_vs_process_message_v0()
1208 const size_t buflen) in ip_vs_process_message() argument
1214 if (buflen < sizeof(struct ip_vs_sync_mesg_v0)) { in ip_vs_process_message()
1219 if (buflen != ntohs(m2->size)) { in ip_vs_process_message()
1241 if (p + sizeof(s->v4) > buffer+buflen) { in ip_vs_process_message()
1249 if (msg_end > buffer+buflen) { in ip_vs_process_message()
1270 ip_vs_process_message_v0(ipvs, buffer, buflen); in ip_vs_process_message()
1614 ip_vs_receive(struct socket *sock, char *buffer, const size_t buflen) in ip_vs_receive() argument
[all …]
/net/dns_resolver/
Ddns_key.c305 char __user *buffer, size_t buflen) in dns_resolver_read() argument
312 return user_read(key, buffer, buflen); in dns_resolver_read()
/net/sunrpc/xprtrdma/
Dsvc_rdma_rw.c753 head->rc_arg.buflen += info->ri_chunklen; in svc_rdma_build_normal_read_chunk()
784 head->rc_arg.buflen += info->ri_chunklen; in svc_rdma_build_pz_read_chunk()
831 head->rc_arg.buflen = rqstp->rq_arg.buflen; in svc_rdma_recv_read_chunk()
Dsvc_rdma_recvfrom.c356 arg->buflen = ctxt->rc_byte_len; in svc_rdma_build_arg_xdr()
646 rqstp->rq_arg.buflen = head->rc_arg.buflen; in rdma_read_complete()
/net/smc/
Dsmc_clc.c270 int smc_clc_wait_msg(struct smc_sock *smc, void *buf, int buflen, in smc_clc_wait_msg() argument
278 struct kvec vec = {buf, buflen}; in smc_clc_wait_msg()
323 (datlen > buflen) || in smc_clc_wait_msg()
Dsmc_clc.h192 int smc_clc_wait_msg(struct smc_sock *smc, void *buf, int buflen,
/net/phonet/
Dpep.c53 int buflen = *plen; in pep_get_sb() local
62 if (buflen > ph->sb_len) in pep_get_sb()
63 buflen = ph->sb_len; in pep_get_sb()
64 data = skb_header_pointer(skb, 2, buflen, buf); in pep_get_sb()
/net/tipc/
Dsocket.c1739 size_t buflen, int flags) in tipc_recvmsg() argument
1752 if (unlikely(!buflen)) in tipc_recvmsg()
1787 copy = min_t(int, dlen, buflen); in tipc_recvmsg()
1847 size_t buflen, int flags) in tipc_recvstream() argument
1860 if (unlikely(!buflen)) in tipc_recvstream()
1869 required = sock_rcvlowat(sk, flags & MSG_WAITALL, buflen); in tipc_recvstream()
1902 copy = min_t(int, dlen - offset, buflen - copied); in tipc_recvstream()
1932 if (copied == buflen || err) in tipc_recvstream()
/net/rxrpc/
Dkey.c1045 char __user *buffer, size_t buflen) in rxrpc_read() argument
1124 if (!buffer || buflen < size) in rxrpc_read()

12