Searched refs:smi_buffer (Results 1 – 3 of 3) sorted by relevance
46 static struct smi_buffer smi_buf;54 int dcdbas_smi_alloc(struct smi_buffer *smi_buffer, unsigned long size) in dcdbas_smi_alloc() argument56 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() argument75 if (!smi_buffer->virt) in dcdbas_smi_free()79 __func__, (u32)smi_buffer->dma, smi_buffer->size); in dcdbas_smi_free()[all …]
108 struct smi_buffer { struct114 int dcdbas_smi_alloc(struct smi_buffer *smi_buffer, unsigned long size); argument115 void dcdbas_smi_free(struct smi_buffer *smi_buffer);
23 static struct smi_buffer smi_buf;