Home
last modified time | relevance | path

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

/linux/drivers/gpu/drm/qxl/
H A Dqxl_ttm.c123 struct ttm_resource *new_mem) in qxl_bo_move_notify() argument
134 qxl_surface_evict(qdev, qbo, new_mem ? true : false); in qxl_bo_move_notify()
139 struct ttm_resource *new_mem, in qxl_bo_move() argument
146 if (new_mem->mem_type != TTM_PL_SYSTEM) { in qxl_bo_move()
152 ttm_bo_move_null(bo, new_mem); in qxl_bo_move()
156 qxl_bo_move_notify(bo, new_mem); in qxl_bo_move()
163 ttm_bo_move_null(bo, new_mem); in qxl_bo_move()
166 return ttm_bo_move_memcpy(bo, ctx, new_mem); in qxl_bo_move()
/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_ttm_buffer.c473 struct ttm_resource *new_mem) in vmw_move_notify() argument
475 vmw_bo_move_notify(bo, new_mem); in vmw_move_notify()
476 vmw_query_move_notify(bo, old_mem, new_mem); in vmw_move_notify()
499 struct ttm_resource *new_mem, in vmw_move() argument
506 new_man = ttm_manager_type(bo->bdev, new_mem->mem_type); in vmw_move()
510 if (new_man->use_tt && !vmw_memtype_is_system(new_mem->mem_type)) { in vmw_move()
511 ret = vmw_ttm_bind(bo->bdev, bo->ttm, new_mem); in vmw_move()
518 ttm_bo_move_null(bo, new_mem); in vmw_move()
522 vmw_move_notify(bo, bo->resource, new_mem); in vmw_move()
526 ttm_bo_move_null(bo, new_mem); in vmw_move()
[all …]
H A Dvmwgfx_drv.h812 struct ttm_resource *new_mem);
/linux/net/core/
H A Dnetdev_rx_queue.c105 void *new_mem, *old_mem; in netdev_rx_queue_reconfig() local
114 new_mem = kvzalloc(qops->ndo_queue_mem_size, GFP_KERNEL); in netdev_rx_queue_reconfig()
115 if (!new_mem) in netdev_rx_queue_reconfig()
124 err = qops->ndo_queue_mem_alloc(dev, qcfg_new, new_mem, rxq_idx); in netdev_rx_queue_reconfig()
137 err = qops->ndo_queue_start(dev, qcfg_new, new_mem, rxq_idx); in netdev_rx_queue_reconfig()
141 swap(new_mem, old_mem); in netdev_rx_queue_reconfig()
147 kvfree(new_mem); in netdev_rx_queue_reconfig()
167 qops->ndo_queue_mem_free(dev, new_mem); in netdev_rx_queue_reconfig()
173 kvfree(new_mem); in netdev_rx_queue_reconfig()
/linux/drivers/gpu/drm/radeon/
H A Dradeon_ttm.c135 struct ttm_resource *new_mem, in radeon_move_blit() argument
147 new_start = (u64)new_mem->start << PAGE_SHIFT; in radeon_move_blit()
160 switch (new_mem->mem_type) { in radeon_move_blit()
178 num_pages = PFN_UP(new_mem->size) * (PAGE_SIZE / RADEON_GPU_PAGE_SIZE); in radeon_move_blit()
183 r = ttm_bo_move_accel_cleanup(bo, &fence->base, evict, false, new_mem); in radeon_move_blit()
190 struct ttm_resource *new_mem, in radeon_bo_move() argument
197 if (new_mem->mem_type == TTM_PL_TT) { in radeon_bo_move()
198 r = radeon_ttm_tt_bind(bo->bdev, bo->ttm, new_mem); in radeon_bo_move()
210 ttm_bo_move_null(bo, new_mem); in radeon_bo_move()
214 new_mem->mem_type == TTM_PL_TT) { in radeon_bo_move()
[all …]
/linux/drivers/gpu/drm/ttm/tests/
H A Dttm_kunit_helpers.c65 struct ttm_resource *new_mem, in mock_move() argument
71 ttm_bo_move_null(bo, new_mem); in mock_move()
76 new_mem->mem_type == TTM_PL_SYSTEM) { in mock_move()
85 new_mem->mem_type == TTM_PL_TT) || in mock_move()
87 new_mem->mem_type == TTM_PL_SYSTEM)) { in mock_move()
88 ttm_bo_move_null(bo, new_mem); in mock_move()
92 return ttm_bo_move_memcpy(bo, ctx, new_mem); in mock_move()
/linux/drivers/gpu/drm/loongson/
H A Dlsdc_ttm.c162 struct ttm_resource *new_mem, in lsdc_bo_move() argument
181 lbo, lsdc_mem_type_to_str(new_mem->mem_type), in lsdc_bo_move()
183 ttm_bo_move_null(tbo, new_mem); in lsdc_bo_move()
188 ttm_bo_move_null(tbo, new_mem); in lsdc_bo_move()
195 new_mem->mem_type == TTM_PL_TT) { in lsdc_bo_move()
198 ttm_bo_move_null(tbo, new_mem); in lsdc_bo_move()
203 new_mem->mem_type == TTM_PL_SYSTEM) { in lsdc_bo_move()
207 ttm_bo_assign_mem(tbo, new_mem); in lsdc_bo_move()
214 lsdc_mem_type_to_str(new_mem->mem_type), in lsdc_bo_move()
217 return ttm_bo_move_memcpy(tbo, ctx, new_mem); in lsdc_bo_move()
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_ttm.c388 struct ttm_resource *new_mem, in amdgpu_move_blit() argument
402 dst.mem = new_mem; in amdgpu_move_blit()
413 new_mem->size, in amdgpu_move_blit()
436 r = ttm_bo_move_accel_cleanup(bo, fence, true, false, new_mem); in amdgpu_move_blit()
438 r = ttm_bo_move_accel_cleanup(bo, fence, evict, true, new_mem); in amdgpu_move_blit()
508 struct ttm_resource *new_mem, in amdgpu_bo_move() argument
516 if (new_mem->mem_type == TTM_PL_TT || in amdgpu_bo_move()
517 new_mem->mem_type == AMDGPU_PL_PREEMPT) { in amdgpu_bo_move()
518 r = amdgpu_ttm_backend_bind(bo->bdev, bo->ttm, new_mem); in amdgpu_bo_move()
528 amdgpu_bo_move_notify(bo, evict, new_mem); in amdgpu_bo_move()
[all …]
H A Damdgpu_vm.h548 void amdgpu_vm_bo_move(struct amdgpu_bo *bo, struct ttm_resource *new_mem,
H A Damdgpu_vm.c2328 void amdgpu_vm_bo_move(struct amdgpu_bo *bo, struct ttm_resource *new_mem, in amdgpu_vm_bo_move() argument
2338 amdgpu_vm_update_stats_locked(bo_base, new_mem, +1); in amdgpu_vm_bo_move()
/linux/drivers/gpu/drm/xe/
H A Dxe_bo.c959 struct ttm_resource *new_mem, in xe_bo_move() argument
986 ttm_resource_free(ttm_bo, &new_mem); in xe_bo_move()
992 if (new_mem->mem_type == XE_PL_TT) in xe_bo_move()
995 ttm_bo_move_null(ttm_bo, new_mem); in xe_bo_move()
1000 if (new_mem->mem_type == XE_PL_SYSTEM) in xe_bo_move()
1003 ret = xe_bo_move_dmabuf(ttm_bo, new_mem); in xe_bo_move()
1015 if (new_mem->mem_type == XE_PL_TT) { in xe_bo_move()
1022 ttm_bo_move_null(ttm_bo, new_mem); in xe_bo_move()
1027 new_mem->mem_type == XE_PL_SYSTEM) { in xe_bo_move()
1031 ttm_bo_move_null(ttm_bo, new_mem); in xe_bo_move()
[all …]
/linux/drivers/gpu/drm/ttm/
H A Dttm_bo_util.c704 struct ttm_resource *new_mem) in ttm_bo_move_accel_cleanup() argument
708 struct ttm_resource_manager *man = ttm_manager_type(bdev, new_mem->mem_type); in ttm_bo_move_accel_cleanup()
722 ttm_bo_assign_mem(bo, new_mem); in ttm_bo_move_accel_cleanup()
738 struct ttm_resource *new_mem) in ttm_bo_move_sync_cleanup() argument
741 ttm_manager_type(bo->bdev, new_mem->mem_type); in ttm_bo_move_sync_cleanup()
748 ttm_bo_assign_mem(bo, new_mem); in ttm_bo_move_sync_cleanup()
/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()
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
H A Ddr_icm_pool.c391 bool new_mem = false; in dr_icm_handle_buddies_get_mem() local
402 if (WARN_ON(new_mem)) { in dr_icm_handle_buddies_get_mem()
421 new_mem = true; in dr_icm_handle_buddies_get_mem()
/linux/tools/power/x86/turbostat/
H A Dturbostat.c2077 struct pmt_domain_info *new_mem; in pmt_counter_resize_() local
2079new_mem = (struct pmt_domain_info *)reallocarray(pcounter->domains, new_size, sizeof(*pcounter->do… in pmt_counter_resize_()
2080 if (!new_mem) { in pmt_counter_resize_()
2088 memset(&new_mem[pcounter->num_domains], 0, num_new_domains * sizeof(*pcounter->domains)); in pmt_counter_resize_()
2091 pcounter->domains = new_mem; in pmt_counter_resize_()