Lines Matching refs:mksstat_user_pids
890 for (i = 0; i < ARRAY_SIZE(dev_priv->mksstat_user_pids); ++i) { in vmw_mksstat_remove_all()
891 const pid_t pid0 = (pid_t)atomic_read(&dev_priv->mksstat_user_pids[i]); in vmw_mksstat_remove_all()
897 const pid_t pid1 = atomic_cmpxchg(&dev_priv->mksstat_user_pids[i], pid0, MKSSTAT_PID_RESERVED); in vmw_mksstat_remove_all()
908 atomic_set(&dev_priv->mksstat_user_pids[i], 0); in vmw_mksstat_remove_all()
1025 for (slot = 0; slot < ARRAY_SIZE(dev_priv->mksstat_user_pids); ++slot) in vmw_mksstat_add_ioctl()
1026 if (!atomic_cmpxchg(&dev_priv->mksstat_user_pids[slot], 0, MKSSTAT_PID_RESERVED)) in vmw_mksstat_add_ioctl()
1029 if (slot == ARRAY_SIZE(dev_priv->mksstat_user_pids)) in vmw_mksstat_add_ioctl()
1101 atomic_set(&dev_priv->mksstat_user_pids[slot], task_pgrp_vnr(current)); in vmw_mksstat_add_ioctl()
1123 atomic_set(&dev_priv->mksstat_user_pids[slot], 0); in vmw_mksstat_add_ioctl()
1155 if (slot >= ARRAY_SIZE(dev_priv->mksstat_user_pids)) in vmw_mksstat_remove_ioctl()
1161 pid = atomic_cmpxchg(&dev_priv->mksstat_user_pids[slot], pgid, MKSSTAT_PID_RESERVED); in vmw_mksstat_remove_ioctl()
1172 atomic_set(&dev_priv->mksstat_user_pids[slot], 0); in vmw_mksstat_remove_ioctl()