Home
last modified time | relevance | path

Searched refs:new_mem (Results 1 – 25 of 25) 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
25 new_mem = kvzalloc(qops->ndo_queue_mem_size, GFP_KERNEL); in netdev_rx_queue_restart()
26 if (!new_mem) in netdev_rx_queue_restart()
35 err = qops->ndo_queue_mem_alloc(dev, new_mem, rxq_idx); in netdev_rx_queue_restart()
48 err = qops->ndo_queue_start(dev, new_mem, rxq_idx); in netdev_rx_queue_restart()
52 swap(new_mem, old_mem); in netdev_rx_queue_restart()
58 kvfree(new_mem); in netdev_rx_queue_restart()
78 qops->ndo_queue_mem_free(dev, new_mem); in netdev_rx_queue_restart()
84 kvfree(new_mem); in netdev_rx_queue_restart()
/linux-6.15/drivers/gpu/drm/qxl/
H A Dqxl_ttm.c122 struct ttm_resource *new_mem) in qxl_bo_move_notify() argument
133 qxl_surface_evict(qdev, qbo, new_mem ? true : false); in qxl_bo_move_notify()
138 struct ttm_resource *new_mem, in qxl_bo_move() argument
145 if (new_mem->mem_type != TTM_PL_SYSTEM) { in qxl_bo_move()
151 ttm_bo_move_null(bo, new_mem); in qxl_bo_move()
155 qxl_bo_move_notify(bo, new_mem); in qxl_bo_move()
162 ttm_bo_move_null(bo, new_mem); in qxl_bo_move()
165 return ttm_bo_move_memcpy(bo, ctx, new_mem); in qxl_bo_move()
/linux-6.15/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
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()
535 ttm_bo_assign_mem(bo, new_mem); in vmw_move()
538 ret = ttm_bo_move_memcpy(bo, ctx, new_mem); in vmw_move()
[all …]
H A Dvmwgfx_resource.c840 struct ttm_resource *new_mem) in vmw_query_move_notify() argument
850 new_mem->mem_type == TTM_PL_SYSTEM && in vmw_query_move_notify()
H A Dvmwgfx_drv.h822 struct ttm_resource *new_mem);
/linux-6.15/drivers/gpu/drm/ttm/tests/
H A Dttm_kunit_helpers.c62 struct ttm_resource *new_mem, in mock_move() argument
68 ttm_bo_move_null(bo, new_mem); in mock_move()
73 new_mem->mem_type == TTM_PL_SYSTEM) { in mock_move()
82 new_mem->mem_type == TTM_PL_TT) || in mock_move()
84 new_mem->mem_type == TTM_PL_SYSTEM)) { in mock_move()
85 ttm_bo_move_null(bo, new_mem); in mock_move()
89 return ttm_bo_move_memcpy(bo, ctx, new_mem); in mock_move()
/linux-6.15/drivers/gpu/drm/radeon/
H A Dradeon_ttm.c135 struct ttm_resource *new_mem, in radeon_move_blit() argument
160 switch (new_mem->mem_type) { 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()
210 ttm_bo_move_null(bo, new_mem); in radeon_bo_move()
214 new_mem->mem_type == TTM_PL_TT) { in radeon_bo_move()
215 ttm_bo_move_null(bo, new_mem); in radeon_bo_move()
220 new_mem->mem_type == TTM_PL_SYSTEM) { in radeon_bo_move()
222 ttm_bo_move_null(bo, new_mem); in radeon_bo_move()
228 new_mem->mem_type == TTM_PL_VRAM) || in radeon_bo_move()
[all …]
/linux-6.15/include/drm/ttm/
H A Dttm_bo.h360 struct ttm_resource *new_mem) in ttm_bo_assign_mem() argument
363 bo->resource = new_mem; in ttm_bo_assign_mem()
374 struct ttm_resource *new_mem) in ttm_bo_move_null() argument
377 ttm_bo_assign_mem(bo, new_mem); in ttm_bo_move_null()
477 struct ttm_resource *new_mem);
481 struct ttm_resource *new_mem);
483 struct ttm_resource *new_mem);
H A Dttm_device.h151 struct ttm_resource *new_mem,
/linux-6.15/drivers/gpu/drm/xe/
H A Dxe_bo.c766 if (new_mem->mem_type == XE_PL_TT) in xe_bo_move()
796 ttm_bo_move_null(ttm_bo, new_mem); in xe_bo_move()
815 ttm_bo_move_null(ttm_bo, new_mem); in xe_bo_move()
840 ttm_bo_move_null(ttm_bo, new_mem); in xe_bo_move()
881 else if (resource_is_vram(new_mem)) in xe_bo_move()
919 (new_mem->start << PAGE_SHIFT); in xe_bo_move()
927 xe_assert(xe, new_mem->start == in xe_bo_move()
946 new_mem, handle_system_ccs); in xe_bo_move()
954 true, new_mem); in xe_bo_move()
1121 struct ttm_resource *new_mem; in xe_bo_evict_pinned() local
[all …]
/linux-6.15/drivers/gpu/drm/loongson/
H A Dlsdc_ttm.c161 struct ttm_resource *new_mem, in lsdc_bo_move() argument
180 lbo, lsdc_mem_type_to_str(new_mem->mem_type), in lsdc_bo_move()
182 ttm_bo_move_null(tbo, new_mem); in lsdc_bo_move()
187 ttm_bo_move_null(tbo, new_mem); in lsdc_bo_move()
194 new_mem->mem_type == TTM_PL_TT) { in lsdc_bo_move()
197 ttm_bo_move_null(tbo, new_mem); in lsdc_bo_move()
202 new_mem->mem_type == TTM_PL_SYSTEM) { in lsdc_bo_move()
206 ttm_bo_assign_mem(tbo, new_mem); in lsdc_bo_move()
213 lsdc_mem_type_to_str(new_mem->mem_type), in lsdc_bo_move()
216 return ttm_bo_move_memcpy(tbo, ctx, new_mem); in lsdc_bo_move()
/linux-6.15/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_ttm.c379 struct ttm_resource *new_mem, in amdgpu_move_blit() argument
391 dst.mem = new_mem; in amdgpu_move_blit()
396 new_mem->size, in amdgpu_move_blit()
491 struct ttm_resource *new_mem, in amdgpu_bo_move() argument
499 if (new_mem->mem_type == TTM_PL_TT || in amdgpu_bo_move()
512 ttm_bo_move_null(bo, new_mem); in amdgpu_bo_move()
516 (new_mem->mem_type == TTM_PL_TT || in amdgpu_bo_move()
519 ttm_bo_move_null(bo, new_mem); in amdgpu_bo_move()
532 ttm_bo_assign_mem(bo, new_mem); in amdgpu_bo_move()
546 ttm_bo_move_null(bo, new_mem); in amdgpu_bo_move()
[all …]
H A Damdgpu_object.c1252 struct ttm_resource *new_mem) in amdgpu_bo_move_notify() argument
1261 amdgpu_vm_bo_move(abo, new_mem, evict); in amdgpu_bo_move_notify()
1270 trace_amdgpu_bo_move(abo, new_mem ? new_mem->mem_type : -1, in amdgpu_bo_move_notify()
H A Damdgpu_object.h297 struct ttm_resource *new_mem);
H A Damdgpu_vm.h531 void amdgpu_vm_bo_move(struct amdgpu_bo *bo, struct ttm_resource *new_mem,
H A Damdgpu_vm.c2271 void amdgpu_vm_bo_move(struct amdgpu_bo *bo, struct ttm_resource *new_mem, in amdgpu_vm_bo_move() argument
2281 amdgpu_vm_update_stats_locked(bo_base, new_mem, +1); in amdgpu_vm_bo_move()
/linux-6.15/drivers/gpu/drm/
H A Ddrm_gem_vram_helper.c542 struct ttm_resource *new_mem) in drm_gem_vram_bo_driver_move() argument
545 return ttm_bo_move_memcpy(&gbo->bo, ctx, new_mem); in drm_gem_vram_bo_driver_move()
842 struct ttm_resource *new_mem, in bo_driver_move() argument
848 if (new_mem->mem_type != TTM_PL_SYSTEM) { in bo_driver_move()
854 ttm_bo_move_null(bo, new_mem); in bo_driver_move()
860 return drm_gem_vram_bo_driver_move(gbo, evict, ctx, new_mem); in bo_driver_move()
/linux-6.15/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()
/linux-6.15/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-6.15/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
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()
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Dpool.c179 bool new_mem = false; in hws_pool_buddy_get_mem_chunk() local
190 &new_mem); in hws_pool_buddy_get_mem_chunk()
207 if (new_mem) { in hws_pool_buddy_get_mem_chunk()
/linux-6.15/fs/bcachefs/
H A Dbtree_iter.c3105 void *new_mem; in __bch2_trans_kmalloc() local
3123 if (unlikely(!new_mem)) { in __bch2_trans_kmalloc()
3126 new_mem = kmalloc(new_bytes, GFP_KERNEL); in __bch2_trans_kmalloc()
3127 if (!new_mem) in __bch2_trans_kmalloc()
3132 kfree(new_mem); in __bch2_trans_kmalloc()
3136 memcpy(new_mem, trans->mem, trans->mem_top); in __bch2_trans_kmalloc()
3143 if (unlikely(!new_mem)) { in __bch2_trans_kmalloc()
3150 memcpy(new_mem, trans->mem, trans->mem_top); in __bch2_trans_kmalloc()
3155 if (!new_mem) in __bch2_trans_kmalloc()
3158 trans->mem = new_mem; in __bch2_trans_kmalloc()
[all …]
/linux-6.15/drivers/gpu/drm/nouveau/
H A Dnouveau_bo.c831 struct nouveau_mem *new_mem = nouveau_mem(reg); in nouveau_bo_move_prep() local
840 ret = nvif_vmm_get(vmm, LAZY, false, new_mem->mem.page, 0, in nouveau_bo_move_prep()
841 new_mem->mem.size, &old_mem->vma[1]); in nouveau_bo_move_prep()
849 ret = nouveau_mem_map(new_mem, vmm, &old_mem->vma[1]); in nouveau_bo_move_prep()
/linux-6.15/drivers/vfio/pci/
H A Dvfio_pci_config.c575 bool phys_mem, virt_mem, new_mem, phys_io, virt_io, new_io; in vfio_basic_config_write() local
590 new_mem = !!(new_cmd & PCI_COMMAND_MEMORY); in vfio_basic_config_write()
592 if (!new_mem) in vfio_basic_config_write()
606 if ((new_mem && virt_mem && !phys_mem && in vfio_basic_config_write()
/linux-6.15/tools/power/x86/turbostat/
H A Dturbostat.c1703 struct pmt_domain_info *new_mem; in pmt_counter_resize_() local
1705new_mem = (struct pmt_domain_info *)reallocarray(pcounter->domains, new_size, sizeof(*pcounter->do… in pmt_counter_resize_()
1706 if (!new_mem) { in pmt_counter_resize_()
1714 memset(&new_mem[pcounter->num_domains], 0, num_new_domains * sizeof(*pcounter->domains)); in pmt_counter_resize_()
1717 pcounter->domains = new_mem; in pmt_counter_resize_()