Home
last modified time | relevance | path

Searched refs:maskp (Results 1 - 25 of 58) sorted by relevance

123

/kernel/linux/linux-5.10/tools/power/cpupower/utils/helpers/
H A Dbitmask.c32 bmp->maskp = calloc(longsperbits(n), sizeof(unsigned long)); in bitmask_alloc()
33 if (!bmp->maskp) { in bitmask_alloc()
45 free(bmp->maskp); in bitmask_free()
46 bmp->maskp = (unsigned long *)0xdeadcdef; /* double free tripwire */ in bitmask_free()
52 * routines that actually understand the layout of bmp->maskp[].
65 return (bmp->maskp[n/bitsperlong] >> (n % bitsperlong)) & 1; in _getbit()
75 bmp->maskp[n/bitsperlong] |= 1UL << (n % bitsperlong); in _setbit()
77 bmp->maskp[n/bitsperlong] &= in _setbit()
H A Dbitmask.h13 unsigned long *maskp; member
/kernel/linux/linux-6.6/tools/power/cpupower/utils/helpers/
H A Dbitmask.c32 bmp->maskp = calloc(longsperbits(n), sizeof(unsigned long)); in bitmask_alloc()
33 if (!bmp->maskp) { in bitmask_alloc()
45 free(bmp->maskp); in bitmask_free()
46 bmp->maskp = (unsigned long *)0xdeadcdef; /* double free tripwire */ in bitmask_free()
52 * routines that actually understand the layout of bmp->maskp[].
65 return (bmp->maskp[n/bitsperlong] >> (n % bitsperlong)) & 1; in _getbit()
75 bmp->maskp[n/bitsperlong] |= 1UL << (n % bitsperlong); in _setbit()
77 bmp->maskp[n/bitsperlong] &= in _setbit()
H A Dbitmask.h13 unsigned long *maskp; member
/kernel/linux/linux-6.6/lib/
H A Dbitmap.c454 * @maskp: pointer to bitmap array that will contain result.
458 unsigned int ulen, unsigned long *maskp, in bitmap_parse_user()
468 ret = bitmap_parse(buf, UINT_MAX, maskp, nmaskbits); in bitmap_parse_user()
479 * @maskp: pointer to bitmap to convert
491 int bitmap_print_to_pagebuf(bool list, char *buf, const unsigned long *maskp, in bitmap_print_to_pagebuf() argument
496 return list ? scnprintf(buf, len, "%*pbl\n", nmaskbits, maskp) : in bitmap_print_to_pagebuf()
497 scnprintf(buf, len, "%*pb\n", nmaskbits, maskp); in bitmap_print_to_pagebuf()
507 * @maskp: pointer to bitmap to convert
512 static int bitmap_print_to_buf(bool list, char *buf, const unsigned long *maskp, in bitmap_print_to_buf() argument
519 data = kasprintf(GFP_KERNEL, fmt, nmaskbits, maskp); in bitmap_print_to_buf()
457 bitmap_parse_user(const char __user *ubuf, unsigned int ulen, unsigned long *maskp, int nmaskbits) bitmap_parse_user() argument
613 bitmap_print_bitmask_to_buf(char *buf, const unsigned long *maskp, int nmaskbits, loff_t off, size_t count) bitmap_print_bitmask_to_buf() argument
631 bitmap_print_list_to_buf(char *buf, const unsigned long *maskp, int nmaskbits, loff_t off, size_t count) bitmap_print_list_to_buf() argument
807 bitmap_parselist(const char *buf, unsigned long *maskp, int nmaskbits) bitmap_parselist() argument
848 bitmap_parselist_user(const char __user *ubuf, unsigned int ulen, unsigned long *maskp, int nmaskbits) bitmap_parselist_user() argument
906 bitmap_parse(const char *start, unsigned int buflen, unsigned long *maskp, int nmaskbits) bitmap_parse() argument
[all...]
/kernel/linux/linux-5.10/lib/
H A Dnodemask.c21 int node_random(const nodemask_t *maskp) in node_random() argument
25 w = nodes_weight(*maskp); in node_random()
27 bit = bitmap_ord_to_pos(maskp->bits, in node_random()
H A Dbitmap.c443 * @maskp: pointer to bitmap array that will contain result.
447 unsigned int ulen, unsigned long *maskp, in bitmap_parse_user()
457 ret = bitmap_parse(buf, UINT_MAX, maskp, nmaskbits); in bitmap_parse_user()
468 * @maskp: pointer to bitmap to convert
480 int bitmap_print_to_pagebuf(bool list, char *buf, const unsigned long *maskp, in bitmap_print_to_pagebuf() argument
485 return list ? scnprintf(buf, len, "%*pbl\n", nmaskbits, maskp) : in bitmap_print_to_pagebuf()
486 scnprintf(buf, len, "%*pb\n", nmaskbits, maskp); in bitmap_print_to_pagebuf()
620 * @maskp: write resulting mask here
640 int bitmap_parselist(const char *buf, unsigned long *maskp, int nmaskbits) in bitmap_parselist() argument
645 bitmap_zero(maskp, nmaskbit in bitmap_parselist()
446 bitmap_parse_user(const char __user *ubuf, unsigned int ulen, unsigned long *maskp, int nmaskbits) bitmap_parse_user() argument
681 bitmap_parselist_user(const char __user *ubuf, unsigned int ulen, unsigned long *maskp, int nmaskbits) bitmap_parselist_user() argument
739 bitmap_parse(const char *start, unsigned int buflen, unsigned long *maskp, int nmaskbits) bitmap_parse() argument
[all...]
/kernel/linux/linux-5.10/tools/perf/tests/
H A Dperf-record.c17 static int sched__get_first_possible_cpu(pid_t pid, cpu_set_t *maskp) in sched__get_first_possible_cpu() argument
21 CPU_ZERO(maskp); in sched__get_first_possible_cpu()
23 if (sched_getaffinity(pid, sizeof(*maskp), maskp) == -1) { in sched__get_first_possible_cpu()
33 if (CPU_ISSET(i, maskp)) { in sched__get_first_possible_cpu()
37 CPU_CLR(i, maskp); in sched__get_first_possible_cpu()
/kernel/linux/linux-6.6/tools/perf/tests/
H A Dperf-record.c17 static int sched__get_first_possible_cpu(pid_t pid, cpu_set_t *maskp) in sched__get_first_possible_cpu() argument
21 CPU_ZERO(maskp); in sched__get_first_possible_cpu()
23 if (sched_getaffinity(pid, sizeof(*maskp), maskp) == -1) { in sched__get_first_possible_cpu()
33 if (CPU_ISSET(i, maskp)) { in sched__get_first_possible_cpu()
37 CPU_CLR(i, maskp); in sched__get_first_possible_cpu()
/kernel/linux/linux-6.6/include/linux/
H A Dnodemask.h104 * @maskp: nodemask to be printed
108 #define nodemask_pr_args(maskp) __nodemask_pr_numnodes(maskp), \
109 __nodemask_pr_bits(maskp)
307 static inline unsigned int __first_unset_node(const nodemask_t *maskp) in __first_unset_node() argument
310 find_first_zero_bit(maskp->bits, MAX_NUMNODES)); in __first_unset_node()
505 static inline int node_random(const nodemask_t *maskp) in node_random() argument
510 w = nodes_weight(*maskp); in node_random()
516 bit = first_node(*maskp); in node_random()
519 bit = find_nth_bit(maskp in node_random()
[all...]
H A Dtrace_seq.h92 extern void trace_seq_bitmask(struct trace_seq *s, const unsigned long *maskp,
111 trace_seq_bitmask(struct trace_seq *s, const unsigned long *maskp, in trace_seq_bitmask() argument
H A Dbitmap.h207 int bitmap_parselist(const char *buf, unsigned long *maskp,
229 const unsigned long *maskp, int nmaskbits);
231 extern int bitmap_print_bitmask_to_buf(char *buf, const unsigned long *maskp,
234 extern int bitmap_print_list_to_buf(char *buf, const unsigned long *maskp,
H A Dcpumask.h23 * @maskp: the struct cpumask *
28 #define cpumask_bits(maskp) ((maskp)->bits)
32 * @maskp: cpumask to be printed
36 #define cpumask_pr_args(maskp) nr_cpu_ids, cpumask_bits(maskp)
/kernel/linux/linux-5.10/arch/powerpc/mm/
H A Dslice.c435 const struct slice_mask *maskp; in slice_get_unmapped_area() local
492 maskp = slice_mask_for_size(&mm->context, psize); in slice_get_unmapped_area()
521 slice_or_mask(&good_mask, maskp, compat_maskp); in slice_get_unmapped_area()
523 slice_copy_mask(&good_mask, maskp); in slice_get_unmapped_area()
525 slice_copy_mask(&good_mask, maskp); in slice_get_unmapped_area()
763 const struct slice_mask *maskp; in slice_is_hugepage_only_range() local
768 maskp = slice_mask_for_size(&mm->context, psize); in slice_is_hugepage_only_range()
776 slice_or_mask(&available, maskp, compat_maskp); in slice_is_hugepage_only_range()
780 return !slice_check_range_fits(mm, maskp, addr, len); in slice_is_hugepage_only_range()
/kernel/linux/linux-6.6/arch/powerpc/mm/book3s64/
H A Dslice.c431 const struct slice_mask *maskp; in slice_get_unmapped_area() local
488 maskp = slice_mask_for_size(&mm->context, psize); in slice_get_unmapped_area()
517 slice_or_mask(&good_mask, maskp, compat_maskp); in slice_get_unmapped_area()
519 slice_copy_mask(&good_mask, maskp); in slice_get_unmapped_area()
521 slice_copy_mask(&good_mask, maskp); in slice_get_unmapped_area()
763 const struct slice_mask *maskp; in slice_is_hugepage_only_range() local
768 maskp = slice_mask_for_size(&mm->context, psize); in slice_is_hugepage_only_range()
776 slice_or_mask(&available, maskp, compat_maskp); in slice_is_hugepage_only_range()
780 return !slice_check_range_fits(mm, maskp, addr, len); in slice_is_hugepage_only_range()
/kernel/linux/linux-5.10/include/linux/
H A Dnodemask.h103 * @maskp: nodemask to be printed
107 #define nodemask_pr_args(maskp) __nodemask_pr_numnodes(maskp), \
108 __nodemask_pr_bits(maskp)
299 static inline unsigned int __first_unset_node(const nodemask_t *maskp) in __first_unset_node() argument
302 find_first_zero_bit(maskp->bits, MAX_NUMNODES)); in __first_unset_node()
497 extern int node_random(const nodemask_t *maskp);
H A Dtrace_seq.h92 extern void trace_seq_bitmask(struct trace_seq *s, const unsigned long *maskp,
109 trace_seq_bitmask(struct trace_seq *s, const unsigned long *maskp, in trace_seq_bitmask() argument
H A Dcpumask.h21 * @maskp: the struct cpumask *
26 #define cpumask_bits(maskp) ((maskp)->bits)
30 * @maskp: cpumask to be printed
34 #define cpumask_pr_args(maskp) nr_cpu_ids, cpumask_bits(maskp)
/kernel/linux/linux-5.10/sound/soc/sti/
H A Dsti_uniperif.c182 struct snd_mask *maskp = hw_param_mask(params, rule->var); in sti_uniperiph_fix_tdm_format() local
198 maskp->bits[0] &= (u_int32_t)format; in sti_uniperiph_fix_tdm_format()
199 maskp->bits[1] &= (u_int32_t)(format >> 32); in sti_uniperiph_fix_tdm_format()
201 memset(maskp->bits + 2, 0, (SNDRV_MASK_MAX - 64) / 8); in sti_uniperiph_fix_tdm_format()
203 if (!maskp->bits[0] && !maskp->bits[1]) in sti_uniperiph_fix_tdm_format()
/kernel/linux/linux-6.6/sound/soc/sti/
H A Dsti_uniperif.c183 struct snd_mask *maskp = hw_param_mask(params, rule->var); in sti_uniperiph_fix_tdm_format() local
199 maskp->bits[0] &= (u_int32_t)format; in sti_uniperiph_fix_tdm_format()
200 maskp->bits[1] &= (u_int32_t)(format >> 32); in sti_uniperiph_fix_tdm_format()
202 memset(maskp->bits + 2, 0, (SNDRV_MASK_MAX - 64) / 8); in sti_uniperiph_fix_tdm_format()
204 if (!maskp->bits[0] && !maskp->bits[1]) in sti_uniperiph_fix_tdm_format()
/kernel/linux/linux-5.10/arch/powerpc/platforms/512x/
H A Dmpc5121_ads_cpld.c86 u8 __iomem *maskp) in cpld_pic_get_irq()
90 u8 mask = in_8(maskp); in cpld_pic_get_irq()
85 cpld_pic_get_irq(int offset, u8 ignore, u8 __iomem *statusp, u8 __iomem *maskp) cpld_pic_get_irq() argument
/kernel/linux/linux-6.6/arch/powerpc/platforms/512x/
H A Dmpc5121_ads_cpld.c87 u8 __iomem *maskp) in cpld_pic_get_irq()
90 u8 mask = in_8(maskp); in cpld_pic_get_irq()
86 cpld_pic_get_irq(int offset, u8 ignore, u8 __iomem *statusp, u8 __iomem *maskp) cpld_pic_get_irq() argument
/kernel/linux/linux-5.10/kernel/trace/
H A Dtrace_seq.c106 * @maskp: points to an array of unsigned longs that represent a bitmask
107 * @nmaskbits: The number of bits that are valid in @maskp
111 void trace_seq_bitmask(struct trace_seq *s, const unsigned long *maskp, in trace_seq_bitmask() argument
121 seq_buf_printf(&s->seq, "%*pb", nmaskbits, maskp); in trace_seq_bitmask()
/kernel/linux/linux-6.6/kernel/trace/
H A Dtrace_seq.c106 * @maskp: points to an array of unsigned longs that represent a bitmask
107 * @nmaskbits: The number of bits that are valid in @maskp
111 void trace_seq_bitmask(struct trace_seq *s, const unsigned long *maskp, in trace_seq_bitmask() argument
121 seq_buf_printf(&s->seq, "%*pb", nmaskbits, maskp); in trace_seq_bitmask()
/kernel/linux/linux-6.6/drivers/scsi/elx/efct/
H A Defct_hw_queues.c108 const struct cpumask *maskp; in efct_hw_map_wq_cpu() local
111 maskp = pci_irq_get_affinity(efct->pci, i); in efct_hw_map_wq_cpu()
112 if (!maskp) { in efct_hw_map_wq_cpu()
113 efc_log_debug(efct, "maskp null for vector:%d\n", i); in efct_hw_map_wq_cpu()
118 for_each_cpu_and(cpu, maskp, cpu_present_mask) { in efct_hw_map_wq_cpu()

Completed in 29 milliseconds

123