Lines Matching refs:wcl

454 	struct clist	*wcl = NULL;  in svc_rdma_krecv()  local
497 if (!xdr_decode_wlist_svc(xdrs, &wcl, &wwl, &wcl_total_length, conn)) { in svc_rdma_krecv()
503 crdp->cl_wlist = wcl; in svc_rdma_krecv()
650 struct clist *wcl = NULL; in svc_process_long_reply() local
705 wcl = crdp->cl_reply; in svc_process_long_reply()
706 wcl->rb_longbuf = long_rpc; in svc_process_long_reply()
709 while ((wcl != NULL) && (count > 0)) { in svc_process_long_reply()
711 if (wcl->c_dmemhandle.mrc_rmr == 0) in svc_process_long_reply()
715 uint32_t, wcl->c_len); in svc_process_long_reply()
717 if (wcl->c_len > count) { in svc_process_long_reply()
718 wcl->c_len = count; in svc_process_long_reply()
720 wcl->w.c_saddr3 = (caddr_t)memp; in svc_process_long_reply()
722 count -= wcl->c_len; in svc_process_long_reply()
724 memp += wcl->c_len; in svc_process_long_reply()
725 wcl = wcl->c_next; in svc_process_long_reply()
731 while (wcl != NULL) { in svc_process_long_reply()
732 if (wcl->c_dmemhandle.mrc_rmr == 0) in svc_process_long_reply()
734 wcl->c_len = 0; in svc_process_long_reply()
735 wcl = wcl->c_next; in svc_process_long_reply()
738 wcl = crdp->cl_reply; in svc_process_long_reply()
749 if (clist_register(crdp->conn, wcl, CLIST_REG_SOURCE) != RDMA_SUCCESS) { in svc_process_long_reply()
755 status = clist_syncmem(crdp->conn, wcl, CLIST_REG_SOURCE); in svc_process_long_reply()
758 (void) clist_deregister(crdp->conn, wcl); in svc_process_long_reply()
764 status = RDMA_WRITE(crdp->conn, wcl, WAIT); in svc_process_long_reply()
766 (void) clist_deregister(crdp->conn, wcl); in svc_process_long_reply()
767 rdma_buf_free(crdp->conn, &wcl->rb_longbuf); in svc_process_long_reply()
1378 rdma_setup_read_chunks(struct clist *wcl, uint32_t count, int *wcl_len) in rdma_setup_read_chunks() argument
1385 while (wcl != NULL && count > 0) { in rdma_setup_read_chunks()
1386 if (wcl->c_dmemhandle.mrc_rmr == 0) in rdma_setup_read_chunks()
1389 if (wcl->c_len < count) { in rdma_setup_read_chunks()
1390 data_len += wcl->c_len; in rdma_setup_read_chunks()
1394 avail_len = wcl->c_len - count; in rdma_setup_read_chunks()
1395 wcl->c_len = count; in rdma_setup_read_chunks()
1397 count -= wcl->c_len; in rdma_setup_read_chunks()
1402 wcl = wcl->c_next; in rdma_setup_read_chunks()
1427 wcl->c_len += round_len; in rdma_setup_read_chunks()
1432 wcl = wcl->c_next; in rdma_setup_read_chunks()
1433 if ((wcl == NULL) || (wcl->c_len < round_len)) { in rdma_setup_read_chunks()
1439 wcl->c_len = round_len; in rdma_setup_read_chunks()
1443 wcl = wcl->c_next; in rdma_setup_read_chunks()
1449 clist_zero_len(wcl); in rdma_setup_read_chunks()