Lines Matching refs:smi_buffer
46 static struct smi_buffer smi_buf;
54 int dcdbas_smi_alloc(struct smi_buffer *smi_buffer, unsigned long size) in dcdbas_smi_alloc() argument
56 smi_buffer->virt = dma_alloc_coherent(&dcdbas_pdev->dev, size, in dcdbas_smi_alloc()
57 &smi_buffer->dma, GFP_KERNEL); in dcdbas_smi_alloc()
58 if (!smi_buffer->virt) { in dcdbas_smi_alloc()
64 smi_buffer->size = size; in dcdbas_smi_alloc()
67 __func__, (u32)smi_buffer->dma, smi_buffer->size); in dcdbas_smi_alloc()
73 void dcdbas_smi_free(struct smi_buffer *smi_buffer) in dcdbas_smi_free() argument
75 if (!smi_buffer->virt) in dcdbas_smi_free()
79 __func__, (u32)smi_buffer->dma, smi_buffer->size); in dcdbas_smi_free()
80 dma_free_coherent(&dcdbas_pdev->dev, smi_buffer->size, in dcdbas_smi_free()
81 smi_buffer->virt, smi_buffer->dma); in dcdbas_smi_free()
82 smi_buffer->virt = NULL; in dcdbas_smi_free()
83 smi_buffer->dma = 0; in dcdbas_smi_free()
84 smi_buffer->size = 0; in dcdbas_smi_free()
104 struct smi_buffer tmp; in smi_data_buf_realloc()