Lines Matching refs:wcl
449 struct clist *wcl = NULL; in svc_rdma_krecv() local
492 if (!xdr_decode_wlist_svc(xdrs, &wcl, &wwl, &wcl_total_length, conn)) { in svc_rdma_krecv()
498 crdp->cl_wlist = wcl; in svc_rdma_krecv()
645 struct clist *wcl = NULL; in svc_process_long_reply() local
700 wcl = crdp->cl_reply; in svc_process_long_reply()
701 wcl->rb_longbuf = long_rpc; in svc_process_long_reply()
704 while ((wcl != NULL) && (count > 0)) { in svc_process_long_reply()
706 if (wcl->c_dmemhandle.mrc_rmr == 0) in svc_process_long_reply()
710 uint32_t, wcl->c_len); in svc_process_long_reply()
712 if (wcl->c_len > count) { in svc_process_long_reply()
713 wcl->c_len = count; in svc_process_long_reply()
715 wcl->w.c_saddr3 = (caddr_t)memp; in svc_process_long_reply()
717 count -= wcl->c_len; in svc_process_long_reply()
719 memp += wcl->c_len; in svc_process_long_reply()
720 wcl = wcl->c_next; in svc_process_long_reply()
726 while (wcl != NULL) { in svc_process_long_reply()
727 if (wcl->c_dmemhandle.mrc_rmr == 0) in svc_process_long_reply()
729 wcl->c_len = 0; in svc_process_long_reply()
730 wcl = wcl->c_next; in svc_process_long_reply()
733 wcl = crdp->cl_reply; in svc_process_long_reply()
744 if (clist_register(crdp->conn, wcl, CLIST_REG_SOURCE) != RDMA_SUCCESS) { in svc_process_long_reply()
750 status = clist_syncmem(crdp->conn, wcl, CLIST_REG_SOURCE); in svc_process_long_reply()
753 (void) clist_deregister(crdp->conn, wcl); in svc_process_long_reply()
759 status = RDMA_WRITE(crdp->conn, wcl, WAIT); in svc_process_long_reply()
761 (void) clist_deregister(crdp->conn, wcl); in svc_process_long_reply()
762 rdma_buf_free(crdp->conn, &wcl->rb_longbuf); in svc_process_long_reply()
1376 rdma_setup_read_chunks(struct clist *wcl, uint32_t count, int *wcl_len) in rdma_setup_read_chunks() argument
1383 while (wcl != NULL && count > 0) { in rdma_setup_read_chunks()
1384 if (wcl->c_dmemhandle.mrc_rmr == 0) in rdma_setup_read_chunks()
1387 if (wcl->c_len < count) { in rdma_setup_read_chunks()
1388 data_len += wcl->c_len; in rdma_setup_read_chunks()
1392 avail_len = wcl->c_len - count; in rdma_setup_read_chunks()
1393 wcl->c_len = count; in rdma_setup_read_chunks()
1395 count -= wcl->c_len; in rdma_setup_read_chunks()
1400 wcl = wcl->c_next; in rdma_setup_read_chunks()
1425 wcl->c_len += round_len; in rdma_setup_read_chunks()
1430 wcl = wcl->c_next; in rdma_setup_read_chunks()
1431 if ((wcl == NULL) || (wcl->c_len < round_len)) { in rdma_setup_read_chunks()
1437 wcl->c_len = round_len; in rdma_setup_read_chunks()
1441 wcl = wcl->c_next; in rdma_setup_read_chunks()
1447 clist_zero_len(wcl); in rdma_setup_read_chunks()