Lines Matching refs:b1
338 struct bio_dgram_pair_st *b1, *b2; in dgram_pair_ctrl_make_bio_pair() local
353 b1 = bio1->ptr; in dgram_pair_ctrl_make_bio_pair()
356 if (!ossl_assert(b1 != NULL && b2 != NULL)) { in dgram_pair_ctrl_make_bio_pair()
365 if (b1->peer != NULL || b2->peer != NULL) { in dgram_pair_ctrl_make_bio_pair()
371 if (!ossl_assert(b1->req_buf_len >= MIN_BUF_LEN in dgram_pair_ctrl_make_bio_pair()
377 if (b1->rbuf.len != b1->req_buf_len) in dgram_pair_ctrl_make_bio_pair()
378 if (ring_buf_init(&b1->rbuf, b1->req_buf_len) == 0) { in dgram_pair_ctrl_make_bio_pair()
386 ring_buf_destroy(&b1->rbuf); in dgram_pair_ctrl_make_bio_pair()
390 b1->peer = bio2; in dgram_pair_ctrl_make_bio_pair()
392 b1->role = 0; in dgram_pair_ctrl_make_bio_pair()
403 struct bio_dgram_pair_st *b1 = bio1->ptr, *b2; in dgram_pair_ctrl_destroy_bio_pair() local
405 ring_buf_destroy(&b1->rbuf); in dgram_pair_ctrl_destroy_bio_pair()
409 if (b1->peer == NULL) in dgram_pair_ctrl_destroy_bio_pair()
412 bio2 = b1->peer; in dgram_pair_ctrl_destroy_bio_pair()
423 b1->peer = NULL; in dgram_pair_ctrl_destroy_bio_pair()