Home
last modified time | relevance | path

Searched refs:map_count (Results 1 – 25 of 28) sorted by relevance

12

/external/ltp/testcases/kernel/mem/tunable/
Dmax_map_count.c122 long map_count = 0; in count_maps() local
132 map_count++; in count_maps()
136 return map_count; in count_maps()
144 long map_count; in max_map_count_test() local
191 map_count = count_maps(pid); in max_map_count_test()
197 if (map_count == (max_maps + 1)) in max_map_count_test()
202 "expected %ld entries", map_count, max_maps); in max_map_count_test()
/external/libdrm/libkms/
Dradeon.c47 unsigned map_count; member
127 bo->map_count = 0; in radeon_bo_create()
156 bo->map_count++; in radeon_bo_map()
177 bo->map_count++; in radeon_bo_map()
187 if (--bo->map_count == 0) { in radeon_bo_unmap()
Dvmwgfx.c42 unsigned map_count; member
140 bo->map_count++; in vmwgfx_bo_map()
150 bo->map_count++; in vmwgfx_bo_map()
160 bo->map_count--; in vmwgfx_bo_unmap()
Ddumb.c42 unsigned map_count; member
134 bo->map_count++; in dumb_bo_map()
151 bo->map_count++; in dumb_bo_map()
161 bo->map_count--; in dumb_bo_unmap()
Dexynos.c44 unsigned map_count; member
144 bo->map_count++; in exynos_bo_map()
161 bo->map_count++; in exynos_bo_map()
171 bo->map_count--; in exynos_bo_unmap()
Dnouveau.c45 unsigned map_count; member
149 bo->map_count++; in nouveau_bo_map()
159 bo->map_count++; in nouveau_bo_map()
169 bo->map_count--; in nouveau_bo_unmap()
Dintel.c44 unsigned map_count; member
160 bo->map_count++; in intel_bo_map()
177 bo->map_count++; in intel_bo_map()
187 bo->map_count--; in intel_bo_unmap()
/external/u-boot/disk/
Dpart_mac.c63 n = mpart->map_count; in part_test_mac()
127 n = mpart->map_count; in part_print_mac()
201 if ((part < 1) || (part > pdb_p->map_count)) { in part_mac_read_pdb()
205 dev_desc->devnum, pdb_p->map_count); in part_mac_read_pdb()
Dpart_mac.h58 __u32 map_count; /* # blocks in partition map */ member
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_allocator_test.cc250 static int map_count, unmap_count; member
251 void OnMap(uptr p, uptr size) const { map_count++; } in OnMap()
254 int TestMapUnmapCallback::map_count; member in TestMapUnmapCallback
259 TestMapUnmapCallback::map_count = 0; in TEST()
266 EXPECT_EQ(TestMapUnmapCallback::map_count, 1); // Allocator state. in TEST()
273 EXPECT_EQ(TestMapUnmapCallback::map_count, 3); // State + alloc + metadata. in TEST()
281 TestMapUnmapCallback::map_count = 0; in TEST()
293 EXPECT_EQ(TestMapUnmapCallback::map_count, 0); in TEST()
300 EXPECT_EQ(TestMapUnmapCallback::map_count, 1); in TEST()
310 TestMapUnmapCallback::map_count = 0; in TEST()
[all …]
/external/mesa3d/src/gallium/winsys/sw/wrapper/
Dwrapper_sw_winsys.c64 unsigned map_count; member
220 if (!wdt->map_count) { in wsw_dt_map()
237 wdt->map_count++; in wsw_dt_map()
255 wdt->map_count--; in wsw_dt_unmap()
257 if (wdt->map_count) in wsw_dt_unmap()
/external/mesa3d/src/gallium/auxiliary/pipebuffer/
Dpb_bufmgr_debug.c81 unsigned map_count; member
263 ++buf->map_count; in pb_debug_buffer_map()
277 assert(buf->map_count); in pb_debug_buffer_unmap()
278 if(buf->map_count) in pb_debug_buffer_unmap()
279 --buf->map_count; in pb_debug_buffer_unmap()
307 if(buf->map_count) { in pb_debug_buffer_validate()
/external/libdrm/radeon/
Dradeon_bo_gem.c49 int map_count; member
83 bo->map_count = 0; in bo_open()
155 if (bo_gem->map_count++ != 0) { in bo_map()
194 if (--bo_gem->map_count > 0) { in bo_unmap()
390 bo->map_count = 0; in radeon_gem_bo_open_prime()
/external/ltp/testcases/kernel/mem/mtest06/
Dmmap1.c44 static unsigned long map_count; variable
109 map_count++; in map_write_unmap()
233 "threads spawned: %lu", elapsed, map_count, in run()
/external/mesa3d/src/gallium/winsys/i915/drm/
Di915_drm_buffer.c182 if (buf->map_count) in i915_drm_buffer_map()
194 buf->map_count++; in i915_drm_buffer_map()
204 if (--buf->map_count) in i915_drm_buffer_unmap()
Di915_drm_winsys.h55 unsigned map_count; member
/external/libdrm/intel/
Dintel_bufmgr_gem.c225 int map_count; member
1280 assert(bo_gem->map_count == 0); in drm_intel_gem_bo_purge_vma_cache()
1372 if (bo_gem->map_count) { in drm_intel_gem_bo_unreference_final()
1373 DBG("bo freed with non-zero map-count %d\n", bo_gem->map_count); in drm_intel_gem_bo_unreference_final()
1374 bo_gem->map_count = 0; in drm_intel_gem_bo_unreference_final()
1444 if (bo_gem->map_count++ == 0) in drm_intel_gem_bo_map()
1451 bo_gem->gem_handle, bo_gem->name, bo_gem->map_count); in drm_intel_gem_bo_map()
1464 if (--bo_gem->map_count == 0) in drm_intel_gem_bo_map()
1512 if (bo_gem->map_count++ == 0) in map_gtt()
1520 bo_gem->gem_handle, bo_gem->name, bo_gem->map_count); in map_gtt()
[all …]
Dintel_bufmgr_fake.c206 unsigned int map_count; member
925 assert(bo_fake->map_count == 0); in drm_intel_fake_bo_unreference_locked()
1014 if (bo_fake->map_count++ != 0) in drm_intel_fake_bo_map_locked()
1092 assert(bo_fake->map_count != 0); in drm_intel_fake_bo_unmap_locked()
1093 if (--bo_fake->map_count != 0) in drm_intel_fake_bo_unmap_locked()
1170 assert(bo_fake->map_count == 0); in drm_intel_fake_bo_validate()
1336 assert(bo_fake->map_count == 0); in drm_intel_fake_reloc_and_validate_buffer()
1406 assert(bo_fake->map_count == 0); in drm_intel_bo_fake_post_submit()
/external/mesa3d/src/gallium/winsys/radeon/drm/
Dradeon_drm_bo.h43 unsigned map_count; member
Dradeon_drm_bo.c385 if (bo->u.real.map_count >= 1) { in radeon_bo_destroy()
429 bo->u.real.map_count++; in radeon_bo_do_map()
461 bo->u.real.map_count = 1; in radeon_bo_do_map()
567 assert(bo->u.real.map_count); in radeon_bo_unmap()
568 if (--bo->u.real.map_count) { in radeon_bo_unmap()
/external/mesa3d/src/gallium/winsys/amdgpu/drm/
Damdgpu_bo.h65 int map_count; member
Damdgpu_bo.c188 if (bo->u.real.map_count >= 1) { in amdgpu_bo_destroy()
321 if (p_atomic_inc_return(&real->u.real.map_count) == 1) { in amdgpu_bo_map()
343 if (p_atomic_dec_zero(&real->u.real.map_count)) { in amdgpu_bo_unmap()
/external/mesa3d/src/gallium/state_trackers/clover/core/
Dresource.hpp56 unsigned map_count() const;
Dresource.cpp82 resource::map_count() const { in map_count() function in resource
/external/mesa3d/src/gallium/winsys/svga/drm/
Dvmw_screen_ioctl.c62 uint32_t map_count; member
544 region->map_count = 0; in vmw_ioctl_region_create()
604 ++region->map_count; in vmw_ioctl_region_map()
614 --region->map_count; in vmw_ioctl_region_unmap()

12