Lines Matching refs:ptfbuf
352 LDACBT_TRANSPORT_FRM_BUF *ptfbuf; in ldacBT_encode() local
391 ptfbuf = &hLdacBT->ldac_trns_frm_buf; in ldacBT_encode()
431 if( ptfbuf->nfrm_in == 0 ){ in ldacBT_encode()
438 nFrmToPkt = hLdacBT->tgt_nfrm_in_pkt - ptfbuf->nfrm_in; in ldacBT_encode()
443 frmlen_adj = (hLdacBT->tx.tx_size - ptfbuf->used) / nFrmToPkt; in ldacBT_encode()
470 if( ptfbuf->nfrm_in == 0 ){ in ldacBT_encode()
481 nFrmToPkt = hLdacBT->tgt_nfrm_in_pkt - ptfbuf->nfrm_in; in ldacBT_encode()
483 frmlen_adj = (hLdacBT->tx.tx_size - ptfbuf->used) / nFrmToPkt; in ldacBT_encode()
507 if( (( ptfbuf->used + frmlen + LDACBT_FRMHDRBYTES) > hLdacBT->tx.tx_size) || in ldacBT_encode()
509 (( ptfbuf->used + frmlen + LDACBT_FRMHDRBYTES) >= LDACBT_ENC_STREAM_BUF_SZ ) in ldacBT_encode()
512 copy_data_ldac( ptfbuf->buf, p_stream, ptfbuf->used ); in ldacBT_encode()
513 *stream_sz = ptfbuf->used; in ldacBT_encode()
514 *frame_num = ptfbuf->nfrm_in; in ldacBT_encode()
515 clear_data_ldac( ptfbuf->buf, sizeof(char)*LDACBT_ENC_STREAM_BUF_SZ); in ldacBT_encode()
516 ptfbuf->used = 0; in ldacBT_encode()
517 ptfbuf->nfrm_in = 0; in ldacBT_encode()
524 p_ldac_transport_frame = ptfbuf->buf + ptfbuf->used; in ldacBT_encode()
600 ptfbuf->used += frmlen_wrote; in ldacBT_encode()
601 ptfbuf->nfrm_in ++; in ldacBT_encode()
606 if( (( ptfbuf->used + frmlen_wrote) > hLdacBT->tx.tx_size) || in ldacBT_encode()
607 ( ptfbuf->nfrm_in >= LDACBT_NFRM_TX_MAX ) || in ldacBT_encode()
608 (( ptfbuf->used + frmlen_wrote) >= LDACBT_ENC_STREAM_BUF_SZ ) || in ldacBT_encode()
612 copy_data_ldac( ptfbuf->buf, p_stream, ptfbuf->used ); in ldacBT_encode()
613 *stream_sz = ptfbuf->used; in ldacBT_encode()
614 *frame_num = ptfbuf->nfrm_in; in ldacBT_encode()
615 clear_data_ldac( ptfbuf->buf, sizeof(char)*LDACBT_ENC_STREAM_BUF_SZ); in ldacBT_encode()
616 ptfbuf->used = 0; in ldacBT_encode()
617 ptfbuf->nfrm_in = 0; in ldacBT_encode()