/linux-6.1.9/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_cmdbuf.c | 155 struct vmw_cmdbuf_man *man; member 197 static int vmw_cmdbuf_startstop(struct vmw_cmdbuf_man *man, u32 context, 199 static int vmw_cmdbuf_preempt(struct vmw_cmdbuf_man *man, u32 context); 207 static int vmw_cmdbuf_cur_lock(struct vmw_cmdbuf_man *man, bool interruptible) in vmw_cmdbuf_cur_lock() argument 210 if (mutex_lock_interruptible(&man->cur_mutex)) in vmw_cmdbuf_cur_lock() 213 mutex_lock(&man->cur_mutex); in vmw_cmdbuf_cur_lock() 224 static void vmw_cmdbuf_cur_unlock(struct vmw_cmdbuf_man *man) in vmw_cmdbuf_cur_unlock() argument 226 mutex_unlock(&man->cur_mutex); in vmw_cmdbuf_cur_unlock() 245 dma_pool_free(header->man->dheaders, dheader, header->handle); in vmw_cmdbuf_header_inline_free() 259 struct vmw_cmdbuf_man *man = header->man; in __vmw_cmdbuf_header_free() local [all …]
|
D | vmwgfx_cmdbuf_res.c | 50 struct vmw_cmdbuf_res_manager *man; member 82 vmw_cmdbuf_res_lookup(struct vmw_cmdbuf_res_manager *man, in vmw_cmdbuf_res_lookup() argument 89 hash_for_each_possible_rcu(man->resources, hash, head, key) { in vmw_cmdbuf_res_lookup() 105 static void vmw_cmdbuf_res_free(struct vmw_cmdbuf_res_manager *man, in vmw_cmdbuf_res_free() argument 136 list_add_tail(&entry->head, &entry->man->list); in vmw_cmdbuf_res_commit() 167 vmw_cmdbuf_res_free(entry->man, entry); in vmw_cmdbuf_res_revert() 170 hash_add_rcu(entry->man->resources, &entry->hash.head, in vmw_cmdbuf_res_revert() 172 list_move_tail(&entry->head, &entry->man->list); in vmw_cmdbuf_res_revert() 195 int vmw_cmdbuf_res_add(struct vmw_cmdbuf_res_manager *man, in vmw_cmdbuf_res_add() argument 208 hash_add_rcu(man->resources, &cres->hash.head, cres->hash.key); in vmw_cmdbuf_res_add() [all …]
|
D | vmwgfx_system_manager.c | 36 static int vmw_sys_man_alloc(struct ttm_resource_manager *man, in vmw_sys_man_alloc() argument 49 static void vmw_sys_man_free(struct ttm_resource_manager *man, in vmw_sys_man_free() argument 52 ttm_resource_fini(man, res); in vmw_sys_man_free() 64 struct ttm_resource_manager *man = in vmw_sys_man_init() local 65 kzalloc(sizeof(*man), GFP_KERNEL); in vmw_sys_man_init() 67 if (!man) in vmw_sys_man_init() 70 man->use_tt = true; in vmw_sys_man_init() 71 man->func = &vmw_sys_manager_func; in vmw_sys_man_init() 73 ttm_resource_manager_init(man, bdev, 0); in vmw_sys_man_init() 74 ttm_set_driver_manager(bdev, VMW_PL_SYSTEM, man); in vmw_sys_man_init() [all …]
|
D | vmwgfx_gmrid_manager.c | 48 static struct vmwgfx_gmrid_man *to_gmrid_manager(struct ttm_resource_manager *man) in to_gmrid_manager() argument 50 return container_of(man, struct vmwgfx_gmrid_man, manager); in to_gmrid_manager() 53 static int vmw_gmrid_man_get_node(struct ttm_resource_manager *man, in vmw_gmrid_man_get_node() argument 58 struct vmwgfx_gmrid_man *gman = to_gmrid_manager(man); in vmw_gmrid_man_get_node() 120 ttm_resource_fini(man, *res); in vmw_gmrid_man_get_node() 125 static void vmw_gmrid_man_put_node(struct ttm_resource_manager *man, in vmw_gmrid_man_put_node() argument 128 struct vmwgfx_gmrid_man *gman = to_gmrid_manager(man); in vmw_gmrid_man_put_node() 134 ttm_resource_fini(man, res); in vmw_gmrid_man_put_node() 138 static void vmw_gmrid_man_debug(struct ttm_resource_manager *man, in vmw_gmrid_man_debug() argument 141 struct vmwgfx_gmrid_man *gman = to_gmrid_manager(man); in vmw_gmrid_man_debug() [all …]
|
/linux-6.1.9/drivers/gpu/drm/ttm/ |
D | ttm_resource.c | 59 struct ttm_resource_manager *man; in ttm_lru_bulk_move_tail() local 68 man = ttm_manager_type(pos->first->bo->bdev, i); in ttm_lru_bulk_move_tail() 69 list_bulk_move_tail(&man->lru[j], &pos->first->lru, in ttm_lru_bulk_move_tail() 158 struct ttm_resource_manager *man; in ttm_resource_move_to_lru_tail() local 160 man = ttm_manager_type(bdev, res->mem_type); in ttm_resource_move_to_lru_tail() 161 list_move_tail(&res->lru, &man->lru[bo->priority]); in ttm_resource_move_to_lru_tail() 177 struct ttm_resource_manager *man; in ttm_resource_init() local 189 man = ttm_manager_type(bo->bdev, place->mem_type); in ttm_resource_init() 194 list_add_tail(&res->lru, &man->lru[bo->priority]); in ttm_resource_init() 195 man->usage += res->num_pages << PAGE_SHIFT; in ttm_resource_init() [all …]
|
D | ttm_range_manager.c | 53 to_range_manager(struct ttm_resource_manager *man) in to_range_manager() argument 55 return container_of(man, struct ttm_range_manager, manager); in to_range_manager() 58 static int ttm_range_man_alloc(struct ttm_resource_manager *man, in ttm_range_man_alloc() argument 63 struct ttm_range_manager *rman = to_range_manager(man); in ttm_range_man_alloc() 72 lpfn = man->size; in ttm_range_man_alloc() 92 ttm_resource_fini(man, &node->base); in ttm_range_man_alloc() 102 static void ttm_range_man_free(struct ttm_resource_manager *man, in ttm_range_man_free() argument 106 struct ttm_range_manager *rman = to_range_manager(man); in ttm_range_man_free() 112 ttm_resource_fini(man, res); in ttm_range_man_free() 116 static bool ttm_range_man_intersects(struct ttm_resource_manager *man, in ttm_range_man_intersects() argument [all …]
|
D | ttm_sys_manager.c | 10 static int ttm_sys_man_alloc(struct ttm_resource_manager *man, in ttm_sys_man_alloc() argument 23 static void ttm_sys_man_free(struct ttm_resource_manager *man, in ttm_sys_man_free() argument 26 ttm_resource_fini(man, res); in ttm_sys_man_free() 37 struct ttm_resource_manager *man = &bdev->sysman; in ttm_sys_man_init() local 43 man->use_tt = true; in ttm_sys_man_init() 44 man->func = &ttm_sys_manager_func; in ttm_sys_man_init() 46 ttm_resource_manager_init(man, bdev, 0); in ttm_sys_man_init() 47 ttm_set_driver_manager(bdev, TTM_PL_SYSTEM, man); in ttm_sys_man_init() 48 ttm_resource_manager_set_used(man, true); in ttm_sys_man_init()
|
D | ttm_device.c | 146 struct ttm_resource_manager *man; in ttm_device_swapout() local 153 man = ttm_manager_type(bdev, i); in ttm_device_swapout() 154 if (!man || !man->use_tt) in ttm_device_swapout() 157 ttm_resource_manager_for_each_res(man, &cursor, res) { in ttm_device_swapout() 239 struct ttm_resource_manager *man; in ttm_device_fini() local 242 man = ttm_manager_type(bdev, TTM_PL_SYSTEM); in ttm_device_fini() 243 ttm_resource_manager_set_used(man, false); in ttm_device_fini() 257 if (list_empty(&man->lru[0])) in ttm_device_fini() 293 struct ttm_resource_manager *man; in ttm_device_clear_dma_mappings() local 299 man = ttm_manager_type(bdev, i); in ttm_device_clear_dma_mappings() [all …]
|
D | ttm_bo.c | 51 struct ttm_resource_manager *man; in ttm_bo_mem_space_debug() local 61 man = ttm_manager_type(bo->bdev, mem_type); in ttm_bo_mem_space_debug() 62 ttm_resource_manager_debug(man, &p); in ttm_bo_mem_space_debug() 614 struct ttm_resource_manager *man, in ttm_mem_evict_first() argument 626 ttm_resource_manager_for_each_res(man, &cursor, res) { in ttm_mem_evict_first() 719 struct ttm_resource_manager *man, in ttm_bo_add_move_fence() argument 726 spin_lock(&man->move_lock); in ttm_bo_add_move_fence() 727 fence = dma_fence_get(man->move); in ttm_bo_add_move_fence() 728 spin_unlock(&man->move_lock); in ttm_bo_add_move_fence() 756 struct ttm_resource_manager *man; in ttm_bo_mem_force_space() local [all …]
|
/linux-6.1.9/include/drm/ttm/ |
D | ttm_resource.h | 74 int (*alloc)(struct ttm_resource_manager *man, 88 void (*free)(struct ttm_resource_manager *man, 102 bool (*intersects)(struct ttm_resource_manager *man, 118 bool (*compatible)(struct ttm_resource_manager *man, 133 void (*debug)(struct ttm_resource_manager *man, 308 ttm_resource_manager_set_used(struct ttm_resource_manager *man, bool used) in ttm_resource_manager_set_used() argument 313 WARN_ON(!list_empty(&man->lru[i])); in ttm_resource_manager_set_used() 314 man->use_type = used; in ttm_resource_manager_set_used() 326 static inline bool ttm_resource_manager_used(struct ttm_resource_manager *man) in ttm_resource_manager_used() argument 328 return man->use_type; in ttm_resource_manager_used() [all …]
|
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_gtt_mgr.c | 30 to_gtt_mgr(struct ttm_resource_manager *man) in to_gtt_mgr() argument 32 return container_of(man, struct amdgpu_gtt_mgr, manager); in to_gtt_mgr() 49 struct ttm_resource_manager *man; in amdgpu_mem_info_gtt_total_show() local 51 man = ttm_manager_type(&adev->mman.bdev, TTM_PL_TT); in amdgpu_mem_info_gtt_total_show() 52 return sysfs_emit(buf, "%llu\n", man->size); in amdgpu_mem_info_gtt_total_show() 69 struct ttm_resource_manager *man = &adev->mman.gtt_mgr.manager; in amdgpu_mem_info_gtt_used_show() local 71 return sysfs_emit(buf, "%llu\n", ttm_resource_manager_usage(man)); in amdgpu_mem_info_gtt_used_show() 113 static int amdgpu_gtt_mgr_new(struct ttm_resource_manager *man, in amdgpu_gtt_mgr_new() argument 118 struct amdgpu_gtt_mgr *mgr = to_gtt_mgr(man); in amdgpu_gtt_mgr_new() 129 ttm_resource_manager_usage(man) > man->size) { in amdgpu_gtt_mgr_new() [all …]
|
D | amdgpu_preempt_mgr.c | 42 struct ttm_resource_manager *man = &adev->mman.preempt_mgr; in mem_info_preempt_used_show() local 44 return sysfs_emit(buf, "%llu\n", ttm_resource_manager_usage(man)); in mem_info_preempt_used_show() 59 static int amdgpu_preempt_mgr_new(struct ttm_resource_manager *man, in amdgpu_preempt_mgr_new() argument 81 static void amdgpu_preempt_mgr_del(struct ttm_resource_manager *man, in amdgpu_preempt_mgr_del() argument 84 ttm_resource_fini(man, res); in amdgpu_preempt_mgr_del() 102 struct ttm_resource_manager *man = &adev->mman.preempt_mgr; in amdgpu_preempt_mgr_init() local 105 man->use_tt = true; in amdgpu_preempt_mgr_init() 106 man->func = &amdgpu_preempt_mgr_func; in amdgpu_preempt_mgr_init() 108 ttm_resource_manager_init(man, &adev->mman.bdev, (1 << 30)); in amdgpu_preempt_mgr_init() 116 ttm_set_driver_manager(&adev->mman.bdev, AMDGPU_PL_PREEMPT, man); in amdgpu_preempt_mgr_init() [all …]
|
D | amdgpu_vram_mgr.c | 42 to_vram_mgr(struct ttm_resource_manager *man) in to_vram_mgr() argument 44 return container_of(man, struct amdgpu_vram_mgr, manager); in to_vram_mgr() 130 struct ttm_resource_manager *man = &adev->mman.vram_mgr.manager; in amdgpu_mem_info_vram_used_show() local 132 return sysfs_emit(buf, "%llu\n", ttm_resource_manager_usage(man)); in amdgpu_mem_info_vram_used_show() 269 static void amdgpu_vram_mgr_do_reserve(struct ttm_resource_manager *man) in amdgpu_vram_mgr_do_reserve() argument 271 struct amdgpu_vram_mgr *mgr = to_vram_mgr(man); in amdgpu_vram_mgr_do_reserve() 293 spin_lock(&man->bdev->lru_lock); in amdgpu_vram_mgr_do_reserve() 294 man->usage += rsv->size; in amdgpu_vram_mgr_do_reserve() 295 spin_unlock(&man->bdev->lru_lock); in amdgpu_vram_mgr_do_reserve() 383 static int amdgpu_vram_mgr_new(struct ttm_resource_manager *man, in amdgpu_vram_mgr_new() argument [all …]
|
/linux-6.1.9/drivers/gpu/drm/i915/ |
D | i915_ttm_buddy_manager.c | 29 to_buddy_manager(struct ttm_resource_manager *man) in to_buddy_manager() argument 31 return container_of(man, struct i915_ttm_buddy_manager, manager); in to_buddy_manager() 34 static int i915_ttm_buddy_man_alloc(struct ttm_resource_manager *man, in i915_ttm_buddy_man_alloc() argument 39 struct i915_ttm_buddy_manager *bman = to_buddy_manager(man); in i915_ttm_buddy_man_alloc() 49 lpfn = man->size; in i915_ttm_buddy_man_alloc() 62 if (place->fpfn || lpfn != man->size) in i915_ttm_buddy_man_alloc() 156 ttm_resource_fini(man, &bman_res->base); in i915_ttm_buddy_man_alloc() 161 static void i915_ttm_buddy_man_free(struct ttm_resource_manager *man, in i915_ttm_buddy_man_free() argument 165 struct i915_ttm_buddy_manager *bman = to_buddy_manager(man); in i915_ttm_buddy_man_free() 172 ttm_resource_fini(man, res); in i915_ttm_buddy_man_free() [all …]
|
D | intel_region_ttm.c | 111 struct ttm_resource_manager *man = mem->region_private; in intel_region_ttm_fini() local 120 if (man) in intel_region_ttm_fini() 121 ttm_resource_manager_cleanup(man); in intel_region_ttm_fini() 139 if (ret || !man) in intel_region_ttm_fini() 203 struct ttm_resource_manager *man = mem->region_private; in intel_region_ttm_resource_alloc() local 226 ret = man->func->alloc(man, &mock_bo, &place, &res); in intel_region_ttm_resource_alloc() 244 struct ttm_resource_manager *man = mem->region_private; in intel_region_ttm_resource_free() local 251 man->func->free(man, res); in intel_region_ttm_resource_free()
|
D | i915_ttm_buddy_manager.h | 59 int i915_ttm_buddy_man_reserve(struct ttm_resource_manager *man, 62 u64 i915_ttm_buddy_man_visible_size(struct ttm_resource_manager *man); 64 void i915_ttm_buddy_man_avail(struct ttm_resource_manager *man, 68 void i915_ttm_buddy_man_force_visible_size(struct ttm_resource_manager *man,
|
/linux-6.1.9/drivers/gpu/drm/nouveau/ |
D | nouveau_ttm.c | 39 nouveau_manager_del(struct ttm_resource_manager *man, in nouveau_manager_del() argument 42 nouveau_mem_del(man, reg); in nouveau_manager_del() 46 nouveau_manager_intersects(struct ttm_resource_manager *man, in nouveau_manager_intersects() argument 55 nouveau_manager_compatible(struct ttm_resource_manager *man, in nouveau_manager_compatible() argument 64 nouveau_vram_manager_new(struct ttm_resource_manager *man, in nouveau_vram_manager_new() argument 84 nouveau_mem_del(man, *res); in nouveau_vram_manager_new() 99 nouveau_gart_manager_new(struct ttm_resource_manager *man, in nouveau_gart_manager_new() argument 125 nv04_gart_manager_new(struct ttm_resource_manager *man, in nv04_gart_manager_new() argument 144 nouveau_mem_del(man, *res); in nv04_gart_manager_new() 184 struct ttm_resource_manager *man = kzalloc(sizeof(*man), GFP_KERNEL); in nouveau_ttm_init_vram() local [all …]
|
/linux-6.1.9/tools/kvm/kvm_stat/ |
D | Makefile | 5 MANDIR=usr/share/man 13 all: man 31 man: $(MAN1) target 33 install-man: man 41 install: install-tools install-man 42 .PHONY: all clean man install-tools install-man install
|
/linux-6.1.9/tools/perf/Documentation/ |
D | Makefile | 42 mandir?=$(prefix)/share/man 54 DOC_REF = origin/man 173 all: html man info 179 man: man1 man5 man7 target 186 install: install-man 188 check-man-tools: 193 do-install-man: man 194 $(call QUIET_INSTALL, Documentation-man) \ 202 install-man: check-man-tools man do-install-man 205 DO_INSTALL_MAN = $(warning Please install $(missing_tools) to have the man pages installed) [all …]
|
/linux-6.1.9/tools/bpf/bpftool/Documentation/ |
D | Makefile | 15 mandir ?= $(prefix)/man 23 man: man8 target 49 install: man 50 $(call QUIET_INSTALL, Documentation-man) 55 $(call QUIET_UNINST, Documentation-man) 59 .PHONY: man man8 clean install uninstall 60 .DEFAULT_GOAL := man
|
/linux-6.1.9/tools/lib/bpf/ |
D | usdt.c | 258 struct usdt_manager *man; in usdt_manager_new() local 268 man = calloc(1, sizeof(*man)); in usdt_manager_new() 269 if (!man) in usdt_manager_new() 272 man->specs_map = specs_map; in usdt_manager_new() 273 man->ip_to_spec_id_map = ip_to_spec_id_map; in usdt_manager_new() 279 man->has_bpf_cookie = kernel_supports(obj, FEAT_BPF_COOKIE); in usdt_manager_new() 285 man->has_sema_refcnt = faccessat(AT_FDCWD, ref_ctr_sysfs_path, F_OK, AT_EACCESS) == 0; in usdt_manager_new() 287 return man; in usdt_manager_new() 290 void usdt_manager_free(struct usdt_manager *man) in usdt_manager_free() argument 292 if (IS_ERR_OR_NULL(man)) in usdt_manager_free() [all …]
|
/linux-6.1.9/tools/power/acpi/tools/pfrut/ |
D | Makefile | 6 EXTRA_INSTALL = install-man 7 EXTRA_UNINSTALL = uninstall-man 18 install-man: $(srctree)/man/pfrut.8 21 uninstall-man:
|
/linux-6.1.9/Documentation/tools/rtla/ |
D | Makefile | 9 MANDIR ?= $(PREFIX)/man 34 $(error NOTICE: rst2man required to generate man pages) 39 man: man1 target 44 install: man 52 .PHONY: man man1 clean install uninstall 53 .DEFAULT_GOAL := man
|
/linux-6.1.9/sound/soc/intel/avs/ |
D | loader.c | 70 struct avs_fw_ext_manifest *man; in avs_fw_ext_manifest_strip() local 72 if (fw->size < sizeof(*man)) in avs_fw_ext_manifest_strip() 75 man = (struct avs_fw_ext_manifest *)fw->data; in avs_fw_ext_manifest_strip() 76 if (man->id == AVS_EXT_MANIFEST_MAGIC) { in avs_fw_ext_manifest_strip() 77 fw->data += man->len; in avs_fw_ext_manifest_strip() 78 fw->size -= man->len; in avs_fw_ext_manifest_strip() 102 struct avs_fw_manifest *man; in avs_fw_manifest_strip_verify() local 113 if (fw->size < offset + sizeof(*man)) in avs_fw_manifest_strip_verify() 118 man = (struct avs_fw_manifest *)(fw->data + offset); in avs_fw_manifest_strip_verify() 119 if (man->version.major != min->major || in avs_fw_manifest_strip_verify() [all …]
|
/linux-6.1.9/tools/power/acpi/tools/acpidump/ |
D | Makefile | 11 EXTRA_INSTALL = install-man 12 EXTRA_UNINSTALL = uninstall-man 48 install-man: $(srctree)/man/acpidump.8 51 uninstall-man:
|