Lines Matching refs:lcx
254 int lcx;
272 XC_SPL_ENTER(lcx, opl); /* lcx set by the macro */
276 if (cix == lcx) {
281 XC_STAT_INC(x_dstat[lcx][XT_ONE_SELF]);
290 XC_STAT_INC(x_dstat[lcx][XT_ONE_OTHER]);
292 XC_SPL_EXIT(lcx, opl);
301 int lcx;
319 XC_SPL_ENTER(lcx, opl); /* lcx set by the macro */
321 CPUSET_ADD(tset, lcx);
333 XC_SPL_EXIT(lcx, opl);
340 if (CPU_IN_SET(xc_cpuset, lcx)) {
345 XC_STAT_INC(x_dstat[lcx][XT_SOME_SELF]);
347 CPUSET_DEL(xc_cpuset, lcx);
349 XC_SPL_EXIT(lcx, opl);
356 XC_STAT_INC(x_dstat[lcx][XT_SOME_OTHER]);
358 XC_SPL_EXIT(lcx, opl);
367 int lcx;
385 XC_SPL_ENTER(lcx, opl); /* lcx set by the macro */
387 CPUSET_ADD(tset, lcx);
392 if (CPU_IN_SET(cpu_ready_set, lcx))
401 CPUSET_DEL(xc_cpuset, lcx);
404 XC_STAT_INC(x_dstat[lcx][XT_ALL_SELF]);
406 XC_SPL_EXIT(lcx, opl);
413 XC_STAT_INC(x_dstat[lcx][XT_ALL_OTHER]);
414 XC_SPL_EXIT(lcx, opl);
423 int lcx;
442 XC_SPL_ENTER(lcx, opl); /* lcx set by the macro */
446 if (cix == lcx) { /* same cpu just do it */
449 XC_STAT_INC(x_dstat[lcx][XC_ONE_SELF]);
450 XC_SPL_EXIT(lcx, opl);
455 if (xc_holder == lcx) { /* got the xc_sys_mutex already */
457 ASSERT(CPU_IN_SET(xc_mbox[lcx].xc_cpuset, lcx));
480 XC_STAT_INC(x_dstat[lcx][XC_ONE_OTHER_H]);
481 XC_SPL_EXIT(lcx, opl);
490 XC_SPL_EXIT(lcx, opl);
507 xc_spl_enter[lcx] = 1;
518 xc_spl_enter[lcx] = 0;
538 XC_STAT_INC(x_dstat[lcx][XC_ONE_OTHER]);
550 int lcx;
560 XC_SPL_ENTER(lcx, opl); /* lcx set by the macro */
562 CPUSET_ADD(tset, lcx);
574 XC_SPL_EXIT(lcx, opl);
579 if (CPU_IN_SET(xc_cpuset, lcx)) {
584 CPUSET_DEL(xc_cpuset, lcx);
586 XC_STAT_INC(x_dstat[lcx][XC_SOME_SELF]);
588 XC_SPL_EXIT(lcx, opl);
594 if (xc_holder == lcx) { /* got the xc_sys_mutex already */
595 cpuset_t mset = xc_mbox[lcx].xc_cpuset;
600 SEND_MBOX_ONLY(xc_cpuset, func, arg1, arg2, lcx, XC_WAIT);
601 WAIT_MBOX_DONE(xc_cpuset, lcx, XC_WAIT, 0);
602 XC_STAT_INC(x_dstat[lcx][XC_SOME_OTHER_H]);
604 XC_SPL_EXIT(lcx, opl);
613 XC_SPL_EXIT(lcx, opl);
625 xc_spl_enter[lcx] = 1;
630 WAIT_MBOX_DONE(xc_cpuset, lcx, XC_IDLE, 1);
632 xc_spl_enter[lcx] = 0;
633 XC_STAT_INC(x_dstat[lcx][XC_SOME_OTHER]);
644 int lcx;
654 XC_SPL_ENTER(lcx, opl); /* lcx set by the macro */
656 CPUSET_ADD(tset, lcx);
663 CPUSET_DEL(xc_cpuset, lcx);
666 XC_STAT_INC(x_dstat[lcx][XC_ALL_SELF]);
668 XC_SPL_EXIT(lcx, opl);
673 if (xc_holder == lcx) { /* got the xc_sys_mutex already */
674 cpuset_t mset = xc_mbox[lcx].xc_cpuset;
680 SEND_MBOX_ONLY(xc_cpuset, func, arg1, arg2, lcx, XC_WAIT);
681 WAIT_MBOX_DONE(xc_cpuset, lcx, XC_WAIT, 0);
682 XC_STAT_INC(x_dstat[lcx][XC_ALL_OTHER_H]);
683 XC_SPL_EXIT(lcx, opl);
692 XC_SPL_EXIT(lcx, opl);
704 xc_spl_enter[lcx] = 1;
709 WAIT_MBOX_DONE(xc_cpuset, lcx, XC_IDLE, 1);
711 xc_spl_enter[lcx] = 0;
712 XC_STAT_INC(x_dstat[lcx][XC_ALL_OTHER]);
727 int pix, lcx;
740 lcx = (int)(CPU->cpu_id);
741 ASSERT(x_dstat[lcx][XC_ATTENTION] ==
742 x_dstat[lcx][XC_DISMISSED]);
744 xc_mbox[lcx].xc_cpuset = cpuset;
745 xc_holder = lcx; /* no membar; only current cpu needs the right lcx */
756 CPUSET_DEL(xc_cpuset, lcx);
758 XC_STAT_INC(x_dstat[lcx][XC_ATTENTION]);
764 xc_spl_enter[lcx] = 1;
770 xc_spl_enter[lcx] = 0;
821 int lcx = (int)(CPU->cpu_id);
826 ASSERT(lcx == xc_holder);
827 ASSERT(CPUSET_ISEQUAL(xc_mbox[lcx].xc_cpuset, cpuset));
829 CPUSET_ZERO(xc_mbox[lcx].xc_cpuset);
833 XC_STAT_INC(x_dstat[lcx][XC_DISMISSED]);
834 ASSERT(x_dstat[lcx][XC_DISMISSED] == x_dstat[lcx][XC_ATTENTION]);
845 CPUSET_DEL(xc_cpuset, lcx);
907 int lcx = (int)(CPU->cpu_id);
915 CPUSET_ADD(tset, lcx);
917 xmp = &xc_mbox[lcx];
918 ASSERT(lcx != xc_holder);
927 XC_STAT_INC(x_rstat[lcx][XC_SERV]);
947 int lcx = (int)(CPU->cpu_id);
984 xmp = &xc_mbox[lcx];
985 ASSERT(lcx != xc_holder);
988 CPUSET_ADD(tset, lcx);
990 XC_STAT_INC(x_rstat[lcx][XC_LOOP]);