Home
last modified time | relevance | path

Searched refs:ttm_round_pot (Results 1 – 15 of 15) sorted by relevance

/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/
Dvmwgfx_cmdbuf_res.c343 ttm_round_pot(sizeof(struct vmw_cmdbuf_res_manager)) + in vmw_cmdbuf_res_man_size()
344 ttm_round_pot(sizeof(struct hlist_head) << in vmw_cmdbuf_res_man_size()
Dvmwgfx_bo.c437 size_t page_array_size = ttm_round_pot(num_pages * sizeof(void *)); in vmw_bo_acc_size()
440 size_t backend_size = ttm_round_pot(vmw_tt_size); in vmw_bo_acc_size()
443 ttm_round_pot(sizeof(struct vmw_buffer_object)); in vmw_bo_acc_size()
445 ttm_round_pot(sizeof(struct vmw_user_buffer_object)) + in vmw_bo_acc_size()
451 ttm_round_pot(num_pages * sizeof(dma_addr_t)); in vmw_bo_acc_size()
Dvmwgfx_ttm_buffer.c450 sgl_size = ttm_round_pot(sizeof(struct scatterlist)); in vmw_ttm_map_dma()
451 sgt_size = ttm_round_pot(sizeof(struct sg_table)); in vmw_ttm_map_dma()
662 ttm_round_pot(ttm->num_pages * sizeof(dma_addr_t)); in vmw_ttm_populate()
694 ttm_round_pot(ttm->num_pages * sizeof(dma_addr_t)); in vmw_ttm_unpopulate()
Dvmwgfx_simple_resource.c162 account_size = ttm_round_pot(alloc_size) + VMW_IDA_ACC_SIZE + in vmw_simple_resource_create_ioctl()
Dvmwgfx_shader.c604 vmw_shader_dx_size = ttm_round_pot(sizeof(*shader)); in vmw_dx_shader_add()
733 ttm_round_pot(sizeof(struct vmw_user_shader)) + in vmw_user_shader_alloc()
804 ttm_round_pot(sizeof(struct vmw_shader)) + in vmw_shader_alloc()
Dvmwgfx_fence.c313 fman->user_fence_size = ttm_round_pot(sizeof(struct vmw_user_fence)) + in vmw_fence_manager_init()
315 fman->fence_size = ttm_round_pot(sizeof(struct vmw_fence_obj)); in vmw_fence_manager_init()
317 ttm_round_pot(sizeof(struct vmw_event_fence_action)); in vmw_fence_manager_init()
Dttm_object.c547 tdev->dma_buf_size = ttm_round_pot(sizeof(struct dma_buf)) + in ttm_object_device_init()
548 ttm_round_pot(sizeof(struct file)); in ttm_object_device_init()
Dvmwgfx_streamoutput.c294 vmw_streamoutput_size = ttm_round_pot(sizeof(*so)); in vmw_dx_streamoutput_add()
Dvmwgfx_surface.c754 vmw_user_surface_size = ttm_round_pot(sizeof(*user_srf)) + in vmw_surface_define_ioctl()
769 ttm_round_pot(num_sizes * sizeof(struct drm_vmw_size)) + in vmw_surface_define_ioctl()
770 ttm_round_pot(num_sizes * sizeof(struct vmw_surface_offset)); in vmw_surface_define_ioctl()
1513 vmw_user_surface_size = ttm_round_pot(sizeof(*user_srf)) + in vmw_gb_surface_define_internal()
1986 acc_size = ttm_round_pot(dirty_size); in vmw_surface_dirty_alloc()
Dvmwgfx_cotable.c580 cotable_acc_size = ttm_round_pot(sizeof(struct vmw_cotable)); in vmw_cotable_alloc()
Dvmwgfx_page_dirty.c249 acc_size = ttm_round_pot(size); in vmw_bo_dirty_add()
Dvmwgfx_context.c747 vmw_user_context_size = ttm_round_pot(sizeof(*ctx)) + in vmw_context_define()
/kernel/linux/linux-5.10/include/drm/ttm/
Dttm_memory.h92 size_t ttm_round_pot(size_t size);
/kernel/linux/linux-5.10/drivers/gpu/drm/ttm/
Dttm_bo.c1263 size += ttm_round_pot(struct_size); in ttm_bo_acc_size()
1264 size += ttm_round_pot(npages * sizeof(void *)); in ttm_bo_acc_size()
1265 size += ttm_round_pot(sizeof(struct ttm_tt)); in ttm_bo_acc_size()
1276 size += ttm_round_pot(struct_size); in ttm_bo_dma_acc_size()
1277 size += ttm_round_pot(npages * (2*sizeof(void *) + sizeof(dma_addr_t))); in ttm_bo_dma_acc_size()
1278 size += ttm_round_pot(sizeof(struct ttm_dma_tt)); in ttm_bo_dma_acc_size()
Dttm_memory.c667 size_t ttm_round_pot(size_t size) in ttm_round_pot() function
683 EXPORT_SYMBOL(ttm_round_pot);