/linux/net/core/ |
H A D | netdev_rx_queue.c | 12 void *new_mem, *old_mem; in netdev_rx_queue_restart() local 23 new_mem = kvzalloc(dev->queue_mgmt_ops->ndo_queue_mem_size, GFP_KERNEL); in netdev_rx_queue_restart() 24 if (!new_mem) in netdev_rx_queue_restart() 33 err = dev->queue_mgmt_ops->ndo_queue_mem_alloc(dev, new_mem, rxq_idx); in netdev_rx_queue_restart() 45 err = dev->queue_mgmt_ops->ndo_queue_start(dev, new_mem, rxq_idx); in netdev_rx_queue_restart() 52 kvfree(new_mem); in netdev_rx_queue_restart() 72 dev->queue_mgmt_ops->ndo_queue_mem_free(dev, new_mem); in netdev_rx_queue_restart() 78 kvfree(new_mem); in netdev_rx_queue_restart()
|
/linux/drivers/gpu/drm/qxl/ |
H A D | qxl_ttm.c | 122 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/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_ttm_buffer.c | 473 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 D | vmwgfx_resource.c | 840 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 D | vmwgfx_drv.h | 823 struct ttm_resource *new_mem);
|
/linux/drivers/gpu/drm/ttm/tests/ |
H A D | ttm_kunit_helpers.c | 62 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/include/drm/ttm/ |
H A D | ttm_bo.h | 339 struct ttm_resource *new_mem) in ttm_bo_assign_mem() argument 342 bo->resource = new_mem; in ttm_bo_assign_mem() 353 struct ttm_resource *new_mem) in ttm_bo_move_null() argument 356 ttm_bo_assign_mem(bo, new_mem); in ttm_bo_move_null() 454 struct ttm_resource *new_mem); 458 struct ttm_resource *new_mem); 460 struct ttm_resource *new_mem);
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_bo.c | 649 struct ttm_resource *new_mem, in xe_bo_move() argument 668 if (new_mem->mem_type == XE_PL_TT) in xe_bo_move() 671 ttm_bo_move_null(ttm_bo, new_mem); in xe_bo_move() 678 ret = xe_bo_move_dmabuf(ttm_bo, new_mem); in xe_bo_move() 691 if (new_mem->mem_type == XE_PL_TT) { in xe_bo_move() 698 ttm_bo_move_null(ttm_bo, new_mem); in xe_bo_move() 702 if (old_mem_type == XE_PL_SYSTEM && new_mem->mem_type == XE_PL_TT && !handle_system_ccs) { in xe_bo_move() 703 ttm_bo_move_null(ttm_bo, new_mem); in xe_bo_move() 712 new_mem->mem_type == XE_PL_TT) { in xe_bo_move() 713 ttm_bo_move_null(ttm_bo, new_mem); in xe_bo_move() [all …]
|
/linux/drivers/gpu/drm/loongson/ |
H A D | lsdc_ttm.c | 161 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/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_ttm.c | 375 struct ttm_resource *new_mem, in amdgpu_move_blit() argument 387 dst.mem = new_mem; in amdgpu_move_blit() 392 new_mem->size, in amdgpu_move_blit() 416 r = ttm_bo_move_accel_cleanup(bo, fence, true, false, new_mem); in amdgpu_move_blit() 418 r = ttm_bo_move_accel_cleanup(bo, fence, evict, true, new_mem); in amdgpu_move_blit() 487 struct ttm_resource *new_mem, in amdgpu_bo_move() argument 495 if (new_mem->mem_type == TTM_PL_TT || in amdgpu_bo_move() 496 new_mem->mem_type == AMDGPU_PL_PREEMPT) { in amdgpu_bo_move() 497 r = amdgpu_ttm_backend_bind(bo->bdev, bo->ttm, new_mem); in amdgpu_bo_move() 507 amdgpu_bo_move_notify(bo, evict, new_mem); in amdgpu_bo_move() [all …]
|
H A D | amdgpu_object.h | 292 struct ttm_resource *new_mem);
|
H A D | amdgpu_object.c | 1151 struct ttm_resource *new_mem) in amdgpu_bo_move_notify() argument 1170 trace_amdgpu_bo_move(abo, new_mem ? new_mem->mem_type : -1, in amdgpu_bo_move_notify()
|
/linux/drivers/gpu/drm/ttm/ |
H A D | ttm_bo_util.c | 655 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/drivers/pci/hotplug/ |
H A D | ibmphp_res.c | 188 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/fs/bcachefs/ |
H A D | btree_iter.c | 2955 void *new_mem; in __bch2_trans_kmalloc() local 2968 new_mem = kmalloc(new_bytes, GFP_NOWAIT|__GFP_NOWARN); in __bch2_trans_kmalloc() 2969 if (unlikely(!new_mem)) { in __bch2_trans_kmalloc() 2972 new_mem = kmalloc(new_bytes, GFP_KERNEL); in __bch2_trans_kmalloc() 2973 if (!new_mem) in __bch2_trans_kmalloc() 2978 kfree(new_mem); in __bch2_trans_kmalloc() 2982 memcpy(new_mem, trans->mem, trans->mem_top); in __bch2_trans_kmalloc() 2988 new_mem = krealloc(trans->mem, new_bytes, GFP_NOWAIT|__GFP_NOWARN); in __bch2_trans_kmalloc() 2989 if (unlikely(!new_mem)) { in __bch2_trans_kmalloc() 2992 new_mem = krealloc(trans->mem, new_bytes, GFP_KERNEL); in __bch2_trans_kmalloc() [all …]
|
/linux/drivers/gpu/drm/nouveau/ |
H A D | nouveau_bo.c | 828 struct nouveau_mem *new_mem = nouveau_mem(reg); in nouveau_bo_move_prep() local 837 ret = nvif_vmm_get(vmm, LAZY, false, new_mem->mem.page, 0, in nouveau_bo_move_prep() 838 new_mem->mem.size, &old_mem->vma[1]); in nouveau_bo_move_prep() 846 ret = nouveau_mem_map(new_mem, vmm, &old_mem->vma[1]); in nouveau_bo_move_prep()
|
/linux/tools/power/x86/turbostat/ |
H A D | turbostat.c | 1572 struct pmt_domain_info *new_mem; in pmt_counter_resize_() local 1574 …new_mem = (struct pmt_domain_info *)reallocarray(pcounter->domains, new_size, sizeof(*pcounter->do… in pmt_counter_resize_() 1575 if (!new_mem) { in pmt_counter_resize_() 1583 memset(&new_mem[pcounter->num_domains], 0, num_new_domains * sizeof(*pcounter->domains)); in pmt_counter_resize_() 1586 pcounter->domains = new_mem; in pmt_counter_resize_()
|