| /linux/lib/ |
| H A D | bitmap-str.c | 25 unsigned int ulen, unsigned long *maskp, in bitmap_parse_user() argument 35 ret = bitmap_parse(buf, UINT_MAX, maskp, nmaskbits); in bitmap_parse_user() 53 static int bitmap_print_to_buf(bool list, char *buf, const unsigned long *maskp, in bitmap_print_to_buf() argument 60 data = kasprintf(GFP_KERNEL, fmt, nmaskbits, maskp); in bitmap_print_to_buf() 147 int bitmap_print_bitmask_to_buf(char *buf, const unsigned long *maskp, in bitmap_print_bitmask_to_buf() argument 150 return bitmap_print_to_buf(false, buf, maskp, nmaskbits, off, count); in bitmap_print_bitmask_to_buf() 165 int bitmap_print_list_to_buf(char *buf, const unsigned long *maskp, in bitmap_print_list_to_buf() argument 168 return bitmap_print_to_buf(true, buf, maskp, nmaskbits, off, count); in bitmap_print_list_to_buf() 341 int bitmap_parselist(const char *buf, unsigned long *maskp, int nmaskbits) in bitmap_parselist() argument 347 bitmap_zero(maskp, r.nbits); in bitmap_parselist() [all …]
|
| /linux/tools/power/cpupower/utils/helpers/ |
| H A D | bitmask.c | 32 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()
|
| H A D | bitmask.h | 13 unsigned long *maskp; member
|
| /linux/include/linux/ |
| H A D | cpumask_types.h | 18 #define cpumask_bits(maskp) ((maskp)->bits) argument
|
| H A D | nodemask.h | 112 #define nodemask_pr_args(maskp) __nodemask_pr_numnodes(maskp), \ argument 113 __nodemask_pr_bits(maskp) 302 static __always_inline unsigned int __first_unset_node(const nodemask_t *maskp) in __first_unset_node() argument 304 return min(MAX_NUMNODES, find_first_zero_bit(maskp->bits, MAX_NUMNODES)); in __first_unset_node() 494 static __always_inline int node_random(const nodemask_t *maskp) in node_random() argument 497 int node = find_random_bit(maskp->bits, MAX_NUMNODES); in node_random()
|
| H A D | cpumask.h | 28 #define cpumask_pr_args(maskp) nr_cpu_ids, cpumask_bits(maskp) argument
|
| /linux/tools/perf/tests/ |
| H A D | perf-record.c | 18 static int sched__get_first_possible_cpu(pid_t pid, cpu_set_t *maskp) in sched__get_first_possible_cpu() argument 25 CPU_ZERO_S(size, maskp); in sched__get_first_possible_cpu() 27 if (sched_getaffinity(pid, size, maskp) == -1) { in sched__get_first_possible_cpu() 37 if (CPU_ISSET_S(i, size, maskp)) { in sched__get_first_possible_cpu() 41 CPU_CLR_S(i, size, maskp); in sched__get_first_possible_cpu()
|
| /linux/sound/soc/sti/ |
| H A D | sti_uniperif.c | 183 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/arch/powerpc/platforms/512x/ |
| H A D | mpc5121_ads_cpld.c | 89 u8 __iomem *maskp) in cpld_pic_get_irq() argument 92 u8 mask = in_8(maskp); in cpld_pic_get_irq()
|
| /linux/arch/powerpc/perf/ |
| H A D | mpc7450-pmu.c | 150 static int mpc7450_get_constraint(u64 event, unsigned long *maskp, in mpc7450_get_constraint() argument 181 *maskp = mask; in mpc7450_get_constraint()
|
| H A D | power7-pmu.c | 83 static int power7_get_constraint(u64 event, unsigned long *maskp, in power7_get_constraint() argument 113 *maskp = mask; in power7_get_constraint()
|
| H A D | ppc970-pmu.c | 192 static int p970_get_constraint(u64 event, unsigned long *maskp, in p970_get_constraint() argument 239 *maskp = mask; in p970_get_constraint()
|
| H A D | power6-pmu.c | 269 static int p6_get_constraint(u64 event, unsigned long *maskp, in p6_get_constraint() argument 298 *maskp = mask; in p6_get_constraint()
|
| H A D | power5-pmu.c | 138 static int power5_get_constraint(u64 event, unsigned long *maskp, in power5_get_constraint() argument 206 *maskp = mask; in power5_get_constraint()
|
| H A D | power5+-pmu.c | 134 static int power5p_get_constraint(u64 event, unsigned long *maskp, in power5p_get_constraint() argument 184 *maskp = mask; in power5p_get_constraint()
|
| H A D | isa207-common.h | 280 int isa207_get_constraint(u64 event, unsigned long *maskp, unsigned long *valp, u64 event_config1);
|
| /linux/drivers/scsi/elx/efct/ |
| H A D | efct_hw_queues.c | 108 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/sound/core/ |
| H A D | pcm_lib.c | 1223 struct snd_mask *maskp = constrs_mask(constrs, var); in snd_pcm_hw_constraint_mask() local 1224 *maskp->bits &= mask; in snd_pcm_hw_constraint_mask() 1225 memset(maskp->bits + 1, 0, (SNDRV_MASK_MAX-32) / 8); /* clear rest */ in snd_pcm_hw_constraint_mask() 1226 if (*maskp->bits == 0) in snd_pcm_hw_constraint_mask() 1245 struct snd_mask *maskp = constrs_mask(constrs, var); in snd_pcm_hw_constraint_mask64() local 1246 maskp->bits[0] &= (u_int32_t)mask; in snd_pcm_hw_constraint_mask64() 1247 maskp->bits[1] &= (u_int32_t)(mask >> 32); in snd_pcm_hw_constraint_mask64() 1248 memset(maskp->bits + 2, 0, (SNDRV_MASK_MAX-64) / 8); /* clear rest */ in snd_pcm_hw_constraint_mask64() 1249 if (! maskp->bits[0] && ! maskp->bits[1]) in snd_pcm_hw_constraint_mask64()
|
| /linux/drivers/net/can/spi/ |
| H A D | mcp251x.c | 513 unsigned long *maskp, unsigned long *bitsp) in mcp251x_gpio_get_multiple() argument 520 if (maskp[0] & MCP251X_GPIO_INPUT_MASK) { in mcp251x_gpio_get_multiple() 525 if (maskp[0] & MCP251X_GPIO_OUTPUT_MASK) { in mcp251x_gpio_get_multiple() 560 unsigned long *maskp, unsigned long *bitsp) in mcp251x_gpio_set_multiple() argument 566 mask = FIELD_GET(MCP251X_GPIO_OUTPUT_MASK, maskp[0]); in mcp251x_gpio_set_multiple()
|
| /linux/arch/arm64/lib/ |
| H A D | insn.c | 25 u32 *maskp, int *shiftp) in aarch64_get_imm_shift_mask() argument 76 *maskp = mask; in aarch64_get_imm_shift_mask()
|
| /linux/drivers/infiniband/sw/rxe/ |
| H A D | rxe_verbs.c | 676 unsigned int *maskp, unsigned int *lengthp) in validate_send_wr() argument 730 *maskp = mask; in validate_send_wr()
|
| /linux/fs/nfsd/ |
| H A D | nfs4state.c | 3740 u32 *maskp = (u32 *)xdr_reserve_space(&stream, sizeof(*maskp)); in nfsd4_cb_notify_prepare() local 3743 if (!maskp) { in nfsd4_cb_notify_prepare() 3748 p = nfsd4_encode_notify_event(&stream, nne, dp, nf, maskp); in nfsd4_cb_notify_prepare() 3757 ncn->ncn_nf[i].notify_mask.element = maskp; in nfsd4_cb_notify_prepare() 3765 u32 *maskp = (u32 *)xdr_reserve_space(&stream, sizeof(*maskp)); in nfsd4_cb_notify_prepare() local 3768 if (maskp) in nfsd4_cb_notify_prepare() 3785 *maskp = BIT(NOTIFY4_CHANGE_DIR_ATTRS); in nfsd4_cb_notify_prepare() 3787 ncn->ncn_nf[count].notify_mask.element = maskp; in nfsd4_cb_notify_prepare()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_tc.c | 3212 #define SAME_VAL_MASK(type, valp, maskp, matchvalp, matchmaskp) ({ \ argument 3215 type maskx = *(type *)(maskp); \ 3222 static bool cmp_val_mask(void *valp, void *maskp, void *matchvalp, in cmp_val_mask() argument 3229 same = SAME_VAL_MASK(u8, valp, maskp, matchvalp, matchmaskp); in cmp_val_mask() 3232 same = SAME_VAL_MASK(u16, valp, maskp, matchvalp, matchmaskp); in cmp_val_mask() 3235 same = SAME_VAL_MASK(u32, valp, maskp, matchvalp, matchmaskp); in cmp_val_mask()
|
| /linux/drivers/scsi/lpfc/ |
| H A D | lpfc_init.c | 12706 const struct cpumask *maskp; in lpfc_cpuhp_get_eq() local 12716 maskp = pci_irq_get_affinity(phba->pcidev, idx); in lpfc_cpuhp_get_eq() 12717 if (!maskp) in lpfc_cpuhp_get_eq() 12724 if (!cpumask_and(tmp, maskp, cpumask_of(cpu))) in lpfc_cpuhp_get_eq() 12732 cpumask_and(tmp, maskp, cpu_online_mask); in lpfc_cpuhp_get_eq() 12991 const struct cpumask *maskp; in lpfc_sli4_enable_msix() local 13074 maskp = pci_irq_get_affinity(phba->pcidev, index); in lpfc_sli4_enable_msix() 13077 for_each_cpu_and(cpu, maskp, cpu_present_mask) { in lpfc_sli4_enable_msix()
|