/arch/sparc/include/asm/ |
D | bitops_32.h | 22 unsigned long ___set_bit(unsigned long *addr, unsigned long mask); 23 unsigned long ___clear_bit(unsigned long *addr, unsigned long mask); 24 unsigned long ___change_bit(unsigned long *addr, unsigned long mask); 34 unsigned long *ADDR, mask; in test_and_set_bit() local 37 mask = 1 << (nr & 31); in test_and_set_bit() 39 return ___set_bit(ADDR, mask) != 0; in test_and_set_bit() 44 unsigned long *ADDR, mask; in set_bit() local 47 mask = 1 << (nr & 31); in set_bit() 49 (void) ___set_bit(ADDR, mask); in set_bit() 54 unsigned long *ADDR, mask; in test_and_clear_bit() local [all …]
|
/arch/xtensa/include/asm/ |
D | bitops.h | 104 unsigned long mask = 1UL << (bit & 31); in set_bit() local 115 : "a" (mask), "a" (p) in set_bit() 122 unsigned long mask = 1UL << (bit & 31); in clear_bit() local 133 : "a" (~mask), "a" (p) in clear_bit() 140 unsigned long mask = 1UL << (bit & 31); in change_bit() local 151 : "a" (mask), "a" (p) in change_bit() 159 unsigned long mask = 1UL << (bit & 31); in test_and_set_bit() local 170 : "a" (mask), "a" (p) in test_and_set_bit() 173 return value & mask; in test_and_set_bit() 180 unsigned long mask = 1UL << (bit & 31); in test_and_clear_bit() local [all …]
|
/arch/mips/lib/ |
D | bitops.c | 24 unsigned long mask; in __mips_set_bit() local 28 mask = 1UL << bit; in __mips_set_bit() 30 *a |= mask; in __mips_set_bit() 46 unsigned long mask; in __mips_clear_bit() local 50 mask = 1UL << bit; in __mips_clear_bit() 52 *a &= ~mask; in __mips_clear_bit() 68 unsigned long mask; in __mips_change_bit() local 72 mask = 1UL << bit; in __mips_change_bit() 74 *a ^= mask; in __mips_change_bit() 91 unsigned long mask; in __mips_test_and_set_bit() local [all …]
|
/arch/sh/include/asm/ |
D | bitops-llsc.h | 7 int mask; in set_bit() local 12 mask = 1 << (nr & 0x1f); in set_bit() 21 : "r" (a), "r" (mask) in set_bit() 28 int mask; in clear_bit() local 33 mask = 1 << (nr & 0x1f); in clear_bit() 42 : "r" (a), "r" (~mask) in clear_bit() 49 int mask; in change_bit() local 54 mask = 1 << (nr & 0x1f); in change_bit() 63 : "r" (a), "r" (mask) in change_bit() 70 int mask, retval; in test_and_set_bit() local [all …]
|
D | bitops-grb.h | 7 int mask; in set_bit() local 12 mask = 1 << (nr & 0x1f); in set_bit() 25 : "r" (mask) in set_bit() 31 int mask; in clear_bit() local 36 mask = ~(1 << (nr & 0x1f)); in clear_bit() 48 : "r" (mask) in clear_bit() 54 int mask; in change_bit() local 59 mask = 1 << (nr & 0x1f); in change_bit() 71 : "r" (mask) in change_bit() 77 int mask, retval; in test_and_set_bit() local [all …]
|
D | bitops-cas.h | 16 unsigned mask, old; in set_bit() local 20 mask = 1U << (nr & 0x1f); in set_bit() 23 while (__bo_cas(a, old, old|mask) != old); in set_bit() 28 unsigned mask, old; in clear_bit() local 32 mask = 1U << (nr & 0x1f); in clear_bit() 35 while (__bo_cas(a, old, old&~mask) != old); in clear_bit() 40 unsigned mask, old; in change_bit() local 44 mask = 1U << (nr & 0x1f); in change_bit() 47 while (__bo_cas(a, old, old^mask) != old); in change_bit() 52 unsigned mask, old; in test_and_set_bit() local [all …]
|
D | word-at-a-time.h | 18 static inline long count_masked_bytes(long mask) in count_masked_bytes() argument 21 long a = (0x0ff0001+mask) >> 23; in count_masked_bytes() 23 return a & mask; in count_masked_bytes() 29 unsigned long mask = ((a - c->one_bits) & ~a) & c->high_bits; in has_zero() local 30 *bits = mask; in has_zero() 31 return mask; in has_zero() 46 #define zero_bytemask(mask) (mask) argument 48 static inline unsigned long find_zero(unsigned long mask) in find_zero() argument 50 return count_masked_bytes(mask); in find_zero()
|
D | bitops-op32.h | 31 unsigned long mask = BIT_MASK(nr); in __set_bit() local 34 *p |= mask; in __set_bit() 49 unsigned long mask = BIT_MASK(nr); in __clear_bit() local 52 *p &= ~mask; in __clear_bit() 76 unsigned long mask = BIT_MASK(nr); in __change_bit() local 79 *p ^= mask; in __change_bit() 94 unsigned long mask = BIT_MASK(nr); in __test_and_set_bit() local 98 *p = old | mask; in __test_and_set_bit() 99 return (old & mask) != 0; in __test_and_set_bit() 113 unsigned long mask = BIT_MASK(nr); in __test_and_clear_bit() local [all …]
|
/arch/powerpc/include/asm/ |
D | word-at-a-time.h | 23 unsigned long mask = (val & c->low_bits) + c->low_bits; in prep_zero_mask() local 24 return ~(mask | rhs); in prep_zero_mask() 27 #define create_zero_mask(mask) (mask) argument 29 static inline long find_zero(unsigned long mask) in find_zero() argument 33 asm (PPC_CNTLZL "%0,%1" : "=r" (leading_zero_bits) : "r" (mask)); in find_zero() 44 static inline unsigned long zero_bytemask(unsigned long mask) in zero_bytemask() argument 46 return ~1ul << __fls(mask); in zero_bytemask() 91 static inline unsigned long find_zero(unsigned long mask) in find_zero() argument 93 return mask >> 3; in find_zero() 97 static inline unsigned long zero_bytemask(unsigned long mask) in zero_bytemask() argument [all …]
|
/arch/powerpc/sysdev/ |
D | fsl_rcpm.c | 30 unsigned int mask = 1 << hw_cpu; in rcpm_v1_irq_mask() local 32 setbits32(&rcpm_v1_regs->cpmimr, mask); in rcpm_v1_irq_mask() 33 setbits32(&rcpm_v1_regs->cpmcimr, mask); in rcpm_v1_irq_mask() 34 setbits32(&rcpm_v1_regs->cpmmcmr, mask); in rcpm_v1_irq_mask() 35 setbits32(&rcpm_v1_regs->cpmnmimr, mask); in rcpm_v1_irq_mask() 41 unsigned int mask = 1 << hw_cpu; in rcpm_v2_irq_mask() local 43 setbits32(&rcpm_v2_regs->tpmimr0, mask); in rcpm_v2_irq_mask() 44 setbits32(&rcpm_v2_regs->tpmcimr0, mask); in rcpm_v2_irq_mask() 45 setbits32(&rcpm_v2_regs->tpmmcmr0, mask); in rcpm_v2_irq_mask() 46 setbits32(&rcpm_v2_regs->tpmnmimr0, mask); in rcpm_v2_irq_mask() [all …]
|
D | ipic.c | 34 .mask = IPIC_SIMSR_H, 41 .mask = IPIC_SIMSR_H, 48 .mask = IPIC_SIMSR_H, 55 .mask = IPIC_SIMSR_H, 62 .mask = IPIC_SIMSR_H, 69 .mask = IPIC_SIMSR_H, 76 .mask = IPIC_SIMSR_H, 83 .mask = IPIC_SIMSR_H, 90 .mask = IPIC_SIMSR_H, 97 .mask = IPIC_SIMSR_H, [all …]
|
/arch/powerpc/mm/ptdump/ |
D | book3s64.c | 14 .mask = _PAGE_PRIVILEGED, 19 .mask = _PAGE_READ, 24 .mask = _PAGE_WRITE, 29 .mask = _PAGE_EXEC, 34 .mask = _PAGE_PTE, 39 .mask = _PAGE_PRESENT, 44 .mask = _PAGE_PRESENT | _PAGE_INVALID, 49 .mask = H_PAGE_HASHPTE, 54 .mask = _PAGE_DIRTY, 59 .mask = _PAGE_ACCESSED, [all …]
|
D | 8xx.c | 14 .mask = _PAGE_SH, 19 .mask = _PAGE_RO | _PAGE_NA, 23 .mask = _PAGE_RO | _PAGE_NA, 27 .mask = _PAGE_RO | _PAGE_NA, 31 .mask = _PAGE_EXEC, 36 .mask = _PAGE_PRESENT, 41 .mask = _PAGE_GUARDED, 46 .mask = _PAGE_DIRTY, 51 .mask = _PAGE_ACCESSED, 56 .mask = _PAGE_NO_CACHE, [all …]
|
/arch/x86/include/asm/ |
D | mpspec.h | 94 unsigned long mask[PHYSID_ARRAY_SIZE]; member 99 #define physid_set(physid, map) set_bit(physid, (map).mask) 100 #define physid_clear(physid, map) clear_bit(physid, (map).mask) 101 #define physid_isset(physid, map) test_bit(physid, (map).mask) 103 test_and_set_bit(physid, (map).mask) 106 bitmap_and((dst).mask, (src1).mask, (src2).mask, MAX_LOCAL_APIC) 109 bitmap_or((dst).mask, (src1).mask, (src2).mask, MAX_LOCAL_APIC) 112 bitmap_zero((map).mask, MAX_LOCAL_APIC) 115 bitmap_complement((dst).mask, (src).mask, MAX_LOCAL_APIC) 118 bitmap_empty((map).mask, MAX_LOCAL_APIC) [all …]
|
D | word-at-a-time.h | 28 static inline long count_masked_bytes(unsigned long mask) in count_masked_bytes() argument 30 return mask*0x0001020304050608ul >> 56; in count_masked_bytes() 36 static inline long count_masked_bytes(long mask) in count_masked_bytes() argument 39 long a = (0x0ff0001+mask) >> 23; in count_masked_bytes() 41 return a & mask; in count_masked_bytes() 49 unsigned long mask = ((a - c->one_bits) & ~a) & c->high_bits; in has_zero() local 50 *bits = mask; in has_zero() 51 return mask; in has_zero() 66 #define zero_bytemask(mask) (mask) argument 68 static inline unsigned long find_zero(unsigned long mask) in find_zero() argument [all …]
|
/arch/openrisc/include/asm/bitops/ |
D | atomic.h | 14 unsigned long mask = BIT_MASK(nr); in set_bit() local 25 : "r"(p), "r"(mask) in set_bit() 31 unsigned long mask = BIT_MASK(nr); in clear_bit() local 42 : "r"(p), "r"(~mask) in clear_bit() 48 unsigned long mask = BIT_MASK(nr); in change_bit() local 59 : "r"(p), "r"(mask) in change_bit() 65 unsigned long mask = BIT_MASK(nr); in test_and_set_bit() local 77 : "r"(p), "r"(mask) in test_and_set_bit() 80 return (old & mask) != 0; in test_and_set_bit() 85 unsigned long mask = BIT_MASK(nr); in test_and_clear_bit() local [all …]
|
/arch/sh/include/mach-common/mach/ |
D | magicpanelr2.h | 19 #define SETBITS_OUTB(mask, reg) __raw_writeb(__raw_readb(reg) | mask, reg) argument 20 #define SETBITS_OUTW(mask, reg) __raw_writew(__raw_readw(reg) | mask, reg) argument 21 #define SETBITS_OUTL(mask, reg) __raw_writel(__raw_readl(reg) | mask, reg) argument 22 #define CLRBITS_OUTB(mask, reg) __raw_writeb(__raw_readb(reg) & ~mask, reg) argument 23 #define CLRBITS_OUTW(mask, reg) __raw_writew(__raw_readw(reg) & ~mask, reg) argument 24 #define CLRBITS_OUTL(mask, reg) __raw_writel(__raw_readl(reg) & ~mask, reg) argument
|
/arch/arm/mach-imx/ |
D | iomux-v1.c | 37 unsigned long mask, unsigned long value) in imx_iomuxv1_rmwl() argument 41 reg &= ~mask; in imx_iomuxv1_rmwl() 50 unsigned long mask = 1 << pin; in imx_iomuxv1_set_puen() local 52 imx_iomuxv1_rmwl(MXC_PUEN(port), mask, on ? mask : 0); in imx_iomuxv1_set_puen() 58 unsigned long mask = 1 << pin; in imx_iomuxv1_set_ddir() local 60 imx_iomuxv1_rmwl(MXC_DDIR(port), mask, out ? mask : 0); in imx_iomuxv1_set_ddir() 66 unsigned long mask = 1 << pin; in imx_iomuxv1_set_gpr() local 68 imx_iomuxv1_rmwl(MXC_GPR(port), mask, af ? mask : 0); in imx_iomuxv1_set_gpr() 74 unsigned long mask = 1 << pin; in imx_iomuxv1_set_gius() local 76 imx_iomuxv1_rmwl(MXC_GIUS(port), mask, inuse ? mask : 0); in imx_iomuxv1_set_gius() [all …]
|
/arch/mips/bcm63xx/ |
D | prom.c | 23 u32 reg, mask; in prom_init() local 33 mask = CKCTL_3368_ALL_SAFE_EN; in prom_init() 35 mask = CKCTL_6328_ALL_SAFE_EN; in prom_init() 37 mask = CKCTL_6338_ALL_SAFE_EN; in prom_init() 39 mask = CKCTL_6345_ALL_SAFE_EN; in prom_init() 41 mask = CKCTL_6348_ALL_SAFE_EN; in prom_init() 43 mask = CKCTL_6358_ALL_SAFE_EN; in prom_init() 45 mask = CKCTL_6362_ALL_SAFE_EN; in prom_init() 47 mask = CKCTL_6368_ALL_SAFE_EN; in prom_init() 49 mask = 0; in prom_init() [all …]
|
/arch/mips/pci/ |
D | pci-malta.c | 81 resource_size_t start, end, map, start1, end1, map1, map2, map3, mask; in mips_pcibios_init() local 117 mask = ~(start ^ end); in mips_pcibios_init() 120 mask != ~((mask & -mask) - 1)); in mips_pcibios_init() 123 gt64120_controller.mem_offset = (start & mask) - (map & mask); in mips_pcibios_init() 134 mask = ~(start ^ end); in mips_pcibios_init() 137 mask != ~((mask & -mask) - 1)); in mips_pcibios_init() 138 gt64120_io_resource.start = map & mask; in mips_pcibios_init() 139 gt64120_io_resource.end = (map & mask) | ~mask; in mips_pcibios_init() 187 MSC_READ(MSC01_PCI_SC2PMMSKL, mask); in mips_pcibios_init() 189 msc_mem_resource.start = start & mask; in mips_pcibios_init() [all …]
|
/arch/mips/kernel/ |
D | cmpxchg.c | 12 u32 old32, new32, load32, mask; in __xchg_small() local 20 mask = GENMASK((size * BITS_PER_BYTE) - 1, 0); in __xchg_small() 21 val &= mask; in __xchg_small() 32 mask <<= shift; in __xchg_small() 43 new32 = (load32 & ~mask) | (val << shift); in __xchg_small() 47 return (load32 & mask) >> shift; in __xchg_small() 53 u32 mask, old32, new32, load32, load; in __cmpxchg_small() local 61 mask = GENMASK((size * BITS_PER_BYTE) - 1, 0); in __cmpxchg_small() 62 old &= mask; in __cmpxchg_small() 63 new &= mask; in __cmpxchg_small() [all …]
|
D | irq-gt641xx.c | 34 u32 mask; in mask_gt641xx_irq() local 37 mask = GT_READ(GT_INTRMASK_OFS); in mask_gt641xx_irq() 38 mask &= ~GT641XX_IRQ_TO_BIT(d->irq); in mask_gt641xx_irq() 39 GT_WRITE(GT_INTRMASK_OFS, mask); in mask_gt641xx_irq() 46 u32 cause, mask; in mask_ack_gt641xx_irq() local 49 mask = GT_READ(GT_INTRMASK_OFS); in mask_ack_gt641xx_irq() 50 mask &= ~GT641XX_IRQ_TO_BIT(d->irq); in mask_ack_gt641xx_irq() 51 GT_WRITE(GT_INTRMASK_OFS, mask); in mask_ack_gt641xx_irq() 62 u32 mask; in unmask_gt641xx_irq() local 65 mask = GT_READ(GT_INTRMASK_OFS); in unmask_gt641xx_irq() [all …]
|
/arch/xtensa/kernel/ |
D | irq.c | 92 u32 mask = 1 << hw; in xtensa_irq_map() local 94 if (mask & XCHAL_INTTYPE_MASK_SOFTWARE) { in xtensa_irq_map() 98 } else if (mask & XCHAL_INTTYPE_MASK_EXTERN_EDGE) { in xtensa_irq_map() 102 } else if (mask & XCHAL_INTTYPE_MASK_EXTERN_LEVEL) { in xtensa_irq_map() 106 } else if (mask & XCHAL_INTTYPE_MASK_TIMER) { in xtensa_irq_map() 111 } else if (mask & XCHAL_INTTYPE_MASK_PROFILING) { in xtensa_irq_map() 127 unsigned mask = XCHAL_INTTYPE_MASK_EXTERN_EDGE | in xtensa_map_ext_irq() local 131 for (i = 0; mask; ++i, mask >>= 1) { in xtensa_map_ext_irq() 132 if ((mask & 1) && ext_irq-- == 0) in xtensa_map_ext_irq() 140 unsigned mask = (XCHAL_INTTYPE_MASK_EXTERN_EDGE | in xtensa_get_ext_irq_no() local [all …]
|
/arch/alpha/kernel/ |
D | sys_rawhide.c | 48 rawhide_update_irq_hw(int hose, int mask) in rawhide_update_irq_hw() argument 50 *(vuip)MCPCIA_INT_MASK0(MCPCIA_HOSE2MID(hose)) = mask; in rawhide_update_irq_hw() 61 unsigned int mask, hose; in rawhide_enable_irq() local 70 mask = 1 << irq; in rawhide_enable_irq() 73 mask |= cached_irq_masks[hose]; in rawhide_enable_irq() 74 cached_irq_masks[hose] = mask; in rawhide_enable_irq() 75 rawhide_update_irq_hw(hose, mask); in rawhide_enable_irq() 82 unsigned int mask, hose; in rawhide_disable_irq() local 91 mask = ~(1 << irq) | hose_irq_masks[hose]; in rawhide_disable_irq() 94 mask &= cached_irq_masks[hose]; in rawhide_disable_irq() [all …]
|
/arch/nios2/include/asm/ |
D | asm-macros.h | 19 .macro ANDI32 reg1, reg2, mask 20 .if \mask & 0xffff 21 .if \mask & 0xffff0000 22 movhi \reg1, %hi(\mask) 23 movui \reg1, %lo(\mask) 26 andi \reg1, \reg2, %lo(\mask) 29 andhi \reg1, \reg2, %hi(\mask) 39 .macro ORI32 reg1, reg2, mask 40 .if \mask & 0xffff 41 .if \mask & 0xffff0000 [all …]
|