Home
last modified time | relevance | path

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

/linux/net/core/
H A Dnetdev_rx_queue.c105 void *new_mem, *old_mem; in netdev_rx_queue_reconfig() local
118 old_mem = kvzalloc(qops->ndo_queue_mem_size, GFP_KERNEL); in netdev_rx_queue_reconfig()
119 if (!old_mem) { in netdev_rx_queue_reconfig()
133 err = qops->ndo_queue_stop(dev, old_mem, rxq_idx); in netdev_rx_queue_reconfig()
141 swap(new_mem, old_mem); in netdev_rx_queue_reconfig()
144 qops->ndo_queue_mem_free(dev, old_mem); in netdev_rx_queue_reconfig()
146 kvfree(old_mem); in netdev_rx_queue_reconfig()
159 if (qops->ndo_queue_start(dev, qcfg_old, old_mem, rxq_idx)) { in netdev_rx_queue_reconfig()
163 qops->ndo_queue_mem_free(dev, old_mem); in netdev_rx_queue_reconfig()
170 kvfree(old_mem); in netdev_rx_queue_reconfig()
/linux/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()
168 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()
[all …]
/linux/drivers/gpu/drm/ttm/tests/
H A Dttm_kunit_helpers.c68 struct ttm_resource *old_mem = bo->resource; in mock_move() local
70 if (!old_mem || (old_mem->mem_type == TTM_PL_SYSTEM && !bo->ttm)) { in mock_move()
84 if ((old_mem->mem_type == TTM_PL_SYSTEM && in mock_move()
86 (old_mem->mem_type == TTM_PL_TT && in mock_move()
/linux/drivers/gpu/drm/qxl/
H A Dqxl_ttm.c142 struct ttm_resource *old_mem = bo->resource; in qxl_bo_move() local
145 if (!old_mem) { in qxl_bo_move()
162 if (old_mem->mem_type == TTM_PL_SYSTEM && bo->ttm == NULL) { in qxl_bo_move()
/linux/drivers/gpu/drm/loongson/
H A Dlsdc_ttm.c166 struct ttm_resource *old_mem = tbo->resource; in lsdc_bo_move() local
179 if (!old_mem) { in lsdc_bo_move()
187 if (old_mem->mem_type == TTM_PL_SYSTEM && !tbo->ttm) { in lsdc_bo_move()
194 if (old_mem->mem_type == TTM_PL_SYSTEM && in lsdc_bo_move()
202 if (old_mem->mem_type == TTM_PL_TT && in lsdc_bo_move()
213 lsdc_mem_type_to_str(old_mem->mem_type), in lsdc_bo_move()
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_ttm.c389 struct ttm_resource *old_mem) in amdgpu_move_blit() argument
401 src.mem = old_mem; in amdgpu_move_blit()
420 if (old_mem->mem_type == TTM_PL_VRAM && in amdgpu_move_blit()
513 struct ttm_resource *old_mem = bo->resource; in amdgpu_bo_move() local
526 if (!old_mem || (old_mem->mem_type == TTM_PL_SYSTEM && in amdgpu_bo_move()
532 if (old_mem->mem_type == TTM_PL_SYSTEM && in amdgpu_bo_move()
539 if ((old_mem->mem_type == TTM_PL_TT || in amdgpu_bo_move()
540 old_mem->mem_type == AMDGPU_PL_PREEMPT) && in amdgpu_bo_move()
553 if (old_mem->mem_type == AMDGPU_PL_GDS || in amdgpu_bo_move()
554 old_mem->mem_type == AMDGPU_PL_GWS || in amdgpu_bo_move()
[all …]
/linux/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_drv.h811 struct ttm_resource *old_mem,
/linux/drivers/gpu/drm/xe/
H A Dxe_bo.c805 struct ttm_resource *old_mem = ttm_bo->resource; in xe_bo_move_notify() local
806 u32 old_mem_type = old_mem ? old_mem->mem_type : XE_PL_SYSTEM; in xe_bo_move_notify()
964 struct ttm_resource *old_mem = ttm_bo->resource; in xe_bo_move() local
965 u32 old_mem_type = old_mem ? old_mem->mem_type : XE_PL_SYSTEM; in xe_bo_move()
991 if ((!old_mem && ttm) && !handle_system_ccs) { in xe_bo_move()
1009 move_lacks_source = !old_mem || (handle_system_ccs ? (!bo->ccs_cleared) : in xe_bo_move()
1122 fence = xe_migrate_copy(migrate, bo, bo, old_mem, new_mem, in xe_bo_move()