Lines Matching refs:sport_handle

246 	struct sport_device *sport_handle = snd_soc_dai_get_drvdata(cpu_dai);  in bf5xx_pcm_open()  local
258 if (sport_handle != NULL) in bf5xx_pcm_open()
259 runtime->private_data = sport_handle; in bf5xx_pcm_open()
320 struct sport_device *sport_handle = snd_soc_dai_get_drvdata(cpu_dai); in bf5xx_pcm_preallocate_dma_buffer() local
342 sport_handle->tx_buf = buf->area; in bf5xx_pcm_preallocate_dma_buffer()
344 sport_handle->rx_buf = buf->area; in bf5xx_pcm_preallocate_dma_buffer()
352 if (!sport_handle->tx_dma_buf) { in bf5xx_pcm_preallocate_dma_buffer()
353 sport_handle->tx_dma_buf = dma_alloc_coherent(NULL, \ in bf5xx_pcm_preallocate_dma_buffer()
354 size, &sport_handle->tx_dma_phy, GFP_KERNEL); in bf5xx_pcm_preallocate_dma_buffer()
355 if (!sport_handle->tx_dma_buf) { in bf5xx_pcm_preallocate_dma_buffer()
359 memset(sport_handle->tx_dma_buf, 0, size); in bf5xx_pcm_preallocate_dma_buffer()
361 memset(sport_handle->tx_dma_buf, 0, size); in bf5xx_pcm_preallocate_dma_buffer()
363 if (!sport_handle->rx_dma_buf) { in bf5xx_pcm_preallocate_dma_buffer()
364 sport_handle->rx_dma_buf = dma_alloc_coherent(NULL, \ in bf5xx_pcm_preallocate_dma_buffer()
365 size, &sport_handle->rx_dma_phy, GFP_KERNEL); in bf5xx_pcm_preallocate_dma_buffer()
366 if (!sport_handle->rx_dma_buf) { in bf5xx_pcm_preallocate_dma_buffer()
370 memset(sport_handle->rx_dma_buf, 0, size); in bf5xx_pcm_preallocate_dma_buffer()
372 memset(sport_handle->rx_dma_buf, 0, size); in bf5xx_pcm_preallocate_dma_buffer()
386 struct sport_device *sport_handle = snd_soc_dai_get_drvdata(cpu_dai); in bf5xx_pcm_free_dma_buffers() local
402 if (sport_handle->tx_dma_buf) in bf5xx_pcm_free_dma_buffers()
404 sport_handle->tx_dma_buf, 0); in bf5xx_pcm_free_dma_buffers()
405 sport_handle->tx_dma_buf = NULL; in bf5xx_pcm_free_dma_buffers()
408 if (sport_handle->rx_dma_buf) in bf5xx_pcm_free_dma_buffers()
410 sport_handle->rx_dma_buf, 0); in bf5xx_pcm_free_dma_buffers()
411 sport_handle->rx_dma_buf = NULL; in bf5xx_pcm_free_dma_buffers()