/linux-master/include/asm-generic/bitops/ |
H A D | generic-non-atomic.h | 30 unsigned long mask = BIT_MASK(nr); local 33 *p |= mask; 39 unsigned long mask = BIT_MASK(nr); local 42 *p &= ~mask; 57 unsigned long mask = BIT_MASK(nr); local 60 *p ^= mask; 75 unsigned long mask = BIT_MASK(nr); local 79 *p = old | mask; 80 return (old & mask) != 0; 95 unsigned long mask local 107 unsigned long mask = BIT_MASK(nr); local 169 unsigned long mask = BIT_MASK(nr); local [all...] |
/linux-master/include/sound/ |
H A D | pcm_params.h | 26 static inline void snd_mask_none(struct snd_mask *mask) argument 28 memset(mask, 0, sizeof(*mask)); 31 static inline void snd_mask_any(struct snd_mask *mask) argument 33 memset(mask, 0xff, SNDRV_MASK_SIZE * sizeof(u_int32_t)); 36 static inline int snd_mask_empty(const struct snd_mask *mask) argument 40 if (mask->bits[i]) 45 static inline unsigned int snd_mask_min(const struct snd_mask *mask) argument 49 if (mask->bits[i]) 50 return __ffs(mask 55 snd_mask_max(const struct snd_mask *mask) argument 65 snd_mask_set(struct snd_mask *mask, unsigned int val) argument 71 snd_mask_set_format(struct snd_mask *mask, snd_pcm_format_t format) argument 77 snd_mask_reset(struct snd_mask *mask, unsigned int val) argument 82 snd_mask_set_range(struct snd_mask *mask, unsigned int from, unsigned int to) argument 90 snd_mask_reset_range(struct snd_mask *mask, unsigned int from, unsigned int to) argument 98 snd_mask_leave(struct snd_mask *mask, unsigned int val) argument 106 snd_mask_intersect(struct snd_mask *mask, const struct snd_mask *v) argument 114 snd_mask_eq(const struct snd_mask *mask, const struct snd_mask *v) argument 120 snd_mask_copy(struct snd_mask *mask, const struct snd_mask *v) argument 126 snd_mask_test(const struct snd_mask *mask, unsigned int val) argument 132 snd_mask_test_format(const struct snd_mask *mask, snd_pcm_format_t format) argument 138 snd_mask_single(const struct snd_mask *mask) argument 153 snd_mask_refine(struct snd_mask *mask, const struct snd_mask *v) argument 164 snd_mask_refine_first(struct snd_mask *mask) argument 172 snd_mask_refine_last(struct snd_mask *mask) argument 180 snd_mask_refine_min(struct snd_mask *mask, unsigned int val) argument 190 snd_mask_refine_max(struct snd_mask *mask, unsigned int val) argument 200 snd_mask_refine_set(struct snd_mask *mask, unsigned int val) argument 210 snd_mask_value(const struct snd_mask *mask) argument [all...] |
/linux-master/arch/mips/lib/ |
H A D | bitops.c | 25 unsigned long mask; local 28 mask = 1UL << bit; 30 *a |= mask; 46 unsigned long mask; local 49 mask = 1UL << bit; 51 *a &= ~mask; 67 unsigned long mask; local 70 mask = 1UL << bit; 72 *a ^= mask; 89 unsigned long mask; local 113 unsigned long mask; local 137 unsigned long mask; local 150 __mips_xor_is_negative_byte(unsigned long mask, volatile unsigned long *addr) argument [all...] |
/linux-master/fs/coda/ |
H A D | coda_cache.h | 15 void coda_cache_enter(struct inode *inode, int mask); 18 int coda_cache_check(struct inode *inode, int mask);
|
/linux-master/include/uapi/linux/netfilter/ |
H A D | xt_mark.h | 8 __u32 mark, mask; member in struct:xt_mark_tginfo2 12 __u32 mark, mask; member in struct:xt_mark_mtinfo1
|
/linux-master/arch/um/include/shared/ |
H A D | frame_kern.h | 10 struct pt_regs *regs, sigset_t *mask); 12 struct pt_regs *regs, sigset_t *mask);
|
/linux-master/drivers/gpu/drm/amd/display/dc/dcn10/ |
H A D | dcn10_hw_sequencer_debug.h | 33 void dcn10_clear_status_bits(struct dc *dc, unsigned int mask); 41 unsigned int mask);
|
/linux-master/arch/powerpc/platforms/8xx/ |
H A D | pic.h | 11 * Some internal interrupt registers use an 8-bit mask for the interrupt 14 static inline uint mk_int_int_mask(uint mask) argument 16 return (1 << (7 - (mask/2)));
|
/linux-master/arch/powerpc/include/asm/ |
H A D | word-at-a-time.h | 23 unsigned long mask = (val & c->low_bits) + c->low_bits; local 24 return ~(mask | rhs); 27 #define create_zero_mask(mask) (mask) 29 static inline long find_zero(unsigned long mask) argument 33 asm (PPC_CNTLZL "%0,%1" : "=r" (leading_zero_bits) : "r" (mask)); 44 static inline unsigned long zero_bytemask(unsigned long mask) argument 46 return ~1ul << __fls(mask); 91 static inline unsigned long find_zero(unsigned long mask) argument 93 return mask >> 97 zero_bytemask(unsigned long mask) argument 119 count_masked_bytes(long mask) argument 133 find_zero(unsigned long mask) argument 141 unsigned long mask = ((a - c->one_bits) & ~a) & c->high_bits; local [all...] |
/linux-master/tools/testing/selftests/powerpc/primitives/ |
H A D | word-at-a-time.h | 23 unsigned long mask = (val & c->low_bits) + c->low_bits; local 24 return ~(mask | rhs); 27 #define create_zero_mask(mask) (mask) 29 static inline long find_zero(unsigned long mask) argument 33 asm (PPC_CNTLZL "%0,%1" : "=r" (leading_zero_bits) : "r" (mask)); 44 static inline unsigned long zero_bytemask(unsigned long mask) argument 46 return ~1ul << __fls(mask); 91 static inline unsigned long find_zero(unsigned long mask) argument 93 return mask >> 97 zero_bytemask(unsigned long mask) argument 119 count_masked_bytes(long mask) argument 133 find_zero(unsigned long mask) argument 141 unsigned long mask = ((a - c->one_bits) & ~a) & c->high_bits; local [all...] |
/linux-master/arch/sh/include/mach-common/mach/ |
H A D | magicpanelr2.h | 19 #define SETBITS_OUTB(mask, reg) __raw_writeb(__raw_readb(reg) | mask, reg) 20 #define SETBITS_OUTW(mask, reg) __raw_writew(__raw_readw(reg) | mask, reg) 21 #define SETBITS_OUTL(mask, reg) __raw_writel(__raw_readl(reg) | mask, reg) 22 #define CLRBITS_OUTB(mask, reg) __raw_writeb(__raw_readb(reg) & ~mask, reg) 23 #define CLRBITS_OUTW(mask, reg) __raw_writew(__raw_readw(reg) & ~mask, re [all...] |
H A D | secureedge5410.h | 41 #define SECUREEDGE_WRITE_IOPORT(val, mask) (*SECUREEDGE_IOPORT_ADDR = \ 43 ((secureedge5410_ioport & ~(mask)) | ((val) & (mask)))))
|
/linux-master/drivers/mmc/host/ |
H A D | sdhci-cqhci.h | 15 static inline void sdhci_and_cqhci_reset(struct sdhci_host *host, u8 mask) argument 17 if ((host->mmc->caps2 & MMC_CAP2_CQE) && (mask & SDHCI_RESET_ALL) && 21 sdhci_reset(host, mask);
|
/linux-master/arch/powerpc/mm/ptdump/ |
H A D | 8xx.c | 15 .mask = _PAGE_HUGE, 18 .mask = _PAGE_SPS, 24 .mask = _PAGE_RO | _PAGE_NA, 28 .mask = _PAGE_RO | _PAGE_NA, 32 .mask = _PAGE_RO | _PAGE_NA, 36 .mask = _PAGE_EXEC, 41 .mask = _PAGE_PRESENT, 46 .mask = _PAGE_GUARDED, 51 .mask = _PAGE_DIRTY, 56 .mask [all...] |
H A D | shared.c | 14 .mask = _PAGE_READ, 19 .mask = _PAGE_WRITE, 24 .mask = _PAGE_EXEC, 29 .mask = _PAGE_PRESENT, 34 .mask = _PAGE_COHERENT, 39 .mask = _PAGE_GUARDED, 44 .mask = _PAGE_DIRTY, 49 .mask = _PAGE_ACCESSED, 54 .mask = _PAGE_WRITETHRU, 59 .mask [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
H A D | dr_ste_v1.h | 37 struct mlx5dr_match_param *mask); 39 struct mlx5dr_match_param *mask); 41 struct mlx5dr_match_param *mask); 43 struct mlx5dr_match_param *mask); 45 struct mlx5dr_match_param *mask); 47 struct mlx5dr_match_param *mask); 49 struct mlx5dr_match_param *mask); 51 struct mlx5dr_match_param *mask); 53 struct mlx5dr_match_param *mask); 55 struct mlx5dr_match_param *mask); [all...] |
/linux-master/arch/sh/include/asm/ |
H A D | bitops-op32.h | 32 unsigned long mask = BIT_MASK(nr); local 35 *p |= mask; 51 unsigned long mask = BIT_MASK(nr); local 54 *p &= ~mask; 79 unsigned long mask = BIT_MASK(nr); local 82 *p ^= mask; 98 unsigned long mask = BIT_MASK(nr); local 102 *p = old | mask; 103 return (old & mask) != 0; 118 unsigned long mask local 130 unsigned long mask = BIT_MASK(nr); local [all...] |
/linux-master/kernel/time/ |
H A D | timekeeping_internal.h | 19 static inline u64 clocksource_delta(u64 now, u64 last, u64 mask) argument 21 u64 ret = (now - last) & mask; 24 * Prevent time going backwards by checking the MSB of mask in 27 return ret & ~(mask >> 1) ? 0 : ret; 30 static inline u64 clocksource_delta(u64 now, u64 last, u64 mask) argument 32 return (now - last) & mask;
|
/linux-master/arch/powerpc/sysdev/ |
H A D | fsl_rcpm.c | 30 unsigned int mask = 1 << hw_cpu; local 32 setbits32(&rcpm_v1_regs->cpmimr, mask); 33 setbits32(&rcpm_v1_regs->cpmcimr, mask); 34 setbits32(&rcpm_v1_regs->cpmmcmr, mask); 35 setbits32(&rcpm_v1_regs->cpmnmimr, mask); 41 unsigned int mask = 1 << hw_cpu; local 43 setbits32(&rcpm_v2_regs->tpmimr0, mask); 44 setbits32(&rcpm_v2_regs->tpmcimr0, mask); 45 setbits32(&rcpm_v2_regs->tpmmcmr0, mask); 46 setbits32(&rcpm_v2_regs->tpmnmimr0, mask); 52 unsigned int mask = 1 << hw_cpu; local 63 unsigned int mask = 1 << hw_cpu; local 71 rcpm_v1_set_ip_power(bool enable, u32 mask) argument 79 rcpm_v2_set_ip_power(bool enable, u32 mask) argument 90 unsigned int mask = 1 << hw_cpu; local 108 u32 mask = 1 << cpu_core_index_of_thread(cpu); local 167 unsigned int mask = 1 << hw_cpu; local 191 u32 mask = 1 << cpu_core_index_of_thread(cpu); local 286 static u32 mask; local [all...] |
/linux-master/arch/mips/bcm63xx/ |
H A D | prom.c | 23 u32 reg, mask; local 33 mask = CKCTL_3368_ALL_SAFE_EN; 35 mask = CKCTL_6328_ALL_SAFE_EN; 37 mask = CKCTL_6338_ALL_SAFE_EN; 39 mask = CKCTL_6345_ALL_SAFE_EN; 41 mask = CKCTL_6348_ALL_SAFE_EN; 43 mask = CKCTL_6358_ALL_SAFE_EN; 45 mask = CKCTL_6362_ALL_SAFE_EN; 47 mask = CKCTL_6368_ALL_SAFE_EN; 49 mask [all...] |
/linux-master/arch/arm/mach-s3c/ |
H A D | wakeup-mask.c | 5 // Support for wakeup mask interrupts on newer SoCs 14 #include "wakeup-mask.h" 18 const struct samsung_wakeup_mask *mask, int nr_mask) 25 for (; nr_mask > 0; nr_mask--, mask++) { 26 if (mask->irq == NO_WAKEUP_IRQ) { 27 val |= mask->bit; 31 data = irq_get_irq_data(mask->irq); 35 val &= ~mask->bit; 37 val |= mask->bit; 17 samsung_sync_wakemask(void __iomem *reg, const struct samsung_wakeup_mask *mask, int nr_mask) argument
|
/linux-master/drivers/phy/mediatek/ |
H A D | phy-mtk-io.h | 30 static inline void mtk_phy_update_bits(void __iomem *reg, u32 mask, u32 val) argument 34 tmp &= ~mask; 35 tmp |= val & mask; 39 /* field @mask shall be constant and continuous */ 40 #define mtk_phy_update_field(reg, mask, val) \ 42 BUILD_BUG_ON_MSG(!__builtin_constant_p(mask), "mask is not constant"); \ 43 mtk_phy_update_bits(reg, mask, FIELD_PREP(mask, val)); \
|
/linux-master/arch/arm64/include/asm/ |
H A D | word-at-a-time.h | 24 unsigned long mask = ((a - c->one_bits) & ~a) & c->high_bits; local 25 *bits = mask; 26 return mask; 37 static inline unsigned long find_zero(unsigned long mask) argument 39 return fls64(mask) >> 3; 42 #define zero_bytemask(mask) (mask)
|
/linux-master/arch/riscv/include/asm/ |
H A D | word-at-a-time.h | 25 unsigned long mask = ((val - c->one_bits) & ~val) & c->high_bits; local 26 *bits = mask; 27 return mask; 42 static inline unsigned long find_zero(unsigned long mask) argument 44 return fls64(mask) >> 3; 47 /* The mask we created is directly usable as a bytemask */ 48 #define zero_bytemask(mask) (mask)
|
/linux-master/arch/mips/kernel/ |
H A D | cmpxchg.c | 12 u32 old32, new32, load32, mask; local 20 mask = GENMASK((size * BITS_PER_BYTE) - 1, 0); 21 val &= mask; 24 * Calculate a shift & mask that correspond to the value we wish to 32 mask <<= shift; 43 new32 = (load32 & ~mask) | (val << shift); 47 return (load32 & mask) >> shift; 53 u32 mask, old32, new32, load32, load; local 61 mask = GENMASK((size * BITS_PER_BYTE) - 1, 0); 62 old &= mask; [all...] |