man 877 drivers/atm/ambassador.c unsigned int man = -1; // hush gcc man 902 drivers/atm/ambassador.c man = 511; man 909 drivers/atm/ambassador.c man = rate; man 912 drivers/atm/ambassador.c while (!(man & (1<<31))) { man 914 drivers/atm/ambassador.c man = man<<1; man 920 drivers/atm/ambassador.c man = man<<1; man 921 drivers/atm/ambassador.c man &= 0xffffffffU; // a nop on 32-bit systems man 933 drivers/atm/ambassador.c man = man>>(32-9); man 938 drivers/atm/ambassador.c if (man & (~0U>>9)) { man 939 drivers/atm/ambassador.c man = (man>>(32-9)) + 1; man 940 drivers/atm/ambassador.c if (man == (1<<9)) { man 942 drivers/atm/ambassador.c man = 0; man 946 drivers/atm/ambassador.c man = (man>>(32-9)); man 952 drivers/atm/ambassador.c if (man & (1<<(32-9-1))) { man 953 drivers/atm/ambassador.c man = (man>>(32-9)) + 1; man 954 drivers/atm/ambassador.c if (man == (1<<9)) { man 956 drivers/atm/ambassador.c man = 0; man 960 drivers/atm/ambassador.c man = (man>>(32-9)); man 973 drivers/atm/ambassador.c man = 0; man 978 drivers/atm/ambassador.c PRINTD (DBG_QOS, "rate: man=%u, exp=%hu", man, exp); man 981 drivers/atm/ambassador.c *bits = /* (1<<14) | */ (exp<<9) | man; man 985 drivers/atm/ambassador.c ? (1 << exp) + (man << (exp-9)) man 986 drivers/atm/ambassador.c : (1 << exp) + ((man + (1<<(9-exp-1))) >> (9-exp)); man 440 drivers/atm/firestream.c unsigned int man = -1; /* hush gcc */ man 467 drivers/atm/firestream.c man = 511; man 474 drivers/atm/firestream.c man = rate; man 477 drivers/atm/firestream.c while (!(man & (1<<31))) { man 479 drivers/atm/firestream.c man = man<<1; man 486 drivers/atm/firestream.c man = man<<1; man 487 drivers/atm/firestream.c man &= 0xffffffffU; /* a nop on 32-bit systems */ man 500 drivers/atm/firestream.c man = man>>(32-9); man 505 drivers/atm/firestream.c if (man & (~0U>>9)) { man 506 drivers/atm/firestream.c man = (man>>(32-9)) + 1; man 507 drivers/atm/firestream.c if (man == (1<<9)) { man 509 drivers/atm/firestream.c man = 0; man 513 drivers/atm/firestream.c man = (man>>(32-9)); man 519 drivers/atm/firestream.c if (man & (1<<(32-9-1))) { man 520 drivers/atm/firestream.c man = (man>>(32-9)) + 1; man 521 drivers/atm/firestream.c if (man == (1<<9)) { man 523 drivers/atm/firestream.c man = 0; man 527 drivers/atm/firestream.c man = (man>>(32-9)); man 540 drivers/atm/firestream.c man = 0; man 544 drivers/atm/firestream.c fs_dprintk (FS_DEBUG_QOS, "rate: man=%u, exp=%hu", man, exp); man 547 drivers/atm/firestream.c *bits = /* (1<<14) | */ (exp<<9) | man; man 551 drivers/atm/firestream.c ? (1 << exp) + (man << (exp-9)) man 552 drivers/atm/firestream.c : (1 << exp) + ((man + (1<<(9-exp-1))) >> (9-exp)); man 656 drivers/atm/he.c unsigned rate_atmf, exp, man; man 714 drivers/atm/he.c man = (rate_atmf & 0x1f) << 4; man 721 drivers/atm/he.c rate_cps = (unsigned long long) (1UL << exp) * (man + 512) >> 9; man 562 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c return amdgpu_vram_mgr_usage(&adev->mman.bdev.man[TTM_PL_VRAM]); man 317 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c used_vram = amdgpu_vram_mgr_usage(&adev->mman.bdev.man[TTM_PL_VRAM]); man 364 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c amdgpu_vram_mgr_vis_usage(&adev->mman.bdev.man[TTM_PL_VRAM]); man 3475 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c amdgpu_gtt_mgr_recover(&adev->mman.bdev.man[TTM_PL_TT]); man 3664 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c &tmp_adev->mman.bdev.man[TTM_PL_TT]); man 53 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c (adev->mman.bdev.man[TTM_PL_TT].size) * PAGE_SIZE); man 71 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c amdgpu_gtt_mgr_usage(&adev->mman.bdev.man[TTM_PL_TT])); man 87 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c static int amdgpu_gtt_mgr_init(struct ttm_mem_type_manager *man, man 90 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c struct amdgpu_device *adev = amdgpu_ttm_adev(man->bdev); man 104 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c man->priv = mgr; man 128 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c static int amdgpu_gtt_mgr_fini(struct ttm_mem_type_manager *man) man 130 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c struct amdgpu_device *adev = amdgpu_ttm_adev(man->bdev); man 131 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c struct amdgpu_gtt_mgr *mgr = man->priv; man 136 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c man->priv = NULL; man 168 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c static int amdgpu_gtt_mgr_alloc(struct ttm_mem_type_manager *man, man 173 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c struct amdgpu_device *adev = amdgpu_ttm_adev(man->bdev); man 174 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c struct amdgpu_gtt_mgr *mgr = man->priv; man 219 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c static int amdgpu_gtt_mgr_new(struct ttm_mem_type_manager *man, man 224 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c struct amdgpu_gtt_mgr *mgr = man->priv; man 249 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c r = amdgpu_gtt_mgr_alloc(man, tbo, place, mem); man 277 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c static void amdgpu_gtt_mgr_del(struct ttm_mem_type_manager *man, man 280 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c struct amdgpu_gtt_mgr *mgr = man->priv; man 303 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c uint64_t amdgpu_gtt_mgr_usage(struct ttm_mem_type_manager *man) man 305 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c struct amdgpu_gtt_mgr *mgr = man->priv; man 306 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c s64 result = man->size - atomic64_read(&mgr->available); man 311 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c int amdgpu_gtt_mgr_recover(struct ttm_mem_type_manager *man) man 313 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c struct amdgpu_gtt_mgr *mgr = man->priv; man 338 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c static void amdgpu_gtt_mgr_debug(struct ttm_mem_type_manager *man, man 341 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c struct amdgpu_gtt_mgr *mgr = man->priv; man 348 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c man->size, (u64)atomic64_read(&mgr->available), man 349 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c amdgpu_gtt_mgr_usage(man) >> 20); man 563 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c ui64 = amdgpu_vram_mgr_usage(&adev->mman.bdev.man[TTM_PL_VRAM]); man 566 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c ui64 = amdgpu_vram_mgr_vis_usage(&adev->mman.bdev.man[TTM_PL_VRAM]); man 569 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c ui64 = amdgpu_gtt_mgr_usage(&adev->mman.bdev.man[TTM_PL_TT]); man 589 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c vram_gtt.gtt_size = adev->mman.bdev.man[TTM_PL_TT].size; man 603 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c amdgpu_vram_mgr_usage(&adev->mman.bdev.man[TTM_PL_VRAM]); man 611 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c amdgpu_vram_mgr_vis_usage(&adev->mman.bdev.man[TTM_PL_VRAM]); man 615 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c mem.gtt.total_heap_size = adev->mman.bdev.man[TTM_PL_TT].size; man 620 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c amdgpu_gtt_mgr_usage(&adev->mman.bdev.man[TTM_PL_TT]); man 441 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c struct ttm_mem_type_manager *man = NULL; man 448 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c man = &adev->mman.bdev.man[TTM_PL_TT]; man 450 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c if (size < (man->size << PAGE_SHIFT)) man 457 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c man = &adev->mman.bdev.man[TTM_PL_VRAM]; man 459 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c if (size < (man->size << PAGE_SHIFT)) man 471 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c man->size << PAGE_SHIFT); man 917 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c u64 domain_start = bo->tbo.bdev->man[mem_type].gpu_offset; man 86 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c struct ttm_mem_type_manager *man) man 95 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c man->flags = TTM_MEMTYPE_FLAG_MAPPABLE; man 96 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c man->available_caching = TTM_PL_MASK_CACHING; man 97 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c man->default_caching = TTM_PL_FLAG_CACHED; man 101 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c man->func = &amdgpu_gtt_mgr_func; man 102 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c man->gpu_offset = adev->gmc.gart_start; man 103 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c man->available_caching = TTM_PL_MASK_CACHING; man 104 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c man->default_caching = TTM_PL_FLAG_CACHED; man 105 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c man->flags = TTM_MEMTYPE_FLAG_MAPPABLE | TTM_MEMTYPE_FLAG_CMA; man 109 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c man->func = &amdgpu_vram_mgr_func; man 110 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c man->gpu_offset = adev->gmc.vram_start; man 111 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c man->flags = TTM_MEMTYPE_FLAG_FIXED | man 113 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c man->available_caching = TTM_PL_FLAG_UNCACHED | TTM_PL_FLAG_WC; man 114 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c man->default_caching = TTM_PL_FLAG_WC; man 120 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c man->func = &ttm_bo_manager_func; man 121 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c man->gpu_offset = 0; man 122 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c man->flags = TTM_MEMTYPE_FLAG_FIXED | TTM_MEMTYPE_FLAG_CMA; man 123 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c man->available_caching = TTM_PL_FLAG_UNCACHED; man 124 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c man->default_caching = TTM_PL_FLAG_UNCACHED; man 269 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c addr += bo->bdev->man[mem->mem_type].gpu_offset; man 707 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; man 716 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c if (!(man->flags & TTM_MEMTYPE_FLAG_MAPPABLE)) man 1145 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c bo->bdev->man[bo->mem.mem_type].gpu_offset; man 1851 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c struct ttm_mem_type_manager *man = &adev->mman.bdev.man[TTM_PL_VRAM]; man 1873 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c dma_fence_put(man->move); man 1874 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c man->move = NULL; man 1882 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c man->size = size >> PAGE_SHIFT; man 2137 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c struct ttm_mem_type_manager *man = &adev->mman.bdev.man[ttm_pl]; man 2140 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c man->func->debug(man, &p); man 73 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h uint64_t amdgpu_gtt_mgr_usage(struct ttm_mem_type_manager *man); man 74 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h int amdgpu_gtt_mgr_recover(struct ttm_mem_type_manager *man); man 77 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h uint64_t amdgpu_vram_mgr_usage(struct ttm_mem_type_manager *man); man 78 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h uint64_t amdgpu_vram_mgr_vis_usage(struct ttm_mem_type_manager *man); man 83 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c amdgpu_vram_mgr_usage(&adev->mman.bdev.man[TTM_PL_VRAM])); man 101 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c amdgpu_vram_mgr_vis_usage(&adev->mman.bdev.man[TTM_PL_VRAM])); man 121 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c static int amdgpu_vram_mgr_init(struct ttm_mem_type_manager *man, man 124 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c struct amdgpu_device *adev = amdgpu_ttm_adev(man->bdev); man 134 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c man->priv = mgr; man 169 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c static int amdgpu_vram_mgr_fini(struct ttm_mem_type_manager *man) man 171 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c struct amdgpu_device *adev = amdgpu_ttm_adev(man->bdev); man 172 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c struct amdgpu_vram_mgr *mgr = man->priv; man 178 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c man->priv = NULL; man 267 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c static int amdgpu_vram_mgr_new(struct ttm_mem_type_manager *man, man 272 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c struct amdgpu_device *adev = amdgpu_ttm_adev(man->bdev); man 273 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c struct amdgpu_vram_mgr *mgr = man->priv; man 284 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c lpfn = man->size; man 384 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c static void amdgpu_vram_mgr_del(struct ttm_mem_type_manager *man, man 387 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c struct amdgpu_device *adev = amdgpu_ttm_adev(man->bdev); man 388 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c struct amdgpu_vram_mgr *mgr = man->priv; man 420 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c uint64_t amdgpu_vram_mgr_usage(struct ttm_mem_type_manager *man) man 422 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c struct amdgpu_vram_mgr *mgr = man->priv; man 434 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c uint64_t amdgpu_vram_mgr_vis_usage(struct ttm_mem_type_manager *man) man 436 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c struct amdgpu_vram_mgr *mgr = man->priv; man 449 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c static void amdgpu_vram_mgr_debug(struct ttm_mem_type_manager *man, man 452 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c struct amdgpu_vram_mgr *mgr = man->priv; man 459 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c man->size, amdgpu_vram_mgr_usage(man) >> 20, man 460 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c amdgpu_vram_mgr_vis_usage(man) >> 20); man 60 drivers/gpu/drm/drm_vram_mm_helper.c struct ttm_mem_type_manager *man) man 64 drivers/gpu/drm/drm_vram_mm_helper.c man->flags = TTM_MEMTYPE_FLAG_MAPPABLE; man 65 drivers/gpu/drm/drm_vram_mm_helper.c man->available_caching = TTM_PL_MASK_CACHING; man 66 drivers/gpu/drm/drm_vram_mm_helper.c man->default_caching = TTM_PL_FLAG_CACHED; man 69 drivers/gpu/drm/drm_vram_mm_helper.c man->func = &ttm_bo_manager_func; man 70 drivers/gpu/drm/drm_vram_mm_helper.c man->flags = TTM_MEMTYPE_FLAG_FIXED | man 72 drivers/gpu/drm/drm_vram_mm_helper.c man->available_caching = TTM_PL_FLAG_UNCACHED | man 74 drivers/gpu/drm/drm_vram_mm_helper.c man->default_caching = TTM_PL_FLAG_WC; man 104 drivers/gpu/drm/drm_vram_mm_helper.c struct ttm_mem_type_manager *man = bdev->man + mem->mem_type; man 107 drivers/gpu/drm/drm_vram_mm_helper.c if (!(man->flags & TTM_MEMTYPE_FLAG_MAPPABLE)) man 126 drivers/gpu/drm/nouveau/dispnv50/wndwc57e.c int sign = 0, exp = 0, man = 0; man 130 drivers/gpu/drm/nouveau/dispnv50/wndwc57e.c man = ((fixed << 1) & 0xffc0) >> 6; man 133 drivers/gpu/drm/nouveau/dispnv50/wndwc57e.c return (sign << 15) | (exp << 10) | man; man 658 drivers/gpu/drm/nouveau/nouveau_bo.c struct ttm_mem_type_manager *man) man 665 drivers/gpu/drm/nouveau/nouveau_bo.c man->flags = TTM_MEMTYPE_FLAG_MAPPABLE; man 666 drivers/gpu/drm/nouveau/nouveau_bo.c man->available_caching = TTM_PL_MASK_CACHING; man 667 drivers/gpu/drm/nouveau/nouveau_bo.c man->default_caching = TTM_PL_FLAG_CACHED; man 670 drivers/gpu/drm/nouveau/nouveau_bo.c man->flags = TTM_MEMTYPE_FLAG_FIXED | man 672 drivers/gpu/drm/nouveau/nouveau_bo.c man->available_caching = TTM_PL_FLAG_UNCACHED | man 674 drivers/gpu/drm/nouveau/nouveau_bo.c man->default_caching = TTM_PL_FLAG_WC; man 680 drivers/gpu/drm/nouveau/nouveau_bo.c man->available_caching = TTM_PL_FLAG_UNCACHED; man 681 drivers/gpu/drm/nouveau/nouveau_bo.c man->default_caching = TTM_PL_FLAG_UNCACHED; man 684 drivers/gpu/drm/nouveau/nouveau_bo.c man->func = &nouveau_vram_manager; man 685 drivers/gpu/drm/nouveau/nouveau_bo.c man->io_reserve_fastpath = false; man 686 drivers/gpu/drm/nouveau/nouveau_bo.c man->use_io_reserve_lru = true; man 688 drivers/gpu/drm/nouveau/nouveau_bo.c man->func = &ttm_bo_manager_func; man 693 drivers/gpu/drm/nouveau/nouveau_bo.c man->func = &nouveau_gart_manager; man 696 drivers/gpu/drm/nouveau/nouveau_bo.c man->func = &nv04_gart_manager; man 698 drivers/gpu/drm/nouveau/nouveau_bo.c man->func = &ttm_bo_manager_func; man 701 drivers/gpu/drm/nouveau/nouveau_bo.c man->flags = TTM_MEMTYPE_FLAG_MAPPABLE; man 702 drivers/gpu/drm/nouveau/nouveau_bo.c man->available_caching = TTM_PL_FLAG_UNCACHED | man 704 drivers/gpu/drm/nouveau/nouveau_bo.c man->default_caching = TTM_PL_FLAG_WC; man 706 drivers/gpu/drm/nouveau/nouveau_bo.c man->flags = TTM_MEMTYPE_FLAG_MAPPABLE | man 708 drivers/gpu/drm/nouveau/nouveau_bo.c man->available_caching = TTM_PL_MASK_CACHING; man 709 drivers/gpu/drm/nouveau/nouveau_bo.c man->default_caching = TTM_PL_FLAG_CACHED; man 1440 drivers/gpu/drm/nouveau/nouveau_bo.c struct ttm_mem_type_manager *man = &bdev->man[reg->mem_type]; man 1450 drivers/gpu/drm/nouveau/nouveau_bo.c if (!(man->flags & TTM_MEMTYPE_FLAG_MAPPABLE)) man 35 drivers/gpu/drm/nouveau/nouveau_ttm.c nouveau_manager_init(struct ttm_mem_type_manager *man, unsigned long psize) man 41 drivers/gpu/drm/nouveau/nouveau_ttm.c nouveau_manager_fini(struct ttm_mem_type_manager *man) man 47 drivers/gpu/drm/nouveau/nouveau_ttm.c nouveau_manager_del(struct ttm_mem_type_manager *man, struct ttm_mem_reg *reg) man 53 drivers/gpu/drm/nouveau/nouveau_ttm.c nouveau_manager_debug(struct ttm_mem_type_manager *man, man 59 drivers/gpu/drm/nouveau/nouveau_ttm.c nouveau_vram_manager_new(struct ttm_mem_type_manager *man, man 97 drivers/gpu/drm/nouveau/nouveau_ttm.c nouveau_gart_manager_new(struct ttm_mem_type_manager *man, man 123 drivers/gpu/drm/nouveau/nouveau_ttm.c nv04_gart_manager_new(struct ttm_mem_type_manager *man, man 151 drivers/gpu/drm/qxl/qxl_object.c struct ttm_mem_type_manager *man = &bo->tbo.bdev->man[bo->tbo.mem.mem_type]; man 163 drivers/gpu/drm/qxl/qxl_object.c (void) ttm_mem_io_lock(man, false); man 165 drivers/gpu/drm/qxl/qxl_object.c ttm_mem_io_unlock(man); man 196 drivers/gpu/drm/qxl/qxl_object.c struct ttm_mem_type_manager *man = &bo->tbo.bdev->man[bo->tbo.mem.mem_type]; man 204 drivers/gpu/drm/qxl/qxl_object.c (void) ttm_mem_io_lock(man, false); man 206 drivers/gpu/drm/qxl/qxl_object.c ttm_mem_io_unlock(man); man 98 drivers/gpu/drm/qxl/qxl_ttm.c struct ttm_mem_type_manager *man) man 108 drivers/gpu/drm/qxl/qxl_ttm.c man->flags = TTM_MEMTYPE_FLAG_MAPPABLE; man 109 drivers/gpu/drm/qxl/qxl_ttm.c man->available_caching = TTM_PL_MASK_CACHING; man 110 drivers/gpu/drm/qxl/qxl_ttm.c man->default_caching = TTM_PL_FLAG_CACHED; man 118 drivers/gpu/drm/qxl/qxl_ttm.c man->func = &ttm_bo_manager_func; man 119 drivers/gpu/drm/qxl/qxl_ttm.c man->gpu_offset = slot->gpu_offset; man 120 drivers/gpu/drm/qxl/qxl_ttm.c man->flags = TTM_MEMTYPE_FLAG_FIXED | man 122 drivers/gpu/drm/qxl/qxl_ttm.c man->available_caching = TTM_PL_MASK_CACHING; man 123 drivers/gpu/drm/qxl/qxl_ttm.c man->default_caching = TTM_PL_FLAG_CACHED; man 165 drivers/gpu/drm/qxl/qxl_ttm.c struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; man 173 drivers/gpu/drm/qxl/qxl_ttm.c if (!(man->flags & TTM_MEMTYPE_FLAG_MAPPABLE)) man 399 drivers/gpu/drm/qxl/qxl_ttm.c qxl_mem_types_list[i].data = qdev->mman.bdev.man[TTM_PL_VRAM].priv; man 401 drivers/gpu/drm/qxl/qxl_ttm.c qxl_mem_types_list[i].data = qdev->mman.bdev.man[TTM_PL_PRIV].priv; man 226 drivers/gpu/drm/radeon/radeon_gem.c struct ttm_mem_type_manager *man; man 228 drivers/gpu/drm/radeon/radeon_gem.c man = &rdev->mman.bdev.man[TTM_PL_VRAM]; man 230 drivers/gpu/drm/radeon/radeon_gem.c args->vram_size = (u64)man->size << PAGE_SHIFT; man 75 drivers/gpu/drm/radeon/radeon_ttm.c struct ttm_mem_type_manager *man) man 84 drivers/gpu/drm/radeon/radeon_ttm.c man->flags = TTM_MEMTYPE_FLAG_MAPPABLE; man 85 drivers/gpu/drm/radeon/radeon_ttm.c man->available_caching = TTM_PL_MASK_CACHING; man 86 drivers/gpu/drm/radeon/radeon_ttm.c man->default_caching = TTM_PL_FLAG_CACHED; man 89 drivers/gpu/drm/radeon/radeon_ttm.c man->func = &ttm_bo_manager_func; man 90 drivers/gpu/drm/radeon/radeon_ttm.c man->gpu_offset = rdev->mc.gtt_start; man 91 drivers/gpu/drm/radeon/radeon_ttm.c man->available_caching = TTM_PL_MASK_CACHING; man 92 drivers/gpu/drm/radeon/radeon_ttm.c man->default_caching = TTM_PL_FLAG_CACHED; man 93 drivers/gpu/drm/radeon/radeon_ttm.c man->flags = TTM_MEMTYPE_FLAG_MAPPABLE | TTM_MEMTYPE_FLAG_CMA; man 102 drivers/gpu/drm/radeon/radeon_ttm.c man->flags = TTM_MEMTYPE_FLAG_MAPPABLE; man 103 drivers/gpu/drm/radeon/radeon_ttm.c man->available_caching = TTM_PL_FLAG_UNCACHED | man 105 drivers/gpu/drm/radeon/radeon_ttm.c man->default_caching = TTM_PL_FLAG_WC; man 111 drivers/gpu/drm/radeon/radeon_ttm.c man->func = &ttm_bo_manager_func; man 112 drivers/gpu/drm/radeon/radeon_ttm.c man->gpu_offset = rdev->mc.vram_start; man 113 drivers/gpu/drm/radeon/radeon_ttm.c man->flags = TTM_MEMTYPE_FLAG_FIXED | man 115 drivers/gpu/drm/radeon/radeon_ttm.c man->available_caching = TTM_PL_FLAG_UNCACHED | TTM_PL_FLAG_WC; man 116 drivers/gpu/drm/radeon/radeon_ttm.c man->default_caching = TTM_PL_FLAG_WC; man 404 drivers/gpu/drm/radeon/radeon_ttm.c struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; man 412 drivers/gpu/drm/radeon/radeon_ttm.c if (!(man->flags & TTM_MEMTYPE_FLAG_MAPPABLE)) man 873 drivers/gpu/drm/radeon/radeon_ttm.c struct ttm_mem_type_manager *man; man 878 drivers/gpu/drm/radeon/radeon_ttm.c man = &rdev->mman.bdev.man[TTM_PL_VRAM]; man 880 drivers/gpu/drm/radeon/radeon_ttm.c man->size = size >> PAGE_SHIFT; man 933 drivers/gpu/drm/radeon/radeon_ttm.c struct ttm_mem_type_manager *man = &rdev->mman.bdev.man[ttm_pl]; man 936 drivers/gpu/drm/radeon/radeon_ttm.c man->func->debug(man, &p); man 82 drivers/gpu/drm/ttm/ttm_bo.c struct ttm_mem_type_manager *man = &bdev->man[mem_type]; man 84 drivers/gpu/drm/ttm/ttm_bo.c drm_printf(p, " has_type: %d\n", man->has_type); man 85 drivers/gpu/drm/ttm/ttm_bo.c drm_printf(p, " use_type: %d\n", man->use_type); man 86 drivers/gpu/drm/ttm/ttm_bo.c drm_printf(p, " flags: 0x%08X\n", man->flags); man 87 drivers/gpu/drm/ttm/ttm_bo.c drm_printf(p, " gpu_offset: 0x%08llX\n", man->gpu_offset); man 88 drivers/gpu/drm/ttm/ttm_bo.c drm_printf(p, " size: %llu\n", man->size); man 89 drivers/gpu/drm/ttm/ttm_bo.c drm_printf(p, " available_caching: 0x%08X\n", man->available_caching); man 90 drivers/gpu/drm/ttm/ttm_bo.c drm_printf(p, " default_caching: 0x%08X\n", man->default_caching); man 92 drivers/gpu/drm/ttm/ttm_bo.c (*man->func->debug)(man, p); man 174 drivers/gpu/drm/ttm/ttm_bo.c struct ttm_mem_type_manager *man; man 184 drivers/gpu/drm/ttm/ttm_bo.c man = &bdev->man[mem->mem_type]; man 185 drivers/gpu/drm/ttm/ttm_bo.c list_add_tail(&bo->lru, &man->lru[bo->priority]); man 188 drivers/gpu/drm/ttm/ttm_bo.c if (!(man->flags & TTM_MEMTYPE_FLAG_FIXED) && bo->ttm && man 276 drivers/gpu/drm/ttm/ttm_bo.c struct ttm_mem_type_manager *man; man 284 drivers/gpu/drm/ttm/ttm_bo.c man = &pos->first->bdev->man[TTM_PL_TT]; man 285 drivers/gpu/drm/ttm/ttm_bo.c list_bulk_move_tail(&man->lru[i], &pos->first->lru, man 291 drivers/gpu/drm/ttm/ttm_bo.c struct ttm_mem_type_manager *man; man 299 drivers/gpu/drm/ttm/ttm_bo.c man = &pos->first->bdev->man[TTM_PL_VRAM]; man 300 drivers/gpu/drm/ttm/ttm_bo.c list_bulk_move_tail(&man->lru[i], &pos->first->lru, man 327 drivers/gpu/drm/ttm/ttm_bo.c struct ttm_mem_type_manager *old_man = &bdev->man[bo->mem.mem_type]; man 328 drivers/gpu/drm/ttm/ttm_bo.c struct ttm_mem_type_manager *new_man = &bdev->man[mem->mem_type]; man 404 drivers/gpu/drm/ttm/ttm_bo.c bdev->man[bo->mem.mem_type].gpu_offset; man 412 drivers/gpu/drm/ttm/ttm_bo.c new_man = &bdev->man[bo->mem.mem_type]; man 676 drivers/gpu/drm/ttm/ttm_bo.c struct ttm_mem_type_manager *man = &bdev->man[bo->mem.mem_type]; man 682 drivers/gpu/drm/ttm/ttm_bo.c ttm_mem_io_lock(man, false); man 684 drivers/gpu/drm/ttm/ttm_bo.c ttm_mem_io_unlock(man); man 848 drivers/gpu/drm/ttm/ttm_bo.c struct ttm_mem_type_manager *man = &bdev->man[mem_type]; man 855 drivers/gpu/drm/ttm/ttm_bo.c list_for_each_entry(bo, &man->lru[i], lru) { man 876 drivers/gpu/drm/ttm/ttm_bo.c if (&bo->lru != &man->lru[i]) man 919 drivers/gpu/drm/ttm/ttm_bo.c struct ttm_mem_type_manager *man = &bo->bdev->man[mem->mem_type]; man 922 drivers/gpu/drm/ttm/ttm_bo.c (*man->func->put_node)(man, mem); man 930 drivers/gpu/drm/ttm/ttm_bo.c struct ttm_mem_type_manager *man, man 937 drivers/gpu/drm/ttm/ttm_bo.c spin_lock(&man->move_lock); man 938 drivers/gpu/drm/ttm/ttm_bo.c fence = dma_fence_get(man->move); man 939 drivers/gpu/drm/ttm/ttm_bo.c spin_unlock(&man->move_lock); man 970 drivers/gpu/drm/ttm/ttm_bo.c struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; man 976 drivers/gpu/drm/ttm/ttm_bo.c ret = (*man->func->get_node)(man, bo, place, mem); man 987 drivers/gpu/drm/ttm/ttm_bo.c return ttm_bo_add_move_fence(bo, man, mem, ctx->no_wait_gpu); man 990 drivers/gpu/drm/ttm/ttm_bo.c static uint32_t ttm_bo_select_caching(struct ttm_mem_type_manager *man, man 1003 drivers/gpu/drm/ttm/ttm_bo.c else if ((man->default_caching & caching) != 0) man 1004 drivers/gpu/drm/ttm/ttm_bo.c result |= man->default_caching; man 1015 drivers/gpu/drm/ttm/ttm_bo.c static bool ttm_bo_mt_compatible(struct ttm_mem_type_manager *man, man 1025 drivers/gpu/drm/ttm/ttm_bo.c if ((place->flags & man->available_caching) == 0) man 1028 drivers/gpu/drm/ttm/ttm_bo.c cur_flags |= (place->flags & man->available_caching); man 1052 drivers/gpu/drm/ttm/ttm_bo.c struct ttm_mem_type_manager *man; man 1060 drivers/gpu/drm/ttm/ttm_bo.c man = &bdev->man[mem_type]; man 1061 drivers/gpu/drm/ttm/ttm_bo.c if (!man->has_type || !man->use_type) man 1064 drivers/gpu/drm/ttm/ttm_bo.c if (!ttm_bo_mt_compatible(man, mem_type, place, &cur_flags)) man 1067 drivers/gpu/drm/ttm/ttm_bo.c cur_flags = ttm_bo_select_caching(man, bo->mem.placement, cur_flags); man 1111 drivers/gpu/drm/ttm/ttm_bo.c struct ttm_mem_type_manager *man; man 1124 drivers/gpu/drm/ttm/ttm_bo.c man = &bdev->man[mem->mem_type]; man 1125 drivers/gpu/drm/ttm/ttm_bo.c ret = (*man->func->get_node)(man, bo, place, mem); man 1132 drivers/gpu/drm/ttm/ttm_bo.c ret = ttm_bo_add_move_fence(bo, man, mem, ctx->no_wait_gpu); man 1134 drivers/gpu/drm/ttm/ttm_bo.c (*man->func->put_node)(man, mem); man 1493 drivers/gpu/drm/ttm/ttm_bo.c struct ttm_mem_type_manager *man = &bdev->man[mem_type]; man 1505 drivers/gpu/drm/ttm/ttm_bo.c while (!list_empty(&man->lru[i])) { man 1516 drivers/gpu/drm/ttm/ttm_bo.c spin_lock(&man->move_lock); man 1517 drivers/gpu/drm/ttm/ttm_bo.c fence = dma_fence_get(man->move); man 1518 drivers/gpu/drm/ttm/ttm_bo.c spin_unlock(&man->move_lock); man 1532 drivers/gpu/drm/ttm/ttm_bo.c struct ttm_mem_type_manager *man; man 1539 drivers/gpu/drm/ttm/ttm_bo.c man = &bdev->man[mem_type]; man 1541 drivers/gpu/drm/ttm/ttm_bo.c if (!man->has_type) { man 1547 drivers/gpu/drm/ttm/ttm_bo.c man->use_type = false; man 1548 drivers/gpu/drm/ttm/ttm_bo.c man->has_type = false; man 1558 drivers/gpu/drm/ttm/ttm_bo.c ret = (*man->func->takedown)(man); man 1561 drivers/gpu/drm/ttm/ttm_bo.c dma_fence_put(man->move); man 1562 drivers/gpu/drm/ttm/ttm_bo.c man->move = NULL; man 1570 drivers/gpu/drm/ttm/ttm_bo.c struct ttm_mem_type_manager *man = &bdev->man[mem_type]; man 1577 drivers/gpu/drm/ttm/ttm_bo.c if (!man->has_type) { man 1590 drivers/gpu/drm/ttm/ttm_bo.c struct ttm_mem_type_manager *man; man 1594 drivers/gpu/drm/ttm/ttm_bo.c man = &bdev->man[type]; man 1595 drivers/gpu/drm/ttm/ttm_bo.c BUG_ON(man->has_type); man 1596 drivers/gpu/drm/ttm/ttm_bo.c man->io_reserve_fastpath = true; man 1597 drivers/gpu/drm/ttm/ttm_bo.c man->use_io_reserve_lru = false; man 1598 drivers/gpu/drm/ttm/ttm_bo.c mutex_init(&man->io_reserve_mutex); man 1599 drivers/gpu/drm/ttm/ttm_bo.c spin_lock_init(&man->move_lock); man 1600 drivers/gpu/drm/ttm/ttm_bo.c INIT_LIST_HEAD(&man->io_reserve_lru); man 1602 drivers/gpu/drm/ttm/ttm_bo.c ret = bdev->driver->init_mem_type(bdev, type, man); man 1605 drivers/gpu/drm/ttm/ttm_bo.c man->bdev = bdev; man 1608 drivers/gpu/drm/ttm/ttm_bo.c ret = (*man->func->init)(man, p_size); man 1612 drivers/gpu/drm/ttm/ttm_bo.c man->has_type = true; man 1613 drivers/gpu/drm/ttm/ttm_bo.c man->use_type = true; man 1614 drivers/gpu/drm/ttm/ttm_bo.c man->size = p_size; man 1617 drivers/gpu/drm/ttm/ttm_bo.c INIT_LIST_HEAD(&man->lru[i]); man 1618 drivers/gpu/drm/ttm/ttm_bo.c man->move = NULL; man 1690 drivers/gpu/drm/ttm/ttm_bo.c struct ttm_mem_type_manager *man; man 1694 drivers/gpu/drm/ttm/ttm_bo.c man = &bdev->man[i]; man 1695 drivers/gpu/drm/ttm/ttm_bo.c if (man->has_type) { man 1696 drivers/gpu/drm/ttm/ttm_bo.c man->use_type = false; man 1702 drivers/gpu/drm/ttm/ttm_bo.c man->has_type = false; man 1717 drivers/gpu/drm/ttm/ttm_bo.c if (list_empty(&bdev->man[0].lru[0])) man 1744 drivers/gpu/drm/ttm/ttm_bo.c memset(bdev->man, 0, sizeof(bdev->man)); man 1779 drivers/gpu/drm/ttm/ttm_bo.c struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; man 1781 drivers/gpu/drm/ttm/ttm_bo.c if (!(man->flags & TTM_MEMTYPE_FLAG_FIXED)) { man 1785 drivers/gpu/drm/ttm/ttm_bo.c if (man->flags & TTM_MEMTYPE_FLAG_CMA) man 1805 drivers/gpu/drm/ttm/ttm_bo.c struct ttm_mem_type_manager *man = &bdev->man[bo->mem.mem_type]; man 1807 drivers/gpu/drm/ttm/ttm_bo.c ttm_mem_io_lock(man, false); man 1809 drivers/gpu/drm/ttm/ttm_bo.c ttm_mem_io_unlock(man); man 51 drivers/gpu/drm/ttm/ttm_bo_manager.c static int ttm_bo_man_get_node(struct ttm_mem_type_manager *man, man 56 drivers/gpu/drm/ttm/ttm_bo_manager.c struct ttm_range_manager *rman = (struct ttm_range_manager *) man->priv; man 65 drivers/gpu/drm/ttm/ttm_bo_manager.c lpfn = man->size; man 92 drivers/gpu/drm/ttm/ttm_bo_manager.c static void ttm_bo_man_put_node(struct ttm_mem_type_manager *man, man 95 drivers/gpu/drm/ttm/ttm_bo_manager.c struct ttm_range_manager *rman = (struct ttm_range_manager *) man->priv; man 107 drivers/gpu/drm/ttm/ttm_bo_manager.c static int ttm_bo_man_init(struct ttm_mem_type_manager *man, man 118 drivers/gpu/drm/ttm/ttm_bo_manager.c man->priv = rman; man 122 drivers/gpu/drm/ttm/ttm_bo_manager.c static int ttm_bo_man_takedown(struct ttm_mem_type_manager *man) man 124 drivers/gpu/drm/ttm/ttm_bo_manager.c struct ttm_range_manager *rman = (struct ttm_range_manager *) man->priv; man 132 drivers/gpu/drm/ttm/ttm_bo_manager.c man->priv = NULL; man 139 drivers/gpu/drm/ttm/ttm_bo_manager.c static void ttm_bo_man_debug(struct ttm_mem_type_manager *man, man 142 drivers/gpu/drm/ttm/ttm_bo_manager.c struct ttm_range_manager *rman = (struct ttm_range_manager *) man->priv; man 94 drivers/gpu/drm/ttm/ttm_bo_util.c int ttm_mem_io_lock(struct ttm_mem_type_manager *man, bool interruptible) man 96 drivers/gpu/drm/ttm/ttm_bo_util.c if (likely(man->io_reserve_fastpath)) man 100 drivers/gpu/drm/ttm/ttm_bo_util.c return mutex_lock_interruptible(&man->io_reserve_mutex); man 102 drivers/gpu/drm/ttm/ttm_bo_util.c mutex_lock(&man->io_reserve_mutex); man 107 drivers/gpu/drm/ttm/ttm_bo_util.c void ttm_mem_io_unlock(struct ttm_mem_type_manager *man) man 109 drivers/gpu/drm/ttm/ttm_bo_util.c if (likely(man->io_reserve_fastpath)) man 112 drivers/gpu/drm/ttm/ttm_bo_util.c mutex_unlock(&man->io_reserve_mutex); man 116 drivers/gpu/drm/ttm/ttm_bo_util.c static int ttm_mem_io_evict(struct ttm_mem_type_manager *man) man 120 drivers/gpu/drm/ttm/ttm_bo_util.c if (!man->use_io_reserve_lru || list_empty(&man->io_reserve_lru)) man 123 drivers/gpu/drm/ttm/ttm_bo_util.c bo = list_first_entry(&man->io_reserve_lru, man 136 drivers/gpu/drm/ttm/ttm_bo_util.c struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; man 141 drivers/gpu/drm/ttm/ttm_bo_util.c if (likely(man->io_reserve_fastpath)) man 149 drivers/gpu/drm/ttm/ttm_bo_util.c ret = ttm_mem_io_evict(man); man 161 drivers/gpu/drm/ttm/ttm_bo_util.c struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; man 163 drivers/gpu/drm/ttm/ttm_bo_util.c if (likely(man->io_reserve_fastpath)) man 180 drivers/gpu/drm/ttm/ttm_bo_util.c struct ttm_mem_type_manager *man = man 181 drivers/gpu/drm/ttm/ttm_bo_util.c &bo->bdev->man[mem->mem_type]; man 187 drivers/gpu/drm/ttm/ttm_bo_util.c if (man->use_io_reserve_lru) man 189 drivers/gpu/drm/ttm/ttm_bo_util.c &man->io_reserve_lru); man 208 drivers/gpu/drm/ttm/ttm_bo_util.c struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; man 213 drivers/gpu/drm/ttm/ttm_bo_util.c (void) ttm_mem_io_lock(man, false); man 215 drivers/gpu/drm/ttm/ttm_bo_util.c ttm_mem_io_unlock(man); man 227 drivers/gpu/drm/ttm/ttm_bo_util.c (void) ttm_mem_io_lock(man, false); man 229 drivers/gpu/drm/ttm/ttm_bo_util.c ttm_mem_io_unlock(man); man 240 drivers/gpu/drm/ttm/ttm_bo_util.c struct ttm_mem_type_manager *man; man 242 drivers/gpu/drm/ttm/ttm_bo_util.c man = &bdev->man[mem->mem_type]; man 246 drivers/gpu/drm/ttm/ttm_bo_util.c (void) ttm_mem_io_lock(man, false); man 248 drivers/gpu/drm/ttm/ttm_bo_util.c ttm_mem_io_unlock(man); man 361 drivers/gpu/drm/ttm/ttm_bo_util.c struct ttm_mem_type_manager *man = &bdev->man[new_mem->mem_type]; man 442 drivers/gpu/drm/ttm/ttm_bo_util.c if (man->flags & TTM_MEMTYPE_FLAG_FIXED) { man 623 drivers/gpu/drm/ttm/ttm_bo_util.c struct ttm_mem_type_manager *man = man 624 drivers/gpu/drm/ttm/ttm_bo_util.c &bo->bdev->man[bo->mem.mem_type]; man 635 drivers/gpu/drm/ttm/ttm_bo_util.c (void) ttm_mem_io_lock(man, false); man 637 drivers/gpu/drm/ttm/ttm_bo_util.c ttm_mem_io_unlock(man); man 653 drivers/gpu/drm/ttm/ttm_bo_util.c struct ttm_mem_type_manager *man = man 654 drivers/gpu/drm/ttm/ttm_bo_util.c &bo->bdev->man[bo->mem.mem_type]; man 673 drivers/gpu/drm/ttm/ttm_bo_util.c (void) ttm_mem_io_lock(man, false); man 675 drivers/gpu/drm/ttm/ttm_bo_util.c ttm_mem_io_unlock(man); man 687 drivers/gpu/drm/ttm/ttm_bo_util.c struct ttm_mem_type_manager *man = &bdev->man[new_mem->mem_type]; man 698 drivers/gpu/drm/ttm/ttm_bo_util.c if (man->flags & TTM_MEMTYPE_FLAG_FIXED) { man 727 drivers/gpu/drm/ttm/ttm_bo_util.c if (!(man->flags & TTM_MEMTYPE_FLAG_FIXED)) man 750 drivers/gpu/drm/ttm/ttm_bo_util.c struct ttm_mem_type_manager *from = &bdev->man[old_mem->mem_type]; man 751 drivers/gpu/drm/ttm/ttm_bo_util.c struct ttm_mem_type_manager *to = &bdev->man[new_mem->mem_type]; man 124 drivers/gpu/drm/ttm/ttm_bo_vm.c struct ttm_mem_type_manager *man = man 125 drivers/gpu/drm/ttm/ttm_bo_vm.c &bdev->man[bo->mem.mem_type]; man 202 drivers/gpu/drm/ttm/ttm_bo_vm.c err = ttm_mem_io_lock(man, true); man 295 drivers/gpu/drm/ttm/ttm_bo_vm.c ttm_mem_io_unlock(man); man 76 drivers/gpu/drm/virtio/virtgpu_ttm.c static int ttm_bo_man_get_node(struct ttm_mem_type_manager *man, man 85 drivers/gpu/drm/virtio/virtgpu_ttm.c static void ttm_bo_man_put_node(struct ttm_mem_type_manager *man, man 91 drivers/gpu/drm/virtio/virtgpu_ttm.c static int ttm_bo_man_init(struct ttm_mem_type_manager *man, man 97 drivers/gpu/drm/virtio/virtgpu_ttm.c static int ttm_bo_man_takedown(struct ttm_mem_type_manager *man) man 102 drivers/gpu/drm/virtio/virtgpu_ttm.c static void ttm_bo_man_debug(struct ttm_mem_type_manager *man, man 116 drivers/gpu/drm/virtio/virtgpu_ttm.c struct ttm_mem_type_manager *man) man 121 drivers/gpu/drm/virtio/virtgpu_ttm.c man->flags = TTM_MEMTYPE_FLAG_MAPPABLE; man 122 drivers/gpu/drm/virtio/virtgpu_ttm.c man->available_caching = TTM_PL_MASK_CACHING; man 123 drivers/gpu/drm/virtio/virtgpu_ttm.c man->default_caching = TTM_PL_FLAG_CACHED; man 126 drivers/gpu/drm/virtio/virtgpu_ttm.c man->func = &virtio_gpu_bo_manager_func; man 127 drivers/gpu/drm/virtio/virtgpu_ttm.c man->flags = TTM_MEMTYPE_FLAG_MAPPABLE; man 128 drivers/gpu/drm/virtio/virtgpu_ttm.c man->available_caching = TTM_PL_MASK_CACHING; man 129 drivers/gpu/drm/virtio/virtgpu_ttm.c man->default_caching = TTM_PL_FLAG_CACHED; man 162 drivers/gpu/drm/virtio/virtgpu_ttm.c struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; man 169 drivers/gpu/drm/virtio/virtgpu_ttm.c if (!(man->flags & TTM_MEMTYPE_FLAG_MAPPABLE)) man 154 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c struct vmw_cmdbuf_man *man; man 196 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c static int vmw_cmdbuf_startstop(struct vmw_cmdbuf_man *man, u32 context, man 198 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c static int vmw_cmdbuf_preempt(struct vmw_cmdbuf_man *man, u32 context); man 206 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c static int vmw_cmdbuf_cur_lock(struct vmw_cmdbuf_man *man, bool interruptible) man 209 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c if (mutex_lock_interruptible(&man->cur_mutex)) man 212 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c mutex_lock(&man->cur_mutex); man 223 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c static void vmw_cmdbuf_cur_unlock(struct vmw_cmdbuf_man *man) man 225 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c mutex_unlock(&man->cur_mutex); man 244 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c dma_pool_free(header->man->dheaders, dheader, header->handle); man 258 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c struct vmw_cmdbuf_man *man = header->man; man 260 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c lockdep_assert_held_once(&man->lock); man 268 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c wake_up_all(&man->alloc_queue); man 270 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c dma_pool_free(man->headers, header->cb_header, man 283 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c struct vmw_cmdbuf_man *man = header->man; man 290 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c spin_lock(&man->lock); man 292 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c spin_unlock(&man->lock); man 303 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c struct vmw_cmdbuf_man *man = header->man; man 307 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c vmw_write(man->dev_priv, SVGA_REG_COMMAND_HIGH, val); man 311 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c vmw_write(man->dev_priv, SVGA_REG_COMMAND_LOW, val); man 339 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c static void vmw_cmdbuf_ctx_submit(struct vmw_cmdbuf_man *man, man 342 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c while (ctx->num_hw_submitted < man->max_hw_submitted && man 377 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c static void vmw_cmdbuf_ctx_process(struct vmw_cmdbuf_man *man, man 383 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c vmw_cmdbuf_ctx_submit(man, ctx); man 392 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c wake_up_all(&man->idle_queue); man 401 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c list_add_tail(&entry->list, &man->error); man 402 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c schedule_work(&man->work); man 419 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c vmw_cmdbuf_ctx_submit(man, ctx); man 434 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c static void vmw_cmdbuf_man_process(struct vmw_cmdbuf_man *man) man 442 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c for_each_cmdbuf_ctx(man, i, ctx) man 443 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c vmw_cmdbuf_ctx_process(man, ctx, ¬empty); man 445 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c if (man->irq_on && !notempty) { man 446 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c vmw_generic_waiter_remove(man->dev_priv, man 448 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c &man->dev_priv->cmdbuf_waiters); man 449 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c man->irq_on = false; man 450 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c } else if (!man->irq_on && notempty) { man 451 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c vmw_generic_waiter_add(man->dev_priv, man 453 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c &man->dev_priv->cmdbuf_waiters); man 454 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c man->irq_on = true; man 474 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c static void vmw_cmdbuf_ctx_add(struct vmw_cmdbuf_man *man, man 481 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c list_add_tail(&header->list, &man->ctx[cb_context].submitted); man 483 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c vmw_cmdbuf_man_process(man); man 496 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c void vmw_cmdbuf_irqthread(struct vmw_cmdbuf_man *man) man 498 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c spin_lock(&man->lock); man 499 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c vmw_cmdbuf_man_process(man); man 500 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c spin_unlock(&man->lock); man 514 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c struct vmw_cmdbuf_man *man = man 524 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c for_each_cmdbuf_ctx(man, i, ctx) man 527 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c mutex_lock(&man->error_mutex); man 528 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c spin_lock(&man->lock); man 529 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c list_for_each_entry_safe(entry, next, &man->error, list) { man 563 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c if (man->using_mob) man 576 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c for_each_cmdbuf_ctx(man, i, ctx) man 577 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c man->ctx[i].block_submission = true; man 579 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c spin_unlock(&man->lock); man 582 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c if (global_block && vmw_cmdbuf_preempt(man, 0)) man 585 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c spin_lock(&man->lock); man 586 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c for_each_cmdbuf_ctx(man, i, ctx) { man 588 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c vmw_cmdbuf_ctx_process(man, ctx, &dummy); man 605 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c vmw_cmdbuf_man_process(man); man 606 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c spin_unlock(&man->lock); man 608 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c if (global_block && vmw_cmdbuf_startstop(man, 0, true)) man 613 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c vmw_fifo_send_fence(man->dev_priv, &dummy); man 614 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c wake_up_all(&man->idle_queue); man 617 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c mutex_unlock(&man->error_mutex); man 627 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c static bool vmw_cmdbuf_man_idle(struct vmw_cmdbuf_man *man, man 634 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c spin_lock(&man->lock); man 635 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c vmw_cmdbuf_man_process(man); man 636 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c for_each_cmdbuf_ctx(man, i, ctx) { man 643 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c idle = list_empty(&man->error); man 646 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c spin_unlock(&man->lock); man 660 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c static void __vmw_cmdbuf_cur_flush(struct vmw_cmdbuf_man *man) man 662 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c struct vmw_cmdbuf_header *cur = man->cur; man 664 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c lockdep_assert_held_once(&man->cur_mutex); man 669 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c spin_lock(&man->lock); man 670 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c if (man->cur_pos == 0) { man 675 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c man->cur->cb_header->length = man->cur_pos; man 676 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c vmw_cmdbuf_ctx_add(man, man->cur, SVGA_CB_CONTEXT_0); man 678 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c spin_unlock(&man->lock); man 679 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c man->cur = NULL; man 680 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c man->cur_pos = 0; man 693 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c int vmw_cmdbuf_cur_flush(struct vmw_cmdbuf_man *man, man 696 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c int ret = vmw_cmdbuf_cur_lock(man, interruptible); man 701 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c __vmw_cmdbuf_cur_flush(man); man 702 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c vmw_cmdbuf_cur_unlock(man); man 718 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c int vmw_cmdbuf_idle(struct vmw_cmdbuf_man *man, bool interruptible, man 723 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c ret = vmw_cmdbuf_cur_flush(man, interruptible); man 724 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c vmw_generic_waiter_add(man->dev_priv, man 726 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c &man->dev_priv->cmdbuf_waiters); man 730 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c (man->idle_queue, vmw_cmdbuf_man_idle(man, true), man 734 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c (man->idle_queue, vmw_cmdbuf_man_idle(man, true), man 737 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c vmw_generic_waiter_remove(man->dev_priv, man 739 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c &man->dev_priv->cmdbuf_waiters); man 741 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c if (!vmw_cmdbuf_man_idle(man, true)) man 762 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c static bool vmw_cmdbuf_try_alloc(struct vmw_cmdbuf_man *man, man 771 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c spin_lock(&man->lock); man 772 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c ret = drm_mm_insert_node(&man->mm, info->node, info->page_size); man 774 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c vmw_cmdbuf_man_process(man); man 775 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c ret = drm_mm_insert_node(&man->mm, info->node, info->page_size); man 778 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c spin_unlock(&man->lock); man 796 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c static int vmw_cmdbuf_alloc_space(struct vmw_cmdbuf_man *man, man 812 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c if (mutex_lock_interruptible(&man->space_mutex)) man 815 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c mutex_lock(&man->space_mutex); man 819 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c if (vmw_cmdbuf_try_alloc(man, &info)) man 822 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c vmw_generic_waiter_add(man->dev_priv, man 824 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c &man->dev_priv->cmdbuf_waiters); man 830 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c (man->alloc_queue, vmw_cmdbuf_try_alloc(man, &info)); man 833 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c (man->dev_priv, SVGA_IRQFLAG_COMMAND_BUFFER, man 834 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c &man->dev_priv->cmdbuf_waiters); man 835 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c mutex_unlock(&man->space_mutex); man 839 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c wait_event(man->alloc_queue, vmw_cmdbuf_try_alloc(man, &info)); man 841 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c vmw_generic_waiter_remove(man->dev_priv, man 843 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c &man->dev_priv->cmdbuf_waiters); man 846 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c mutex_unlock(&man->space_mutex); man 860 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c static int vmw_cmdbuf_space_pool(struct vmw_cmdbuf_man *man, man 869 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c if (!man->has_pool) man 872 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c ret = vmw_cmdbuf_alloc_space(man, &header->node, size, interruptible); man 877 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c header->cb_header = dma_pool_zalloc(man->headers, GFP_KERNEL, man 887 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c header->cmd = man->map + offset; man 888 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c if (man->using_mob) { man 890 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c cb_hdr->ptr.mob.mobid = man->cmd_space->mem.start; man 893 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c cb_hdr->ptr.pa = (u64)man->handle + (u64)offset; man 899 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c spin_lock(&man->lock); man 901 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c spin_unlock(&man->lock); man 914 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c static int vmw_cmdbuf_space_inline(struct vmw_cmdbuf_man *man, man 924 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c dheader = dma_pool_zalloc(man->dheaders, GFP_KERNEL, man 955 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c void *vmw_cmdbuf_alloc(struct vmw_cmdbuf_man *man, man 969 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c ret = vmw_cmdbuf_space_inline(man, header, size); man 971 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c ret = vmw_cmdbuf_space_pool(man, header, size, interruptible); man 978 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c header->man = man; man 998 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c static void *vmw_cmdbuf_reserve_cur(struct vmw_cmdbuf_man *man, man 1006 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c if (vmw_cmdbuf_cur_lock(man, interruptible)) man 1009 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c cur = man->cur; man 1010 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c if (cur && (size + man->cur_pos > cur->size || man 1013 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c __vmw_cmdbuf_cur_flush(man); man 1015 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c if (!man->cur) { man 1016 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c ret = vmw_cmdbuf_alloc(man, man 1017 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c max_t(size_t, size, man->default_size), man 1018 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c interruptible, &man->cur); man 1020 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c vmw_cmdbuf_cur_unlock(man); man 1024 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c cur = man->cur; man 1034 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c return (void *) (man->cur->cmd + man->cur_pos); man 1044 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c static void vmw_cmdbuf_commit_cur(struct vmw_cmdbuf_man *man, man 1047 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c struct vmw_cmdbuf_header *cur = man->cur; man 1049 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c lockdep_assert_held_once(&man->cur_mutex); man 1052 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c man->cur_pos += size; man 1056 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c __vmw_cmdbuf_cur_flush(man); man 1057 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c vmw_cmdbuf_cur_unlock(man); man 1073 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c void *vmw_cmdbuf_reserve(struct vmw_cmdbuf_man *man, size_t size, man 1078 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c return vmw_cmdbuf_reserve_cur(man, size, ctx_id, interruptible); man 1101 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c void vmw_cmdbuf_commit(struct vmw_cmdbuf_man *man, size_t size, man 1105 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c vmw_cmdbuf_commit_cur(man, size, flush); man 1109 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c (void) vmw_cmdbuf_cur_lock(man, false); man 1110 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c __vmw_cmdbuf_cur_flush(man); man 1112 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c man->cur = header; man 1113 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c man->cur_pos = size; man 1117 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c __vmw_cmdbuf_cur_flush(man); man 1118 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c vmw_cmdbuf_cur_unlock(man); man 1131 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c static int vmw_cmdbuf_send_device_command(struct vmw_cmdbuf_man *man, man 1137 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c void *cmd = vmw_cmdbuf_alloc(man, size, false, &header); man 1145 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c spin_lock(&man->lock); man 1147 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c spin_unlock(&man->lock); man 1167 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c static int vmw_cmdbuf_preempt(struct vmw_cmdbuf_man *man, u32 context) man 1178 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c return vmw_cmdbuf_send_device_command(man, &cmd, sizeof(cmd)); man 1191 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c static int vmw_cmdbuf_startstop(struct vmw_cmdbuf_man *man, u32 context, man 1203 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c return vmw_cmdbuf_send_device_command(man, &cmd, sizeof(cmd)); man 1221 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c int vmw_cmdbuf_set_pool_size(struct vmw_cmdbuf_man *man, man 1224 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c struct vmw_private *dev_priv = man->dev_priv; man 1228 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c if (man->has_pool) man 1233 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c man->map = dma_alloc_coherent(&dev_priv->dev->pdev->dev, size, man 1234 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c &man->handle, GFP_KERNEL); man 1235 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c if (man->map) { man 1236 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c man->using_mob = false; man 1249 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c &man->cmd_space); man 1253 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c man->using_mob = true; man 1254 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c ret = ttm_bo_kmap(man->cmd_space, 0, size >> PAGE_SHIFT, man 1255 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c &man->map_obj); man 1259 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c man->map = ttm_kmap_obj_virtual(&man->map_obj, &dummy); man 1262 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c man->size = size; man 1263 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c drm_mm_init(&man->mm, 0, size >> PAGE_SHIFT); man 1265 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c man->has_pool = true; man 1273 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c man->default_size = VMW_CMDBUF_INLINE_SIZE; man 1275 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c (man->using_mob) ? "MOB" : "DMA"); man 1280 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c if (man->using_mob) { man 1281 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c ttm_bo_put(man->cmd_space); man 1282 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c man->cmd_space = NULL; man 1300 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c struct vmw_cmdbuf_man *man; man 1308 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c man = kzalloc(sizeof(*man), GFP_KERNEL); man 1309 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c if (!man) man 1312 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c man->num_contexts = (dev_priv->capabilities & SVGA_CAP_HP_CMD_QUEUE) ? man 1314 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c man->headers = dma_pool_create("vmwgfx cmdbuf", man 1318 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c if (!man->headers) { man 1323 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c man->dheaders = dma_pool_create("vmwgfx inline cmdbuf", man 1327 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c if (!man->dheaders) { man 1332 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c for_each_cmdbuf_ctx(man, i, ctx) man 1335 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c INIT_LIST_HEAD(&man->error); man 1336 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c spin_lock_init(&man->lock); man 1337 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c mutex_init(&man->cur_mutex); man 1338 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c mutex_init(&man->space_mutex); man 1339 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c mutex_init(&man->error_mutex); man 1340 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c man->default_size = VMW_CMDBUF_INLINE_SIZE; man 1341 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c init_waitqueue_head(&man->alloc_queue); man 1342 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c init_waitqueue_head(&man->idle_queue); man 1343 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c man->dev_priv = dev_priv; man 1344 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c man->max_hw_submitted = SVGA_CB_MAX_QUEUED_PER_CONTEXT - 1; man 1345 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c INIT_WORK(&man->work, &vmw_cmdbuf_work_func); man 1348 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c ret = vmw_cmdbuf_startstop(man, 0, true); man 1351 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c vmw_cmdbuf_man_destroy(man); man 1355 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c return man; man 1358 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c dma_pool_destroy(man->headers); man 1360 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c kfree(man); man 1376 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c void vmw_cmdbuf_remove_pool(struct vmw_cmdbuf_man *man) man 1378 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c if (!man->has_pool) man 1381 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c man->has_pool = false; man 1382 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c man->default_size = VMW_CMDBUF_INLINE_SIZE; man 1383 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c (void) vmw_cmdbuf_idle(man, false, 10*HZ); man 1384 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c if (man->using_mob) { man 1385 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c (void) ttm_bo_kunmap(&man->map_obj); man 1386 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c ttm_bo_put(man->cmd_space); man 1387 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c man->cmd_space = NULL; man 1389 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c dma_free_coherent(&man->dev_priv->dev->pdev->dev, man 1390 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c man->size, man->map, man->handle); man 1401 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c void vmw_cmdbuf_man_destroy(struct vmw_cmdbuf_man *man) man 1403 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c WARN_ON_ONCE(man->has_pool); man 1404 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c (void) vmw_cmdbuf_idle(man, false, 10*HZ); man 1406 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c if (vmw_cmdbuf_startstop(man, 0, false)) man 1409 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c vmw_generic_waiter_remove(man->dev_priv, SVGA_IRQFLAG_ERROR, man 1410 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c &man->dev_priv->error_waiters); man 1411 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c (void) cancel_work_sync(&man->work); man 1412 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c dma_pool_destroy(man->dheaders); man 1413 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c dma_pool_destroy(man->headers); man 1414 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c mutex_destroy(&man->cur_mutex); man 1415 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c mutex_destroy(&man->space_mutex); man 1416 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c mutex_destroy(&man->error_mutex); man 1417 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c kfree(man); man 48 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c struct vmw_cmdbuf_res_manager *man; man 80 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c vmw_cmdbuf_res_lookup(struct vmw_cmdbuf_res_manager *man, man 88 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c ret = drm_ht_find_item(&man->resources, key, &hash); man 104 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c static void vmw_cmdbuf_res_free(struct vmw_cmdbuf_res_manager *man, man 108 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c WARN_ON(drm_ht_remove_item(&man->resources, &entry->hash)); man 135 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c list_add_tail(&entry->head, &entry->man->list); man 168 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c vmw_cmdbuf_res_free(entry->man, entry); man 171 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c ret = drm_ht_insert_item(&entry->man->resources, man 174 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c list_add_tail(&entry->head, &entry->man->list); man 197 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c int vmw_cmdbuf_res_add(struct vmw_cmdbuf_res_manager *man, man 211 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c ret = drm_ht_insert_item(&man->resources, &cres->hash); man 219 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c cres->man = man; man 242 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c int vmw_cmdbuf_res_remove(struct vmw_cmdbuf_res_manager *man, man 252 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c ret = drm_ht_find_item(&man->resources, user_key | (res_type << 24), man 261 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c vmw_cmdbuf_res_free(man, entry); man 265 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c (void) drm_ht_remove_item(&man->resources, &entry->hash); man 291 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c struct vmw_cmdbuf_res_manager *man; man 294 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c man = kzalloc(sizeof(*man), GFP_KERNEL); man 295 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c if (!man) man 298 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c man->dev_priv = dev_priv; man 299 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c INIT_LIST_HEAD(&man->list); man 300 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c ret = drm_ht_create(&man->resources, VMW_CMDBUF_RES_MAN_HT_ORDER); man 302 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c return man; man 304 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c kfree(man); man 318 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c void vmw_cmdbuf_res_man_destroy(struct vmw_cmdbuf_res_manager *man) man 322 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c list_for_each_entry_safe(entry, next, &man->list, head) man 323 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c vmw_cmdbuf_res_free(man, entry); man 325 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c drm_ht_remove(&man->resources); man 326 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c kfree(man); man 38 drivers/gpu/drm/vmwgfx/vmwgfx_context.c struct vmw_cmdbuf_res_manager *man; man 149 drivers/gpu/drm/vmwgfx/vmwgfx_context.c vmw_cmdbuf_res_man_destroy(uctx->man); man 194 drivers/gpu/drm/vmwgfx/vmwgfx_context.c uctx->man = vmw_cmdbuf_res_man_create(dev_priv); man 195 drivers/gpu/drm/vmwgfx/vmwgfx_context.c if (IS_ERR(uctx->man)) { man 196 drivers/gpu/drm/vmwgfx/vmwgfx_context.c ret = PTR_ERR(uctx->man); man 197 drivers/gpu/drm/vmwgfx/vmwgfx_context.c uctx->man = NULL; man 836 drivers/gpu/drm/vmwgfx/vmwgfx_context.c return container_of(ctx, struct vmw_user_context, res)->man; man 422 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c struct vmw_cmdbuf_man *man = dev_priv->cman; man 425 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c vmw_cmdbuf_man_destroy(man); man 849 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c dev_priv->bdev.man[TTM_PL_VRAM].use_type = false; man 1131 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c if (!dev_priv->bdev.man[TTM_PL_VRAM].use_type) { man 1133 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c dev_priv->bdev.man[TTM_PL_VRAM].use_type = true; man 1160 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c if (dev_priv->bdev.man[TTM_PL_VRAM].use_type) { man 1161 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c dev_priv->bdev.man[TTM_PL_VRAM].use_type = false; man 1193 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c if (dev_priv->bdev.man[TTM_PL_VRAM].use_type) { man 1194 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c dev_priv->bdev.man[TTM_PL_VRAM].use_type = false; man 394 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h struct vmw_cmdbuf_res_manager *man; man 1253 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h struct vmw_cmdbuf_res_manager *man, man 1258 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h extern int vmw_shader_remove(struct vmw_cmdbuf_res_manager *man, man 1261 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h extern int vmw_dx_shader_add(struct vmw_cmdbuf_res_manager *man, man 1271 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h vmw_shader_lookup(struct vmw_cmdbuf_res_manager *man, man 1280 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h extern void vmw_cmdbuf_res_man_destroy(struct vmw_cmdbuf_res_manager *man); man 1283 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h vmw_cmdbuf_res_lookup(struct vmw_cmdbuf_res_manager *man, man 1288 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h extern int vmw_cmdbuf_res_add(struct vmw_cmdbuf_res_manager *man, man 1293 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h extern int vmw_cmdbuf_res_remove(struct vmw_cmdbuf_res_manager *man, man 1319 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h extern int vmw_cmdbuf_set_pool_size(struct vmw_cmdbuf_man *man, man 1321 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h extern void vmw_cmdbuf_remove_pool(struct vmw_cmdbuf_man *man); man 1322 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h extern void vmw_cmdbuf_man_destroy(struct vmw_cmdbuf_man *man); man 1323 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h extern int vmw_cmdbuf_idle(struct vmw_cmdbuf_man *man, bool interruptible, man 1325 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h extern void *vmw_cmdbuf_reserve(struct vmw_cmdbuf_man *man, size_t size, man 1328 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h extern void vmw_cmdbuf_commit(struct vmw_cmdbuf_man *man, size_t size, man 1331 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h extern void *vmw_cmdbuf_alloc(struct vmw_cmdbuf_man *man, man 1335 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h extern int vmw_cmdbuf_cur_flush(struct vmw_cmdbuf_man *man, man 1337 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h extern void vmw_cmdbuf_irqthread(struct vmw_cmdbuf_man *man); man 431 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c view = vmw_view_lookup(sw_context->man, view_type, id); man 2217 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c res = vmw_shader_lookup(sw_context->man, cmd->body.shaderId, 0); man 2446 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c return vmw_view_add(sw_context->man, ctx_node->ctx, srf, view_type, man 2608 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c ret = vmw_view_remove(sw_context->man, cmd->body.view_id, view_type, man 2650 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c return vmw_dx_shader_add(sw_context->man, ctx_node->ctx, man 2674 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c ret = vmw_shader_remove(sw_context->man, cmd->body.shaderId, 0, man 3625 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c sw_context->man = vmw_context_res_man(res); man 47 drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c static int vmw_gmrid_man_get_node(struct ttm_mem_type_manager *man, man 53 drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c (struct vmwgfx_gmrid_man *)man->priv; man 84 drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c static void vmw_gmrid_man_put_node(struct ttm_mem_type_manager *man, man 88 drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c (struct vmwgfx_gmrid_man *)man->priv; man 99 drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c static int vmw_gmrid_man_init(struct ttm_mem_type_manager *man, man 103 drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c container_of(man->bdev, struct vmw_private, bdev); man 126 drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c man->priv = (void *) gman; man 130 drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c static int vmw_gmrid_man_takedown(struct ttm_mem_type_manager *man) man 133 drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c (struct vmwgfx_gmrid_man *)man->priv; man 142 drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c static void vmw_gmrid_man_debug(struct ttm_mem_type_manager *man, man 588 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c int vmw_dx_shader_add(struct vmw_cmdbuf_res_manager *man, man 640 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c ret = vmw_cmdbuf_res_add(man, vmw_cmdbuf_res_shader, man 931 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c int vmw_shader_remove(struct vmw_cmdbuf_res_manager *man, man 940 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c return vmw_cmdbuf_res_remove(man, vmw_cmdbuf_res_shader, man 960 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c struct vmw_cmdbuf_res_manager *man, man 1010 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c ret = vmw_cmdbuf_res_add(man, vmw_cmdbuf_res_shader, man 1032 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c vmw_shader_lookup(struct vmw_cmdbuf_res_manager *man, man 1039 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c return vmw_cmdbuf_res_lookup(man, vmw_cmdbuf_res_shader, man 310 drivers/gpu/drm/vmwgfx/vmwgfx_so.c int vmw_view_add(struct vmw_cmdbuf_res_manager *man, man 378 drivers/gpu/drm/vmwgfx/vmwgfx_so.c ret = vmw_cmdbuf_res_add(man, vmw_cmdbuf_res_view, man 405 drivers/gpu/drm/vmwgfx/vmwgfx_so.c int vmw_view_remove(struct vmw_cmdbuf_res_manager *man, man 415 drivers/gpu/drm/vmwgfx/vmwgfx_so.c return vmw_cmdbuf_res_remove(man, vmw_cmdbuf_res_view, man 487 drivers/gpu/drm/vmwgfx/vmwgfx_so.c struct vmw_resource *vmw_view_lookup(struct vmw_cmdbuf_res_manager *man, man 491 drivers/gpu/drm/vmwgfx/vmwgfx_so.c return vmw_cmdbuf_res_lookup(man, vmw_cmdbuf_res_view, man 137 drivers/gpu/drm/vmwgfx/vmwgfx_so.h extern int vmw_view_add(struct vmw_cmdbuf_res_manager *man, man 146 drivers/gpu/drm/vmwgfx/vmwgfx_so.h extern int vmw_view_remove(struct vmw_cmdbuf_res_manager *man, man 157 drivers/gpu/drm/vmwgfx/vmwgfx_so.h extern struct vmw_resource *vmw_view_lookup(struct vmw_cmdbuf_res_manager *man, man 745 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c struct ttm_mem_type_manager *man) man 751 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c man->flags = TTM_MEMTYPE_FLAG_MAPPABLE; man 752 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c man->available_caching = TTM_PL_FLAG_CACHED; man 753 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c man->default_caching = TTM_PL_FLAG_CACHED; man 757 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c man->func = &ttm_bo_manager_func; man 758 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c man->gpu_offset = 0; man 759 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c man->flags = TTM_MEMTYPE_FLAG_FIXED | TTM_MEMTYPE_FLAG_MAPPABLE; man 760 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c man->available_caching = TTM_PL_FLAG_CACHED; man 761 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c man->default_caching = TTM_PL_FLAG_CACHED; man 770 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c man->func = &vmw_gmrid_manager_func; man 771 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c man->gpu_offset = 0; man 772 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c man->flags = TTM_MEMTYPE_FLAG_CMA | TTM_MEMTYPE_FLAG_MAPPABLE; man 773 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c man->available_caching = TTM_PL_FLAG_CACHED; man 774 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c man->default_caching = TTM_PL_FLAG_CACHED; man 799 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; man 807 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c if (!(man->flags & TTM_MEMTYPE_FLAG_MAPPABLE)) man 74 drivers/hwmon/lochnagar-hwmon.c u64 man = data & 0x007FFFFF; man 79 drivers/hwmon/lochnagar-hwmon.c man = (man + (1 << 23)) * precision; man 81 drivers/hwmon/lochnagar-hwmon.c if (fls64(man) + exp > (int)sizeof(long) * 8 - 1) man 84 drivers/hwmon/lochnagar-hwmon.c result = (man + (1ull << (-exp - 1))) >> -exp; man 86 drivers/hwmon/lochnagar-hwmon.c result = man << exp; man 423 drivers/leds/leds-as3645a.c int rval, man, model, rfu, version; man 432 drivers/leds/leds-as3645a.c man = AS_DESIGN_INFO_FACTORY(rval); man 451 drivers/leds/leds-as3645a.c switch (man) { man 472 drivers/leds/leds-as3645a.c man, version); man 21 drivers/media/i2c/smiapp/smiapp-regs.c uint64_t man; man 50 drivers/media/i2c/smiapp/smiapp-regs.c man = ((phloat & 0x7fffff) | 0x800000) * 1000000ULL; man 53 drivers/media/i2c/smiapp/smiapp-regs.c man >>= -exp; man 55 drivers/media/i2c/smiapp/smiapp-regs.c man <<= exp; man 57 drivers/media/i2c/smiapp/smiapp-regs.c man >>= 23; /* Remove mantissa bias */ man 59 drivers/media/i2c/smiapp/smiapp-regs.c return man & 0xffffffff; man 761 drivers/net/fddi/skfp/h/smt.h struct smp_p_manufacturer man ; /* manufacturer field */ man 92 drivers/net/fddi/skfp/smt.c struct smp_p_manufacturer *man); man 1077 drivers/net/fddi/skfp/smt.c smt_fill_manufacturer(smc,&sif->man) ; /* set manufacturer field */ man 1492 drivers/net/fddi/skfp/smt.c struct smp_p_manufacturer *man) man 1494 drivers/net/fddi/skfp/smt.c SMTSETPARA(man,SMT_P_MANUFACTURER) ; man 1495 drivers/net/fddi/skfp/smt.c memcpy((char *) man->mf_data, man 1497 drivers/net/fddi/skfp/smt.c sizeof(man->mf_data)) ; man 66 include/drm/ttm/ttm_bo_driver.h int (*init)(struct ttm_mem_type_manager *man, unsigned long p_size); man 76 include/drm/ttm/ttm_bo_driver.h int (*takedown)(struct ttm_mem_type_manager *man); man 106 include/drm/ttm/ttm_bo_driver.h int (*get_node)(struct ttm_mem_type_manager *man, man 121 include/drm/ttm/ttm_bo_driver.h void (*put_node)(struct ttm_mem_type_manager *man, man 134 include/drm/ttm/ttm_bo_driver.h void (*debug)(struct ttm_mem_type_manager *man, man 273 include/drm/ttm/ttm_bo_driver.h struct ttm_mem_type_manager *man); man 472 include/drm/ttm/ttm_bo_driver.h struct ttm_mem_type_manager man[TTM_NUM_MEM_TYPES]; man 629 include/drm/ttm/ttm_bo_driver.h int ttm_mem_io_lock(struct ttm_mem_type_manager *man, bool interruptible); man 630 include/drm/ttm/ttm_bo_driver.h void ttm_mem_io_unlock(struct ttm_mem_type_manager *man); man 3210 sound/soc/sof/topology.c struct snd_soc_tplg_manifest *man) man 3216 sound/soc/sof/topology.c size = le32_to_cpu(man->priv.size); man 3231 sound/soc/sof/topology.c man->priv.data[0], man->priv.data[1], man 3232 sound/soc/sof/topology.c man->priv.data[2], SOF_ABI_MAJOR, SOF_ABI_MINOR, man 3235 sound/soc/sof/topology.c abi_version = SOF_ABI_VER(man->priv.data[0], man 3236 sound/soc/sof/topology.c man->priv.data[1], man 3237 sound/soc/sof/topology.c man->priv.data[2]);