Searched refs:smibuf (Results 1 – 1 of 1) sorted by relevance
154 struct gsmi_buf *smibuf; in gsmi_buf_alloc() local156 smibuf = kzalloc(sizeof(*smibuf), GFP_KERNEL); in gsmi_buf_alloc()157 if (!smibuf) { in gsmi_buf_alloc()163 smibuf->start = kmem_cache_alloc(gsmi_dev.mem_pool, GFP_KERNEL); in gsmi_buf_alloc()164 if (!smibuf->start) { in gsmi_buf_alloc()166 kfree(smibuf); in gsmi_buf_alloc()171 smibuf->length = GSMI_BUF_SIZE; in gsmi_buf_alloc()172 smibuf->address = (u32)virt_to_phys(smibuf->start); in gsmi_buf_alloc()174 return smibuf; in gsmi_buf_alloc()177 static void gsmi_buf_free(struct gsmi_buf *smibuf) in gsmi_buf_free() argument[all …]