Home
last modified time | relevance | path

Searched refs:buflen (Results 1 – 25 of 34) 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.c184 unsigned int buflen = head->iov_len; in xdr_inline_pages() local
193 tail->iov_len = buflen - offset; in xdr_inline_pages()
194 xdr->buflen += len; in xdr_inline_pages()
482 unsigned int buflen, gfp_t gfp) in xdr_buf_pages_fill_sparse() argument
487 return buflen; in xdr_buf_pages_fill_sparse()
488 if (buflen <= buf->head->iov_len) in xdr_buf_pages_fill_sparse()
489 return buflen; in xdr_buf_pages_fill_sparse()
490 pagelen = buflen - buf->head->iov_len; in xdr_buf_pages_fill_sparse()
500 buflen -= pagelen; in xdr_buf_pages_fill_sparse()
503 buflen += pagelen - buf->page_base; in xdr_buf_pages_fill_sparse()
[all …]
Dsysfs.c111 size_t buflen = PAGE_SIZE; in rpc_sysfs_xprt_srcaddr_show() local
117 ret = xprt->ops->get_srcaddr(xprt, buf, buflen); in rpc_sysfs_xprt_srcaddr_show()
119 if (ret < buflen - 1) { in rpc_sysfs_xprt_srcaddr_show()
137 size_t buflen = PAGE_SIZE; in rpc_sysfs_xprt_info_show() local
148 ret = snprintf(buf, buflen, in rpc_sysfs_xprt_info_show()
Dsvcsock.c242 static ssize_t svc_tcp_read_msg(struct svc_rqst *rqstp, size_t buflen, in svc_tcp_read_msg() argument
255 for (i = 0, t = 0; t < buflen; i++, t += PAGE_SIZE) { in svc_tcp_read_msg()
263 iov_iter_bvec(&msg.msg_iter, ITER_DEST, bvec, i, buflen); in svc_tcp_read_msg()
266 buflen -= seek; in svc_tcp_read_msg()
275 if (len == buflen) in svc_tcp_read_msg()
Dbackchannel_rqst.c61 buf->buflen = PAGE_SIZE; in xprt_bc_reinit_xdr_buf()
Dclnt.c1488 static int rpc_anyaddr(int family, struct sockaddr *buf, size_t buflen) in rpc_anyaddr() argument
1492 if (buflen < sizeof(rpc_inaddr_loopback)) in rpc_anyaddr()
1498 if (buflen < sizeof(rpc_in6addr_loopback)) in rpc_anyaddr()
1528 int rpc_localaddr(struct rpc_clnt *clnt, struct sockaddr *buf, size_t buflen) in rpc_localaddr() argument
1549 return rpc_anyaddr(sap->sa_family, buf, buflen); in rpc_localaddr()
Dsvc_xprt.c1376 int svc_xprt_names(struct svc_serv *serv, char *buf, const int buflen) in svc_xprt_names() argument
1391 len = svc_one_xprt_name(xprt, pos, buflen - totlen); in svc_xprt_names()
/net/mac80211/
Ddebugfs_netdev.c70 int buflen) \
72 return scnprintf(buf, buflen, format_string, sdata->field); \
84 char *buf, int buflen) \
89 p += scnprintf(p, buflen + buf - p, "%.2x ", \
92 p += scnprintf(p, buflen + buf - p, "\n"); \
99 char *buf, int buflen) \
101 return scnprintf(buf, buflen, "%d\n", atomic_read(&sdata->field));\
107 int buflen) \
109 return scnprintf(buf, buflen, "%pM\n", sdata->field); \
115 char *buf, int buflen) \
[all …]
Ddebugfs.c591 int buflen)) in format_devstat_counter() argument
608 char *buf, int buflen) \
610 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
95 buflen = nf_nat_ftp_fmt_cmd(ct, type, buffer, sizeof(buffer), in nf_nat_ftp()
97 if (!buflen) in nf_nat_ftp()
103 matchlen, buffer, buflen)) in nf_nat_ftp()
Dnft_exthdr.c450 unsigned int buflen = optlen - i; in nft_exthdr_dccp_eval() local
454 if (buflen > sizeof(buf)) in nft_exthdr_dccp_eval()
455 buflen = sizeof(buf); in nft_exthdr_dccp_eval()
457 bufp = skb_header_pointer(pkt->skb, thoff + optoff + i, buflen, in nft_exthdr_dccp_eval()
474 if (buflen < 2) in nft_exthdr_dccp_eval()
/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()
/net/sunrpc/auth_gss/
Dauth_gss.c404 char __user *buf, size_t buflen) in gss_v0_upcall() argument
411 return rpc_pipe_generic_upcall(file, msg, buf, buflen); in gss_v0_upcall()
422 size_t buflen = sizeof(gss_msg->databuf); in gss_encode_v1_msg() local
425 len = scnprintf(p, buflen, "mech=%s uid=%d", mech->gm_name, in gss_encode_v1_msg()
427 buflen -= len; in gss_encode_v1_msg()
436 len = scnprintf(p, buflen, " target=%s", target_name); in gss_encode_v1_msg()
437 buflen -= len; in gss_encode_v1_msg()
456 len = scnprintf(p, buflen, " service=%s", in gss_encode_v1_msg()
459 len = scnprintf(p, buflen, in gss_encode_v1_msg()
463 buflen -= len; in gss_encode_v1_msg()
[all …]
/net/dccp/
Doptions.c401 const u16 buflen = dccp_ackvec_buflen(av); in dccp_insert_option_ackvec() local
403 const u8 nr_opts = DIV_ROUND_UP(buflen, DCCP_SINGLE_OPT_MAXLEN); in dccp_insert_option_ackvec()
404 u16 len = buflen + 2 * nr_opts; in dccp_insert_option_ackvec()
430 len = buflen; in dccp_insert_option_ackvec()
/net/netfilter/ipvs/
Dip_vs_sync.c960 const size_t buflen) in ip_vs_process_message_v0() argument
974 if (p + SIMPLE_CONN_SIZE > buffer+buflen) { in ip_vs_process_message_v0()
984 if (p > buffer+buflen) { in ip_vs_process_message_v0()
1205 const size_t buflen) in ip_vs_process_message() argument
1211 if (buflen < sizeof(struct ip_vs_sync_mesg_v0)) { in ip_vs_process_message()
1216 if (buflen != ntohs(m2->size)) { in ip_vs_process_message()
1238 if (p + sizeof(s->v4) > buffer+buflen) { in ip_vs_process_message()
1246 if (msg_end > buffer+buflen) { in ip_vs_process_message()
1267 ip_vs_process_message_v0(ipvs, buffer, buflen); in ip_vs_process_message()
1611 ip_vs_receive(struct socket *sock, char *buffer, const size_t buflen) in ip_vs_receive() argument
[all …]
/net/dns_resolver/
Ddns_key.c312 char *buffer, size_t buflen) in dns_resolver_read() argument
319 return user_read(key, buffer, buflen); in dns_resolver_read()
/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/smc/
Dsmc_clc.c663 int smc_clc_wait_msg(struct smc_sock *smc, void *buf, int buflen, in smc_clc_wait_msg() argument
671 struct kvec vec = {buf, buflen}; in smc_clc_wait_msg()
727 if (datlen > buflen) { in smc_clc_wait_msg()
729 recvlen = buflen; in smc_clc_wait_msg()
Dsmc_clc.h378 int smc_clc_wait_msg(struct smc_sock *smc, void *buf, int buflen,
/net/sunrpc/xprtrdma/
Dsvc_rdma_rw.c889 buf->buflen += info->ri_totalbytes; in svc_rdma_read_multiple_chunks()
950 buf->buflen += length; in svc_rdma_read_data_item()
1082 buf->buflen += info->ri_totalbytes; in svc_rdma_read_special()
Dsvc_rdma_recvfrom.c397 arg->buflen = ctxt->rc_byte_len; in svc_rdma_build_arg_xdr()
/net/rxrpc/
Dkey.c563 char *buffer, size_t buflen) in rxrpc_read() argument
613 if (!buffer || buflen < size) in rxrpc_read()
/net/tipc/
Dsocket.c1886 size_t buflen, int flags) in tipc_recvmsg() argument
1900 if (unlikely(!buflen)) in tipc_recvmsg()
1938 copy = min_t(int, dlen - offset, buflen); in tipc_recvmsg()
2015 size_t buflen, int flags) in tipc_recvstream() argument
2028 if (unlikely(!buflen)) in tipc_recvstream()
2037 required = sock_rcvlowat(sk, flags & MSG_WAITALL, buflen); in tipc_recvstream()
2070 copy = min_t(int, dlen - offset, buflen - copied); in tipc_recvstream()
2100 if (copied == buflen || err) in tipc_recvstream()

12