Lines Matching refs:lcx

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