Searched refs:placement (Results 1 - 119 of 119) sorted by relevance

/linux-4.4.14/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_dmabuf.c35 * vmw_dmabuf_pin_in_placement - Validate a buffer to placement.
39 * @placement: The placement to pin it.
47 struct ttm_placement *placement, vmw_dmabuf_pin_in_placement()
63 ret = ttm_bo_validate(bo, placement, interruptible, false); vmw_dmabuf_pin_in_placement()
161 struct ttm_placement placement; vmw_dmabuf_pin_in_start_of_vram() local
165 place = vmw_vram_placement.placement[0]; vmw_dmabuf_pin_in_start_of_vram()
167 placement.num_placement = 1; vmw_dmabuf_pin_in_start_of_vram()
168 placement.placement = &place; vmw_dmabuf_pin_in_start_of_vram()
169 placement.num_busy_placement = 1; vmw_dmabuf_pin_in_start_of_vram()
170 placement.busy_placement = &place; vmw_dmabuf_pin_in_start_of_vram()
191 ret = ttm_bo_validate(bo, &placement, interruptible, false); vmw_dmabuf_pin_in_start_of_vram()
242 * vmw_bo_get_guest_ptr - Get the guest ptr representing the current placement
271 struct ttm_placement placement; vmw_bo_pin_reserved() local
294 memset(&placement, 0, sizeof(placement)); vmw_bo_pin_reserved()
295 placement.num_placement = 1; vmw_bo_pin_reserved()
296 placement.placement = &pl; vmw_bo_pin_reserved()
298 ret = ttm_bo_validate(bo, &placement, false, true); vmw_bo_pin_reserved()
45 vmw_dmabuf_pin_in_placement(struct vmw_private *dev_priv, struct vmw_dma_buffer *buf, struct ttm_placement *placement, bool interruptible) vmw_dmabuf_pin_in_placement() argument
H A Dvmwgfx_buffer.c83 .placement = &vram_placement_flags,
114 .placement = vram_gmr_placement_flags,
135 .placement = vram_gmr_ne_placement_flags,
142 .placement = &vram_placement_flags,
149 .placement = &vram_ne_placement_flags,
156 .placement = &sys_placement_flags,
163 .placement = &sys_ne_placement_flags,
190 .placement = evictable_placement_flags,
198 .placement = &gmr_placement_flags,
205 .placement = &mob_placement_flags,
212 .placement = &mob_ne_placement_flags,
767 struct ttm_placement *placement) vmw_evict_flags()
769 *placement = vmw_sys_placement; vmw_evict_flags()
766 vmw_evict_flags(struct ttm_buffer_object *bo, struct ttm_placement *placement) vmw_evict_flags() argument
H A Dvmwgfx_resource_priv.h57 * @backup_placement: TTM placement for backup buffers.
H A Dvmwgfx_drv.h622 size_t size, struct ttm_placement *placement,
675 struct ttm_placement *placement,
H A Dvmwgfx_fb.c522 * Pin before mapping. Since we don't know in what placement vmw_fb_kms_framebuffer()
H A Dvmwgfx_resource.c412 size_t size, struct ttm_placement *placement, vmw_dmabuf_init()
429 ttm_bo_type_device, placement, vmw_dmabuf_init()
410 vmw_dmabuf_init(struct vmw_private *dev_priv, struct vmw_dma_buffer *vmw_bo, size_t size, struct ttm_placement *placement, bool interruptible, void (*bo_free) (struct ttm_buffer_object *bo)) vmw_dmabuf_init() argument
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_object.c117 struct ttm_placement *placement, amdgpu_ttm_placement_init()
123 placement->placement = placements; amdgpu_ttm_placement_init()
124 placement->busy_placement = placements; amdgpu_ttm_placement_init()
184 placement->num_placement = c; amdgpu_ttm_placement_init()
185 placement->num_busy_placement = c; amdgpu_ttm_placement_init()
200 amdgpu_ttm_placement_init(rbo->adev, &rbo->placement, amdgpu_ttm_placement_from_domain()
205 struct ttm_placement *placement) amdgpu_fill_placement_to_bo()
207 BUG_ON(placement->num_placement > (AMDGPU_GEM_DOMAIN_MAX + 1)); amdgpu_fill_placement_to_bo()
209 memcpy(bo->placements, placement->placement, amdgpu_fill_placement_to_bo()
210 placement->num_placement * sizeof(struct ttm_place)); amdgpu_fill_placement_to_bo()
211 bo->placement.num_placement = placement->num_placement; amdgpu_fill_placement_to_bo()
212 bo->placement.num_busy_placement = placement->num_busy_placement; amdgpu_fill_placement_to_bo()
213 bo->placement.placement = bo->placements; amdgpu_fill_placement_to_bo()
214 bo->placement.busy_placement = bo->placements; amdgpu_fill_placement_to_bo()
221 struct ttm_placement *placement, amdgpu_bo_create_restricted()
272 amdgpu_fill_placement_to_bo(bo, placement); amdgpu_bo_create_restricted()
275 &bo->placement, page_align, !kernel, NULL, amdgpu_bo_create_restricted()
294 struct ttm_placement placement = {0}; amdgpu_bo_create() local
300 amdgpu_ttm_placement_init(adev, &placement, amdgpu_bo_create()
304 domain, flags, sg, &placement, amdgpu_bo_create()
394 for (i = 0; i < bo->placement.num_placement; i++) { amdgpu_bo_pin_restricted()
416 r = ttm_bo_validate(&bo->tbo, &bo->placement, false, false); amdgpu_bo_pin_restricted()
447 for (i = 0; i < bo->placement.num_placement; i++) { amdgpu_bo_unpin()
451 r = ttm_bo_validate(&bo->tbo, &bo->placement, false, false); amdgpu_bo_unpin()
629 for (i = 0; i < abo->placement.num_placement; i++) { amdgpu_bo_fault_reserve_notify()
635 r = ttm_bo_validate(bo, &abo->placement, false, false); amdgpu_bo_fault_reserve_notify()
638 return ttm_bo_validate(bo, &abo->placement, false, false); amdgpu_bo_fault_reserve_notify()
116 amdgpu_ttm_placement_init(struct amdgpu_device *adev, struct ttm_placement *placement, struct ttm_place *placements, u32 domain, u64 flags) amdgpu_ttm_placement_init() argument
204 amdgpu_fill_placement_to_bo(struct amdgpu_bo *bo, struct ttm_placement *placement) amdgpu_fill_placement_to_bo() argument
217 amdgpu_bo_create_restricted(struct amdgpu_device *adev, unsigned long size, int byte_align, bool kernel, u32 domain, u64 flags, struct sg_table *sg, struct ttm_placement *placement, struct reservation_object *resv, struct amdgpu_bo **bo_ptr) amdgpu_bo_create_restricted() argument
H A Damdgpu_ttm.c175 struct ttm_placement *placement) amdgpu_evict_flags()
185 placement->placement = &placements; amdgpu_evict_flags()
186 placement->busy_placement = &placements; amdgpu_evict_flags()
187 placement->num_placement = 1; amdgpu_evict_flags()
188 placement->num_busy_placement = 1; amdgpu_evict_flags()
203 *placement = rbo->placement; amdgpu_evict_flags()
247 DRM_ERROR("Unknown placement %d\n", old_mem->mem_type); amdgpu_move_blit()
258 DRM_ERROR("Unknown placement %d\n", old_mem->mem_type); amdgpu_move_blit()
287 struct ttm_placement placement; amdgpu_move_vram_ram() local
293 placement.num_placement = 1; amdgpu_move_vram_ram()
294 placement.placement = &placements; amdgpu_move_vram_ram()
295 placement.num_busy_placement = 1; amdgpu_move_vram_ram()
296 placement.busy_placement = &placements; amdgpu_move_vram_ram()
300 r = ttm_bo_mem_space(bo, &placement, &tmp_mem, amdgpu_move_vram_ram()
306 r = ttm_tt_set_placement_caching(bo->ttm, tmp_mem.placement); amdgpu_move_vram_ram()
333 struct ttm_placement placement; amdgpu_move_ram_vram() local
340 placement.num_placement = 1; amdgpu_move_ram_vram()
341 placement.placement = &placements; amdgpu_move_ram_vram()
342 placement.num_busy_placement = 1; amdgpu_move_ram_vram()
343 placement.busy_placement = &placements; amdgpu_move_ram_vram()
347 r = ttm_bo_mem_space(bo, &placement, &tmp_mem, amdgpu_move_ram_vram()
449 if (mem->placement & TTM_PL_FLAG_WC) amdgpu_ttm_io_mem_reserve()
174 amdgpu_evict_flags(struct ttm_buffer_object *bo, struct ttm_placement *placement) amdgpu_evict_flags() argument
H A Damdgpu_cgs.c132 struct ttm_placement placement; amdgpu_cgs_alloc_gpu_mem() local
193 placement.placement = &place; amdgpu_cgs_alloc_gpu_mem()
194 placement.num_placement = 1; amdgpu_cgs_alloc_gpu_mem()
195 placement.busy_placement = &place; amdgpu_cgs_alloc_gpu_mem()
196 placement.num_busy_placement = 1; amdgpu_cgs_alloc_gpu_mem()
200 NULL, &placement, NULL, amdgpu_cgs_alloc_gpu_mem()
235 WARN_ON_ONCE(obj->placement.num_placement > 1); amdgpu_cgs_gmap_gpu_mem()
H A Damdgpu_gem.c274 r = ttm_bo_validate(&bo->tbo, &bo->placement, true, false); amdgpu_gem_userptr_ioctl()
705 const char *placement; amdgpu_debugfs_gem_info() local
710 placement = "VRAM"; amdgpu_debugfs_gem_info()
713 placement = " GTT"; amdgpu_debugfs_gem_info()
717 placement = " CPU"; amdgpu_debugfs_gem_info()
722 placement, (unsigned long)rbo->pid); amdgpu_debugfs_gem_info()
H A Damdgpu_uvd.c321 for (i = 0; i < rbo->placement.num_placement; ++i) { amdgpu_uvd_force_into_uvd_segment()
363 r = ttm_bo_validate(&bo->tbo, &bo->placement, false, false); amdgpu_uvd_cs_pass1()
867 r = ttm_bo_validate(&bo->tbo, &bo->placement, true, false); amdgpu_uvd_send_msg()
H A Damdgpu_mn.c161 r = ttm_bo_validate(&bo->tbo, &bo->placement, false, false); amdgpu_mn_invalidate_range_start()
H A Damdgpu_object.h138 struct ttm_placement *placement,
H A Damdgpu_cs.c374 r = ttm_bo_validate(&bo->tbo, &bo->placement, true, false); list_for_each_entry()
H A Damdgpu_vm.c352 r = ttm_bo_validate(&bo->tbo, &bo->placement, true, false); amdgpu_vm_clear_bo()
H A Damdgpu.h525 struct ttm_placement placement; member in struct:amdgpu_bo
/linux-4.4.14/drivers/gpu/drm/ttm/
H A Dttm_bo.c86 struct ttm_placement *placement) ttm_bo_mem_space_debug()
93 for (i = 0; i < placement->num_placement; i++) { ttm_bo_mem_space_debug()
94 ret = ttm_mem_type_from_place(&placement->placement[i], ttm_bo_mem_space_debug()
98 pr_err(" placement[%d]=0x%08X (%d)\n", ttm_bo_mem_space_debug()
99 i, placement->placement[i].flags, mem_type); ttm_bo_mem_space_debug()
171 if (!(bo->mem.placement & TTM_PL_FLAG_NO_EVICT)) { ttm_bo_add_to_lru()
289 ((mem->placement & bo->mem.placement & TTM_PL_MASK_CACHING) == 0)) { ttm_bo_handle_move_mem()
309 ret = ttm_tt_set_placement_caching(bo->ttm, mem->placement); ttm_bo_handle_move_mem()
356 ret = bdev->driver->invalidate_caches(bdev, bo->mem.placement); ttm_bo_handle_move_mem()
366 bo->cur_placement = bo->mem.placement; ttm_bo_handle_move_mem()
454 if (bo->mem.placement & TTM_PL_FLAG_NO_EVICT) { ttm_bo_cleanup_refs_or_queue()
455 bo->mem.placement &= ~TTM_PL_FLAG_NO_EVICT; ttm_bo_cleanup_refs_or_queue()
664 struct ttm_placement placement; ttm_bo_evict() local
683 placement.num_placement = 0; ttm_bo_evict()
684 placement.num_busy_placement = 0; ttm_bo_evict()
685 bdev->driver->evict_flags(bo, &placement); ttm_bo_evict()
686 ret = ttm_bo_mem_space(bo, &placement, &evict_mem, interruptible, ttm_bo_evict()
692 ttm_bo_mem_space_debug(bo, &placement); ttm_bo_evict()
727 * requested placement range ttm_mem_evict_first()
863 struct ttm_placement *placement, ttm_bo_mem_space()
878 for (i = 0; i < placement->num_placement; ++i) { ttm_bo_mem_space()
879 const struct ttm_place *place = &placement->placement[i]; ttm_bo_mem_space()
895 cur_flags = ttm_bo_select_caching(man, bo->mem.placement, ttm_bo_mem_space()
899 * the memory placement flags to the current flags ttm_bo_mem_space()
917 mem->placement = cur_flags; ttm_bo_mem_space()
921 for (i = 0; i < placement->num_busy_placement; ++i) { ttm_bo_mem_space()
922 const struct ttm_place *place = &placement->busy_placement[i]; ttm_bo_mem_space()
934 cur_flags = ttm_bo_select_caching(man, bo->mem.placement, ttm_bo_mem_space()
938 * the memory placement flags to the current flags ttm_bo_mem_space()
945 mem->placement = cur_flags; ttm_bo_mem_space()
953 mem->placement = cur_flags; ttm_bo_mem_space()
970 struct ttm_placement *placement, ttm_bo_move_buffer()
995 ret = ttm_bo_mem_space(bo, placement, &mem, ttm_bo_move_buffer()
1007 static bool ttm_bo_mem_compat(struct ttm_placement *placement, ttm_bo_mem_compat() argument
1013 for (i = 0; i < placement->num_placement; i++) { ttm_bo_mem_compat()
1014 const struct ttm_place *heap = &placement->placement[i]; ttm_bo_mem_compat()
1021 if ((*new_flags & mem->placement & TTM_PL_MASK_CACHING) && ttm_bo_mem_compat()
1022 (*new_flags & mem->placement & TTM_PL_MASK_MEM)) ttm_bo_mem_compat()
1026 for (i = 0; i < placement->num_busy_placement; i++) { ttm_bo_mem_compat()
1027 const struct ttm_place *heap = &placement->busy_placement[i]; ttm_bo_mem_compat()
1034 if ((*new_flags & mem->placement & TTM_PL_MASK_CACHING) && ttm_bo_mem_compat()
1035 (*new_flags & mem->placement & TTM_PL_MASK_MEM)) ttm_bo_mem_compat()
1043 struct ttm_placement *placement, ttm_bo_validate()
1054 if (!ttm_bo_mem_compat(placement, &bo->mem, &new_flags)) { ttm_bo_validate()
1055 ret = ttm_bo_move_buffer(bo, placement, interruptible, ttm_bo_validate()
1062 * the compatible memory placement flags to the active flags ttm_bo_validate()
1064 ttm_flag_masked(&bo->mem.placement, new_flags, ttm_bo_validate()
1083 struct ttm_placement *placement, ttm_bo_init()
1139 bo->mem.placement = (TTM_PL_FLAG_SYSTEM | TTM_PL_FLAG_CACHED); ttm_bo_init()
1171 ret = ttm_bo_validate(bo, placement, interruptible, false); ttm_bo_init()
1215 struct ttm_placement *placement, ttm_bo_create()
1230 ret = ttm_bo_init(bdev, bo, size, type, placement, page_alignment, ttm_bo_create()
1511 if (mem->placement & TTM_PL_FLAG_CACHED) ttm_mem_reg_is_pci()
1659 if ((bo->mem.placement & swap_placement) != swap_placement) { ttm_bo_swapout()
1664 evict_mem.placement = TTM_PL_FLAG_SYSTEM | TTM_PL_FLAG_CACHED; ttm_bo_swapout()
85 ttm_bo_mem_space_debug(struct ttm_buffer_object *bo, struct ttm_placement *placement) ttm_bo_mem_space_debug() argument
862 ttm_bo_mem_space(struct ttm_buffer_object *bo, struct ttm_placement *placement, struct ttm_mem_reg *mem, bool interruptible, bool no_wait_gpu) ttm_bo_mem_space() argument
969 ttm_bo_move_buffer(struct ttm_buffer_object *bo, struct ttm_placement *placement, bool interruptible, bool no_wait_gpu) ttm_bo_move_buffer() argument
1042 ttm_bo_validate(struct ttm_buffer_object *bo, struct ttm_placement *placement, bool interruptible, bool no_wait_gpu) ttm_bo_validate() argument
1079 ttm_bo_init(struct ttm_bo_device *bdev, struct ttm_buffer_object *bo, unsigned long size, enum ttm_bo_type type, struct ttm_placement *placement, uint32_t page_alignment, bool interruptible, struct file *persistent_swap_storage, size_t acc_size, struct sg_table *sg, struct reservation_object *resv, void (*destroy) (struct ttm_buffer_object *)) ttm_bo_init() argument
1212 ttm_bo_create(struct ttm_bo_device *bdev, unsigned long size, enum ttm_bo_type type, struct ttm_placement *placement, uint32_t page_alignment, bool interruptible, struct file *persistent_swap_storage, struct ttm_buffer_object **p_bo) ttm_bo_create() argument
H A Dttm_bo_util.c58 ttm_flag_masked(&old_mem->placement, TTM_PL_FLAG_SYSTEM, ttm_bo_move_ttm()
63 ret = ttm_tt_set_placement_caching(ttm, new_mem->placement); ttm_bo_move_ttm()
208 if (mem->placement & TTM_PL_FLAG_WC) ttm_mem_reg_ioremap()
384 pgprot_t prot = ttm_io_prot(old_mem->placement, ttm_bo_move_memcpy()
389 pgprot_t prot = ttm_io_prot(new_mem->placement, ttm_bo_move_memcpy()
434 * holding the data of @bo with the old placement.
439 * it can be destroyed, releasing the space of the old placement.
519 if (mem->placement & TTM_PL_FLAG_WC) ttm_bo_ioremap()
546 if (num_pages == 1 && (mem->placement & TTM_PL_FLAG_CACHED)) { ttm_bo_kmap_ttm()
560 prot = ttm_io_prot(mem->placement, PAGE_KERNEL); ttm_bo_kmap_ttm()
H A Dttm_tt.c152 int ttm_tt_set_placement_caching(struct ttm_tt *ttm, uint32_t placement) ttm_tt_set_placement_caching() argument
156 if (placement & TTM_PL_FLAG_WC) ttm_tt_set_placement_caching()
158 else if (placement & TTM_PL_FLAG_UNCACHED) ttm_tt_set_placement_caching()
H A Dttm_agp_backend.c56 int ret, cached = (bo_mem->placement & TTM_PL_FLAG_CACHED); ttm_agp_bind()
H A Dttm_bo_vm.c196 cvma.vm_page_prot = ttm_io_prot(bo->mem.placement, ttm_bo_vm_fault()
200 cvma.vm_page_prot = ttm_io_prot(bo->mem.placement, ttm_bo_vm_fault()
/linux-4.4.14/drivers/gpu/drm/ast/
H A Dast_ttm.c146 *pl = astbo->placement; ast_bo_evict_flags()
298 bo->placement.placement = bo->placements; ast_ttm_placement()
299 bo->placement.busy_placement = bo->placements; ast_ttm_placement()
306 bo->placement.num_placement = c; ast_ttm_placement()
307 bo->placement.num_busy_placement = c; ast_ttm_placement()
340 ttm_bo_type_device, &astbo->placement, ast_bo_create()
366 for (i = 0; i < bo->placement.num_placement; i++) ast_bo_pin()
368 ret = ttm_bo_validate(&bo->bo, &bo->placement, false, false); ast_bo_pin()
389 for (i = 0; i < bo->placement.num_placement ; i++) ast_bo_unpin()
391 ret = ttm_bo_validate(&bo->bo, &bo->placement, false, false); ast_bo_unpin()
413 for (i = 0; i < bo->placement.num_placement ; i++) ast_bo_push_sysram()
416 ret = ttm_bo_validate(&bo->bo, &bo->placement, false, false); ast_bo_push_sysram()
H A Dast_drv.h322 struct ttm_placement placement; member in struct:ast_bo
/linux-4.4.14/drivers/gpu/drm/mgag200/
H A Dmgag200_ttm.c146 *pl = mgabo->placement; mgag200_bo_evict_flags()
298 bo->placement.placement = bo->placements; mgag200_ttm_placement()
299 bo->placement.busy_placement = bo->placements; mgag200_ttm_placement()
306 bo->placement.num_placement = c; mgag200_ttm_placement()
307 bo->placement.num_busy_placement = c; mgag200_ttm_placement()
340 ttm_bo_type_device, &mgabo->placement, mgag200_bo_create()
367 for (i = 0; i < bo->placement.num_placement; i++) mgag200_bo_pin()
369 ret = ttm_bo_validate(&bo->bo, &bo->placement, false, false); mgag200_bo_pin()
390 for (i = 0; i < bo->placement.num_placement ; i++) mgag200_bo_unpin()
392 return ttm_bo_validate(&bo->bo, &bo->placement, false, false); mgag200_bo_unpin()
410 for (i = 0; i < bo->placement.num_placement ; i++) mgag200_bo_push_sysram()
413 ret = ttm_bo_validate(&bo->bo, &bo->placement, false, false); mgag200_bo_push_sysram()
H A Dmgag200_drv.h225 struct ttm_placement placement; member in struct:mgag200_bo
/linux-4.4.14/drivers/gpu/drm/virtio/
H A Dvirtgpu_object.c50 vgbo->placement.placement = &vgbo->placement_code; virtio_gpu_init_ttm_placement()
51 vgbo->placement.busy_placement = &vgbo->placement_code; virtio_gpu_init_ttm_placement()
56 vgbo->placement.num_placement = c; virtio_gpu_init_ttm_placement()
57 vgbo->placement.num_busy_placement = c; virtio_gpu_init_ttm_placement()
90 &bo->placement, 0, !kernel, NULL, acc_size, virtio_gpu_object_create()
H A Dvirtgpu_ttm.c236 struct ttm_placement *placement) virtio_gpu_evict_flags()
244 placement->placement = &placements; virtio_gpu_evict_flags()
245 placement->busy_placement = &placements; virtio_gpu_evict_flags()
246 placement->num_placement = 1; virtio_gpu_evict_flags()
247 placement->num_busy_placement = 1; virtio_gpu_evict_flags()
391 if (!new_mem || (new_mem->placement & TTM_PL_FLAG_SYSTEM)) { virtio_gpu_bo_move_notify()
396 } else if (new_mem->placement & TTM_PL_FLAG_TT) { virtio_gpu_bo_move_notify()
235 virtio_gpu_evict_flags(struct ttm_buffer_object *bo, struct ttm_placement *placement) virtio_gpu_evict_flags() argument
H A Dvirtgpu_ioctl.c70 ret = ttm_bo_validate(bo, &qobj->placement, false, false); list_for_each_entry()
387 ret = ttm_bo_validate(&qobj->tbo, &qobj->placement, virtio_gpu_transfer_from_host_ioctl()
431 ret = ttm_bo_validate(&qobj->tbo, &qobj->placement, virtio_gpu_transfer_to_host_ioctl()
H A Dvirtgpu_drv.h62 struct ttm_placement placement; member in struct:virtio_gpu_object
/linux-4.4.14/drivers/gpu/drm/qxl/
H A Dqxl_object.c59 qbo->placement.placement = qbo->placements; qxl_ttm_placement_from_domain()
60 qbo->placement.busy_placement = qbo->placements; qxl_ttm_placement_from_domain()
69 qbo->placement.num_placement = c; qxl_ttm_placement_from_domain()
70 qbo->placement.num_busy_placement = c; qxl_ttm_placement_from_domain()
112 &bo->placement, 0, !kernel, NULL, size, qxl_bo_create()
236 r = ttm_bo_validate(&bo->tbo, &bo->placement, false, false); qxl_bo_pin()
259 for (i = 0; i < bo->placement.num_placement; i++) qxl_bo_unpin()
261 r = ttm_bo_validate(&bo->tbo, &bo->placement, false, false); qxl_bo_unpin()
H A Dqxl_ttm.c188 struct ttm_placement *placement) qxl_evict_flags()
198 placement->placement = &placements; qxl_evict_flags()
199 placement->busy_placement = &placements; qxl_evict_flags()
200 placement->num_placement = 1; qxl_evict_flags()
201 placement->num_busy_placement = 1; qxl_evict_flags()
206 *placement = qbo->placement; qxl_evict_flags()
187 qxl_evict_flags(struct ttm_buffer_object *bo, struct ttm_placement *placement) qxl_evict_flags() argument
H A Dqxl_ioctl.c329 ret = ttm_bo_validate(&qobj->tbo, &qobj->placement, qxl_update_area_ioctl()
H A Dqxl_drv.h106 struct ttm_placement placement; member in struct:qxl_bo
H A Dqxl_release.c240 ret = ttm_bo_validate(&bo->tbo, &bo->placement, qxl_release_validate_bo()
/linux-4.4.14/drivers/gpu/drm/bochs/
H A Dbochs_mm.c123 *pl = bochsbo->placement; bochs_bo_evict_flags()
262 bo->placement.placement = bo->placements; bochs_ttm_placement()
263 bo->placement.busy_placement = bo->placements; bochs_ttm_placement()
281 bo->placement.num_placement = c; bochs_ttm_placement()
282 bo->placement.num_busy_placement = c; bochs_ttm_placement()
302 for (i = 0; i < bo->placement.num_placement; i++) bochs_bo_pin()
304 ret = ttm_bo_validate(&bo->bo, &bo->placement, false, false); bochs_bo_pin()
327 for (i = 0; i < bo->placement.num_placement; i++) bochs_bo_unpin()
329 ret = ttm_bo_validate(&bo->bo, &bo->placement, false, false); bochs_bo_unpin()
378 ttm_bo_type_device, &bochsbo->placement, bochs_bo_create()
H A Dbochs.h101 struct ttm_placement placement; member in struct:bochs_bo
/linux-4.4.14/drivers/gpu/drm/cirrus/
H A Dcirrus_ttm.c146 *pl = cirrusbo->placement; cirrus_bo_evict_flags()
302 bo->placement.placement = bo->placements; cirrus_ttm_placement()
303 bo->placement.busy_placement = bo->placements; cirrus_ttm_placement()
310 bo->placement.num_placement = c; cirrus_ttm_placement()
311 bo->placement.num_busy_placement = c; cirrus_ttm_placement()
344 ttm_bo_type_device, &cirrusbo->placement, cirrus_bo_create()
370 for (i = 0; i < bo->placement.num_placement; i++) cirrus_bo_pin()
372 ret = ttm_bo_validate(&bo->bo, &bo->placement, false, false); cirrus_bo_pin()
397 for (i = 0; i < bo->placement.num_placement ; i++) cirrus_bo_push_sysram()
400 ret = ttm_bo_validate(&bo->bo, &bo->placement, false, false); cirrus_bo_push_sysram()
H A Dcirrus_drv.h165 struct ttm_placement placement; member in struct:cirrus_bo
/linux-4.4.14/drivers/gpu/drm/radeon/
H A Dradeon_ttm.c179 struct ttm_placement *placement) radeon_evict_flags()
190 placement->placement = &placements; radeon_evict_flags()
191 placement->busy_placement = &placements; radeon_evict_flags()
192 placement->num_placement = 1; radeon_evict_flags()
193 placement->num_busy_placement = 1; radeon_evict_flags()
207 * first, but only set GTT as busy placement, so this radeon_evict_flags()
213 rbo->placement.num_busy_placement = 0; radeon_evict_flags()
214 for (i = 0; i < rbo->placement.num_placement; i++) { radeon_evict_flags()
219 rbo->placement.busy_placement = radeon_evict_flags()
221 rbo->placement.num_busy_placement = 1; radeon_evict_flags()
231 *placement = rbo->placement; radeon_evict_flags()
277 DRM_ERROR("Unknown placement %d\n", old_mem->mem_type); radeon_move_blit()
288 DRM_ERROR("Unknown placement %d\n", old_mem->mem_type); radeon_move_blit()
318 struct ttm_placement placement; radeon_move_vram_ram() local
324 placement.num_placement = 1; radeon_move_vram_ram()
325 placement.placement = &placements; radeon_move_vram_ram()
326 placement.num_busy_placement = 1; radeon_move_vram_ram()
327 placement.busy_placement = &placements; radeon_move_vram_ram()
331 r = ttm_bo_mem_space(bo, &placement, &tmp_mem, radeon_move_vram_ram()
337 r = ttm_tt_set_placement_caching(bo->ttm, tmp_mem.placement); radeon_move_vram_ram()
364 struct ttm_placement placement; radeon_move_ram_vram() local
371 placement.num_placement = 1; radeon_move_ram_vram()
372 placement.placement = &placements; radeon_move_ram_vram()
373 placement.num_busy_placement = 1; radeon_move_ram_vram()
374 placement.busy_placement = &placements; radeon_move_ram_vram()
378 r = ttm_bo_mem_space(bo, &placement, &tmp_mem, radeon_move_ram_vram()
487 if (mem->placement & TTM_PL_FLAG_WC) radeon_ttm_io_mem_reserve()
178 radeon_evict_flags(struct ttm_buffer_object *bo, struct ttm_placement *placement) radeon_evict_flags() argument
H A Dradeon_object.c100 rbo->placement.placement = rbo->placements; radeon_ttm_placement_from_domain()
101 rbo->placement.busy_placement = rbo->placements; radeon_ttm_placement_from_domain()
164 rbo->placement.num_placement = c; radeon_ttm_placement_from_domain()
165 rbo->placement.num_busy_placement = c; radeon_ttm_placement_from_domain()
261 &bo->placement, page_align, !kernel, NULL, radeon_bo_create()
356 for (i = 0; i < bo->placement.num_placement; i++) { radeon_bo_pin_restricted()
369 r = ttm_bo_validate(&bo->tbo, &bo->placement, false, false); radeon_bo_pin_restricted()
400 for (i = 0; i < bo->placement.num_placement; i++) { radeon_bo_unpin()
404 r = ttm_bo_validate(&bo->tbo, &bo->placement, false, false); radeon_bo_unpin()
565 r = ttm_bo_validate(&bo->tbo, &bo->placement, true, false); list_for_each_entry()
805 for (i = 0; i < rbo->placement.num_placement; i++) { radeon_bo_fault_reserve_notify()
811 r = ttm_bo_validate(bo, &rbo->placement, false, false); radeon_bo_fault_reserve_notify()
814 return ttm_bo_validate(bo, &rbo->placement, false, false); radeon_bo_fault_reserve_notify()
H A Dradeon_gem.c342 r = ttm_bo_validate(&bo->tbo, &bo->placement, true, false); radeon_gem_userptr_ioctl()
779 const char *placement; radeon_debugfs_gem_info() local
784 placement = "VRAM"; radeon_debugfs_gem_info()
787 placement = " GTT"; radeon_debugfs_gem_info()
791 placement = " CPU"; radeon_debugfs_gem_info()
796 placement, (unsigned long)rbo->pid); radeon_debugfs_gem_info()
H A Dradeon_uvd.c263 for (i = 0; i < rbo->placement.num_placement; ++i) { radeon_uvd_force_into_uvd_segment()
272 /* abort if we already have more than one placement */ radeon_uvd_force_into_uvd_segment()
273 if (rbo->placement.num_placement > 1) radeon_uvd_force_into_uvd_segment()
280 rbo->placement.num_placement++; radeon_uvd_force_into_uvd_segment()
281 rbo->placement.num_busy_placement++; radeon_uvd_force_into_uvd_segment()
H A Dradeon_mn.c160 r = ttm_bo_validate(&bo->tbo, &bo->placement, false, false); radeon_mn_invalidate_range_start()
H A Dradeon_vm.c399 r = ttm_bo_validate(&bo->tbo, &bo->placement, true, false); radeon_vm_clear_bo()
H A Dradeon.h489 struct ttm_placement placement; member in struct:radeon_bo
/linux-4.4.14/drivers/staging/lustre/lustre/lmv/
H A Dlproc_lmv.c74 static const char *placement_policy2name(enum placement_policy placement) placement_policy2name() argument
76 LASSERT(placement < PLACEMENT_MAX_POLICY); placement_policy2name()
77 return placement_name[placement]; placement_policy2name()
122 LUSTRE_RW_ATTR(placement); variable
H A Dlmv_obd.c1151 enum placement_policy placement)
1153 switch (placement) {
1165 CERROR("Unsupported placement policy %x\n", placement);
1171 * This is _inode_ placement policy function (not name).
/linux-4.4.14/include/drm/ttm/
H A Dttm_bo_api.h67 * @placement: preferred placements
71 * Structure indicating the placement you request for an object.
75 const struct ttm_place *placement; member in struct:ttm_placement
91 * Structure indicating the bus placement of an object.
111 * @placement: Placement flags.
114 * Structure indicating the placement and space resources used by a
125 uint32_t placement; member in struct:ttm_mem_reg
166 * @mem: structure describing current placement.
180 * @cur_placement: Hint of current placement.
183 * Base class for TTM buffer object, that deals with data placement and CPU
185 * the driver can usually use the placement offset @offset directly as the
189 * placement and caching for these GPU maps. This makes it possible to use
323 * @placement: Proposed placement for the buffer object.
327 * Changes placement and caching policy of the buffer object
328 * according proposed placement.
330 * -EINVAL on invalid proposed placement.
336 struct ttm_placement *placement,
453 * @flags: Initial placement flags.
477 * -EINVAL: Invalid placement flags.
485 struct ttm_placement *placement,
500 * @placement: Initial placement.
515 * -EINVAL: Invalid placement flags.
522 struct ttm_placement *placement,
H A Dttm_placement.h34 * Memory regions for data placement.
61 * Other flags that affects data placement.
H A Dttm_bo_driver.h186 * @placement: Placement details.
187 * @flags: Additional placement flags.
192 * applicable are given by @placement. If successful,
311 * @evict_flags: Callback to obtain placement flags when a buffer is evicted.
360 * @flags: new placement of the rebound buffer object.
382 struct ttm_placement *placement);
637 * @placement: Flag indicating the desired caching policy.
646 extern int ttm_tt_set_placement_caching(struct ttm_tt *ttm, uint32_t placement);
680 * @proposed_placement: Proposed new placement for the buffer object.
686 * the placement flags in @mem, potentially evicting other idle buffer objects.
695 struct ttm_placement *placement,
917 if (!(bo->mem.placement & TTM_PL_FLAG_NO_EVICT)) { ttm_bo_unreserve()
955 * new placement backed by a TTM. The function will, if successful,
957 * and update the (@bo)->mem placement flags. If unsuccessful, the old
979 * and update the (@bo)->mem placement flags. If unsuccessful, the old
995 * Utility function to free an old placement after a successful move.
1010 * representing the old placement, and put the sync object on both buffer
/linux-4.4.14/include/linux/ceph/
H A Dosdmap.h12 * specifies the mapping of objects to placement groups and placement
108 /* the CRUSH map specifies the mapping of placement groups to
206 /* calculate mapping of object to a placement group */
H A Drados.h56 * placement group.
61 __le16 ps; /* placement seed */
70 * pgp_num -- effective number when calculating pg placement. this
89 * stable_mod func is used to control number of placement groups.
/linux-4.4.14/drivers/gpu/drm/nouveau/
H A Dnouveau_bo.c229 type, &nvbo->placement, nouveau_bo_new()
277 for (i = 0; i < nvbo->placement.num_placement; ++i) { set_placement_range()
281 for (i = 0; i < nvbo->placement.num_busy_placement; ++i) { set_placement_range()
291 struct ttm_placement *pl = &nvbo->placement; nouveau_bo_placement_set()
296 pl->placement = nvbo->placements; nouveau_bo_placement_set()
397 nouveau_bo_placement_set(nvbo, bo->mem.placement, 0); nouveau_bo_unpin()
499 ret = ttm_bo_validate(&nvbo->bo, &nvbo->placement, nouveau_bo_validate()
672 *pl = nvbo->placement; nouveau_bo_evict_flags()
1164 struct ttm_placement placement; nouveau_bo_move_flipd() local
1168 placement.num_placement = placement.num_busy_placement = 1; nouveau_bo_move_flipd()
1169 placement.placement = placement.busy_placement = &placement_memtype; nouveau_bo_move_flipd()
1173 ret = ttm_bo_mem_space(bo, &placement, &tmp_mem, intr, no_wait_gpu); nouveau_bo_move_flipd()
1200 struct ttm_placement placement; nouveau_bo_move_flips() local
1204 placement.num_placement = placement.num_busy_placement = 1; nouveau_bo_move_flips()
1205 placement.placement = placement.busy_placement = &placement_memtype; nouveau_bo_move_flips()
1209 ret = ttm_bo_mem_space(bo, &placement, &tmp_mem, intr, no_wait_gpu); nouveau_bo_move_flips()
1449 for (i = 0; i < nvbo->placement.num_placement; ++i) { nouveau_ttm_fault_reserve_notify()
1454 for (i = 0; i < nvbo->placement.num_busy_placement; ++i) { nouveau_ttm_fault_reserve_notify()
H A Dnouveau_bo.h12 struct ttm_placement placement; member in struct:nouveau_bo
/linux-4.4.14/arch/alpha/oprofile/
H A Dop_model_ev5.c19 The 21164 (EV5) and 21164PC (PCA65) vary in the bit placement and
21 at this point, arrange for the difference in bit placement to be
/linux-4.4.14/arch/xtensa/include/asm/
H A Dpci-bridge.h56 * Used for BAR placement algorithms
/linux-4.4.14/include/uapi/mtd/
H A Dmtd-abi.h114 /* Obsolete ECC byte placement modes (used with obsolete MEMGETOOBSEL) */
116 #define MTD_NANDECC_PLACE 1 // Use the given placement in the structure (YAFFS1 legacy mode)
117 #define MTD_NANDECC_AUTOPLACE 2 // Use the default placement scheme
118 #define MTD_NANDECC_PLACEONLY 3 // Use the given placement in the structure (Do not store ecc result on read)
/linux-4.4.14/drivers/scsi/libfc/
H A Dfc_libfc.h108 * Set up direct-data placement for this I/O request
/linux-4.4.14/drivers/mailbox/
H A Dbcm2835-mailbox.c45 * the placement of memory barriers.
/linux-4.4.14/drivers/staging/rdma/ehca/
H A Dipz_pt_fn.h200 * constructor for a ipz_queue_t, placement new for ipz_queue_t,
223 * placement new for struct ipz_queue, new for all dependent datastructors
/linux-4.4.14/mm/
H A Dinternal.h20 * about IO, FS and watermark checking while ignoring placement
30 /* Control allocation cpuset and node placement constraints */
H A Dmigrate.c1606 * Optimal placement is no good if the memory bus is saturated and numamigrate_update_ratelimit()
1699 * Optimal placement is no good if the memory bus is saturated and migrate_misplaced_page()
1754 * Optimal placement is no good if the memory bus is saturated and migrate_misplaced_transhuge_page()
H A Dslob.c56 * in order to prevent random node placement.
H A Dksm.c129 * @list: linked into migrate_nodes, pending placement in the proper node tree
191 /* Recently migrated nodes of stable tree, pending proper placement */
H A Dslub.c2973 * Object placement in a slab is made very easy because we always start at
3015 * Higher order allocations also allow the placement of more objects in a
H A Dmempolicy.c561 * faults, pages may be migrated for better NUMA placement.
/linux-4.4.14/drivers/mtd/nand/
H A Dnand_bch.c160 /* if no ecc placement scheme was provided, build one */ nand_bch_init()
H A Dnand_bbt.c658 * This applies for absolute placement too, as we have the write_bbt()
667 * Automatic placement of the bad block table. Search direction write_bbt()
H A Dfsmc_nand.c249 * ECC placement definitions in oobfree type format.
H A Ds3c2410.c85 /* new oob placement block for use with hardware ecc generation
H A Dmxc_nand.c204 /* OOB placement block for use with hardware ecc generation */
H A Dnand_base.c51 /* Define default oob placement schemes for large and small page devices */
4114 * If no default placement scheme is given, select an appropriate one. nand_scan_tail()
/linux-4.4.14/drivers/crypto/caam/
H A Dpdb.h356 * and the placement of "a,b".
/linux-4.4.14/include/linux/mtd/
H A Donenand.h83 * @ecclayout: [REPLACEABLE] the default ecc placement scheme
/linux-4.4.14/include/linux/
H A Dgfp.h56 * Page mobility and placement hints
75 * node with no fallbacks or placement policy enforcements.
H A Dkexec.h186 * memory placement of buffer.
H A Dsched.h1715 * basis. Scheduling placement decisions are made based on these
/linux-4.4.14/drivers/video/fbdev/
H A Dsh_mobile_hdmi.c86 #define HDMI_HSYNC_PMENT_AT_EMB_7_0 0x52 /* HSYNC placement at embedded sync (LSB) */
87 #define HDMI_HSYNC_PMENT_AT_EMB_15_8 0x53 /* HSYNC placement at embedded sync (MSB) */
88 #define HDMI_VSYNC_PMENT_AT_EMB_7_0 0x54 /* VSYNC placement at embedded sync (LSB) */
89 #define HDMI_VSYNC_PMENT_AT_EMB_14_8 0x55 /* VSYNC placement at embedded sync (MSB) */
/linux-4.4.14/arch/x86/xen/
H A Denlighten.c147 * Flag to determine whether vcpu info placement is available on all
240 * On restore, set the vcpu placement up again.
1618 /* Don't do the full vcpu_info placement stuff until we have a xen_start_kernel()
1756 * related functions. We don't need the vcpu_info placement xen_hvm_init_shared_info()
/linux-4.4.14/arch/arm/kernel/
H A Dprocess.c365 /* If possible, provide a placement hint at a random offset from the
H A Dsetup.c473 * Define the placement constraint for the inline asm directive below. cpu_init()
/linux-4.4.14/include/linux/mfd/
H A Dabx500.h238 * @abx500_adc_therm placement of thermistor, batctrl or battemp adc
/linux-4.4.14/drivers/s390/cio/
H A Ditcw.c116 * to the placement of the data chunk in memory, and a further itcw_calc_size()
/linux-4.4.14/drivers/gpu/drm/
H A Ddrm_vma_manager.c44 * Drivers shouldn't use this for object placement in VMEM. This manager should
H A Ddrm_mm.c81 * to implement sophisticated placement restrictions. The i915 DRM driver uses
H A Ddrm_crtc.c2454 * Set plane configuration, including placement, fb, scaling, and other factors.
/linux-4.4.14/arch/arc/kernel/
H A Dsetup.c308 * Make sure it's placement/sz matches what Linux is built with arc_chk_core_config()
/linux-4.4.14/include/linux/mfd/abx500/
H A Dab8500-bm.h412 * @adc_therm placement of thermistor, batctrl or battemp adc
/linux-4.4.14/include/uapi/drm/
H A Dvmwgfx_drm.h748 * @dest_x: X placement coordinate for surface.
749 * @dest_y: Y placement coordinate for surface.
/linux-4.4.14/arch/powerpc/mm/
H A Dhugetlbpage.c58 * At this point we do the placement change only for BOOK3S 64. This would
207 * At this point we do the placement change only for BOOK3S 64. This would
/linux-4.4.14/drivers/rtc/
H A Drtc-sh.c58 * the placement of the optional RYRAR and RCR3 (the RYRAR control
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_type.h697 /* These macros are meant to enable optimal placement of the RS and INT
/linux-4.4.14/fs/nfsd/
H A Dstate.h435 time_t oo_time; /* time of placement on so_close_lru */
/linux-4.4.14/net/
H A Dcompat.c121 * thus placement) of cmsg headers and length are different for
/linux-4.4.14/kernel/sched/
H A Dfair.c945 /* Handle placement on systems where not all nodes are directly connected. */ score_nearby_nodes()
954 * from each other. No need for fancy placement algorithms. score_nearby_nodes()
969 * for placement; nid was already counted. for_each_online_node()
997 * This seems to result in good task placement. for_each_online_node()
1696 * NUMA placement cycle. The scheduler keeps similar statistics, but
2167 * Who cares about NUMA placement when they're dying. task_numa_work()
2291 * We don't care about NUMA placement if we don't have memory. task_tick_numa()
2300 * NUMA placement. task_tick_numa()
H A Dcore.c1272 * ttwu() will sort out the placement. set_task_cpu()
1635 * Since this is common to all placement strategies, this lives here. select_task_rq()
6604 * placement of programs.
/linux-4.4.14/drivers/gpu/drm/i915/
H A Di915_gem_fence.c679 * varies depending upon page placement inside the i915_gem_detect_bit_6_swizzle()
H A Dintel_drv.h448 /* Panel fitter placement and size for Ironlake+ */
/linux-4.4.14/arch/tile/include/hv/
H A Dnetio_intf.h2333 default also affects the placement of buffers on Linux NUMA nodes.
2334 See @ref buffer_node_weights for an explanation of buffer placement.
2343 /** Buffer placement weighting factors.
2396 By default, the specified buffer placement is treated as a hint;
/linux-4.4.14/arch/alpha/kernel/
H A Dsetup.c253 /* Fix up for the Jensen's queer RTC placement. */ reserve_std_resources()
/linux-4.4.14/fs/reiserfs/
H A Dbitmap.c309 * read and potentially having a bad placement. block_group_used()
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x.h415 * after placement on BD for new TPA aggregation)
766 /* number of NEXT_PAGE descriptors may be required during placement */
H A Dbnx2x_reg.h544 /* [ST 32] The number of ACK after placement messages received */
4761 /* [ST 32] The number of ACK after placement messages received */
5251 /* [ST 32] The number of ACK after placement messages received */
5805 /* [ST 32] The number of ACK after placement messages received */
/linux-4.4.14/kernel/
H A Dcpuset.c4 * Processor and Memory placement constraints for sets of tasks.
1192 * Handle user request to change the 'mems' memory placement
/linux-4.4.14/drivers/staging/lustre/lustre/include/
H A Dobd.h408 /* Stripe placement optimization */
/linux-4.4.14/include/uapi/linux/
H A Dfirewire-cdev.h561 * in and out parameter. If this automatic placement of a CSR in a bigger
/linux-4.4.14/arch/s390/include/asm/
H A Dpgtable.h105 * happen without trampolines and in addition the placement within a 2GB frame
/linux-4.4.14/drivers/mtd/onenand/
H A Donenand_base.c11 * auto-placement support, read-while load support, various fixes
1017 * onenand_transfer_auto_oob - [INTERN] oob auto-placement transfer
1809 * onenand_fill_auto_oob - [INTERN] oob auto-placement transfer
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/
H A Dfw-api.h791 /* placement characteristics */
/linux-4.4.14/block/
H A Dblk-mq.c833 * in a mask and had some smarts for more clever placement.
/linux-4.4.14/arch/powerpc/kernel/
H A Dtraps.c1189 * illegal /placement/ of a valid instruction. program_check_exception()
/linux-4.4.14/drivers/net/ethernet/broadcom/
H A Dcnic_defs.h3262 * Parameters required for placement according to SGL
3277 * Parameters required for placement according to SGL
H A Dtg3.h990 /* Receive list placement control registers */
H A Dtg3.c11518 /* The placement of this call is tied tg3_start()
/linux-4.4.14/sound/pci/hda/
H A Dpatch_hdmi.c189 * CEA speaker placement:
/linux-4.4.14/scripts/
H A Dcheckpatch.pl4987 # check for bad placement of section $InitAttribute (e.g.: __initdata)
/linux-4.4.14/fs/ext4/
H A Dmballoc.c3186 * placement or satisfy big request as is */ ext4_mb_normalize_request()
H A Dextents.c186 * Try to predict block placement assuming that we are ext4_ext_find_goal()
/linux-4.4.14/fs/xfs/
H A Dxfs_log.c3582 * - the placement of the transaction happens to be such that the xfs_log_calc_unit_res()

Completed in 8341 milliseconds