Lines Matching refs:count
88 * The default spin count of 1000 is experimentally determined.
92 * _THREAD_ADAPTIVE_SPIN=count
93 * can be used to override and set the count in the range [0 .. 1,000,000].
104 * _THREAD_QUEUE_SPIN=count
105 * can be used to override and set the count in the range [0 .. 1,000,000].
368 * Increment the spinners count in the mutex lock word.
369 * Return 0 on success. Return -1 if the count would overflow.
388 * Decrement the spinners count in the mutex lock word.
1284 int count = 0;
1333 for (count = 1; ; count++) {
1339 if (count == max_count)
1386 count++;
1404 if (count) {
1405 DTRACE_PROBE3(plockstat, mutex__spun, mp, 0, count);
1411 if (count) {
1412 DTRACE_PROBE3(plockstat, mutex__spun, mp, 1, count);
1414 DTRACE_PROBE3(plockstat, mutex__acquire, mp, 0, count);
1435 int count = curthread->ul_queue_spin;
1439 if (count == 0)
1444 while (--count >= 0) {
1472 int count = 0;
1536 for (count = 1; ; count++) {
1556 if (count == max_count)
1592 count++;
1611 if (count) {
1612 DTRACE_PROBE3(plockstat, mutex__spun, mp, 0, count);
1618 if (count) {
1619 DTRACE_PROBE3(plockstat, mutex__spun, mp, 1, count);
1621 DTRACE_PROBE3(plockstat, mutex__acquire, mp, 0, count);
2795 * Decrement the count of locks held by cancel_safe_mutex_lock().
2939 int count = 0;
2956 if (count < INT_MAX)
2957 count++;
2964 if (count) {
2965 DTRACE_PROBE3(plockstat, mutex__spun, mp, 1, count);
2967 DTRACE_PROBE3(plockstat, mutex__acquire, mp, 0, count);
3484 * count after waking up. This is arguably wrong,