Home | History | Annotate | Download | only in linux

Lines Matching refs:NR_CPUS

25 typedef struct { DECLARE_BITMAP(bits, NR_CPUS); } cpumask_t;
29 #define cpus_setall(dst) __cpus_setall(&(dst), NR_CPUS)
30 #define cpus_clear(dst) __cpus_clear(&(dst), NR_CPUS)
34 #define cpus_and(dst, src1, src2) __cpus_and(&(dst), &(src1), &(src2), NR_CPUS)
35 #define cpus_or(dst, src1, src2) __cpus_or(&(dst), &(src1), &(src2), NR_CPUS)
36 #define cpus_xor(dst, src1, src2) __cpus_xor(&(dst), &(src1), &(src2), NR_CPUS)
37 #define cpus_andnot(dst, src1, src2) __cpus_andnot(&(dst), &(src1), &(src2), NR_CPUS)
39 #define cpus_complement(dst, src) __cpus_complement(&(dst), &(src), NR_CPUS)
40 #define cpus_equal(src1, src2) __cpus_equal(&(src1), &(src2), NR_CPUS)
41 #define cpus_intersects(src1, src2) __cpus_intersects(&(src1), &(src2), NR_CPUS)
42 #define cpus_subset(src1, src2) __cpus_subset(&(src1), &(src2), NR_CPUS)
44 #define cpus_empty(src) __cpus_empty(&(src), NR_CPUS)
45 #define cpus_full(cpumask) __cpus_full(&(cpumask), NR_CPUS)
46 #define cpus_weight(cpumask) __cpus_weight(&(cpumask), NR_CPUS)
47 #define cpus_shift_right(dst, src, n) __cpus_shift_right(&(dst), &(src), (n), NR_CPUS)
49 #define cpus_shift_left(dst, src, n) __cpus_shift_left(&(dst), &(src), (n), NR_CPUS)
54 #define CPU_MASK_LAST_WORD BITMAP_LAST_WORD_MASK(NR_CPUS)
55 #if NR_CPUS <= BITS_PER_LONG
56 #define CPU_MASK_ALL (cpumask_t) { { [BITS_TO_LONGS(NR_CPUS)-1] = CPU_MASK_LAST_WORD } }
59 #define CPU_MASK_ALL (cpumask_t) { { [0 ... BITS_TO_LONGS(NR_CPUS)-2] = ~0UL, [BITS_TO_LONGS(NR_CPUS)-1] = CPU_MASK_LAST_WORD } }
61 #define CPU_MASK_NONE (cpumask_t) { { [0 ... BITS_TO_LONGS(NR_CPUS)-1] = 0UL } }
65 #define cpumask_scnprintf(buf, len, src) __cpumask_scnprintf((buf), (len), &(src), NR_CPUS)
66 #define cpumask_parse(ubuf, ulen, dst) __cpumask_parse((ubuf), (ulen), &(dst), NR_CPUS)
67 #define cpulist_scnprintf(buf, len, src) __cpulist_scnprintf((buf), (len), &(src), NR_CPUS)
69 #define cpulist_parse(buf, dst) __cpulist_parse((buf), &(dst), NR_CPUS)
70 #define cpu_remap(oldbit, old, new) __cpu_remap((oldbit), &(old), &(new), NR_CPUS)
71 #define cpus_remap(dst, src, old, new) __cpus_remap(&(dst), &(src), &(old), &(new), NR_CPUS)
72 #if NR_CPUS > 1
74 #define for_each_cpu_mask(cpu, mask) for ((cpu) = first_cpu(mask); (cpu) < NR_CPUS; (cpu) = next_cpu((cpu), (mask)))
79 #if NR_CPUS > 1