Home
last modified time | relevance | path

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

/linux/net/core/
A Dnetdev_rx_queue.c12 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/
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/drivers/gpu/drm/vmwgfx/
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 …]
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()
A Dvmwgfx_drv.h823 struct ttm_resource *new_mem);
/linux/include/drm/ttm/
A Dttm_bo.h339 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);
A Dttm_device.h151 struct ttm_resource *new_mem,
/linux/drivers/gpu/drm/ttm/tests/
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/drivers/gpu/drm/radeon/
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()
223 ttm_bo_assign_mem(bo, new_mem); in radeon_bo_move()
229 new_mem->mem_type == TTM_PL_VRAM) || in radeon_bo_move()
[all …]
/linux/drivers/gpu/drm/xe/
A Dxe_bo.c666 if (new_mem->mem_type == XE_PL_TT) in xe_bo_move()
696 ttm_bo_move_null(ttm_bo, new_mem); in xe_bo_move()
701 ttm_bo_move_null(ttm_bo, new_mem); in xe_bo_move()
711 ttm_bo_move_null(ttm_bo, new_mem); in xe_bo_move()
752 else if (resource_is_vram(new_mem)) in xe_bo_move()
790 (new_mem->start << PAGE_SHIFT); in xe_bo_move()
798 xe_assert(xe, new_mem->start == in xe_bo_move()
817 new_mem, handle_system_ccs); in xe_bo_move()
825 true, new_mem); in xe_bo_move()
878 struct ttm_resource *new_mem; in xe_bo_evict_pinned() local
[all …]
/linux/drivers/gpu/drm/loongson/
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/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_ttm.c375 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()
487 struct ttm_resource *new_mem, in amdgpu_bo_move() argument
495 if (new_mem->mem_type == TTM_PL_TT || in amdgpu_bo_move()
508 ttm_bo_move_null(bo, new_mem); in amdgpu_bo_move()
512 (new_mem->mem_type == TTM_PL_TT || in amdgpu_bo_move()
515 ttm_bo_move_null(bo, new_mem); in amdgpu_bo_move()
528 ttm_bo_assign_mem(bo, new_mem); in amdgpu_bo_move()
542 ttm_bo_move_null(bo, new_mem); in amdgpu_bo_move()
[all …]
A Damdgpu_object.h319 struct ttm_resource *new_mem);
A Damdgpu_object.c1150 struct ttm_resource *new_mem) in amdgpu_bo_move_notify() argument
1169 trace_amdgpu_bo_move(abo, new_mem ? new_mem->mem_type : -1, in amdgpu_bo_move_notify()
/linux/drivers/gpu/drm/
A Ddrm_gem_vram_helper.c543 struct ttm_resource *new_mem) in drm_gem_vram_bo_driver_move() argument
546 return ttm_bo_move_memcpy(&gbo->bo, ctx, new_mem); in drm_gem_vram_bo_driver_move()
887 struct ttm_resource *new_mem, in bo_driver_move() argument
893 if (new_mem->mem_type != TTM_PL_SYSTEM) { in bo_driver_move()
899 ttm_bo_move_null(bo, new_mem); in bo_driver_move()
905 return drm_gem_vram_bo_driver_move(gbo, evict, ctx, new_mem); in bo_driver_move()
/linux/drivers/gpu/drm/ttm/
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/drivers/pci/hotplug/
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/
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/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
A Dmlx5hws_pool.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/fs/bcachefs/
A Dbtree_iter.c2955 void *new_mem; in __bch2_trans_kmalloc() local
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()
2989 if (unlikely(!new_mem)) { in __bch2_trans_kmalloc()
2996 memcpy(new_mem, trans->mem, trans->mem_top); in __bch2_trans_kmalloc()
3001 if (!new_mem) in __bch2_trans_kmalloc()
3004 trans->mem = new_mem; in __bch2_trans_kmalloc()
[all …]
/linux/drivers/gpu/drm/nouveau/
A Dnouveau_bo.c828 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/drivers/vfio/pci/
A Dvfio_pci_config.c571 bool phys_mem, virt_mem, new_mem, phys_io, virt_io, new_io; in vfio_basic_config_write() local
586 new_mem = !!(new_cmd & PCI_COMMAND_MEMORY); in vfio_basic_config_write()
588 if (!new_mem) in vfio_basic_config_write()
602 if ((new_mem && virt_mem && !phys_mem && in vfio_basic_config_write()
/linux/tools/power/x86/turbostat/
A Dturbostat.c1542 struct pmt_domain_info *new_mem; in pmt_counter_resize_() local
1544new_mem = (struct pmt_domain_info *)reallocarray(pcounter->domains, new_size, sizeof(*pcounter->do… in pmt_counter_resize_()
1545 if (!new_mem) { in pmt_counter_resize_()
1553 memset(&new_mem[pcounter->num_domains], 0, num_new_domains * sizeof(*pcounter->domains)); in pmt_counter_resize_()
1556 pcounter->domains = new_mem; in pmt_counter_resize_()

Completed in 82 milliseconds