Home
last modified time | relevance | path

Searched refs:new_mem (Results 1 – 19 of 19) sorted by relevance

/openbmc/qemu/include/
H A Dglib-compat.h94 gpointer new_mem; in g_memdup2_qemu()
97 new_mem = g_malloc(byte_size); in g_memdup2_qemu()
98 memcpy(new_mem, mem, byte_size); in g_memdup2_qemu()
100 new_mem = NULL; in g_memdup2_qemu()
103 return new_mem; in g_memdup2_qemu()
/openbmc/linux/drivers/gpu/drm/qxl/
H A Dqxl_ttm.c124 struct ttm_resource *new_mem) in qxl_bo_move_notify() argument
135 qxl_surface_evict(qdev, qbo, new_mem ? true : false); in qxl_bo_move_notify()
140 struct ttm_resource *new_mem, in qxl_bo_move() argument
147 if (new_mem->mem_type != TTM_PL_SYSTEM) { in qxl_bo_move()
153 ttm_bo_move_null(bo, new_mem); in qxl_bo_move()
157 qxl_bo_move_notify(bo, new_mem); in qxl_bo_move()
164 ttm_bo_move_null(bo, new_mem); in qxl_bo_move()
167 return ttm_bo_move_memcpy(bo, ctx, new_mem); in qxl_bo_move()
/openbmc/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_ttm_buffer.c505 struct ttm_resource *new_mem) in vmw_move_notify() argument
507 vmw_bo_move_notify(bo, new_mem); in vmw_move_notify()
508 vmw_query_move_notify(bo, old_mem, new_mem); in vmw_move_notify()
531 struct ttm_resource *new_mem, in vmw_move() argument
543 ret = vmw_ttm_bind(bo->bdev, bo->ttm, new_mem); in vmw_move()
550 ttm_bo_move_null(bo, new_mem); in vmw_move()
554 vmw_move_notify(bo, bo->resource, new_mem); in vmw_move()
558 ttm_bo_move_null(bo, new_mem); in vmw_move()
567 ttm_bo_assign_mem(bo, new_mem); in vmw_move()
570 ret = ttm_bo_move_memcpy(bo, ctx, new_mem); in vmw_move()
[all …]
H A Dvmwgfx_resource.c831 struct ttm_resource *new_mem) in vmw_query_move_notify() argument
841 new_mem->mem_type == TTM_PL_SYSTEM && in vmw_query_move_notify()
H A Dvmwgfx_drv.h831 struct ttm_resource *new_mem);
/openbmc/linux/include/drm/ttm/
H A Dttm_bo.h299 struct ttm_resource *new_mem) in ttm_bo_assign_mem() argument
302 bo->resource = new_mem; in ttm_bo_assign_mem()
313 struct ttm_resource *new_mem) in ttm_bo_move_null() argument
316 ttm_bo_assign_mem(bo, new_mem); in ttm_bo_move_null()
415 struct ttm_resource *new_mem);
419 struct ttm_resource *new_mem);
421 struct ttm_resource *new_mem);
H A Dttm_device.h151 struct ttm_resource *new_mem,
/openbmc/linux/drivers/gpu/drm/radeon/
H A Dradeon_ttm.c140 struct ttm_resource *new_mem, in radeon_move_blit() argument
165 switch (new_mem->mem_type) { in radeon_move_blit()
195 struct ttm_resource *new_mem, in radeon_bo_move() argument
203 if (new_mem->mem_type == TTM_PL_TT) { in radeon_bo_move()
217 ttm_bo_move_null(bo, new_mem); in radeon_bo_move()
221 new_mem->mem_type == TTM_PL_TT) { in radeon_bo_move()
222 ttm_bo_move_null(bo, new_mem); in radeon_bo_move()
227 new_mem->mem_type == TTM_PL_SYSTEM) { in radeon_bo_move()
230 ttm_bo_assign_mem(bo, new_mem); in radeon_bo_move()
236 new_mem->mem_type == TTM_PL_VRAM) || in radeon_bo_move()
[all …]
/openbmc/linux/drivers/gpu/drm/loongson/
H A Dlsdc_ttm.c163 struct ttm_resource *new_mem, in lsdc_bo_move() argument
182 lbo, lsdc_mem_type_to_str(new_mem->mem_type), in lsdc_bo_move()
184 ttm_bo_move_null(tbo, new_mem); in lsdc_bo_move()
189 ttm_bo_move_null(tbo, new_mem); in lsdc_bo_move()
196 new_mem->mem_type == TTM_PL_TT) { in lsdc_bo_move()
199 ttm_bo_move_null(tbo, new_mem); in lsdc_bo_move()
204 new_mem->mem_type == TTM_PL_SYSTEM) { in lsdc_bo_move()
208 ttm_bo_assign_mem(tbo, new_mem); in lsdc_bo_move()
215 lsdc_mem_type_to_str(new_mem->mem_type), in lsdc_bo_move()
218 return ttm_bo_move_memcpy(tbo, ctx, new_mem); in lsdc_bo_move()
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_ttm.c358 struct ttm_resource *new_mem, in amdgpu_move_blit() argument
370 dst.mem = new_mem; in amdgpu_move_blit()
375 new_mem->size, in amdgpu_move_blit()
469 struct ttm_resource *new_mem, in amdgpu_bo_move() argument
477 if (new_mem->mem_type == TTM_PL_TT || in amdgpu_bo_move()
490 ttm_bo_move_null(bo, new_mem); in amdgpu_bo_move()
494 (new_mem->mem_type == TTM_PL_TT || in amdgpu_bo_move()
497 ttm_bo_move_null(bo, new_mem); in amdgpu_bo_move()
510 ttm_bo_assign_mem(bo, new_mem); in amdgpu_bo_move()
524 ttm_bo_move_null(bo, new_mem); in amdgpu_bo_move()
[all …]
H A Damdgpu_object.h333 struct ttm_resource *new_mem);
H A Damdgpu_object.c1262 struct ttm_resource *new_mem) in amdgpu_bo_move_notify() argument
1281 trace_amdgpu_bo_move(abo, new_mem ? new_mem->mem_type : -1, in amdgpu_bo_move_notify()
/openbmc/linux/drivers/gpu/drm/
H A Ddrm_gem_vram_helper.c567 struct ttm_resource *new_mem) in drm_gem_vram_bo_driver_move() argument
570 return ttm_bo_move_memcpy(&gbo->bo, ctx, new_mem); in drm_gem_vram_bo_driver_move()
914 struct ttm_resource *new_mem, in bo_driver_move() argument
920 if (new_mem->mem_type != TTM_PL_SYSTEM) { in bo_driver_move()
926 ttm_bo_move_null(bo, new_mem); in bo_driver_move()
932 return drm_gem_vram_bo_driver_move(gbo, evict, ctx, new_mem); in bo_driver_move()
/openbmc/linux/drivers/gpu/drm/ttm/
H A Dttm_bo_util.c655 struct ttm_resource *new_mem) in ttm_bo_move_accel_cleanup() argument
659 struct ttm_resource_manager *man = ttm_manager_type(bdev, new_mem->mem_type); in ttm_bo_move_accel_cleanup()
673 ttm_bo_assign_mem(bo, new_mem); in ttm_bo_move_accel_cleanup()
689 struct ttm_resource *new_mem) in ttm_bo_move_sync_cleanup() argument
692 struct ttm_resource_manager *man = ttm_manager_type(bdev, new_mem->mem_type); in ttm_bo_move_sync_cleanup()
699 ttm_bo_assign_mem(bo, new_mem); in ttm_bo_move_sync_cleanup()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/pidgin/pidgin-sipe/
H A D0001-Migrate-to-use-g_memdup2.patch19 gpointer new_mem = NULL;
22 new_mem = g_malloc (byte_size);
23 memcpy (new_mem, mem, byte_size);
26 return new_mem;
/openbmc/linux/drivers/pci/hotplug/
H A Dibmphp_res.c188 struct resource_node *new_mem = NULL; in ibmphp_rsrc_init() local
286 new_mem = alloc_resources(curr); in ibmphp_rsrc_init()
287 if (!new_mem) in ibmphp_rsrc_init()
289 new_mem->type = MEM; in ibmphp_rsrc_init()
297 if (ibmphp_add_resource(new_mem) < 0) { in ibmphp_rsrc_init()
301 newbus->firstMem = new_mem; in ibmphp_rsrc_init()
303 new_mem->rangeno = -1; in ibmphp_rsrc_init()
305 …y resource for device %x, bus %x, [%x - %x]\n", new_mem->devfunc, new_mem->busno, new_mem->start, in ibmphp_rsrc_init()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/
H A Ddr_icm_pool.c392 bool new_mem = false; in dr_icm_handle_buddies_get_mem() local
403 if (WARN_ON(new_mem)) { in dr_icm_handle_buddies_get_mem()
422 new_mem = true; in dr_icm_handle_buddies_get_mem()
/openbmc/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_bo.c812 struct nouveau_mem *new_mem = nouveau_mem(reg); in nouveau_bo_move_prep() local
821 ret = nvif_vmm_get(vmm, LAZY, false, new_mem->mem.page, 0, in nouveau_bo_move_prep()
822 new_mem->mem.size, &old_mem->vma[1]); in nouveau_bo_move_prep()
830 ret = nouveau_mem_map(new_mem, vmm, &old_mem->vma[1]); in nouveau_bo_move_prep()
/openbmc/linux/drivers/vfio/pci/
H A Dvfio_pci_config.c571 bool phys_mem, virt_mem, new_mem, phys_io, virt_io, new_io; in vfio_basic_config_write() local
586 new_mem = !!(new_cmd & PCI_COMMAND_MEMORY); in vfio_basic_config_write()
588 if (!new_mem) in vfio_basic_config_write()
602 if ((new_mem && virt_mem && !phys_mem && in vfio_basic_config_write()