Lines Matching refs:cpumask

13 typedef struct cpumask { DECLARE_BITMAP(bits, NR_CPUS); } cpumask_t;  struct
78 extern const struct cpumask *const cpu_possible_mask;
79 extern const struct cpumask *const cpu_online_mask;
80 extern const struct cpumask *const cpu_present_mask;
81 extern const struct cpumask *const cpu_active_mask;
114 static inline unsigned int cpumask_first(const struct cpumask *srcp) in cpumask_first()
120 static inline unsigned int cpumask_next(int n, const struct cpumask *srcp) in cpumask_next()
125 static inline unsigned int cpumask_next_zero(int n, const struct cpumask *srcp) in cpumask_next_zero()
131 const struct cpumask *srcp, in cpumask_next_and()
132 const struct cpumask *andp) in cpumask_next_and()
138 static inline unsigned int cpumask_any_but(const struct cpumask *mask, in cpumask_any_but()
157 static inline unsigned int cpumask_first(const struct cpumask *srcp) in cpumask_first()
169 static inline unsigned int cpumask_next(int n, const struct cpumask *srcp) in cpumask_next()
184 static inline unsigned int cpumask_next_zero(int n, const struct cpumask *srcp) in cpumask_next_zero()
192 int cpumask_next_and(int n, const struct cpumask *, const struct cpumask *);
193 int cpumask_any_but(const struct cpumask *mask, unsigned int cpu);
254 static inline void cpumask_set_cpu(unsigned int cpu, struct cpumask *dstp) in cpumask_set_cpu()
264 static inline void cpumask_clear_cpu(int cpu, struct cpumask *dstp) in cpumask_clear_cpu()
276 #define cpumask_test_cpu(cpu, cpumask) \ argument
277 test_bit(cpumask_check(cpu), cpumask_bits((cpumask)))
286 static inline int cpumask_test_and_set_cpu(int cpu, struct cpumask *cpumask) in cpumask_test_and_set_cpu() argument
288 return test_and_set_bit(cpumask_check(cpu), cpumask_bits(cpumask)); in cpumask_test_and_set_cpu()
298 static inline int cpumask_test_and_clear_cpu(int cpu, struct cpumask *cpumask) in cpumask_test_and_clear_cpu() argument
300 return test_and_clear_bit(cpumask_check(cpu), cpumask_bits(cpumask)); in cpumask_test_and_clear_cpu()
307 static inline void cpumask_setall(struct cpumask *dstp) in cpumask_setall()
316 static inline void cpumask_clear(struct cpumask *dstp) in cpumask_clear()
327 static inline int cpumask_and(struct cpumask *dstp, in cpumask_and()
328 const struct cpumask *src1p, in cpumask_and()
329 const struct cpumask *src2p) in cpumask_and()
341 static inline void cpumask_or(struct cpumask *dstp, const struct cpumask *src1p, in cpumask_or()
342 const struct cpumask *src2p) in cpumask_or()
354 static inline void cpumask_xor(struct cpumask *dstp, in cpumask_xor()
355 const struct cpumask *src1p, in cpumask_xor()
356 const struct cpumask *src2p) in cpumask_xor()
368 static inline int cpumask_andnot(struct cpumask *dstp, in cpumask_andnot()
369 const struct cpumask *src1p, in cpumask_andnot()
370 const struct cpumask *src2p) in cpumask_andnot()
381 static inline void cpumask_complement(struct cpumask *dstp, in cpumask_complement()
382 const struct cpumask *srcp) in cpumask_complement()
393 static inline bool cpumask_equal(const struct cpumask *src1p, in cpumask_equal()
394 const struct cpumask *src2p) in cpumask_equal()
405 static inline bool cpumask_intersects(const struct cpumask *src1p, in cpumask_intersects()
406 const struct cpumask *src2p) in cpumask_intersects()
417 static inline int cpumask_subset(const struct cpumask *src1p, in cpumask_subset()
418 const struct cpumask *src2p) in cpumask_subset()
428 static inline bool cpumask_empty(const struct cpumask *srcp) in cpumask_empty()
437 static inline bool cpumask_full(const struct cpumask *srcp) in cpumask_full()
446 static inline unsigned int cpumask_weight(const struct cpumask *srcp) in cpumask_weight()
457 static inline void cpumask_shift_right(struct cpumask *dstp, in cpumask_shift_right()
458 const struct cpumask *srcp, int n) in cpumask_shift_right()
470 static inline void cpumask_shift_left(struct cpumask *dstp, in cpumask_shift_left()
471 const struct cpumask *srcp, int n) in cpumask_shift_left()
482 static inline void cpumask_copy(struct cpumask *dstp, in cpumask_copy()
483 const struct cpumask *srcp) in cpumask_copy()
530 const struct cpumask *srcp) in cpumask_scnprintf()
544 struct cpumask *dstp) in cpumask_parse_user()
559 const struct cpumask *srcp) in cpulist_scnprintf()
573 static inline int cpulist_parse(const char *buf, struct cpumask *dstp) in cpulist_parse()
607 typedef struct cpumask *cpumask_var_t;
618 typedef struct cpumask cpumask_var_t[1];
674 void init_cpu_present(const struct cpumask *src);
675 void init_cpu_possible(const struct cpumask *src);
676 void init_cpu_online(const struct cpumask *src);
689 ((struct cpumask *)(1 ? (bitmap) \
707 static inline const struct cpumask *get_cpu_mask(unsigned int cpu) in get_cpu_mask()
835 #define cpu_isset(cpu, cpumask) test_bit((cpu), (cpumask).bits) argument
837 #define cpu_test_and_set(cpu, cpumask) __cpu_test_and_set((cpu), &(cpumask)) argument
899 #define cpus_weight(cpumask) __cpus_weight(&(cpumask), NR_CPUS) argument