Home
last modified time | relevance | path

Searched refs:maskp (Results 1 – 25 of 30) sorted by relevance

12

/linux-6.6.21/tools/power/cpupower/utils/helpers/
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()
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()
Dbitmask.h13 unsigned long *maskp; member
/linux-6.6.21/lib/
Dbitmap.c458 unsigned int ulen, unsigned long *maskp, in bitmap_parse_user() argument
468 ret = bitmap_parse(buf, UINT_MAX, maskp, nmaskbits); in bitmap_parse_user()
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()
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()
613 int bitmap_print_bitmask_to_buf(char *buf, const unsigned long *maskp, in bitmap_print_bitmask_to_buf() argument
616 return bitmap_print_to_buf(false, buf, maskp, nmaskbits, off, count); in bitmap_print_bitmask_to_buf()
631 int bitmap_print_list_to_buf(char *buf, const unsigned long *maskp, in bitmap_print_list_to_buf() argument
[all …]
/linux-6.6.21/tools/perf/tests/
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()
/linux-6.6.21/include/linux/
Dnodemask.h108 #define nodemask_pr_args(maskp) __nodemask_pr_numnodes(maskp), \ argument
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->bits, MAX_NUMNODES, get_random_u32_below(w)); in node_random()
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
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,
Dcpumask.h28 #define cpumask_bits(maskp) ((maskp)->bits) argument
36 #define cpumask_pr_args(maskp) nr_cpu_ids, cpumask_bits(maskp) argument
/linux-6.6.21/arch/powerpc/mm/book3s64/
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()
/linux-6.6.21/sound/soc/sti/
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()
/linux-6.6.21/arch/powerpc/platforms/512x/
Dmpc5121_ads_cpld.c87 u8 __iomem *maskp) in cpld_pic_get_irq() argument
90 u8 mask = in_8(maskp); in cpld_pic_get_irq()
/linux-6.6.21/kernel/trace/
Dtrace_seq.c111 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()
/linux-6.6.21/arch/powerpc/perf/
Dmpc7450-pmu.c150 static int mpc7450_get_constraint(u64 event, unsigned long *maskp, in mpc7450_get_constraint() argument
181 *maskp = mask; in mpc7450_get_constraint()
Dpower7-pmu.c83 static int power7_get_constraint(u64 event, unsigned long *maskp, in power7_get_constraint() argument
113 *maskp = mask; in power7_get_constraint()
Dppc970-pmu.c192 static int p970_get_constraint(u64 event, unsigned long *maskp, in p970_get_constraint() argument
239 *maskp = mask; in p970_get_constraint()
Dpower6-pmu.c269 static int p6_get_constraint(u64 event, unsigned long *maskp, in p6_get_constraint() argument
298 *maskp = mask; in p6_get_constraint()
Dpower5-pmu.c138 static int power5_get_constraint(u64 event, unsigned long *maskp, in power5_get_constraint() argument
206 *maskp = mask; in power5_get_constraint()
Dpower5+-pmu.c134 static int power5p_get_constraint(u64 event, unsigned long *maskp, in power5p_get_constraint() argument
184 *maskp = mask; in power5p_get_constraint()
Disa207-common.h280 int isa207_get_constraint(u64 event, unsigned long *maskp, unsigned long *valp, u64 event_config1);
Disa207-common.c401 int isa207_get_constraint(u64 event, unsigned long *maskp, unsigned long *valp, u64 event_config1) in isa207_get_constraint() argument
552 *maskp = mask; in isa207_get_constraint()
/linux-6.6.21/drivers/scsi/elx/efct/
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()
118 for_each_cpu_and(cpu, maskp, cpu_present_mask) { in efct_hw_map_wq_cpu()
/linux-6.6.21/sound/core/
Dpcm_lib.c1203 struct snd_mask *maskp = constrs_mask(constrs, var); in snd_pcm_hw_constraint_mask() local
1204 *maskp->bits &= mask; in snd_pcm_hw_constraint_mask()
1205 memset(maskp->bits + 1, 0, (SNDRV_MASK_MAX-32) / 8); /* clear rest */ in snd_pcm_hw_constraint_mask()
1206 if (*maskp->bits == 0) in snd_pcm_hw_constraint_mask()
1225 struct snd_mask *maskp = constrs_mask(constrs, var); in snd_pcm_hw_constraint_mask64() local
1226 maskp->bits[0] &= (u_int32_t)mask; in snd_pcm_hw_constraint_mask64()
1227 maskp->bits[1] &= (u_int32_t)(mask >> 32); in snd_pcm_hw_constraint_mask64()
1228 memset(maskp->bits + 2, 0, (SNDRV_MASK_MAX-64) / 8); /* clear rest */ in snd_pcm_hw_constraint_mask64()
1229 if (! maskp->bits[0] && ! maskp->bits[1]) in snd_pcm_hw_constraint_mask64()
/linux-6.6.21/drivers/net/can/spi/
Dmcp251x.c511 unsigned long *maskp, unsigned long *bitsp) in mcp251x_gpio_get_multiple() argument
518 if (maskp[0] & MCP251X_GPIO_INPUT_MASK) { in mcp251x_gpio_get_multiple()
523 if (maskp[0] & MCP251X_GPIO_OUTPUT_MASK) { in mcp251x_gpio_get_multiple()
553 unsigned long *maskp, unsigned long *bitsp) in mcp251x_gpio_set_multiple() argument
558 mask = FIELD_GET(MCP251X_GPIO_OUTPUT_MASK, maskp[0]); in mcp251x_gpio_set_multiple()
/linux-6.6.21/tools/perf/util/
Dsvghelper.c689 #define cpumask_bits(maskp) ((maskp)->bits) argument
/linux-6.6.21/drivers/pinctrl/renesas/
Dcore.c202 void __iomem **mapped_regp, u32 *maskp, in sh_pfc_config_reg_helper() argument
210 *maskp = (1 << crp->field_width) - 1; in sh_pfc_config_reg_helper()
213 *maskp = (1 << crp->var_field_width[in_pos]) - 1; in sh_pfc_config_reg_helper()

12