Lines Matching defs:cd
458 struct cf_conn *cd = xprt ? (struct cf_conn *)xprt->xp_p1 : NULL;
473 if (cd) {
474 XDR_DESTROY(&(cd->xdrs));
475 free(cd);
490 struct cf_conn *cd;
500 cd = malloc(sizeof (struct cf_conn));
501 if (cd == NULL) {
506 cd->sendsize = sendsize;
507 cd->recvsize = recvsize;
508 cd->strm_stat = XPRT_IDLE;
509 cd->cf_tsdu = tsdu;
510 cd->cf_cache = cache;
511 cd->cf_conn_nonblock = FALSE;
512 cd->cf_conn_nonblock_timestamp = 0;
513 cd->xdrs.x_ops = NULL;
514 xdrrec_create(&(cd->xdrs), sendsize, 0, (caddr_t)xprt,
516 if (cd->xdrs.x_ops == NULL) {
518 free(cd);
529 XDR_DESTROY(&(cd->xdrs));
530 free(cd);
545 XDR_DESTROY(&(cd->xdrs));
546 free(cd);
563 XDR_DESTROY(&(cd->xdrs));
564 free(cd);
575 XDR_DESTROY(&(cd->xdrs));
576 free(cd);
583 xprt->xp_p1 = (caddr_t)cd;
585 xprt->xp_verf.oa_base = cd->verf_body;
595 struct cf_conn *cd, *pcd;
632 if ((cd = malloc(sizeof (struct cf_conn))) == NULL) {
638 cd->sendsize = pcd->sendsize;
639 cd->recvsize = pcd->recvsize;
640 cd->strm_stat = pcd->strm_stat;
641 cd->x_id = pcd->x_id;
642 cd->cf_tsdu = pcd->cf_tsdu;
643 cd->cf_cache = pcd->cf_cache;
644 cd->cf_conn_nonblock = pcd->cf_conn_nonblock;
645 cd->cf_conn_nonblock_timestamp = pcd->cf_conn_nonblock_timestamp;
646 cd->xdrs.x_ops = NULL;
647 xdrrec_create(&(cd->xdrs), cd->sendsize, 0, (caddr_t)xprt,
649 if (cd->xdrs.x_ops == NULL) {
650 free(cd);
654 xprt->xp_verf.oa_base = cd->verf_body;
655 xprt->xp_p1 = (char *)cd;
1078 struct cf_conn *cd = (struct cf_conn *)xprt_conn->xp_p1;
1093 cd->cf_conn_nonblock = TRUE;
1290 struct cf_conn *cd = (struct cf_conn *)xprt_conn->xp_p1;
1293 cd->cf_conn_nonblock_timestamp = tv.tv_sec;
1434 struct cf_conn *cd;
1466 cd = (struct cf_conn *)xprt->xp_p1;
1467 if (!cd->cf_conn_nonblock)
1469 lasttime = now.tv_sec - cd->cf_conn_nonblock_timestamp;
1667 struct cf_conn *cd = (struct cf_conn *)(xprt->xp_p1);
1672 if (cd->cf_conn_nonblock) {
1674 if (!__xdrrec_getbytes_nonblock(xdrs, &cd->strm_stat)) {
1684 if (cd->strm_stat == XPRT_DIED)
1696 cd->x_id = msg->rm_xid;
1704 if (cd->cf_conn_nonblock) {
1739 struct cf_conn *cd = (struct cf_conn *)(xprt->xp_p1);
1740 XDR *xdrs = &(cd->xdrs);
1765 msg->rm_xid = cd->x_id;