Home
last modified time | relevance | path

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

12345678910>>...148

/linux/drivers/accel/habanalabs/gaudi/
H A Dgaudi_security.c489 u32 pb_addr, mask; in gaudi_init_mme_protection_bits() local
546 WREG32(pb_addr + word_offset, ~mask); in gaudi_init_mme_protection_bits()
553 WREG32(pb_addr + word_offset, ~mask); in gaudi_init_mme_protection_bits()
587 WREG32(pb_addr + word_offset, ~mask); in gaudi_init_mme_protection_bits()
624 WREG32(pb_addr + word_offset, ~mask); in gaudi_init_mme_protection_bits()
644 WREG32(pb_addr + word_offset, ~mask); in gaudi_init_mme_protection_bits()
677 WREG32(pb_addr + word_offset, ~mask); in gaudi_init_mme_protection_bits()
714 WREG32(pb_addr + word_offset, ~mask); in gaudi_init_mme_protection_bits()
1473 u32 pb_addr, mask; in gaudi_init_dma_protection_bits() local
5189 u32 pb_addr, mask; in gaudi_init_nic_protection_bits() local
[all …]
/linux/drivers/accel/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/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/drivers/mfd/
H A Dsec-irq.c22 .mask = S2MPS11_IRQ_PWRONF_MASK,
26 .mask = S2MPS11_IRQ_PWRONR_MASK,
38 .mask = S2MPS11_IRQ_ACOKBF_MASK,
42 .mask = S2MPS11_IRQ_ACOKBR_MASK,
50 .mask = S2MPS11_IRQ_MRB_MASK,
58 .mask = S2MPS11_IRQ_RTCA1_MASK,
62 .mask = S2MPS11_IRQ_RTCA0_MASK,
66 .mask = S2MPS11_IRQ_SMPL_MASK,
74 .mask = S2MPS11_IRQ_WTSR_MASK,
117 .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/arch/s390/kernel/
H A Dfpu.c16 int mask; in __kernel_fpu_begin() local
41 if (mask) { in __kernel_fpu_begin()
50 if (mask) { in __kernel_fpu_begin()
64 int mask; in __kernel_fpu_end() local
90 if (mask) { in __kernel_fpu_end()
99 if (mask) { in __kernel_fpu_end()
113 int mask; in load_fpu_state() local
133 if (mask) { in load_fpu_state()
142 if (mask) { in load_fpu_state()
155 int mask; in save_fpu_state() local
[all …]
/linux/include/sound/
H A Dpcm_params.h28 memset(mask, 0, sizeof(*mask)); in snd_mask_none()
40 if (mask->bits[i]) in snd_mask_empty()
49 if (mask->bits[i]) in snd_mask_min()
59 if (mask->bits[i]) in snd_mask_max()
102 snd_mask_none(mask); in snd_mask_leave()
123 *mask = *v; in snd_mask_copy()
142 if (! mask->bits[i]) in snd_mask_single()
144 if (mask->bits[i] & (mask->bits[i] - 1)) in snd_mask_single()
159 if (snd_mask_empty(mask)) in snd_mask_refine()
168 snd_mask_leave(mask, snd_mask_min(mask)); in snd_mask_refine_first()
[all …]
/linux/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/drivers/net/ethernet/mellanox/mlx5/core/steering/
H A Ddr_matcher.c422 mask.outer = matcher->mask.outer; in dr_matcher_set_ste_builders()
425 mask.misc = matcher->mask.misc; in dr_matcher_set_ste_builders()
428 mask.inner = matcher->mask.inner; in dr_matcher_set_ste_builders()
431 mask.misc2 = matcher->mask.misc2; in dr_matcher_set_ste_builders()
434 mask.misc3 = matcher->mask.misc3; in dr_matcher_set_ste_builders()
437 mask.misc4 = matcher->mask.misc4; in dr_matcher_set_ste_builders()
440 mask.misc5 = matcher->mask.misc5; in dr_matcher_set_ste_builders()
494 if (DR_MASK_IS_L2_DST(mask.outer, mask.misc, outer)) in dr_matcher_set_ste_builders()
507 if (DR_MASK_IS_ETH_L4_SET(mask.outer, mask.misc, outer)) in dr_matcher_set_ste_builders()
602 if (DR_MASK_IS_L2_DST(mask.inner, mask.misc, inner)) in dr_matcher_set_ste_builders()
[all …]
H A Ddr_ste.c11 u8 mask[DR_STE_SIZE_MASK]; member
85 memset(&hw_ste->mask, 0, sizeof(hw_ste->mask)); in dr_ste_set_always_hit()
91 hw_ste->mask[0] = 0; in dr_ste_set_always_miss()
722 if (mask->misc.source_port && mask->misc.source_port != 0xffff) { in mlx5dr_ste_build_pre_check()
759 &matcher->mask, value); in mlx5dr_ste_build_ste_arr()
1031 u8 *data = (u8 *)mask->match_buf; in mlx5dr_ste_copy_param()
1040 buff = mask->match_buf; in mlx5dr_ste_copy_param()
1169 struct mlx5dr_match_param *mask, in mlx5dr_ste_build_eth_l2_src() argument
1179 struct mlx5dr_match_param *mask, in mlx5dr_ste_build_eth_l2_dst() argument
1238 ste_ctx->build_mpls_init(sb, mask); in mlx5dr_ste_build_mpls()
[all …]
H A Ddr_ste_v1.h37 struct mlx5dr_match_param *mask);
39 struct mlx5dr_match_param *mask);
41 struct mlx5dr_match_param *mask);
53 struct mlx5dr_match_param *mask);
57 struct mlx5dr_match_param *mask);
59 struct mlx5dr_match_param *mask);
67 struct mlx5dr_match_param *mask);
73 struct mlx5dr_match_param *mask);
75 struct mlx5dr_match_param *mask);
83 struct mlx5dr_match_param *mask);
[all …]
/linux/include/asm-generic/
H A Dword-at-a-time.h21 return ~(mask | rhs); in prep_zero_mask()
24 #define create_zero_mask(mask) (mask) argument
30 if (mask >> 32) in find_zero()
31 mask >>= 32; in find_zero()
35 if (mask >> 16) in find_zero()
36 mask >>= 16; in find_zero()
50 #define zero_bytemask(mask) (~1ul << __fls(mask)) argument
88 return a & mask; in count_masked_bytes()
97 *bits = mask; in has_zero()
98 return mask; in has_zero()
[all …]
/linux/fs/xfs/
H A Dxfs_health.c98 unsigned int mask) in xfs_fs_mark_sick() argument
112 unsigned int mask) in xfs_fs_mark_corrupt() argument
127 unsigned int mask) in xfs_fs_mark_healthy() argument
157 unsigned int mask) in xfs_rt_mark_sick() argument
171 unsigned int mask) in xfs_rt_mark_corrupt() argument
186 unsigned int mask) in xfs_rt_mark_healthy() argument
217 unsigned int mask) in xfs_agno_mark_sick() argument
233 unsigned int mask) in xfs_ag_mark_sick() argument
247 unsigned int mask) in xfs_ag_mark_corrupt() argument
262 unsigned int mask) in xfs_ag_mark_healthy() argument
[all …]
/linux/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/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/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/fs/ocfs2/cluster/
H A Dmasklog.h118 #define __mlog_test_u64(mask, bits) \ argument
120 ((u64)(mask) >> 32) & bits.words[1] )
129 #define MLOG_BITS_RHS(mask) { \ argument
131 [0] = (u32)(mask & 0xffffffff), \
132 [1] = (u64)(mask) >> 32, \
138 #define __mlog_test_u64(mask, bits) ((mask) & bits.words[0]) argument
140 bits.words[0] |= (mask); \
143 bits.words[0] &= ~(mask); \
145 #define MLOG_BITS_RHS(mask) { { (mask) } } argument
157 #define mlog(mask, fmt, ...) \ argument
[all …]
/linux/arch/mips/lib/
H A Dbitops.c25 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
49 mask = 1UL << bit; in __mips_clear_bit()
51 *a &= ~mask; in __mips_clear_bit()
70 mask = 1UL << bit; in __mips_change_bit()
72 *a ^= mask; in __mips_change_bit()
96 *a |= mask; in __mips_test_and_set_bit_lock()
120 *a &= ~mask; in __mips_test_and_clear_bit()
[all …]
/linux/drivers/iio/accel/
H A Dst_accel_core.c128 .mask = 0xf0,
142 .mask = 0xf0,
151 .mask = 0x30,
177 .mask = 0x80,
210 .mask = 0x18,
220 .mask = 0xe0,
230 .mask = 0x30,
251 .mask = 0x80,
289 .mask = 0xf0,
305 .mask = 0xf0,
[all …]
/linux/drivers/iio/imu/st_lsm6dsx/
H A Dst_lsm6dsx_core.c124 .mask = BIT(0),
128 .mask = BIT(7),
132 .mask = BIT(6),
232 .mask = BIT(0),
236 .mask = BIT(7),
240 .mask = BIT(6),
398 .mask = BIT(0),
402 .mask = BIT(7),
1805 switch (mask) { in st_lsm6dsx_read_raw()
1843 switch (mask) { in st_lsm6dsx_write_raw()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/gpio/dce60/
H A Dhw_translate_dce60.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/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/arch/s390/include/asm/
H A Dbitops.h91 return old & mask; in arch_test_and_set_bit()
102 return old & mask; in arch_test_and_clear_bit()
113 return old & mask; in arch_test_and_change_bit()
122 *p |= mask; in arch___set_bit()
131 *p &= ~mask; in arch___clear_bit()
140 *p ^= mask; in arch___change_bit()
151 *p |= mask; in arch___test_and_set_bit()
152 return old & mask; in arch___test_and_set_bit()
163 *p &= ~mask; in arch___test_and_clear_bit()
164 return old & mask; in arch___test_and_clear_bit()
[all …]

12345678910>>...148