Searched refs:smibuf (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/firmware/google/
H A Dgsmi.c138 struct gsmi_buf *smibuf; gsmi_buf_alloc() local
140 smibuf = kzalloc(sizeof(*smibuf), GFP_KERNEL); gsmi_buf_alloc()
141 if (!smibuf) { gsmi_buf_alloc()
147 smibuf->start = dma_pool_alloc(gsmi_dev.dma_pool, GFP_KERNEL, gsmi_buf_alloc()
148 &smibuf->handle); gsmi_buf_alloc()
149 if (!smibuf->start) { gsmi_buf_alloc()
151 kfree(smibuf); gsmi_buf_alloc()
156 smibuf->length = GSMI_BUF_SIZE; gsmi_buf_alloc()
157 smibuf->address = (u32)virt_to_phys(smibuf->start); gsmi_buf_alloc()
159 return smibuf; gsmi_buf_alloc()
162 static void gsmi_buf_free(struct gsmi_buf *smibuf) gsmi_buf_free() argument
164 if (smibuf) { gsmi_buf_free()
165 if (smibuf->start) gsmi_buf_free()
166 dma_pool_free(gsmi_dev.dma_pool, smibuf->start, gsmi_buf_free()
167 smibuf->handle); gsmi_buf_free()
168 kfree(smibuf); gsmi_buf_free()

Completed in 67 milliseconds