Home
last modified time | relevance | path

Searched refs:mksstat_kern_pids (Results 1 – 3 of 3) sorted by relevance

/linux-6.6.21/drivers/gpu/drm/vmwgfx/
Dvmwgfx_msg.c814 for (i = 0; i < ARRAY_SIZE(dev_priv->mksstat_kern_pids); ++i) { in vmw_mksstat_get_kern_slot()
815 const size_t slot = (i + base) % ARRAY_SIZE(dev_priv->mksstat_kern_pids); in vmw_mksstat_get_kern_slot()
818 if (pid == (pid_t)atomic_read(&dev_priv->mksstat_kern_pids[slot])) in vmw_mksstat_get_kern_slot()
822 if (!atomic_cmpxchg(&dev_priv->mksstat_kern_pids[slot], 0, MKSSTAT_PID_RESERVED)) { in vmw_mksstat_get_kern_slot()
829 atomic_set(&dev_priv->mksstat_kern_pids[slot], pid); in vmw_mksstat_get_kern_slot()
833 atomic_set(&dev_priv->mksstat_kern_pids[slot], 0); in vmw_mksstat_get_kern_slot()
920 for (i = 0; i < ARRAY_SIZE(dev_priv->mksstat_kern_pids); ++i) { in vmw_mksstat_remove_all()
921 const pid_t pid0 = (pid_t)atomic_read(&dev_priv->mksstat_kern_pids[i]); in vmw_mksstat_remove_all()
927 const pid_t pid1 = atomic_cmpxchg(&dev_priv->mksstat_kern_pids[i], pid0, MKSSTAT_PID_RESERVED); in vmw_mksstat_remove_all()
938 atomic_set(&dev_priv->mksstat_kern_pids[i], 0); in vmw_mksstat_remove_all()
Dvmwgfx_mksstat.h116 …const pid_t pid = atomic_cmpxchg(&dev_priv->mksstat_kern_pids[_##kern_cntr.slot], current->pid, MK…
134 …atomic_set(&dev_priv->mksstat_kern_pids[_##kern_cntr.slot], current->pid); …
Dvmwgfx_drv.h654 atomic_t mksstat_kern_pids[MKSSTAT_CAPACITY]; member