Lines Matching refs:rcmd_state

3313 					bzero(&tmi->rcmd_state,  in cryptmodwput()
3314 sizeof (tmi->rcmd_state)); in cryptmodwput()
3442 if (tmi->rcmd_state.pt_len == 0) { in decrypt_rcmd_mblks()
3452 ASSERT(tmi->rcmd_state.cd_len < sizeof (uint32_t)); in decrypt_rcmd_mblks()
3455 tmi->rcmd_state.cd_len; in decrypt_rcmd_mblks()
3461 (char *)(&tmi->rcmd_state.next_len + in decrypt_rcmd_mblks()
3462 tmi->rcmd_state.cd_len), tocopy); in decrypt_rcmd_mblks()
3464 tmi->rcmd_state.cd_len += tocopy; in decrypt_rcmd_mblks()
3466 if (tmi->rcmd_state.cd_len >= sizeof (uint32_t)) { in decrypt_rcmd_mblks()
3467 tmi->rcmd_state.next_len = in decrypt_rcmd_mblks()
3468 ntohl(tmi->rcmd_state.next_len); in decrypt_rcmd_mblks()
3488 tmi->rcmd_state.pt_len = tmi->rcmd_state.next_len; in decrypt_rcmd_mblks()
3490 if (tmi->rcmd_state.pt_len <= 0) { in decrypt_rcmd_mblks()
3506 tmi->rcmd_state.cd_len = tmi->rcmd_state.pt_len = 0; in decrypt_rcmd_mblks()
3519 elen = tmi->rcmd_state.pt_len + 4; in decrypt_rcmd_mblks()
3521 elen = tmi->rcmd_state.pt_len; in decrypt_rcmd_mblks()
3523 tmi->rcmd_state.cd_len = encrypt_size(&tmi->dec_data, elen); in decrypt_rcmd_mblks()
3529 tmi->rcmd_state.c_msg = allocb(tmi->rcmd_state.cd_len, in decrypt_rcmd_mblks()
3531 if (tmi->rcmd_state.c_msg == NULL) { in decrypt_rcmd_mblks()
3535 (int)tmi->rcmd_state.cd_len); in decrypt_rcmd_mblks()
3546 tmi->rcmd_state.cd_len = tmi->rcmd_state.pt_len = 0; in decrypt_rcmd_mblks()
3568 ASSERT(tmi->rcmd_state.c_msg != NULL); in decrypt_rcmd_mblks()
3570 (tmi->rcmd_state.cd_len > MBLKL(tmi->rcmd_state.c_msg))) { in decrypt_rcmd_mblks()
3584 needed = tmi->rcmd_state.cd_len - in decrypt_rcmd_mblks()
3585 MBLKL(tmi->rcmd_state.c_msg); in decrypt_rcmd_mblks()
3590 ASSERT(tmi->rcmd_state.c_msg->b_wptr + tocopy <= in decrypt_rcmd_mblks()
3591 DB_LIM(tmi->rcmd_state.c_msg)); in decrypt_rcmd_mblks()
3594 bcopy(bp->b_rptr, tmi->rcmd_state.c_msg->b_wptr, in decrypt_rcmd_mblks()
3597 tmi->rcmd_state.c_msg->b_wptr += tocopy; in decrypt_rcmd_mblks()
3613 if (MBLKL(tmi->rcmd_state.c_msg) == in decrypt_rcmd_mblks()
3614 tmi->rcmd_state.cd_len) { in decrypt_rcmd_mblks()
3641 if (tmi->rcmd_state.pt_len > 0 && in decrypt_rcmd_mblks()
3642 MBLKL(tmi->rcmd_state.c_msg) == tmi->rcmd_state.cd_len) { in decrypt_rcmd_mblks()
3650 bp = tmi->rcmd_state.c_msg; in decrypt_rcmd_mblks()
3651 tmi->rcmd_state.c_msg = NULL; in decrypt_rcmd_mblks()
3671 if (pt_len2 != tmi->rcmd_state.pt_len) { in decrypt_rcmd_mblks()
3675 (int)tmi->rcmd_state.pt_len, in decrypt_rcmd_mblks()
3683 tmi->rcmd_state.cd_len = 0; in decrypt_rcmd_mblks()
3696 bp->b_wptr = bp->b_rptr + tmi->rcmd_state.pt_len; in decrypt_rcmd_mblks()
3704 tmi->rcmd_state.pt_len = 0; in decrypt_rcmd_mblks()
3705 tmi->rcmd_state.cd_len = 0; in decrypt_rcmd_mblks()
3710 (int)tmi->rcmd_state.cd_len); in decrypt_rcmd_mblks()
3716 tmi->rcmd_state.pt_len = 0; in decrypt_rcmd_mblks()
3717 tmi->rcmd_state.cd_len = 0; in decrypt_rcmd_mblks()