Lines Matching defs:xdrp
172 xrdma_private_t *xdrp = (xrdma_private_t *)(xdrs->x_private);
173 struct clist *cle = *(xdrp->xp_rcl_next);
197 (*conn) = xdrp->xp_conn;
210 cle = *(xdrp->xp_rcl_next);
220 if (cle->c_xdroff != (xdrp->xp_offp - xdrs->x_base))
249 xdrp->xp_rcl_next = &cle->c_next;
305 xrdma_private_t *xdrp;
314 xdrp = (xrdma_private_t *)kmem_zalloc(sizeof (xrdma_private_t),
316 xdrs->x_private = (caddr_t)xdrp;
317 xdrp->xp_offp = addr;
318 xdrp->xp_min_chunk = min_chunk;
319 xdrp->xp_flags = 0;
320 xdrp->xp_buf_size = size;
321 xdrp->xp_rcl = cl;
322 xdrp->xp_reply_chunk_len = 0;
323 xdrp->xp_reply_chunk_len_alt = 0;
330 xdrp->xp_rcl_next = &(cle->c_next);
332 xdrp->xp_rcl_next = &(xdrp->xp_rcl);
335 xdrp->xp_wcl = NULL;
337 xdrp->xp_conn = conn;
338 if (xdrp->xp_min_chunk != 0)
339 xdrp->xp_flags |= XDR_RDMA_CHUNK;
346 xrdma_private_t *xdrp = (xrdma_private_t *)(xdrs->x_private);
348 if (xdrp == NULL)
351 if (xdrp->xp_wcl) {
352 if (xdrp->xp_flags & XDR_RDMA_WLIST_REG) {
353 (void) clist_deregister(xdrp->xp_conn, xdrp->xp_wcl);
354 rdma_buf_free(xdrp->xp_conn,
355 &xdrp->xp_wcl->rb_longbuf);
357 clist_free(xdrp->xp_wcl);
360 if (xdrp->xp_rcl) {
361 if (xdrp->xp_flags & XDR_RDMA_RLIST_REG) {
362 (void) clist_deregister(xdrp->xp_conn, xdrp->xp_rcl);
363 rdma_buf_free(xdrp->xp_conn,
364 &xdrp->xp_rcl->rb_longbuf);
366 clist_free(xdrp->xp_rcl);
369 if (xdrp->xp_rcl_xdr)
370 xdrrdma_free_xdr_chunks(xdrp->xp_conn, xdrp->xp_rcl_xdr);
379 xrdma_private_t *xdrp = (xrdma_private_t *)(xdrs->x_private);
386 if (!xdrrdma_read_a_chunk(xdrs, &xdrp->xp_conn)) {
393 *int32p = (int32_t)ntohl((uint32_t)(*((int32_t *)(xdrp->xp_offp))));
397 xdrp->xp_offp += sizeof (int32_t);
402 if (xdrp->xp_off != 0) {
403 xdrp->xp_off += sizeof (int32_t);
412 xrdma_private_t *xdrp = (xrdma_private_t *)(xdrs->x_private);
418 *(int32_t *)xdrp->xp_offp = (int32_t)htonl((uint32_t)(*int32p));
419 xdrp->xp_offp += sizeof (int32_t);
432 xrdma_private_t *xdrp = (xrdma_private_t *)(xdrs->x_private);
433 struct clist *cle = *(xdrp->xp_rcl_next);
434 struct clist *cls = *(xdrp->xp_rcl_next);
450 cle = *(xdrp->xp_rcl_next);
452 if (xdrp->xp_off) {
453 xpoff = xdrp->xp_off;
455 xpoff = (xdrp->xp_offp - xdrs->x_base);
481 xdrp->xp_rcl_next = &cle->c_next;
506 if (xdrp->xp_conn == NULL) {
511 status = clist_register(xdrp->xp_conn, &cl,
530 status = RDMA_READ(xdrp->xp_conn, &cl, WAIT);
532 status = RDMA_READ(xdrp->xp_conn, &cl, NOWAIT);
552 xdrp->xp_conn, &cl, CLIST_REG_DST) != RDMA_SUCCESS) {
566 (void) clist_deregister(xdrp->xp_conn, &cl);
573 cle = *(xdrp->xp_rcl_next);
585 bcopy(xdrp->xp_offp, addr, len);
587 xdrp->xp_offp += len;
589 if (xdrp->xp_off != 0)
590 xdrp->xp_off += len;
603 xrdma_private_t *xdrp = (xrdma_private_t *)(xdrs->x_private);
614 if (xdrp->xp_flags & XDR_RDMA_CHUNK &&
615 ((xdrp->xp_min_chunk != 0 &&
616 len >= xdrp->xp_min_chunk) ||
619 int offset = xdrp->xp_offp - xdrs->x_base;
627 *(xdrp->xp_rcl_next) = cle;
628 xdrp->xp_rcl_next = &(cle->c_next);
636 bcopy(addr, xdrp->xp_offp, len);
637 xdrp->xp_offp += len;
645 xrdma_private_t *xdrp = (xrdma_private_t *)(xdrs->x_private);
647 return ((uint_t)((uintptr_t)xdrp->xp_offp - (uintptr_t)xdrs->x_base));
653 xrdma_private_t *xdrp = (xrdma_private_t *)(xdrs->x_private);
656 caddr_t lastaddr = xdrp->xp_offp + xdrs->x_handy;
662 xdrp->xp_offp = newaddr;
674 xrdma_private_t *xdrp = (xrdma_private_t *)(xdrs->x_private);
675 struct clist *cle = *(xdrp->xp_rcl_next);
683 cle->c_xdroff <= (xdrp->xp_offp - xdrs->x_base + len))
688 buf = (rpc_inline_t *)xdrp->xp_offp;
692 if ((xdrs->x_handy < len) || (xdrp->xp_min_chunk != 0 &&
693 len >= xdrp->xp_min_chunk)) {
697 xdrp->xp_offp += len;
708 xrdma_private_t *xdrp = (xrdma_private_t *)(xdrs->x_private);
726 (*((int32_t *)(xdrp->xp_offp))));
738 xdrp->xp_offp += len;
750 xdrp->xp_flags |= in_flags;
759 *int32p = (int32_t)xdrp->xp_flags;
764 rcilp->rcil_len = xdrp->xp_reply_chunk_len;
765 rcilp->rcil_len_alt = xdrp->xp_reply_chunk_len_alt;
780 xdrp->xp_reply_chunk_len_alt += rcip->rci_len;
783 xdrp->xp_min_chunk) {
784 xdrp->xp_wcl = NULL;
816 xdrp->xp_wcl = first;
827 xdrp->xp_reply_chunk_len_alt += rcip->rci_len;
829 xdrp->xp_wcl = rwl;
835 xdrp->xp_reply_chunk_len += rcip->rci_len;
841 *((struct clist **)info) = xdrp->xp_wcl;
845 xdrp->xp_wcl = (struct clist *)info;
849 *((struct clist **)info) = xdrp->xp_rcl;
855 rwcip->rwci_wlist = xdrp->xp_wcl;
856 rwcip->rwci_conn = xdrp->xp_conn;
962 xrdma_private_t *xdrp = (xrdma_private_t *)(xdrs->x_private);
964 return ((uint_t)xdrp->xp_buf_size);
1376 xrdma_private_t *xdrp = (xrdma_private_t *)(xdrs->x_private);
1398 status = clist_register(xdrp->xp_conn, &fcl, CLIST_REG_SOURCE);
1476 status = clist_syncmem(xdrp->xp_conn, &fcl, CLIST_REG_SOURCE);
1481 status = RDMA_WRITE(xdrp->xp_conn, wrcl, WAIT);
1503 xrdma_private_t *xdrp = (xrdma_private_t *)(xdrs->x_private);
1504 struct clist *cle = *(xdrp->xp_rcl_next);
1505 struct clist *rclp = xdrp->xp_rcl;
1527 if (xdrp->xp_off == 0)
1528 xdrp->xp_off = (xdrp->xp_offp - xdrs->x_base);
1530 if (cle == NULL || (cle->c_xdroff != xdrp->xp_off))
1543 xdrp->xp_rcl_next = &cle->c_next;
1562 xdrp->xp_offp = rclp->rb_longbuf.addr;
1563 xdrs->x_base = xdrp->xp_offp;
1571 if (xdrp->xp_rcl_xdr) {
1573 clp = xdrp->xp_rcl_xdr;
1578 xdrp->xp_rcl_xdr = rclp;