/linux-4.4.14/arch/tile/lib/ |
H A D | cpumask.c | 25 int bitmap_parselist_crop(const char *bp, unsigned long *maskp, int nmaskbits) bitmap_parselist_crop() argument 29 bitmap_zero(maskp, nmaskbits); bitmap_parselist_crop() 46 set_bit(a, maskp); bitmap_parselist_crop()
|
/linux-4.4.14/tools/power/cpupower/utils/helpers/ |
H A D | bitmask.c | 31 bmp->maskp = calloc(longsperbits(n), sizeof(unsigned long)); bitmask_alloc() 32 if (bmp->maskp == 0) { bitmask_alloc() 44 free(bmp->maskp); bitmask_free() 45 bmp->maskp = (unsigned long *)0xdeadcdef; /* double free tripwire */ bitmask_free() 51 * routines that actually understand the layout of bmp->maskp[]. 64 return (bmp->maskp[n/bitsperlong] >> (n % bitsperlong)) & 1; _getbit() 74 bmp->maskp[n/bitsperlong] |= 1UL << (n % bitsperlong); _setbit() 76 bmp->maskp[n/bitsperlong] &= _setbit()
|
H A D | bitmask.h | 12 unsigned long *maskp; member in struct:bitmask
|
/linux-4.4.14/tools/perf/tests/ |
H A D | perf-record.c | 8 static int sched__get_first_possible_cpu(pid_t pid, cpu_set_t *maskp) sched__get_first_possible_cpu() argument 12 CPU_ZERO(maskp); sched__get_first_possible_cpu() 14 if (sched_getaffinity(pid, sizeof(*maskp), maskp) == -1) { sched__get_first_possible_cpu() 24 if (CPU_ISSET(i, maskp)) { sched__get_first_possible_cpu() 28 CPU_CLR(i, maskp); sched__get_first_possible_cpu()
|
/linux-4.4.14/lib/ |
H A D | bitmap.c | 348 * @maskp: pointer to bitmap array that will contain result. 359 int is_user, unsigned long *maskp, __bitmap_parse() 366 bitmap_zero(maskp, nmaskbits); __bitmap_parse() 417 __bitmap_shift_left(maskp, maskp, CHUNKSZ, nmaskbits); __bitmap_parse() 418 *maskp |= chunk; __bitmap_parse() 435 * @maskp: pointer to bitmap array that will contain result. 445 unsigned int ulen, unsigned long *maskp, bitmap_parse_user() 451 ulen, 1, maskp, nmaskbits); bitmap_parse_user() 460 * @maskp: pointer to bitmap to convert 471 int bitmap_print_to_pagebuf(bool list, char *buf, const unsigned long *maskp, bitmap_print_to_pagebuf() argument 478 n = list ? scnprintf(buf, len, "%*pbl\n", nmaskbits, maskp) : bitmap_print_to_pagebuf() 479 scnprintf(buf, len, "%*pb\n", nmaskbits, maskp); bitmap_print_to_pagebuf() 490 * @maskp: write resulting mask here 505 int is_user, unsigned long *maskp, __bitmap_parselist() 514 bitmap_zero(maskp, nmaskbits); __bitmap_parselist() 576 set_bit(a, maskp); __bitmap_parselist() 583 int bitmap_parselist(const char *bp, unsigned long *maskp, int nmaskbits) bitmap_parselist() argument 588 return __bitmap_parselist(bp, len, 0, maskp, nmaskbits); bitmap_parselist() 599 * @maskp: pointer to bitmap array that will contain result. 609 unsigned int ulen, unsigned long *maskp, bitmap_parselist_user() 615 ulen, 1, maskp, nmaskbits); bitmap_parselist_user() 358 __bitmap_parse(const char *buf, unsigned int buflen, int is_user, unsigned long *maskp, int nmaskbits) __bitmap_parse() argument 444 bitmap_parse_user(const char __user *ubuf, unsigned int ulen, unsigned long *maskp, int nmaskbits) bitmap_parse_user() argument 504 __bitmap_parselist(const char *buf, unsigned int buflen, int is_user, unsigned long *maskp, int nmaskbits) __bitmap_parselist() argument 608 bitmap_parselist_user(const char __user *ubuf, unsigned int ulen, unsigned long *maskp, int nmaskbits) bitmap_parselist_user() argument
|
H A D | dynamic_debug.c | 378 * Sets up *maskp and *flagsp to be used when changing the 383 unsigned int *maskp) ddebug_parse_flags() 414 /* calculate final *flagsp, *maskp according to mask and op */ ddebug_parse_flags() 417 *maskp = 0; ddebug_parse_flags() 421 *maskp = ~0U; ddebug_parse_flags() 425 *maskp = ~flags; ddebug_parse_flags() 429 vpr_info("*flagsp=0x%x *maskp=0x%x\n", *flagsp, *maskp); ddebug_parse_flags() 382 ddebug_parse_flags(const char *str, unsigned int *flagsp, unsigned int *maskp) ddebug_parse_flags() argument
|
/linux-4.4.14/include/linux/ |
H A D | trace_seq.h | 91 extern void trace_seq_bitmask(struct trace_seq *s, const unsigned long *maskp, 104 trace_seq_bitmask(struct trace_seq *s, const unsigned long *maskp, trace_seq_bitmask() argument
|
H A D | nodemask.h | 100 * @maskp: nodemask to be printed 104 #define nodemask_pr_args(maskp) MAX_NUMNODES, (maskp)->bits 280 static inline int __first_unset_node(const nodemask_t *maskp) __first_unset_node() argument 283 find_first_zero_bit(maskp->bits, MAX_NUMNODES)); __first_unset_node() 482 extern int node_random(const nodemask_t *maskp);
|
H A D | bitmap.h | 151 extern int bitmap_parselist(const char *buf, unsigned long *maskp, 173 const unsigned long *maskp, int nmaskbits); 324 unsigned long *maskp, int nmaskbits) bitmap_parse() 326 return __bitmap_parse(buf, buflen, 0, maskp, nmaskbits); bitmap_parse() 323 bitmap_parse(const char *buf, unsigned int buflen, unsigned long *maskp, int nmaskbits) bitmap_parse() argument
|
H A D | cpumask.h | 19 * @maskp: the struct cpumask * 24 #define cpumask_bits(maskp) ((maskp)->bits) 28 * @maskp: cpumask to be printed 32 #define cpumask_pr_args(maskp) nr_cpu_ids, cpumask_bits(maskp)
|
/linux-4.4.14/arch/powerpc/platforms/512x/ |
H A D | mpc5121_ads_cpld.c | 90 u8 __iomem *maskp) cpld_pic_get_irq() 94 u8 mask = in_8(maskp); cpld_pic_get_irq() 89 cpld_pic_get_irq(int offset, u8 ignore, u8 __iomem *statusp, u8 __iomem *maskp) cpld_pic_get_irq() argument
|
/linux-4.4.14/kernel/trace/ |
H A D | trace_seq.c | 108 * @maskp: points to an array of unsigned longs that represent a bitmask 109 * @nmaskbits: The number of bits that are valid in @maskp 113 void trace_seq_bitmask(struct trace_seq *s, const unsigned long *maskp, trace_seq_bitmask() argument 123 seq_buf_printf(&s->seq, "%*pb", nmaskbits, maskp); trace_seq_bitmask()
|
/linux-4.4.14/arch/powerpc/perf/ |
H A D | mpc7450-pmu.c | 154 static int mpc7450_get_constraint(u64 event, unsigned long *maskp, mpc7450_get_constraint() argument 185 *maskp = mask; mpc7450_get_constraint()
|
H A D | power7-pmu.c | 85 static int power7_get_constraint(u64 event, unsigned long *maskp, power7_get_constraint() argument 115 *maskp = mask; power7_get_constraint()
|
H A D | ppc970-pmu.c | 194 static int p970_get_constraint(u64 event, unsigned long *maskp, p970_get_constraint() argument 241 *maskp = mask; p970_get_constraint()
|
H A D | power4-pmu.c | 254 static int p4_get_constraint(u64 event, unsigned long *maskp, p4_get_constraint() argument 317 *maskp = mask; p4_get_constraint()
|
H A D | power5+-pmu.c | 136 static int power5p_get_constraint(u64 event, unsigned long *maskp, power5p_get_constraint() argument 186 *maskp = mask; power5p_get_constraint()
|
H A D | power5-pmu.c | 140 static int power5_get_constraint(u64 event, unsigned long *maskp, power5_get_constraint() argument 208 *maskp = mask; power5_get_constraint()
|
H A D | power6-pmu.c | 270 static int p6_get_constraint(u64 event, unsigned long *maskp, p6_get_constraint() argument 299 *maskp = mask; p6_get_constraint()
|
H A D | power8-pmu.c | 285 static int power8_get_constraint(u64 event, unsigned long *maskp, unsigned long *valp) power8_get_constraint() argument 395 *maskp = mask; power8_get_constraint()
|
/linux-4.4.14/drivers/pinctrl/sh-pfc/ |
H A D | core.c | 179 void __iomem **mapped_regp, u32 *maskp, sh_pfc_config_reg_helper() 187 *maskp = (1 << crp->field_width) - 1; sh_pfc_config_reg_helper() 190 *maskp = (1 << crp->var_field_width[in_pos]) - 1; sh_pfc_config_reg_helper() 176 sh_pfc_config_reg_helper(struct sh_pfc *pfc, const struct pinmux_cfg_reg *crp, unsigned int in_pos, void __iomem **mapped_regp, u32 *maskp, unsigned int *posp) sh_pfc_config_reg_helper() argument
|
/linux-4.4.14/arch/tile/include/asm/ |
H A D | smp.h | 123 int bitmap_parselist_crop(const char *bp, unsigned long *maskp, int nmaskbits);
|
/linux-4.4.14/sound/drivers/ |
H A D | aloop.c | 625 struct snd_mask *maskp = hw_param_mask(params, rule->var); rule_format() local 627 maskp->bits[0] &= (u_int32_t)hw->formats; rule_format() 628 maskp->bits[1] &= (u_int32_t)(hw->formats >> 32); rule_format() 629 memset(maskp->bits + 2, 0, (SNDRV_MASK_MAX-64) / 8); /* clear rest */ rule_format() 630 if (! maskp->bits[0] && ! maskp->bits[1]) rule_format()
|
/linux-4.4.14/sound/core/ |
H A D | pcm_lib.c | 1202 struct snd_mask *maskp = constrs_mask(constrs, var); snd_pcm_hw_constraint_mask() local 1203 *maskp->bits &= mask; snd_pcm_hw_constraint_mask() 1204 memset(maskp->bits + 1, 0, (SNDRV_MASK_MAX-32) / 8); /* clear rest */ snd_pcm_hw_constraint_mask() 1205 if (*maskp->bits == 0) snd_pcm_hw_constraint_mask() 1224 struct snd_mask *maskp = constrs_mask(constrs, var); snd_pcm_hw_constraint_mask64() local 1225 maskp->bits[0] &= (u_int32_t)mask; snd_pcm_hw_constraint_mask64() 1226 maskp->bits[1] &= (u_int32_t)(mask >> 32); snd_pcm_hw_constraint_mask64() 1227 memset(maskp->bits + 2, 0, (SNDRV_MASK_MAX-64) / 8); /* clear rest */ snd_pcm_hw_constraint_mask64() 1228 if (! maskp->bits[0] && ! maskp->bits[1]) snd_pcm_hw_constraint_mask64()
|
/linux-4.4.14/arch/arm64/kernel/ |
H A D | insn.c | 276 u32 *maskp, int *shiftp) aarch64_get_imm_shift_mask() 323 *maskp = mask; aarch64_get_imm_shift_mask() 275 aarch64_get_imm_shift_mask(enum aarch64_insn_imm_type type, u32 *maskp, int *shiftp) aarch64_get_imm_shift_mask() argument
|
/linux-4.4.14/tools/perf/util/ |
H A D | svghelper.c | 690 #define cpumask_bits(maskp) ((maskp)->bits)
|
/linux-4.4.14/mm/ |
H A D | mempolicy.c | 1779 int node_random(const nodemask_t *maskp) node_random() argument 1783 w = nodes_weight(*maskp); node_random() 1785 bit = bitmap_ord_to_pos(maskp->bits, node_random()
|