Lines Matching refs:packet_size
88 unsigned int packet_size; member
237 bt->tx->packet_size = BTCVSD_TX_PACKET_SIZE; in mtk_btcvsd_snd_tx_init()
250 bt->rx->packet_size = BTCVSD_RX_PACKET_SIZE; in mtk_btcvsd_snd_rx_init()
391 bt->rx->packet_size; in mtk_btcvsd_read_from_bt()
435 memcpy(bt->tx->temp_packet_buf + (bt->tx->packet_size * i), in mtk_btcvsd_write_to_bt()
438 bt->tx->packet_size), in mtk_btcvsd_write_to_bt()
439 bt->tx->packet_size); in mtk_btcvsd_write_to_bt()
705 unsigned int packet_size = bt->rx->packet_size; in mtk_btcvsd_snd_read() local
710 avail = (bt->rx->packet_w - bt->rx->packet_r) * packet_size; in mtk_btcvsd_snd_read()
713 packet_size; in mtk_btcvsd_snd_read()
726 if (count % packet_size != 0 || in mtk_btcvsd_snd_read()
727 avail % packet_size != 0) { in mtk_btcvsd_snd_read()
729 __func__, count, avail, packet_size); in mtk_btcvsd_snd_read()
731 count -= count % packet_size; in mtk_btcvsd_snd_read()
732 avail -= avail % packet_size; in mtk_btcvsd_snd_read()
753 bt->rx->packet_r += read_size / packet_size; in mtk_btcvsd_snd_read()
769 16 * 1000 / packet_size / 2 / 64; in mtk_btcvsd_snd_read()
782 unsigned int packet_size = bt->tx->packet_size; in mtk_btcvsd_snd_write() local
791 packet_size * 16 * 1000 / 2 / 64; in mtk_btcvsd_snd_write()
800 (bt->tx->packet_w - bt->tx->packet_r) * packet_size; in mtk_btcvsd_snd_write()
803 packet_size; in mtk_btcvsd_snd_write()
816 if (count % packet_size != 0 || in mtk_btcvsd_snd_write()
817 avail % packet_size != 0) { in mtk_btcvsd_snd_write()
819 __func__, count, avail, packet_size); in mtk_btcvsd_snd_write()
820 count -= count % packet_size; in mtk_btcvsd_snd_write()
821 avail -= avail % packet_size; in mtk_btcvsd_snd_write()
842 bt->tx->packet_w += write_size / packet_size; in mtk_btcvsd_snd_write()
913 params_buffer_bytes(hw_params) % bt->tx->packet_size != 0) { in mtk_pcm_btcvsd_hw_params()
1013 byte = packet_diff * bt_stream->packet_size; in mtk_pcm_btcvsd_pointer()