Home
last modified time | relevance | path

Searched refs:newmem (Results 1 – 3 of 3) sorted by relevance

/linux-3.4.99/drivers/staging/comedi/drivers/
Dcomedi_bond.c359 void *newmem = kmalloc(newlen, GFP_KERNEL); in Realloc() local
361 if (newmem && oldmem) in Realloc()
362 memcpy(newmem, oldmem, min(oldlen, newlen)); in Realloc()
364 return newmem; in Realloc()
/linux-3.4.99/drivers/media/dvb/dvb-core/
Ddmxdev.c260 void *newmem; in dvb_dvr_set_buffer_size() local
270 newmem = vmalloc(size); in dvb_dvr_set_buffer_size()
271 if (!newmem) in dvb_dvr_set_buffer_size()
277 buf->data = newmem; in dvb_dvr_set_buffer_size()
301 void *newmem; in dvb_dmxdev_set_buffer_size() local
311 newmem = vmalloc(size); in dvb_dmxdev_set_buffer_size()
312 if (!newmem) in dvb_dmxdev_set_buffer_size()
318 buf->data = newmem; in dvb_dmxdev_set_buffer_size()
/linux-3.4.99/drivers/vhost/
Dvhost.c602 struct vhost_memory mem, *newmem, *oldmem; in vhost_set_memory() local
611 newmem = kmalloc(size + mem.nregions * sizeof *m->regions, GFP_KERNEL); in vhost_set_memory()
612 if (!newmem) in vhost_set_memory()
615 memcpy(newmem, &mem, size); in vhost_set_memory()
616 if (copy_from_user(newmem->regions, m->regions, in vhost_set_memory()
618 kfree(newmem); in vhost_set_memory()
622 if (!memory_access_ok(d, newmem, in vhost_set_memory()
624 kfree(newmem); in vhost_set_memory()
629 rcu_assign_pointer(d->memory, newmem); in vhost_set_memory()