Home
last modified time | relevance | path

Searched refs:buf_cfg (Results 1 – 4 of 4) sorted by relevance

/linux-5.19.10/drivers/gpu/drm/xen/
Dxen_drm_front.c166 struct xen_front_pgdir_shbuf_cfg buf_cfg; in xen_drm_front_dbuf_create() local
180 memset(&buf_cfg, 0, sizeof(buf_cfg)); in xen_drm_front_dbuf_create()
181 buf_cfg.xb_dev = front_info->xb_dev; in xen_drm_front_dbuf_create()
182 buf_cfg.num_pages = DIV_ROUND_UP(size, PAGE_SIZE); in xen_drm_front_dbuf_create()
183 buf_cfg.pages = pages; in xen_drm_front_dbuf_create()
184 buf_cfg.pgdir = &dbuf->shbuf; in xen_drm_front_dbuf_create()
185 buf_cfg.be_alloc = front_info->cfg.be_alloc; in xen_drm_front_dbuf_create()
187 ret = xen_front_pgdir_shbuf_alloc(&buf_cfg); in xen_drm_front_dbuf_create()
203 if (buf_cfg.be_alloc) in xen_drm_front_dbuf_create()
/linux-5.19.10/drivers/hsi/clients/
Dcmt_speech.c811 const struct cs_buffer_config *buf_cfg) in check_buf_params() argument
813 size_t buf_size_aligned = L1_CACHE_ALIGN(buf_cfg->buf_size) * in check_buf_params()
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()
819 buf_cfg->tx_bufs > CS_MAX_BUFFERS) { in check_buf_params()
880 struct cs_buffer_config *buf_cfg) in cs_hsi_data_enable() argument
886 set_buffer_sizes(hi, buf_cfg->rx_bufs, buf_cfg->tx_bufs); in cs_hsi_data_enable()
925 struct cs_buffer_config *buf_cfg) in cs_hsi_buf_config() argument
947 r = check_buf_params(hi, buf_cfg); in cs_hsi_buf_config()
951 hi->buf_size = buf_cfg->buf_size; in cs_hsi_buf_config()
[all …]
/linux-5.19.10/sound/xen/
Dxen_snd_front_alsa.c466 struct xen_front_pgdir_shbuf_cfg buf_cfg; in alsa_hw_params() local
478 memset(&buf_cfg, 0, sizeof(buf_cfg)); in alsa_hw_params()
479 buf_cfg.xb_dev = front_info->xb_dev; in alsa_hw_params()
480 buf_cfg.pgdir = &stream->shbuf; in alsa_hw_params()
481 buf_cfg.num_pages = stream->num_pages; in alsa_hw_params()
482 buf_cfg.pages = stream->pages; in alsa_hw_params()
484 ret = xen_front_pgdir_shbuf_alloc(&buf_cfg); in alsa_hw_params()
/linux-5.19.10/sound/x86/
Dintel_hdmi_audio.c354 union aud_buf_config buf_cfg = {.regval = 0}; in had_init_audio_ctrl() local
359 buf_cfg.regx.audio_fifo_watermark = FIFO_THRESHOLD; in had_init_audio_ctrl()
360 buf_cfg.regx.dma_fifo_watermark = DMA_FIFO_THRESHOLD; in had_init_audio_ctrl()
361 buf_cfg.regx.aud_delay = 0; in had_init_audio_ctrl()
362 had_write_register(intelhaddata, AUD_BUF_CONFIG, buf_cfg.regval); in had_init_audio_ctrl()