Lines Matching refs:smibuf
151 struct gsmi_buf *smibuf; in gsmi_buf_alloc() local
153 smibuf = kzalloc(sizeof(*smibuf), GFP_KERNEL); in gsmi_buf_alloc()
154 if (!smibuf) { in gsmi_buf_alloc()
160 smibuf->start = dma_pool_alloc(gsmi_dev.dma_pool, GFP_KERNEL, in gsmi_buf_alloc()
161 &smibuf->handle); in gsmi_buf_alloc()
162 if (!smibuf->start) { in gsmi_buf_alloc()
164 kfree(smibuf); in gsmi_buf_alloc()
169 smibuf->length = GSMI_BUF_SIZE; in gsmi_buf_alloc()
170 smibuf->address = (u32)virt_to_phys(smibuf->start); in gsmi_buf_alloc()
172 return smibuf; in gsmi_buf_alloc()
175 static void gsmi_buf_free(struct gsmi_buf *smibuf) in gsmi_buf_free() argument
177 if (smibuf) { in gsmi_buf_free()
178 if (smibuf->start) in gsmi_buf_free()
179 dma_pool_free(gsmi_dev.dma_pool, smibuf->start, in gsmi_buf_free()
180 smibuf->handle); in gsmi_buf_free()
181 kfree(smibuf); in gsmi_buf_free()