/Linux-v5.4/drivers/misc/habanalabs/goya/ |
D | goya_security.c | 30 u32 pb_addr, mask; in goya_init_mme_protection_bits() local 69 mask = 1 << ((mmMME_DUMMY & 0x7F) >> 2); in goya_init_mme_protection_bits() 70 mask |= 1 << ((mmMME_RESET & 0x7F) >> 2); in goya_init_mme_protection_bits() 71 mask |= 1 << ((mmMME_STALL & 0x7F) >> 2); in goya_init_mme_protection_bits() 72 mask |= 1 << ((mmMME_SM_BASE_ADDRESS_LOW & 0x7F) >> 2); in goya_init_mme_protection_bits() 73 mask |= 1 << ((mmMME_SM_BASE_ADDRESS_HIGH & 0x7F) >> 2); in goya_init_mme_protection_bits() 74 mask |= 1 << ((mmMME_DBGMEM_ADD & 0x7F) >> 2); in goya_init_mme_protection_bits() 75 mask |= 1 << ((mmMME_DBGMEM_DATA_WR & 0x7F) >> 2); in goya_init_mme_protection_bits() 76 mask |= 1 << ((mmMME_DBGMEM_DATA_RD & 0x7F) >> 2); in goya_init_mme_protection_bits() 77 mask |= 1 << ((mmMME_DBGMEM_CTRL & 0x7F) >> 2); in goya_init_mme_protection_bits() [all …]
|
/Linux-v5.4/drivers/video/fbdev/riva/ |
D | nvreg.h | 31 #define MASKEXPAND(mask) BITMASK(1?mask,0?mask) argument 34 #define SetBF(mask,value) ((value) << (0?mask)) argument 35 #define GetBF(var,mask) (((unsigned)((var) & MASKEXPAND(mask))) >> (0?mask) ) argument 37 #define MaskAndSetBF(var,mask,value) (var)=(((var)&(~MASKEXPAND(mask)) \ argument 38 | SetBF(mask,value))) 51 #define DEVICE_DEF(device,mask,value) \ argument 52 SetBF(NV_##device##_##mask,NV_##device##_##mask##_##value) 53 #define DEVICE_VALUE(device,mask,value) SetBF(NV_##device##_##mask,value) argument 54 #define DEVICE_MASK(device,mask) MASKEXPAND(NV_##device##_##mask) argument 59 #define PDAC_Def(mask,value) DEVICE_DEF(PDAC,mask,value) argument [all …]
|
/Linux-v5.4/drivers/mfd/ |
D | sec-irq.c | 23 .mask = S2MPS11_IRQ_PWRONF_MASK, 27 .mask = S2MPS11_IRQ_PWRONR_MASK, 31 .mask = S2MPS11_IRQ_JIGONBF_MASK, 35 .mask = S2MPS11_IRQ_JIGONBR_MASK, 39 .mask = S2MPS11_IRQ_ACOKBF_MASK, 43 .mask = S2MPS11_IRQ_ACOKBR_MASK, 47 .mask = S2MPS11_IRQ_PWRON1S_MASK, 51 .mask = S2MPS11_IRQ_MRB_MASK, 55 .mask = S2MPS11_IRQ_RTC60S_MASK, 59 .mask = S2MPS11_IRQ_RTCA1_MASK, [all …]
|
D | wm8350-irq.c | 37 int mask; member 45 .mask = WM8350_OC_LS_EINT, 51 .mask = WM8350_UV_DC1_EINT, 56 .mask = WM8350_UV_DC2_EINT, 61 .mask = WM8350_UV_DC3_EINT, 66 .mask = WM8350_UV_DC4_EINT, 71 .mask = WM8350_UV_DC5_EINT, 76 .mask = WM8350_UV_DC6_EINT, 81 .mask = WM8350_UV_LDO1_EINT, 86 .mask = WM8350_UV_LDO2_EINT, [all …]
|
D | da9052-irq.c | 38 .mask = DA9052_IRQ_MASK_POS_1, 42 .mask = DA9052_IRQ_MASK_POS_2, 46 .mask = DA9052_IRQ_MASK_POS_3, 50 .mask = DA9052_IRQ_MASK_POS_4, 54 .mask = DA9052_IRQ_MASK_POS_5, 58 .mask = DA9052_IRQ_MASK_POS_6, 62 .mask = DA9052_IRQ_MASK_POS_7, 66 .mask = DA9052_IRQ_MASK_POS_8, 70 .mask = DA9052_IRQ_MASK_POS_1, 74 .mask = DA9052_IRQ_MASK_POS_2, [all …]
|
D | wm831x-irq.c | 28 int mask; member 35 .mask = WM831X_TEMP_THW_EINT, 40 .mask = WM831X_GP1_EINT, 45 .mask = WM831X_GP2_EINT, 50 .mask = WM831X_GP3_EINT, 55 .mask = WM831X_GP4_EINT, 60 .mask = WM831X_GP5_EINT, 65 .mask = WM831X_GP6_EINT, 70 .mask = WM831X_GP7_EINT, 75 .mask = WM831X_GP8_EINT, [all …]
|
/Linux-v5.4/include/sound/ |
D | pcm_params.h | 31 static inline void snd_mask_none(struct snd_mask *mask) in snd_mask_none() argument 33 memset(mask, 0, sizeof(*mask)); in snd_mask_none() 36 static inline void snd_mask_any(struct snd_mask *mask) in snd_mask_any() argument 38 memset(mask, 0xff, SNDRV_MASK_SIZE * sizeof(u_int32_t)); in snd_mask_any() 41 static inline int snd_mask_empty(const struct snd_mask *mask) in snd_mask_empty() argument 45 if (mask->bits[i]) in snd_mask_empty() 50 static inline unsigned int snd_mask_min(const struct snd_mask *mask) in snd_mask_min() argument 54 if (mask->bits[i]) in snd_mask_min() 55 return __ffs(mask->bits[i]) + (i << 5); in snd_mask_min() 60 static inline unsigned int snd_mask_max(const struct snd_mask *mask) in snd_mask_max() argument [all …]
|
/Linux-v5.4/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_tc_u32_parse.h | 41 int (*val)(struct ch_filter_specification *f, u32 val, u32 mask); 46 u32 val, u32 mask) in cxgb4_fill_ipv4_tos() argument 49 f->mask.tos = (ntohl(mask) >> 16) & 0x000000FF; in cxgb4_fill_ipv4_tos() 55 u32 val, u32 mask) in cxgb4_fill_ipv4_frag() argument 61 mask_val = ntohl(mask) & 0x0000FFFF; in cxgb4_fill_ipv4_frag() 65 f->mask.frag = 1; in cxgb4_fill_ipv4_frag() 68 f->mask.frag = 1; in cxgb4_fill_ipv4_frag() 77 u32 val, u32 mask) in cxgb4_fill_ipv4_proto() argument 80 f->mask.proto = (ntohl(mask) >> 16) & 0x000000FF; in cxgb4_fill_ipv4_proto() 86 u32 val, u32 mask) in cxgb4_fill_ipv4_src_ip() argument [all …]
|
/Linux-v5.4/include/asm-generic/ |
D | word-at-a-time.h | 19 unsigned long mask = (val & c->low_bits) + c->low_bits; in prep_zero_mask() local 20 return ~(mask | rhs); in prep_zero_mask() 23 #define create_zero_mask(mask) (mask) argument 25 static inline long find_zero(unsigned long mask) in find_zero() argument 29 if (mask >> 32) in find_zero() 30 mask >>= 32; in find_zero() 34 if (mask >> 16) in find_zero() 35 mask >>= 16; in find_zero() 38 return (mask >> 8) ? byte : byte + 1; in find_zero() 49 #define zero_bytemask(mask) (~1ul << __fls(mask)) argument [all …]
|
/Linux-v5.4/include/linux/ |
D | fsnotify.h | 27 __u32 mask) in fsnotify_dirent() argument 29 return fsnotify(dir, mask, d_inode(dentry), FSNOTIFY_EVENT_INODE, in fsnotify_dirent() 35 struct dentry *dentry, __u32 mask) in fsnotify_parent() argument 40 return __fsnotify_parent(path, dentry, mask); in fsnotify_parent() 48 __u32 mask) in fsnotify_path() argument 50 int ret = fsnotify_parent(path, NULL, mask); in fsnotify_path() 54 return fsnotify(inode, mask, path, FSNOTIFY_EVENT_PATH, NULL, 0); in fsnotify_path() 58 static inline int fsnotify_perm(struct file *file, int mask) in fsnotify_perm() argument 67 if (!(mask & (MAY_READ | MAY_OPEN))) in fsnotify_perm() 69 if (mask & MAY_OPEN) { in fsnotify_perm() [all …]
|
/Linux-v5.4/drivers/video/fbdev/ |
D | c2p_core.h | 21 unsigned int shift, u32 mask) in _transp() argument 23 u32 t = (d[i1] ^ (d[i2] >> shift)) & mask; in _transp() 62 u32 mask = get_mask(n); in transp8() local 67 _transp(d, 0, 1, n, mask); in transp8() 69 _transp(d, 2, 3, n, mask); in transp8() 71 _transp(d, 4, 5, n, mask); in transp8() 73 _transp(d, 6, 7, n, mask); in transp8() 78 _transp(d, 0, 2, n, mask); in transp8() 79 _transp(d, 1, 3, n, mask); in transp8() 81 _transp(d, 4, 6, n, mask); in transp8() [all …]
|
/Linux-v5.4/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 …]
|
/Linux-v5.4/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 …]
|
/Linux-v5.4/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 …]
|
/Linux-v5.4/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 …]
|
/Linux-v5.4/fs/ocfs2/cluster/ |
D | masklog.h | 120 #define __mlog_test_u64(mask, bits) \ argument 121 ( (u32)(mask & 0xffffffff) & bits.words[0] || \ 122 ((u64)(mask) >> 32) & bits.words[1] ) 123 #define __mlog_set_u64(mask, bits) do { \ argument 124 bits.words[0] |= (u32)(mask & 0xffffffff); \ 125 bits.words[1] |= (u64)(mask) >> 32; \ 127 #define __mlog_clear_u64(mask, bits) do { \ argument 128 bits.words[0] &= ~((u32)(mask & 0xffffffff)); \ 129 bits.words[1] &= ~((u64)(mask) >> 32); \ 131 #define MLOG_BITS_RHS(mask) { \ argument [all …]
|
/Linux-v5.4/arch/sh/include/asm/ |
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 | 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-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 …]
|
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/gpio/dce80/ |
D | hw_translate_dce80.c | 48 uint32_t mask = 1; in index_from_vector() local 51 if (vector == mask) in index_from_vector() 55 mask <<= 1; in index_from_vector() 56 } while (mask); in index_from_vector() 65 uint32_t mask, in offset_to_id() argument 73 switch (mask) { in offset_to_id() 103 switch (mask) { in offset_to_id() 130 switch (mask) { in offset_to_id() 145 switch (mask) { in offset_to_id() 166 *en = index_from_vector(mask); in offset_to_id() [all …]
|
/Linux-v5.4/kernel/bpf/ |
D | tnum.c | 12 #define TNUM(_v, _m) (struct tnum){.value = _v, .mask = _m} 14 const struct tnum tnum_unknown = { .value = 0, .mask = -1 }; 39 return TNUM(a.value << shift, a.mask << shift); in tnum_lshift() 44 return TNUM(a.value >> shift, a.mask >> shift); in tnum_rshift() 54 return TNUM((s64)a.value >> min_shift, (s64)a.mask >> min_shift); in tnum_arshift() 61 sm = a.mask + b.mask; in tnum_add() 65 mu = chi | a.mask | b.mask; in tnum_add() 74 alpha = dv + a.mask; in tnum_sub() 75 beta = dv - b.mask; in tnum_sub() 77 mu = chi | a.mask | b.mask; in tnum_sub() [all …]
|
/Linux-v5.4/drivers/media/platform/rcar-vin/ |
D | rcar-core.c | 72 unsigned int mask = 0; in rvin_group_get_mask() local 74 for (route = vin->info->routes; route->mask; route++) { in rvin_group_get_mask() 81 mask |= route->mask; in rvin_group_get_mask() 85 return mask; in rvin_group_get_mask() 118 unsigned int mask = ~0; in rvin_group_link_notify() local 169 mask &= rvin_group_get_mask(group->vin[i], csi_id, channel); in rvin_group_link_notify() 203 mask_new = mask & rvin_group_get_mask(vin, csi_id, channel); in rvin_group_link_notify() 204 vin_dbg(vin, "Try link change mask: 0x%x new: 0x%x\n", mask, mask_new); in rvin_group_link_notify() 703 for (route = vin->info->routes; route->mask; route++) { in rvin_group_notify_complete() 948 { .csi = RVIN_CSI40, .channel = 0, .vin = 0, .mask = BIT(0) | BIT(3) }, [all …]
|
/Linux-v5.4/drivers/gpio/ |
D | gpio-vr41xx.c | 228 u16 mask; in vr41xx_set_irq_trigger() local 231 mask = 1 << pin; in vr41xx_set_irq_trigger() 233 giu_set(GIUINTTYPL, mask); in vr41xx_set_irq_trigger() 235 giu_set(GIUINTHTSELL, mask); in vr41xx_set_irq_trigger() 237 giu_clear(GIUINTHTSELL, mask); in vr41xx_set_irq_trigger() 241 giu_set(GIUFEDGEINHL, mask); in vr41xx_set_irq_trigger() 242 giu_clear(GIUREDGEINHL, mask); in vr41xx_set_irq_trigger() 245 giu_clear(GIUFEDGEINHL, mask); in vr41xx_set_irq_trigger() 246 giu_set(GIUREDGEINHL, mask); in vr41xx_set_irq_trigger() 249 giu_set(GIUFEDGEINHL, mask); in vr41xx_set_irq_trigger() [all …]
|
/Linux-v5.4/tools/testing/selftests/powerpc/primitives/ |
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 …]
|
/Linux-v5.4/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 …]
|