/net/sunrpc/ |
D | addr.c | 29 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 …]
|
D | xdr.c | 183 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 …]
|
D | svcsock.c | 323 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()
|
D | clnt.c | 1397 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()
|
D | svc_xprt.c | 1329 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()
|
D | rpc_pipe.c | 105 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()
|
D | xprt.c | 1726 req->rq_snd_buf.buflen = 0; in xprt_request_init() 1728 req->rq_rcv_buf.buflen = 0; in xprt_request_init()
|
/net/mac80211/ |
D | debugfs_netdev.c | 70 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 …]
|
D | debugfs.c | 367 int buflen)) in format_devstat_counter() argument 384 char *buf, int buflen) \ 386 return scnprintf(buf, buflen, "%u\n", stats->name); \
|
/net/netfilter/ |
D | nf_nat_sip.c | 38 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 …]
|
D | nf_nat_ftp.c | 34 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/ |
D | debugfs.c | 13 #define DEBUGFS_READONLY_FILE(name, buflen, fmt, value...) \ argument 18 char buf[buflen]; \ 21 res = scnprintf(buf, buflen, fmt "\n", ##value); \
|
/net/rds/ |
D | message.c | 238 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()
|
D | rds.h | 862 unsigned int *pos, void *buf, unsigned int *buflen);
|
/net/sunrpc/auth_gss/ |
D | auth_gss.c | 430 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/ |
D | options.c | 400 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/ |
D | ip_vs_sync.c | 963 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/ |
D | dns_key.c | 305 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/ |
D | svc_rdma_rw.c | 753 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()
|
D | svc_rdma_recvfrom.c | 356 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/ |
D | smc_clc.c | 270 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()
|
D | smc_clc.h | 192 int smc_clc_wait_msg(struct smc_sock *smc, void *buf, int buflen,
|
/net/phonet/ |
D | pep.c | 53 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/ |
D | socket.c | 1739 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/ |
D | key.c | 1045 char __user *buffer, size_t buflen) in rxrpc_read() argument 1124 if (!buffer || buflen < size) in rxrpc_read()
|