Home
last modified time | relevance | path

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

12

/net/sunrpc/
Daddr.c28 char *buf, const int buflen) in rpc_ntop6_noscopeid() argument
39 return snprintf(buf, buflen, "::"); in rpc_ntop6_noscopeid()
47 return snprintf(buf, buflen, "::1"); in rpc_ntop6_noscopeid()
56 return snprintf(buf, buflen, "::ffff:%pI4", in rpc_ntop6_noscopeid()
62 return snprintf(buf, buflen, "%pI6c", addr); in rpc_ntop6_noscopeid()
66 char *buf, const size_t buflen) in rpc_ntop6() argument
73 len = rpc_ntop6_noscopeid(sap, buf, buflen); in rpc_ntop6()
88 if (unlikely(len > buflen)) in rpc_ntop6()
98 char *buf, const int buflen) in rpc_ntop6_noscopeid() argument
104 char *buf, const size_t buflen) in rpc_ntop6() argument
[all …]
Dxdr.c138 unsigned int buflen = head->iov_len; in xdr_inline_pages() local
147 tail->iov_len = buflen - offset; in xdr_inline_pages()
149 xdr->buflen += len; in xdr_inline_pages()
376 buf->buflen -= len; in xdr_shrink_bufhead()
378 if (buf->len > buf->buflen) in xdr_shrink_bufhead()
379 buf->len = buf->buflen; in xdr_shrink_bufhead()
402 tailbuf_len = buf->buflen - buf->head->iov_len - buf->page_len; in xdr_shrink_pagelen()
424 buf->buflen -= len; in xdr_shrink_pagelen()
426 if (buf->len > buf->buflen) in xdr_shrink_pagelen()
427 buf->len = buf->buflen; in xdr_shrink_pagelen()
[all …]
Dbackchannel_rqst.c136 xbufp->buflen = PAGE_SIZE; in xprt_setup_backchannel()
152 xbufp->buflen = PAGE_SIZE; in xprt_setup_backchannel()
Dclnt.c1152 struct sockaddr *buf, int buflen) in rpc_sockname() argument
1190 err = kernel_getsockname(sock, buf, &buflen); in rpc_sockname()
1217 static int rpc_anyaddr(int family, struct sockaddr *buf, size_t buflen) in rpc_anyaddr() argument
1221 if (buflen < sizeof(rpc_inaddr_loopback)) in rpc_anyaddr()
1227 if (buflen < sizeof(rpc_in6addr_loopback)) in rpc_anyaddr()
1256 int rpc_localaddr(struct rpc_clnt *clnt, struct sockaddr *buf, size_t buflen) in rpc_localaddr() argument
1273 err = rpc_sockname(net, sap, salen, buf, buflen); in rpc_localaddr()
1277 return rpc_anyaddr(sap->sa_family, buf, buflen); in rpc_localaddr()
1653 buf->buflen = len; in rpc_xdr_buf_init()
Dsvcsock.c318 int buflen) in svc_recvfrom() argument
330 len = kernel_recvmsg(svsk->sk_sock, &msg, iov, nr, buflen, in svc_recvfrom()
335 if (len == buflen) in svc_recvfrom()
345 int buflen, unsigned int base) in svc_partial_recvfrom() argument
353 return svc_recvfrom(rqstp, iov, nr, buflen); in svc_partial_recvfrom()
364 ret = svc_recvfrom(rqstp, &iov[i], nr - i, buflen); in svc_partial_recvfrom()
Dxprt.c1203 req->rq_snd_buf.buflen = 0; in xprt_request_init()
1205 req->rq_rcv_buf.buflen = 0; in xprt_request_init()
Dsvc_xprt.c1221 int svc_xprt_names(struct svc_serv *serv, char *buf, const int buflen) in svc_xprt_names() argument
1236 len = svc_one_xprt_name(xprt, pos, buflen - totlen); in svc_xprt_names()
Drpc_pipe.c103 char __user *dst, size_t buflen) in rpc_pipe_generic_upcall() argument
106 size_t mlen = min(msg->len - msg->copied, buflen); in rpc_pipe_generic_upcall()
Dxprtsock.c1004 copied = rovr->rq_private_buf.buflen; in xs_local_data_ready()
1066 if ((copied = rovr->rq_private_buf.buflen) > repsize) in xs_udp_data_ready()
1278 if (transport->tcp_copied == req->rq_private_buf.buflen) in xs_tcp_read_common()
/net/mac80211/
Ddebugfs_netdev.c73 int buflen) \
75 return scnprintf(buf, buflen, format_string, sdata->field); \
89 char *buf, int buflen) \
94 p += scnprintf(p, buflen + buf - p, "%.2x ", \
97 p += scnprintf(p, buflen + buf - p, "\n"); \
104 char *buf, int buflen) \
106 return scnprintf(buf, buflen, "%d\n", atomic_read(&sdata->field));\
112 int buflen) \
114 return scnprintf(buf, buflen, "%pM\n", sdata->field); \
120 char *buf, int buflen) \
[all …]
Ddebugfs.c352 int buflen)) in format_devstat_counter() argument
369 char *buf, int buflen) \
371 return scnprintf(buf, buflen, "%u\n", stats->name); \
/net/netfilter/
Dnf_nat_sip.c36 const char *buffer, unsigned int buflen) in mangle_packet() argument
50 buffer, buflen, false)) in mangle_packet()
58 buffer, buflen)) in mangle_packet()
64 *datalen += buflen - matchlen; in mangle_packet()
101 unsigned int buflen; in map_addr() local
120 buflen = sip_sprintf_addr_port(ct, buffer, &newaddr, ntohs(newport)); in map_addr()
122 matchoff, matchlen, buffer, buflen); in map_addr()
180 unsigned int olen, matchend, poff, plen, buflen, n; in nf_nat_sip() local
213 buflen = sip_sprintf_addr(ct, buffer, in nf_nat_sip()
217 poff, plen, buffer, buflen)) { in nf_nat_sip()
[all …]
Dnf_nat_ftp.c30 char *buffer, size_t buflen, in nf_nat_ftp_fmt_cmd() argument
36 return snprintf(buffer, buflen, "%u,%u,%u,%u,%u,%u", in nf_nat_ftp_fmt_cmd()
45 return snprintf(buffer, buflen, "|1|%pI4|%u|", in nf_nat_ftp_fmt_cmd()
48 return snprintf(buffer, buflen, "|2|%pI6|%u|", in nf_nat_ftp_fmt_cmd()
51 return snprintf(buffer, buflen, "|||%u|", port); in nf_nat_ftp_fmt_cmd()
72 unsigned int buflen; in nf_nat_ftp() local
104 buflen = nf_nat_ftp_fmt_cmd(ct, type, buffer, sizeof(buffer), in nf_nat_ftp()
106 if (!buflen) in nf_nat_ftp()
112 matchlen, buffer, buflen)) in nf_nat_ftp()
/net/wireless/
Ddebugfs.c16 #define DEBUGFS_READONLY_FILE(name, buflen, fmt, value...) \ argument
21 char buf[buflen]; \
24 res = scnprintf(buf, buflen, fmt "\n", ##value); \
/net/rds/
Dmessage.c147 unsigned int *pos, void *buf, unsigned int *buflen) in rds_message_next_extension() argument
167 if (ext_len < *buflen) in rds_message_next_extension()
168 *buflen = ext_len; in rds_message_next_extension()
169 memcpy(buf, src + offset, *buflen); in rds_message_next_extension()
174 *buflen = 0; in rds_message_next_extension()
Drds.h669 unsigned int *pos, void *buf, unsigned int *buflen);
/net/sunrpc/xprtrdma/
Dsvc_rdma_recvfrom.c77 rqstp->rq_arg.buflen = byte_count; in rdma_build_arg_xdr()
92 rqstp->rq_arg.buflen += ctxt->sge[sge_no].length; in rdma_build_arg_xdr()
399 head->arg.buflen = rqstp->rq_arg.buflen; in rdma_read_chunks()
426 head->arg.buflen += ret; in rdma_read_chunks()
461 buf->buflen += size; in rdma_fix_xdr_pad()
492 rqstp->rq_arg.buflen = head->arg.buflen; in rdma_read_complete()
Dsvc_rdma_transport.c509 int buflen; in svc_rdma_post_recv() local
513 buflen = 0; in svc_rdma_post_recv()
515 for (sge_no = 0; buflen < xprt->sc_max_req_size; sge_no++) { in svc_rdma_post_recv()
529 buflen += PAGE_SIZE; in svc_rdma_post_recv()
/net/netfilter/ipvs/
Dip_vs_sync.c936 const size_t buflen) in ip_vs_process_message_v0() argument
950 if (p + SIMPLE_CONN_SIZE > buffer+buflen) { in ip_vs_process_message_v0()
960 if (p > buffer+buflen) { in ip_vs_process_message_v0()
1186 const size_t buflen) in ip_vs_process_message() argument
1193 if (buflen < sizeof(struct ip_vs_sync_mesg_v0)) { in ip_vs_process_message()
1198 if (buflen != ntohs(m2->size)) { in ip_vs_process_message()
1220 if (p + sizeof(s->v4) > buffer+buflen) { in ip_vs_process_message()
1228 if (msg_end > buffer+buflen) { in ip_vs_process_message()
1249 ip_vs_process_message_v0(net, buffer, buflen); in ip_vs_process_message()
1574 ip_vs_receive(struct socket *sock, char *buffer, const size_t buflen) in ip_vs_receive() argument
[all …]
/net/dccp/
Doptions.c404 const u16 buflen = dccp_ackvec_buflen(av); in dccp_insert_option_ackvec() local
406 const u8 nr_opts = DIV_ROUND_UP(buflen, DCCP_SINGLE_OPT_MAXLEN); in dccp_insert_option_ackvec()
407 u16 len = buflen + 2 * nr_opts; in dccp_insert_option_ackvec()
433 len = buflen; in dccp_insert_option_ackvec()
/net/dns_resolver/
Ddns_key.c242 char __user *buffer, size_t buflen) in dns_resolver_read() argument
247 return user_read(key, buffer, buflen); in dns_resolver_read()
/net/sunrpc/auth_gss/
Dauth_gss.c449 size_t buflen = sizeof(gss_msg->databuf); in gss_encode_v1_msg() local
452 len = scnprintf(p, buflen, "mech=%s uid=%d ", mech->gm_name, in gss_encode_v1_msg()
454 buflen -= len; in gss_encode_v1_msg()
458 len = scnprintf(p, buflen, "target=%s ", target_name); in gss_encode_v1_msg()
459 buflen -= len; in gss_encode_v1_msg()
464 len = scnprintf(p, buflen, "service=%s ", service_name); in gss_encode_v1_msg()
465 buflen -= len; in gss_encode_v1_msg()
470 len = scnprintf(p, buflen, "enctypes=%s ", in gss_encode_v1_msg()
472 buflen -= len; in gss_encode_v1_msg()
476 len = scnprintf(p, buflen, "\n"); in gss_encode_v1_msg()
[all …]
/net/rxrpc/
Drxkad.c695 void *buf, size_t buflen) in rxkad_sg_set_buf2() argument
701 sg_set_buf(&sg[0], buf, buflen); in rxkad_sg_set_buf2()
702 if (sg[0].offset + buflen > PAGE_SIZE) { in rxkad_sg_set_buf2()
705 sg_set_buf(&sg[1], buf + sg[0].length, buflen - sg[0].length); in rxkad_sg_set_buf2()
711 ASSERTCMP(sg[0].length + sg[1].length, ==, buflen); in rxkad_sg_set_buf2()
Dar-key.c1051 char __user *buffer, size_t buflen) in rxrpc_read() argument
1130 if (!buffer || buflen < size) in rxrpc_read()
/net/phonet/
Dpep.c65 int buflen = *plen; in pep_get_sb() local
74 if (buflen > ph->sb_len) in pep_get_sb()
75 buflen = ph->sb_len; in pep_get_sb()
76 data = skb_header_pointer(skb, 2, buflen, buf); in pep_get_sb()

12