Home
last modified time | relevance | path

Searched refs:mask (Results 1 – 25 of 3500) sorted by relevance

12345678910>>...140

/linux-5.3.11/drivers/misc/habanalabs/goya/
H A Dgoya_security.c30 u32 pb_addr, mask; in goya_init_mme_protection_bits() local
81 WREG32(pb_addr + word_offset, ~mask); in goya_init_mme_protection_bits()
86 mask |= 1 << ((mmMME_AGU & 0x7F) >> 2); in goya_init_mme_protection_bits()
95 mask |= 1 << ((mmMME_TE & 0x7F) >> 2); in goya_init_mme_protection_bits()
104 WREG32(pb_addr + word_offset, ~mask); in goya_init_mme_protection_bits()
128 WREG32(pb_addr + word_offset, ~mask); in goya_init_mme_protection_bits()
160 WREG32(pb_addr + word_offset, ~mask); in goya_init_mme_protection_bits()
180 WREG32(pb_addr + word_offset, ~mask); in goya_init_mme_protection_bits()
274 u32 pb_addr, mask; in goya_init_dma_protection_bits() local
674 u32 pb_addr, mask; in goya_init_tpc_protection_bits() local
[all …]
/linux-5.3.11/drivers/video/fbdev/riva/
H A Dnvreg.h31 #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
52 SetBF(NV_##device##_##mask,NV_##device##_##mask##_##value)
61 #define PDAC_Mask(mask) DEVICE_MASK(PDAC,mask) argument
68 #define PFB_Mask(mask) DEVICE_MASK(PFB,mask) argument
75 #define PRM_Mask(mask) DEVICE_MASK(PRM,mask) argument
89 #define PDMA_Mask(mask) DEVICE_MASK(PDMA,mask) argument
131 #define PMC_Mask(mask) DEVICE_MASK(PMC,mask) argument
138 #define PMC_Mask(mask) DEVICE_MASK(PMC,mask) argument
[all …]
/linux-5.3.11/drivers/mfd/
H A Dsec-irq.c23 .mask = S2MPS11_IRQ_PWRONF_MASK,
27 .mask = S2MPS11_IRQ_PWRONR_MASK,
39 .mask = S2MPS11_IRQ_ACOKBF_MASK,
43 .mask = S2MPS11_IRQ_ACOKBR_MASK,
51 .mask = S2MPS11_IRQ_MRB_MASK,
59 .mask = S2MPS11_IRQ_RTCA1_MASK,
63 .mask = S2MPS11_IRQ_RTCA0_MASK,
67 .mask = S2MPS11_IRQ_SMPL_MASK,
75 .mask = S2MPS11_IRQ_WTSR_MASK,
118 .mask = S2MPS11_IRQ_MRB_MASK,
[all …]
H A Dwm8350-irq.c37 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,
166 .mask = WM8350_CS1_EINT,
171 .mask = WM8350_CS2_EINT,
297 .mask = WM8350_GP0_EINT,
302 .mask = WM8350_GP1_EINT,
[all …]
H A Dda9052-irq.c38 .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 …]
H A Dwm831x-irq.c28 int mask; member
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,
80 .mask = WM831X_GP9_EINT,
[all …]
/linux-5.3.11/include/sound/
H A Dpcm_params.h33 memset(mask, 0, sizeof(*mask)); in snd_mask_none()
45 if (mask->bits[i]) in snd_mask_empty()
54 if (mask->bits[i]) in snd_mask_min()
64 if (mask->bits[i]) in snd_mask_max()
107 snd_mask_none(mask); in snd_mask_leave()
128 *mask = *v; in snd_mask_copy()
140 if (! mask->bits[i]) in snd_mask_single()
142 if (mask->bits[i] & (mask->bits[i] - 1)) in snd_mask_single()
157 if (snd_mask_empty(mask)) in snd_mask_refine()
166 snd_mask_leave(mask, snd_mask_min(mask)); in snd_mask_refine_first()
[all …]
/linux-5.3.11/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_tc_u32_parse.h49 f->mask.tos = (ntohl(mask) >> 16) & 0x000000FF; in cxgb4_fill_ipv4_tos()
89 memcpy(&f->mask.fip[0], &mask, sizeof(u32)); in cxgb4_fill_ipv4_src_ip()
98 memcpy(&f->mask.lip[0], &mask, sizeof(u32)); in cxgb4_fill_ipv4_dst_ip()
135 memcpy(&f->mask.fip[0], &mask, sizeof(u32)); in cxgb4_fill_ipv6_src_ip0()
144 memcpy(&f->mask.fip[4], &mask, sizeof(u32)); in cxgb4_fill_ipv6_src_ip1()
153 memcpy(&f->mask.fip[8], &mask, sizeof(u32)); in cxgb4_fill_ipv6_src_ip2()
171 memcpy(&f->mask.lip[0], &mask, sizeof(u32)); in cxgb4_fill_ipv6_dst_ip0()
180 memcpy(&f->mask.lip[4], &mask, sizeof(u32)); in cxgb4_fill_ipv6_dst_ip1()
189 memcpy(&f->mask.lip[8], &mask, sizeof(u32)); in cxgb4_fill_ipv6_dst_ip2()
222 f->mask.fport = ntohl(mask) >> 16; in cxgb4_fill_l4_ports()
[all …]
/linux-5.3.11/include/asm-generic/
H A Dword-at-a-time.h20 return ~(mask | rhs); in prep_zero_mask()
23 #define create_zero_mask(mask) (mask) 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()
49 #define zero_bytemask(mask) (~1ul << __fls(mask)) argument
87 return a & mask; in count_masked_bytes()
96 *bits = mask; in has_zero()
97 return mask; in has_zero()
[all …]
/linux-5.3.11/include/linux/
H A Dfsnotify.h27 __u32 mask) in fsnotify_dirent() argument
48 __u32 mask) in fsnotify_path() argument
96 mask |= FS_ISDIR; in fsnotify_link_count()
122 mask |= FS_ISDIR; in fsnotify_move()
162 mask |= FS_ISDIR; in fsnotify_inoderemove()
237 mask |= FS_ISDIR; in fsnotify_access()
253 mask |= FS_ISDIR; in fsnotify_modify()
269 mask |= FS_ISDIR; in fsnotify_open()
287 mask |= FS_ISDIR; in fsnotify_close()
315 __u32 mask = 0; in fsnotify_change() local
[all …]
/linux-5.3.11/drivers/video/fbdev/
H A Dc2p_core.h62 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()
82 _transp(d, 5, 7, n, mask); in transp8()
104 u32 mask = get_mask(n); in transp4() local
[all …]
/linux-5.3.11/arch/xtensa/include/asm/
H A Dbitops.h115 : "a" (mask), "a" (p) in set_bit()
133 : "a" (~mask), "a" (p) in clear_bit()
151 : "a" (mask), "a" (p) in change_bit()
170 : "a" (mask), "a" (p) in test_and_set_bit()
173 return value & mask; in test_and_set_bit()
194 return value & mask; in test_and_clear_bit()
212 : "a" (mask), "a" (p) in test_and_change_bit()
215 return value & mask; in test_and_change_bit()
292 return tmp & mask; in test_and_set_bit()
313 return tmp & mask; in test_and_clear_bit()
[all …]
/linux-5.3.11/arch/sparc/include/asm/
H A Dbitops_32.h34 unsigned long *ADDR, mask; in test_and_set_bit() local
37 mask = 1 << (nr & 31); in test_and_set_bit()
44 unsigned long *ADDR, mask; in set_bit() local
47 mask = 1 << (nr & 31); in set_bit()
54 unsigned long *ADDR, mask; in test_and_clear_bit() local
57 mask = 1 << (nr & 31); in test_and_clear_bit()
64 unsigned long *ADDR, mask; in clear_bit() local
67 mask = 1 << (nr & 31); in clear_bit()
74 unsigned long *ADDR, mask; in test_and_change_bit() local
77 mask = 1 << (nr & 31); in test_and_change_bit()
[all …]
/linux-5.3.11/arch/powerpc/sysdev/
H A Dfsl_rcpm.c30 unsigned int mask = 1 << hw_cpu; in rcpm_v1_irq_mask() local
32 setbits32(&rcpm_v1_regs->cpmimr, mask); in rcpm_v1_irq_mask()
41 unsigned int mask = 1 << hw_cpu; in rcpm_v2_irq_mask() local
52 unsigned int mask = 1 << hw_cpu; in rcpm_v1_irq_unmask() local
63 unsigned int mask = 1 << hw_cpu; in rcpm_v2_irq_unmask() local
90 unsigned int mask = 1 << hw_cpu; in rcpm_v1_cpu_enter_state() local
167 unsigned int mask = 1 << hw_cpu; in rcpm_v1_cpu_exit_state() local
286 static u32 mask; in rcpm_common_freeze_time_base() local
289 mask = in_be32(tben_reg); in rcpm_common_freeze_time_base()
290 clrbits32(tben_reg, mask); in rcpm_common_freeze_time_base()
[all …]
/linux-5.3.11/arch/mips/lib/
H A Dbitops.c24 unsigned long mask; in __mips_set_bit() local
28 mask = 1UL << bit; in __mips_set_bit()
30 *a |= mask; in __mips_set_bit()
50 mask = 1UL << bit; in __mips_clear_bit()
52 *a &= ~mask; in __mips_clear_bit()
72 mask = 1UL << bit; in __mips_change_bit()
74 *a ^= mask; in __mips_change_bit()
99 *a |= mask; in __mips_test_and_set_bit()
125 *a |= mask; in __mips_test_and_set_bit_lock()
150 *a &= ~mask; in __mips_test_and_clear_bit()
[all …]
/linux-5.3.11/fs/ocfs2/cluster/
H A Dmasklog.h120 #define __mlog_test_u64(mask, bits) \ argument
122 ((u64)(mask) >> 32) & bits.words[1] )
131 #define MLOG_BITS_RHS(mask) { \ argument
133 [0] = (u32)(mask & 0xffffffff), \
134 [1] = (u64)(mask) >> 32, \
140 #define __mlog_test_u64(mask, bits) ((mask) & bits.words[0]) argument
142 bits.words[0] |= (mask); \
145 bits.words[0] &= ~(mask); \
147 #define MLOG_BITS_RHS(mask) { { (mask) } } argument
159 #define mlog(mask, fmt, ...) \ argument
[all …]
/linux-5.3.11/arch/sh/include/asm/
H A Dbitops-cas.h16 unsigned mask, old; in set_bit() local
20 mask = 1U << (nr & 0x1f); in set_bit()
28 unsigned mask, old; in clear_bit() local
32 mask = 1U << (nr & 0x1f); in clear_bit()
40 unsigned mask, old; in change_bit() local
52 unsigned mask, old; in test_and_set_bit() local
61 return !!(old & mask); in test_and_set_bit()
66 unsigned mask, old; in test_and_clear_bit() local
75 return !!(old & mask); in test_and_clear_bit()
80 unsigned mask, old; in test_and_change_bit() local
[all …]
H A Dbitops-grb.h7 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
48 : "r" (mask) in clear_bit()
54 int mask; in change_bit() local
71 : "r" (mask) in change_bit()
77 int mask, retval; in test_and_set_bit() local
82 mask = 1 << (nr & 0x1f); in test_and_set_bit()
115 not_mask = ~mask; in test_and_clear_bit()
[all …]
H A Dbitops-llsc.h7 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
42 : "r" (a), "r" (~mask) in clear_bit()
49 int mask; in change_bit() local
63 : "r" (a), "r" (mask) in change_bit()
70 int mask, retval; in test_and_set_bit() local
95 int mask, retval; in test_and_clear_bit() local
112 : "r" (a), "r" (mask), "r" (~mask) in test_and_clear_bit()
[all …]
/linux-5.3.11/kernel/bpf/
H A Dtnum.c61 sm = a.mask + b.mask; in tnum_add()
65 mu = chi | a.mask | b.mask; in tnum_add()
77 mu = chi | a.mask | b.mask; in tnum_sub()
96 mu = a.mask | b.mask; in tnum_or()
105 mu = a.mask | b.mask; in tnum_xor()
114 while (mask) { in hma()
115 if (mask & 1) in hma()
117 mask >>= 1; in hma()
129 acc = hma(TNUM(pi, 0), a.mask, b.mask | b.value); in tnum_mul()
141 mu = a.mask & b.mask; in tnum_intersect()
[all …]
/linux-5.3.11/drivers/gpu/drm/amd/display/dc/gpio/dce80/
H A Dhw_translate_dce80.c48 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()
362 info->mask = in id_to_offset()
[all …]
/linux-5.3.11/drivers/media/platform/rcar-vin/
H A Drcar-core.c72 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()
672 for (route = vin->info->routes; route->mask; route++) { in rvin_group_notify_complete()
904 { .csi = RVIN_CSI40, .channel = 1, .vin = 0, .mask = BIT(2) },
905 { .csi = RVIN_CSI20, .channel = 0, .vin = 1, .mask = BIT(0) },
[all …]
/linux-5.3.11/drivers/gpio/
H A Dgpio-vr41xx.c228 u16 mask; in vr41xx_set_irq_trigger() local
231 mask = 1 << pin; in vr41xx_set_irq_trigger()
306 u16 mask; in vr41xx_set_irq_level() local
309 mask = 1 << pin; in vr41xx_set_irq_level()
336 mask = 1 << pin; in giu_set_direction()
364 reg |= mask; in giu_set_direction()
366 reg &= ~mask; in giu_set_direction()
376 u16 reg, mask; in vr41xx_gpio_get() local
395 if (reg & mask) in vr41xx_gpio_get()
428 reg |= mask; in vr41xx_gpio_set()
[all …]
/linux-5.3.11/arch/powerpc/include/asm/
H A Dword-at-a-time.h24 return ~(mask | rhs); in prep_zero_mask()
27 #define create_zero_mask(mask) (mask) argument
46 return ~1ul << __fls(mask); in zero_bytemask()
93 return mask >> 3; in find_zero()
99 return (1UL << mask) - 1; in zero_bytemask()
122 long a = (0x0ff0001+mask) >> 23; in count_masked_bytes()
124 return a & mask; in count_masked_bytes()
135 return count_masked_bytes(mask); in find_zero()
142 *bits = mask; in has_zero()
143 return mask; in has_zero()
[all …]
/linux-5.3.11/tools/testing/selftests/powerpc/primitives/
H A Dword-at-a-time.h24 return ~(mask | rhs); in prep_zero_mask()
27 #define create_zero_mask(mask) (mask) argument
46 return ~1ul << __fls(mask); in zero_bytemask()
93 return mask >> 3; in find_zero()
99 return (1UL << mask) - 1; in zero_bytemask()
122 long a = (0x0ff0001+mask) >> 23; in count_masked_bytes()
124 return a & mask; in count_masked_bytes()
135 return count_masked_bytes(mask); in find_zero()
142 *bits = mask; in has_zero()
143 return mask; in has_zero()
[all …]

Completed in 1449 milliseconds

12345678910>>...140