/net/sunrpc/ |
D | addr.c | 28 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 …]
|
D | xdr.c | 138 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 …]
|
D | svcsock.c | 329 int buflen) in svc_recvfrom() argument 341 len = kernel_recvmsg(svsk->sk_sock, &msg, iov, nr, buflen, in svc_recvfrom() 346 if (len == buflen) in svc_recvfrom() 356 int buflen, unsigned int base) in svc_partial_recvfrom() argument 364 return svc_recvfrom(rqstp, iov, nr, buflen); in svc_partial_recvfrom() 375 ret = svc_recvfrom(rqstp, &iov[i], nr - i, buflen); in svc_partial_recvfrom()
|
D | clnt.c | 1245 struct sockaddr *buf, int buflen) in rpc_sockname() argument 1283 err = kernel_getsockname(sock, buf, &buflen); in rpc_sockname() 1310 static int rpc_anyaddr(int family, struct sockaddr *buf, size_t buflen) in rpc_anyaddr() argument 1314 if (buflen < sizeof(rpc_inaddr_loopback)) in rpc_anyaddr() 1320 if (buflen < sizeof(rpc_in6addr_loopback)) in rpc_anyaddr() 1350 int rpc_localaddr(struct rpc_clnt *clnt, struct sockaddr *buf, size_t buflen) in rpc_localaddr() argument 1367 err = rpc_sockname(net, sap, salen, buf, buflen); in rpc_localaddr() 1371 return rpc_anyaddr(sap->sa_family, buf, buflen); in rpc_localaddr()
|
D | xprtsock.c | 981 copied = rovr->rq_private_buf.buflen; in xs_local_data_read_skb() 1067 if ((copied = rovr->rq_private_buf.buflen) > repsize) in xs_udp_data_read_skb() 1328 if (transport->tcp_copied == req->rq_private_buf.buflen) in xs_tcp_read_common() 1788 int buflen; in xs_sock_getport() local 1791 if (kernel_getsockname(sock, (struct sockaddr *)&buf, &buflen) < 0) in xs_sock_getport()
|
D | xprt.c | 1312 req->rq_snd_buf.buflen = 0; in xprt_request_init() 1314 req->rq_rcv_buf.buflen = 0; in xprt_request_init()
|
D | svc_xprt.c | 1362 int svc_xprt_names(struct svc_serv *serv, char *buf, const int buflen) in svc_xprt_names() argument 1377 len = svc_one_xprt_name(xprt, pos, buflen - totlen); in svc_xprt_names()
|
/net/mac80211/ |
D | debugfs_netdev.c | 73 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 …]
|
D | debugfs.c | 306 int buflen)) in format_devstat_counter() argument 323 char *buf, int buflen) \ 325 return scnprintf(buf, buflen, "%u\n", stats->name); \
|
/net/netfilter/ |
D | nf_nat_sip.c | 36 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 …]
|
D | nf_nat_ftp.c | 30 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/ |
D | debugfs.c | 16 #define DEBUGFS_READONLY_FILE(name, buflen, fmt, value...) \ argument 21 char buf[buflen]; \ 24 res = scnprintf(buf, buflen, fmt "\n", ##value); \
|
/net/rds/ |
D | message.c | 149 unsigned int *pos, void *buf, unsigned int *buflen) in rds_message_next_extension() argument 169 if (ext_len < *buflen) in rds_message_next_extension() 170 *buflen = ext_len; in rds_message_next_extension() 171 memcpy(buf, src + offset, *buflen); in rds_message_next_extension() 176 *buflen = 0; in rds_message_next_extension()
|
/net/dccp/ |
D | options.c | 404 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/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() 1214 const size_t buflen) in ip_vs_process_message() argument 1220 if (buflen < sizeof(struct ip_vs_sync_mesg_v0)) { in ip_vs_process_message() 1225 if (buflen != ntohs(m2->size)) { in ip_vs_process_message() 1247 if (p + sizeof(s->v4) > buffer+buflen) { in ip_vs_process_message() 1255 if (msg_end > buffer+buflen) { in ip_vs_process_message() 1276 ip_vs_process_message_v0(ipvs, buffer, buflen); in ip_vs_process_message() 1620 ip_vs_receive(struct socket *sock, char *buffer, const size_t buflen) in ip_vs_receive() argument [all …]
|
/net/sunrpc/xprtrdma/ |
D | svc_rdma_rw.c | 743 head->arg.buflen += info->ri_chunklen; in svc_rdma_build_normal_read_chunk() 777 head->arg.buflen += info->ri_chunklen; in svc_rdma_build_pz_read_chunk() 779 if (head->arg.buflen <= head->sge[0].length) { in svc_rdma_build_pz_read_chunk() 833 head->arg.buflen = rqstp->rq_arg.buflen; in svc_rdma_recv_read_chunk()
|
D | svc_rdma_recvfrom.c | 131 rqstp->rq_arg.buflen = byte_count; in rdma_build_arg_xdr() 391 rqstp->rq_arg.buflen = head->arg.buflen; in rdma_read_complete()
|
D | svc_rdma_transport.c | 411 int buflen; in svc_rdma_post_recv() local 415 buflen = 0; in svc_rdma_post_recv() 418 for (sge_no = 0; buflen < xprt->sc_max_req_size; sge_no++) { in svc_rdma_post_recv() 437 buflen += PAGE_SIZE; in svc_rdma_post_recv()
|
/net/smc/ |
D | smc_clc.c | 31 int smc_clc_wait_msg(struct smc_sock *smc, void *buf, int buflen, in smc_clc_wait_msg() argument 47 vec.iov_len = buflen; in smc_clc_wait_msg() 87 vec.iov_len = buflen; in smc_clc_wait_msg()
|
D | smc_clc.h | 108 int smc_clc_wait_msg(struct smc_sock *smc, void *buf, int buflen,
|
/net/dns_resolver/ |
D | dns_key.c | 245 char __user *buffer, size_t buflen) in dns_resolver_read() argument 252 return user_read(key, buffer, buflen); in dns_resolver_read()
|
/net/sunrpc/auth_gss/ |
D | auth_gss.c | 451 size_t buflen = sizeof(gss_msg->databuf); in gss_encode_v1_msg() local 454 len = scnprintf(p, buflen, "mech=%s uid=%d ", mech->gm_name, in gss_encode_v1_msg() 456 buflen -= len; in gss_encode_v1_msg() 460 len = scnprintf(p, buflen, "target=%s ", target_name); in gss_encode_v1_msg() 461 buflen -= len; in gss_encode_v1_msg() 466 len = scnprintf(p, buflen, "service=%s ", service_name); in gss_encode_v1_msg() 467 buflen -= len; in gss_encode_v1_msg() 472 len = scnprintf(p, buflen, "enctypes=%s ", in gss_encode_v1_msg() 474 buflen -= len; in gss_encode_v1_msg() 478 len = scnprintf(p, buflen, "\n"); in gss_encode_v1_msg() [all …]
|
/net/tipc/ |
D | socket.c | 1320 size_t buflen, int flags) in tipc_recvmsg() argument 1331 if (unlikely(!buflen)) in tipc_recvmsg() 1364 copy = min_t(int, dlen, buflen); in tipc_recvmsg() 1406 size_t buflen, int flags) in tipc_recvstream() argument 1419 if (unlikely(!buflen)) in tipc_recvstream() 1428 required = sock_rcvlowat(sk, flags & MSG_WAITALL, buflen); in tipc_recvstream() 1460 copy = min_t(int, dlen - offset, buflen - copied); in tipc_recvstream() 1490 if (copied == buflen || err) in tipc_recvstream()
|
/net/phonet/ |
D | pep.c | 66 int buflen = *plen; in pep_get_sb() local 75 if (buflen > ph->sb_len) in pep_get_sb() 76 buflen = ph->sb_len; in pep_get_sb() 77 data = skb_header_pointer(skb, 2, buflen, buf); in pep_get_sb()
|
/net/rxrpc/ |
D | key.c | 1047 char __user *buffer, size_t buflen) in rxrpc_read() argument 1126 if (!buffer || buflen < size) in rxrpc_read()
|