Searched refs:newmem (Results 1 – 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/drivers/vhost/ |
D | vhost.c | 1421 struct vhost_memory mem, *newmem; in vhost_set_memory() local 1433 newmem = kvzalloc(struct_size(newmem, regions, mem.nregions), in vhost_set_memory() 1435 if (!newmem) in vhost_set_memory() 1438 memcpy(newmem, &mem, size); in vhost_set_memory() 1439 if (copy_from_user(newmem->regions, m->regions, in vhost_set_memory() 1440 flex_array_size(newmem, regions, mem.nregions))) { in vhost_set_memory() 1441 kvfree(newmem); in vhost_set_memory() 1447 kvfree(newmem); in vhost_set_memory() 1451 for (region = newmem->regions; in vhost_set_memory() 1452 region < newmem->regions + mem.nregions; in vhost_set_memory() [all …]
|
/kernel/linux/linux-5.10/drivers/media/dvb-core/ |
D | dmxdev.c | 293 void *newmem; in dvb_dvr_set_buffer_size() local 303 newmem = vmalloc(size); in dvb_dvr_set_buffer_size() 304 if (!newmem) in dvb_dvr_set_buffer_size() 310 buf->data = newmem; in dvb_dvr_set_buffer_size() 334 void *newmem; in dvb_dmxdev_set_buffer_size() local 344 newmem = vmalloc(size); in dvb_dmxdev_set_buffer_size() 345 if (!newmem) in dvb_dmxdev_set_buffer_size() 351 buf->data = newmem; in dvb_dmxdev_set_buffer_size()
|