Lines Matching refs:set
427 #define CPUSET_ALL(set) cpuset_all(&(set)) argument
428 #define CPUSET_ALL_BUT(set, cpu) cpuset_all_but(&(set), cpu) argument
429 #define CPUSET_ONLY(set, cpu) cpuset_only(&(set), cpu) argument
430 #define CPU_IN_SET(set, cpu) BT_TEST((set).cpub, cpu) argument
431 #define CPUSET_ADD(set, cpu) BT_SET((set).cpub, cpu) argument
432 #define CPUSET_DEL(set, cpu) BT_CLEAR((set).cpub, cpu) argument
433 #define CPUSET_ISNULL(set) cpuset_isnull(&(set)) argument
441 #define CPUSET_FIND(set, cpu) { \ argument
442 cpu = cpuset_find(&(set)); \
449 #define CPUSET_BOUNDS(set, smallest, largest) { \ argument
450 cpuset_bounds(&(set), &(smallest), &(largest)); \
462 #define CPUSET_ATOMIC_DEL(set, cpu) BT_ATOMIC_CLEAR((set).cpub, (cpu)) argument
463 #define CPUSET_ATOMIC_ADD(set, cpu) BT_ATOMIC_SET((set).cpub, (cpu)) argument
465 #define CPUSET_ATOMIC_XADD(set, cpu, result) \ argument
466 BT_ATOMIC_SET_EXCL((set).cpub, cpu, result)
468 #define CPUSET_ATOMIC_XDEL(set, cpu, result) \ argument
469 BT_ATOMIC_CLEAR_EXCL((set).cpub, cpu, result)
490 #define CPUSET_ZERO(set) { \ argument
493 (set).cpub[_i] = 0; \
502 #define CPUSET_ALL(set) ((void)((set) = ~0UL)) argument
503 #define CPUSET_ALL_BUT(set, cpu) ((void)((set) = ~CPUSET(cpu))) argument
504 #define CPUSET_ONLY(set, cpu) ((void)((set) = CPUSET(cpu))) argument
505 #define CPU_IN_SET(set, cpu) ((set) & CPUSET(cpu)) argument
506 #define CPUSET_ADD(set, cpu) ((void)((set) |= CPUSET(cpu))) argument
507 #define CPUSET_DEL(set, cpu) ((void)((set) &= ~CPUSET(cpu))) argument
508 #define CPUSET_ISNULL(set) ((set) == 0) argument
513 #define CPUSET_ZERO(set) ((void)((set) = 0)) argument
515 #define CPUSET_FIND(set, cpu) { \ argument
516 cpu = (uint_t)(lowbit(set) - 1); \
519 #define CPUSET_BOUNDS(set, smallest, largest) { \ argument
520 smallest = (uint_t)(lowbit(set) - 1); \
521 largest = (uint_t)(highbit(set) - 1); \
524 #define CPUSET_ATOMIC_DEL(set, cpu) atomic_and_ulong(&(set), ~CPUSET(cpu)) argument
525 #define CPUSET_ATOMIC_ADD(set, cpu) atomic_or_ulong(&(set), CPUSET(cpu)) argument
527 #define CPUSET_ATOMIC_XADD(set, cpu, result) \ argument
528 { result = atomic_set_long_excl(&(set), (cpu)); }
530 #define CPUSET_ATOMIC_XDEL(set, cpu, result) \ argument
531 { result = atomic_clear_long_excl(&(set), (cpu)); }