Home
last modified time | relevance | path

Searched refs:old_mem (Results 1 – 12 of 12) sorted by relevance

/linux-6.15/net/core/
H A Dnetdev_rx_queue.c16 void *new_mem, *old_mem; in netdev_rx_queue_restart() local
29 old_mem = kvzalloc(qops->ndo_queue_mem_size, GFP_KERNEL); in netdev_rx_queue_restart()
30 if (!old_mem) { in netdev_rx_queue_restart()
44 err = qops->ndo_queue_stop(dev, old_mem, rxq_idx); in netdev_rx_queue_restart()
52 swap(new_mem, old_mem); in netdev_rx_queue_restart()
55 qops->ndo_queue_mem_free(dev, old_mem); in netdev_rx_queue_restart()
57 kvfree(old_mem); in netdev_rx_queue_restart()
70 if (qops->ndo_queue_start(dev, old_mem, rxq_idx)) { in netdev_rx_queue_restart()
74 qops->ndo_queue_mem_free(dev, old_mem); in netdev_rx_queue_restart()
81 kvfree(old_mem); in netdev_rx_queue_restart()
/linux-6.15/drivers/gpu/drm/radeon/
H A Dradeon_ttm.c136 struct ttm_resource *old_mem) in radeon_move_blit() argument
146 old_start = (u64)old_mem->start << PAGE_SHIFT; in radeon_move_blit()
149 switch (old_mem->mem_type) { in radeon_move_blit()
157 DRM_ERROR("Unknown placement %d\n", old_mem->mem_type); in radeon_move_blit()
193 struct ttm_resource *old_mem = bo->resource; in radeon_bo_move() local
208 if (!old_mem || (old_mem->mem_type == TTM_PL_SYSTEM && in radeon_bo_move()
213 if (old_mem->mem_type == TTM_PL_SYSTEM && in radeon_bo_move()
219 if (old_mem->mem_type == TTM_PL_TT && in radeon_bo_move()
227 if ((old_mem->mem_type == TTM_PL_SYSTEM && in radeon_bo_move()
229 (old_mem->mem_type == TTM_PL_VRAM && in radeon_bo_move()
[all …]
/linux-6.15/drivers/gpu/drm/ttm/tests/
H A Dttm_kunit_helpers.c65 struct ttm_resource *old_mem = bo->resource; in mock_move() local
67 if (!old_mem || (old_mem->mem_type == TTM_PL_SYSTEM && !bo->ttm)) { in mock_move()
81 if ((old_mem->mem_type == TTM_PL_SYSTEM && in mock_move()
83 (old_mem->mem_type == TTM_PL_TT && in mock_move()
/linux-6.15/drivers/gpu/drm/qxl/
H A Dqxl_ttm.c141 struct ttm_resource *old_mem = bo->resource; in qxl_bo_move() local
144 if (!old_mem) { in qxl_bo_move()
161 if (old_mem->mem_type == TTM_PL_SYSTEM && bo->ttm == NULL) { in qxl_bo_move()
/linux-6.15/drivers/gpu/drm/loongson/
H A Dlsdc_ttm.c165 struct ttm_resource *old_mem = tbo->resource; in lsdc_bo_move() local
178 if (!old_mem) { in lsdc_bo_move()
186 if (old_mem->mem_type == TTM_PL_SYSTEM && !tbo->ttm) { in lsdc_bo_move()
193 if (old_mem->mem_type == TTM_PL_SYSTEM && in lsdc_bo_move()
201 if (old_mem->mem_type == TTM_PL_TT && in lsdc_bo_move()
212 lsdc_mem_type_to_str(old_mem->mem_type), in lsdc_bo_move()
/linux-6.15/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_ttm.c380 struct ttm_resource *old_mem) in amdgpu_move_blit() argument
390 src.mem = old_mem; in amdgpu_move_blit()
403 if (old_mem->mem_type == TTM_PL_VRAM && in amdgpu_move_blit()
509 if (!old_mem || (old_mem->mem_type == TTM_PL_SYSTEM && in amdgpu_bo_move()
515 if (old_mem->mem_type == TTM_PL_SYSTEM && in amdgpu_bo_move()
522 if ((old_mem->mem_type == TTM_PL_TT || in amdgpu_bo_move()
536 if (old_mem->mem_type == AMDGPU_PL_GDS || in amdgpu_bo_move()
537 old_mem->mem_type == AMDGPU_PL_GWS || in amdgpu_bo_move()
538 old_mem->mem_type == AMDGPU_PL_OA || in amdgpu_bo_move()
552 old_mem->mem_type != TTM_PL_VRAM) { in amdgpu_bo_move()
[all …]
H A Damdgpu_object.c1254 struct ttm_resource *old_mem = bo->resource; in amdgpu_bo_move_notify() local
1266 old_mem && old_mem->mem_type != TTM_PL_SYSTEM) in amdgpu_bo_move_notify()
1271 old_mem ? old_mem->mem_type : -1); in amdgpu_bo_move_notify()
/linux-6.15/drivers/gpu/drm/nouveau/
H A Dnouveau_bo.c830 struct nouveau_mem *old_mem = nouveau_mem(bo->resource); in nouveau_bo_move_prep() local
835 ret = nvif_vmm_get(vmm, LAZY, false, old_mem->mem.page, 0, in nouveau_bo_move_prep()
836 old_mem->mem.size, &old_mem->vma[0]); in nouveau_bo_move_prep()
841 new_mem->mem.size, &old_mem->vma[1]); in nouveau_bo_move_prep()
845 ret = nouveau_mem_map(old_mem, vmm, &old_mem->vma[0]); in nouveau_bo_move_prep()
849 ret = nouveau_mem_map(new_mem, vmm, &old_mem->vma[1]); in nouveau_bo_move_prep()
852 nvif_vmm_put(vmm, &old_mem->vma[1]); in nouveau_bo_move_prep()
853 nvif_vmm_put(vmm, &old_mem->vma[0]); in nouveau_bo_move_prep()
/linux-6.15/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_ttm_buffer.c472 struct ttm_resource *old_mem, in vmw_move_notify() argument
476 vmw_query_move_notify(bo, old_mem, new_mem); in vmw_move_notify()
H A Dvmwgfx_resource.c839 struct ttm_resource *old_mem, in vmw_query_move_notify() argument
849 if (old_mem && in vmw_query_move_notify()
851 old_mem->mem_type == VMW_PL_MOB) { in vmw_query_move_notify()
H A Dvmwgfx_drv.h821 struct ttm_resource *old_mem,
/linux-6.15/drivers/gpu/drm/xe/
H A Dxe_bo.c709 struct ttm_resource *old_mem = ttm_bo->resource; in xe_bo_move_notify() local
710 u32 old_mem_type = old_mem ? old_mem->mem_type : XE_PL_SYSTEM; in xe_bo_move_notify()
752 struct ttm_resource *old_mem = ttm_bo->resource; in xe_bo_move() local
753 u32 old_mem_type = old_mem ? old_mem->mem_type : XE_PL_SYSTEM; in xe_bo_move()
765 if ((!old_mem && ttm) && !handle_system_ccs) { in xe_bo_move()
783 move_lacks_source = !old_mem || (handle_system_ccs ? (!bo->ccs_cleared) : in xe_bo_move()
945 fence = xe_migrate_copy(migrate, bo, bo, old_mem, in xe_bo_move()