Lines Matching refs:xdr
166 int svc_send_common(struct socket *sock, struct xdr_buf *xdr, in svc_send_common() argument
172 struct page **ppage = xdr->pages; in svc_send_common()
173 size_t base = xdr->page_base; in svc_send_common()
174 unsigned int pglen = xdr->page_len; in svc_send_common()
179 slen = xdr->len; in svc_send_common()
182 if (slen == xdr->head[0].iov_len) in svc_send_common()
185 xdr->head[0].iov_len, flags); in svc_send_common()
186 if (len != xdr->head[0].iov_len) in svc_send_common()
188 slen -= xdr->head[0].iov_len; in svc_send_common()
210 if (xdr->tail[0].iov_len) { in svc_send_common()
212 xdr->tail[0].iov_len, 0); in svc_send_common()
225 static int svc_sendto(struct svc_rqst *rqstp, struct xdr_buf *xdr) in svc_sendto() argument
255 tailoff = ((unsigned long)xdr->tail[0].iov_base) & (PAGE_SIZE-1); in svc_sendto()
257 len = svc_send_common(sock, xdr, rqstp->rq_respages[0], headoff, in svc_sendto()
262 svsk, xdr->head[0].iov_base, xdr->head[0].iov_len, in svc_sendto()
263 xdr->len, len, svc_print_addr(rqstp, buf, sizeof(buf))); in svc_sendto()