Lines Matching refs:rx_bufs
100 unsigned int rx_bufs; member
596 cs_notify_data(payload, hi->rx_bufs); in cs_hsi_read_on_data_complete()
623 hi->rx_offsets[hi->rx_slot % hi->rx_bufs]); in cs_hsi_peek_on_data_complete()
788 static void set_buffer_sizes(struct cs_hsi_iface *hi, int rx_bufs, int tx_bufs) in set_buffer_sizes() argument
790 hi->rx_bufs = rx_bufs; in set_buffer_sizes()
792 hi->mmap_cfg->rx_bufs = rx_bufs; in set_buffer_sizes()
803 hi->rx_ptr_boundary = (rx_bufs << RX_PTR_BOUNDARY_SHIFT); in set_buffer_sizes()
806 hi->rx_ptr_boundary = hi->rx_bufs; in set_buffer_sizes()
814 (buf_cfg->rx_bufs + buf_cfg->tx_bufs); in check_buf_params()
818 if (buf_cfg->rx_bufs > CS_MAX_BUFFERS || in check_buf_params()
886 set_buffer_sizes(hi, buf_cfg->rx_bufs, buf_cfg->tx_bufs); in cs_hsi_data_enable()
898 for (i = 0; i < hi->mmap_cfg->rx_bufs; i++) { in cs_hsi_data_enable()
906 (i + hi->mmap_cfg->rx_bufs) * hi->slot_size; in cs_hsi_data_enable()