Searched refs:mksstat_tls (Results 1 – 3 of 3) sorted by relevance
/third_party/mesa3d/src/gallium/winsys/svga/drm/ |
D | vmw_screen.c | 71 for (i = 0; i < ARRAY_SIZE(vws->mksstat_tls); ++i) { in vmw_winsys_screen_init_mksstat() 72 vws->mksstat_tls[i].stat_pages = NULL; in vmw_winsys_screen_init_mksstat() 73 vws->mksstat_tls[i].stat_id = -1UL; in vmw_winsys_screen_init_mksstat() 74 vws->mksstat_tls[i].pid = 0; in vmw_winsys_screen_init_mksstat() 86 for (i = 0; i < ARRAY_SIZE(vws->mksstat_tls); ++i) { in vmw_winsys_screen_deinit_mksstat() 87 uint32_t expected = __atomic_load_n(&vws->mksstat_tls[i].pid, __ATOMIC_ACQUIRE); in vmw_winsys_screen_deinit_mksstat() 97 …if (__atomic_compare_exchange_n(&vws->mksstat_tls[i].pid, &expected, 0, false, __ATOMIC_ACQ_REL, _… in vmw_winsys_screen_deinit_mksstat() 99 .id = vws->mksstat_tls[i].stat_id in vmw_winsys_screen_deinit_mksstat() 102 assert(vws->mksstat_tls[i].stat_pages); in vmw_winsys_screen_deinit_mksstat() 103 assert(vws->mksstat_tls[i].stat_id != -1UL); in vmw_winsys_screen_deinit_mksstat() [all …]
|
D | vmw_screen_svga.c | 294 vws->mksstat_tls[slot].stat_pages = area; in vmw_svga_winsys_add_stats() 295 vws->mksstat_tls[slot].stat_id = id; in vmw_svga_winsys_add_stats() 311 const size_t base = (size_t)pid % ARRAY_SIZE(vws->mksstat_tls); in vmw_winsys_screen_mksstat_acq_slot() 317 …if (__atomic_compare_exchange_n(&vws->mksstat_tls[slot].pid, &expecpid, -1U, false, __ATOMIC_ACQ_R… in vmw_winsys_screen_mksstat_acq_slot() 321 for (i = 0; i < ARRAY_SIZE(vws->mksstat_tls); ++i) { in vmw_winsys_screen_mksstat_acq_slot() 322 const size_t slot = (i + base) % ARRAY_SIZE(vws->mksstat_tls); in vmw_winsys_screen_mksstat_acq_slot() 327 …if (__atomic_compare_exchange_n(&vws->mksstat_tls[slot].pid, &expecpid, -1U, false, __ATOMIC_ACQ_R… in vmw_winsys_screen_mksstat_acq_slot() 331 …if (__atomic_compare_exchange_n(&vws->mksstat_tls[slot].pid, &expected, -1U, false, __ATOMIC_ACQ_R… in vmw_winsys_screen_mksstat_acq_slot() 337 __atomic_store_n(&vws->mksstat_tls[slot].pid, 0, __ATOMIC_RELEASE); in vmw_winsys_screen_mksstat_acq_slot() 351 assert(slot < ARRAY_SIZE(vws->mksstat_tls)); in vmw_winsys_screen_mksstat_rel_slot() [all …]
|
D | vmw_screen.h | 111 } mksstat_tls[64]; member
|