Searched refs:newmem (Results 1 – 3 of 3) sorted by relevance
/linux-2.6.39/drivers/staging/comedi/drivers/ |
D | comedi_bond.c | 359 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-2.6.39/drivers/vhost/ |
D | vhost.c | 540 struct vhost_memory mem, *newmem, *oldmem; in vhost_set_memory() local 549 newmem = kmalloc(size + mem.nregions * sizeof *m->regions, GFP_KERNEL); in vhost_set_memory() 550 if (!newmem) in vhost_set_memory() 553 memcpy(newmem, &mem, size); in vhost_set_memory() 554 if (copy_from_user(newmem->regions, m->regions, in vhost_set_memory() 556 kfree(newmem); in vhost_set_memory() 560 if (!memory_access_ok(d, newmem, in vhost_set_memory() 562 kfree(newmem); in vhost_set_memory() 567 rcu_assign_pointer(d->memory, newmem); in vhost_set_memory()
|
/linux-2.6.39/drivers/media/dvb/dvb-core/ |
D | dmxdev.c | 261 void *newmem; in dvb_dvr_set_buffer_size() local 271 newmem = vmalloc(size); in dvb_dvr_set_buffer_size() 272 if (!newmem) in dvb_dvr_set_buffer_size() 278 buf->data = newmem; in dvb_dvr_set_buffer_size() 302 void *newmem; in dvb_dmxdev_set_buffer_size() local 312 newmem = vmalloc(size); in dvb_dmxdev_set_buffer_size() 313 if (!newmem) in dvb_dmxdev_set_buffer_size() 319 buf->data = newmem; in dvb_dmxdev_set_buffer_size()
|