Home
last modified time | relevance | path

Searched full:mask (Results 1 – 25 of 8572) sorted by relevance

12345678910>>...343

/linux-6.12.1/drivers/accel/habanalabs/gaudi/
Dgaudi_security.c489 u32 pb_addr, mask; in gaudi_init_mme_protection_bits() local
515 mask = 1U << ((mmMME0_CTRL_RESET & 0x7F) >> 2); in gaudi_init_mme_protection_bits()
516 mask |= 1U << ((mmMME0_CTRL_QM_STALL & 0x7F) >> 2); in gaudi_init_mme_protection_bits()
517 mask |= 1U << ((mmMME0_CTRL_SYNC_OBJECT_FIFO_TH & 0x7F) >> 2); in gaudi_init_mme_protection_bits()
518 mask |= 1U << ((mmMME0_CTRL_EUS_ROLLUP_CNT_ADD & 0x7F) >> 2); in gaudi_init_mme_protection_bits()
519 mask |= 1U << ((mmMME0_CTRL_INTR_CAUSE & 0x7F) >> 2); in gaudi_init_mme_protection_bits()
520 mask |= 1U << ((mmMME0_CTRL_INTR_MASK & 0x7F) >> 2); in gaudi_init_mme_protection_bits()
521 mask |= 1U << ((mmMME0_CTRL_LOG_SHADOW & 0x7F) >> 2); in gaudi_init_mme_protection_bits()
522 mask |= 1U << ((mmMME0_CTRL_PCU_RL_DESC0 & 0x7F) >> 2); in gaudi_init_mme_protection_bits()
523 mask |= 1U << ((mmMME0_CTRL_PCU_RL_TOKEN_UPDATE & 0x7F) >> 2); in gaudi_init_mme_protection_bits()
[all …]
/linux-6.12.1/drivers/accel/habanalabs/goya/
Dgoya_security.c30 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-6.12.1/drivers/video/fbdev/riva/
Dnvreg.h31 #define MASKEXPAND(mask) BITMASK(1?mask,0?mask) argument
33 /* Macro to set specific bitfields (mask has to be a macro x:y) ! */
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
[all …]
/linux-6.12.1/drivers/mfd/
Dsec-irq.c22 .mask = S2MPS11_IRQ_PWRONF_MASK,
26 .mask = S2MPS11_IRQ_PWRONR_MASK,
30 .mask = S2MPS11_IRQ_JIGONBF_MASK,
34 .mask = S2MPS11_IRQ_JIGONBR_MASK,
38 .mask = S2MPS11_IRQ_ACOKBF_MASK,
42 .mask = S2MPS11_IRQ_ACOKBR_MASK,
46 .mask = S2MPS11_IRQ_PWRON1S_MASK,
50 .mask = S2MPS11_IRQ_MRB_MASK,
54 .mask = S2MPS11_IRQ_RTC60S_MASK,
58 .mask = S2MPS11_IRQ_RTCA1_MASK,
[all …]
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,
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 …]
Dwm831x-irq.c28 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 …]
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 …]
Dpalmas.c48 .mask = TPS65917_RESERVED,
51 .mask = TPS65917_INT1_STATUS_PWRON,
54 .mask = TPS65917_INT1_STATUS_LONG_PRESS_KEY,
57 .mask = TPS65917_RESERVED,
60 .mask = TPS65917_INT1_STATUS_PWRDOWN,
63 .mask = TPS65917_INT1_STATUS_HOTDIE,
66 .mask = TPS65917_INT1_STATUS_VSYS_MON,
69 .mask = TPS65917_RESERVED,
73 .mask = TPS65917_RESERVED,
77 .mask = TPS65917_INT2_STATUS_OTP_ERROR,
[all …]
/linux-6.12.1/arch/s390/kernel/
Dfpu.c16 int mask; in __kernel_fpu_begin() local
22 flags &= state->hdr.mask; in __kernel_fpu_begin()
30 mask = flags & KERNEL_VXR; in __kernel_fpu_begin()
31 if (mask == KERNEL_VXR) { in __kernel_fpu_begin()
36 if (mask == KERNEL_VXR_MID) { in __kernel_fpu_begin()
40 mask = flags & KERNEL_VXR_LOW; in __kernel_fpu_begin()
41 if (mask) { in __kernel_fpu_begin()
42 if (mask == KERNEL_VXR_LOW) in __kernel_fpu_begin()
44 else if (mask == KERNEL_VXR_V0V7) in __kernel_fpu_begin()
49 mask = flags & KERNEL_VXR_HIGH; in __kernel_fpu_begin()
[all …]
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_ste.c11 u8 mask[DR_STE_SIZE_MASK]; member
40 /* Mask tag using byte mask, bit per byte */ in mlx5dr_ste_calc_hash_index()
79 memcpy(hw_ste->mask, bit_mask, DR_STE_SIZE_MASK); in mlx5dr_ste_set_bit_mask()
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()
700 "Partial ip_version mask with src/dst IP is not supported\n"); in dr_ste_build_pre_check_spec()
706 "Partial/no ethertype mask with src/dst IP is not supported\n"); in dr_ste_build_pre_check_spec()
715 struct mlx5dr_match_param *mask, in mlx5dr_ste_build_pre_check() argument
722 if (mask->misc.source_port && mask->misc.source_port != 0xffff) { in mlx5dr_ste_build_pre_check()
724 "Partial mask source_port is not supported\n"); in mlx5dr_ste_build_pre_check()
[all …]
Ddr_matcher.c116 dr_mask_is_tnl_vxlan_gpe(struct mlx5dr_match_param *mask, in dr_mask_is_tnl_vxlan_gpe() argument
119 return dr_mask_is_vxlan_gpe_set(&mask->misc3) && in dr_mask_is_tnl_vxlan_gpe()
157 dr_mask_is_tnl_geneve(struct mlx5dr_match_param *mask, in dr_mask_is_tnl_geneve() argument
160 return dr_mask_is_tnl_geneve_set(&mask->misc) && in dr_mask_is_tnl_geneve()
174 static bool dr_mask_is_tnl_gtpu(struct mlx5dr_match_param *mask, in dr_mask_is_tnl_gtpu() argument
177 return dr_mask_is_tnl_gtpu_set(&mask->misc3) && in dr_mask_is_tnl_gtpu()
186 static bool dr_mask_is_tnl_gtpu_dw_0(struct mlx5dr_match_param *mask, in dr_mask_is_tnl_gtpu_dw_0() argument
189 return mask->misc3.gtpu_dw_0 && in dr_mask_is_tnl_gtpu_dw_0()
198 static bool dr_mask_is_tnl_gtpu_teid(struct mlx5dr_match_param *mask, in dr_mask_is_tnl_gtpu_teid() argument
201 return mask->misc3.gtpu_teid && in dr_mask_is_tnl_gtpu_teid()
[all …]
Ddr_ste_v1.h37 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-6.12.1/include/sound/
Dpcm_params.h26 static inline void snd_mask_none(struct snd_mask *mask) in snd_mask_none() argument
28 memset(mask, 0, sizeof(*mask)); in snd_mask_none()
31 static inline void snd_mask_any(struct snd_mask *mask) in snd_mask_any() argument
33 memset(mask, 0xff, SNDRV_MASK_SIZE * sizeof(u_int32_t)); in snd_mask_any()
36 static inline int snd_mask_empty(const struct snd_mask *mask) in snd_mask_empty() argument
40 if (mask->bits[i]) in snd_mask_empty()
45 static inline unsigned int snd_mask_min(const struct snd_mask *mask) in snd_mask_min() argument
49 if (mask->bits[i]) in snd_mask_min()
50 return __ffs(mask->bits[i]) + (i << 5); in snd_mask_min()
55 static inline unsigned int snd_mask_max(const struct snd_mask *mask) in snd_mask_max() argument
[all …]
/linux-6.12.1/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_tc_u32_parse.h40 /* Fill the value/mask pair in the spec if matched */
41 int (*val)(struct ch_filter_specification *f, __be32 val, __be32 mask);
46 __be32 val, __be32 mask) in cxgb4_fill_ipv4_tos() argument
49 f->mask.tos = (ntohl(mask) >> 16) & 0x000000FF; in cxgb4_fill_ipv4_tos()
55 __be32 val, __be32 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 __be32 val, __be32 mask) in cxgb4_fill_ipv4_proto() argument
80 f->mask.proto = (ntohl(mask) >> 16) & 0x000000FF; in cxgb4_fill_ipv4_proto()
[all …]
/linux-6.12.1/net/sched/
Dcls_flower.c111 struct fl_flow_key mask; member
126 struct fl_flow_mask *mask; member
155 static unsigned short int fl_mask_range(const struct fl_flow_mask *mask) in fl_mask_range() argument
157 return mask->range.end - mask->range.start; in fl_mask_range()
160 static void fl_mask_update_range(struct fl_flow_mask *mask) in fl_mask_update_range() argument
162 const u8 *bytes = (const u8 *) &mask->key; in fl_mask_update_range()
163 size_t size = sizeof(mask->key); in fl_mask_update_range()
179 mask->range.start = rounddown(first, sizeof(long)); in fl_mask_update_range()
180 mask->range.end = roundup(last + 1, sizeof(long)); in fl_mask_update_range()
184 const struct fl_flow_mask *mask) in fl_key_get_start() argument
[all …]
/linux-6.12.1/include/asm-generic/
Dword-at-a-time.h20 unsigned long mask = (val & c->low_bits) + c->low_bits; in prep_zero_mask() local
21 return ~(mask | rhs); in prep_zero_mask()
24 #define create_zero_mask(mask) (mask) argument
26 static inline long find_zero(unsigned long mask) in find_zero() 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()
39 return (mask >> 8) ? byte : byte + 1; in find_zero()
50 #define zero_bytemask(mask) (~1ul << __fls(mask)) argument
[all …]
/linux-6.12.1/fs/xfs/
Dxfs_health.c98 unsigned int mask) in xfs_fs_mark_sick() argument
100 ASSERT(!(mask & ~XFS_SICK_FS_ALL)); in xfs_fs_mark_sick()
101 trace_xfs_fs_mark_sick(mp, mask); in xfs_fs_mark_sick()
104 mp->m_fs_sick |= mask; in xfs_fs_mark_sick()
112 unsigned int mask) in xfs_fs_mark_corrupt() argument
114 ASSERT(!(mask & ~XFS_SICK_FS_ALL)); in xfs_fs_mark_corrupt()
115 trace_xfs_fs_mark_corrupt(mp, mask); in xfs_fs_mark_corrupt()
118 mp->m_fs_sick |= mask; in xfs_fs_mark_corrupt()
119 mp->m_fs_checked |= mask; in xfs_fs_mark_corrupt()
127 unsigned int mask) in xfs_fs_mark_healthy() argument
[all …]
/linux-6.12.1/arch/powerpc/sysdev/
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()
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-6.12.1/drivers/net/ethernet/microchip/vcap/
Dvcap_tc.c37 if (!is_zero_ether_addr(match.mask->src)) { in vcap_tc_flower_handler_ethaddr_usage()
39 vcap_netbytes_copy(smac.mask, match.mask->src, ETH_ALEN); in vcap_tc_flower_handler_ethaddr_usage()
45 if (!is_zero_ether_addr(match.mask->dst)) { in vcap_tc_flower_handler_ethaddr_usage()
47 vcap_netbytes_copy(dmac.mask, match.mask->dst, ETH_ALEN); in vcap_tc_flower_handler_ethaddr_usage()
71 if (mt.mask->src) { in vcap_tc_flower_handler_ipv4_usage()
75 be32_to_cpu(mt.mask->src)); in vcap_tc_flower_handler_ipv4_usage()
79 if (mt.mask->dst) { in vcap_tc_flower_handler_ipv4_usage()
83 be32_to_cpu(mt.mask->dst)); in vcap_tc_flower_handler_ipv4_usage()
110 if (!ipv6_addr_any(&mt.mask->src)) { in vcap_tc_flower_handler_ipv6_usage()
112 vcap_netbytes_copy(sip.mask, mt.mask->src.s6_addr, 16); in vcap_tc_flower_handler_ipv6_usage()
[all …]
/linux-6.12.1/drivers/video/fbdev/
Dc2p_core.h23 unsigned int shift, u32 mask) in _transp() argument
25 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-6.12.1/drivers/platform/x86/
Dmlx-platform.c394 .mask = MLXPLAT_CPLD_I2C_CAP_MASK,
409 .mask = MLXPLAT_CPLD_AGGR_MASK_COMEX,
649 .mask = BIT(0),
655 .mask = BIT(1),
665 .mask = BIT(0),
671 .mask = BIT(1),
680 .mask = BIT(0),
687 .mask = BIT(1),
697 .mask = BIT(0),
703 .mask = BIT(1),
[all …]
/linux-6.12.1/drivers/infiniband/sw/rxe/
Drxe_opcode.c17 .mask = {
24 .mask = {
31 .mask = {
40 .mask = {
49 .mask = {
55 .mask = {
61 .mask = {
67 .mask = {
73 .mask = {
81 .mask = {
[all …]
/linux-6.12.1/drivers/scsi/aic7xxx/
Daic7xxx.reg107 mask STIMESEL 0x18
132 mask PHASE_MASK CDI|IOI|MSGI
133 mask P_DATAOUT 0x00
134 mask P_DATAIN IOI
135 mask P_DATAOUT_DT P_DATAOUT|MSGI
136 mask P_DATAIN_DT P_DATAIN|MSGI
137 mask P_COMMAND CDI
138 mask P_MESGOUT CDI|MSGI
139 mask P_STATUS CDI|IOI
140 mask P_MESGIN CDI|IOI|MSGI
[all …]
/linux-6.12.1/net/netlabel/
Dnetlabel_addrlist.c52 if (iter->valid && (addr & iter->mask) == iter->addr) in netlbl_af4list_search()
61 * @mask: IPv4 address mask
71 __be32 mask, in netlbl_af4list_search_exact() argument
77 if (iter->valid && iter->addr == addr && iter->mask == mask) in netlbl_af4list_search_exact()
103 ipv6_masked_addr_cmp(&iter->addr, &iter->mask, addr) == 0) in netlbl_af6list_search()
112 * @mask: IPv6 address mask
122 const struct in6_addr *mask, in netlbl_af6list_search_exact() argument
130 ipv6_addr_equal(&iter->mask, mask)) in netlbl_af6list_search_exact()
154 iter->addr == entry->addr && iter->mask == entry->mask) in netlbl_af4list_add()
159 * address mask such that the entry with the widest mask (smallest in netlbl_af4list_add()
[all …]
/linux-6.12.1/arch/sh/include/asm/
Dbitops-cas.h16 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 …]

12345678910>>...343