Home
last modified time | relevance | path

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

/openbmc/linux/sound/soc/loongson/
H A Dloongson_dma.c49 struct loongson_dma_desc *dma_desc_arr; member
167 desc = &prtd->dma_desc_arr[i]; in loongson_pcm_hw_params()
188 desc = &prtd->dma_desc_arr[num_periods - 1]; in loongson_pcm_hw_params()
193 *prtd->dma_pos_desc = *prtd->dma_desc_arr; in loongson_pcm_hw_params()
252 prtd->dma_desc_arr = dma_alloc_coherent(card->dev, PAGE_SIZE, in loongson_pcm_open()
255 if (!prtd->dma_desc_arr) { in loongson_pcm_open()
259 prtd->dma_desc_arr_size = PAGE_SIZE / sizeof(*prtd->dma_desc_arr); in loongson_pcm_open()
277 dma_free_coherent(card->dev, PAGE_SIZE, prtd->dma_desc_arr, in loongson_pcm_open()
291 dma_free_coherent(card->dev, PAGE_SIZE, prtd->dma_desc_arr, in loongson_pcm_close()