Home
last modified time | relevance | path

Searched defs:mask (Results 1 – 25 of 4232) sorted by relevance

12345678910>>...170

/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
37 #define MaskAndSetBF(var,mask,value) (var)=(((var)&(~MASKEXPAND(mask)) \ argument
51 #define DEVICE_DEF(device,mask,value) \ argument
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
60 #define PDAC_Val(mask,value) DEVICE_VALUE(PDAC,mask,value) argument
61 #define PDAC_Mask(mask) DEVICE_MASK(PDAC,mask) argument
[all …]
/linux/include/sound/ !
H A Dpcm_params.h26 static inline void snd_mask_none(struct snd_mask *mask) in snd_mask_none()
31 static inline void snd_mask_any(struct snd_mask *mask) in snd_mask_any()
36 static inline int snd_mask_empty(const struct snd_mask *mask) in snd_mask_empty()
45 static inline unsigned int snd_mask_min(const struct snd_mask *mask) in snd_mask_min()
55 static inline unsigned int snd_mask_max(const struct snd_mask *mask) in snd_mask_max()
65 static inline void snd_mask_set(struct snd_mask *mask, unsigned int val) in snd_mask_set()
71 static inline void snd_mask_set_format(struct snd_mask *mask, in snd_mask_set_format()
77 static inline void snd_mask_reset(struct snd_mask *mask, unsigned int val) in snd_mask_reset()
82 static inline void snd_mask_set_range(struct snd_mask *mask, in snd_mask_set_range()
90 static inline void snd_mask_reset_range(struct snd_mask *mask, in snd_mask_reset_range()
[all …]
/linux/drivers/net/ethernet/chelsio/cxgb4/ !
H A Dcxgb4_tc_u32_parse.h46 __be32 val, __be32 mask) in cxgb4_fill_ipv4_tos()
55 __be32 val, __be32 mask) in cxgb4_fill_ipv4_frag()
77 __be32 val, __be32 mask) in cxgb4_fill_ipv4_proto()
86 __be32 val, __be32 mask) in cxgb4_fill_ipv4_src_ip()
95 __be32 val, __be32 mask) in cxgb4_fill_ipv4_dst_ip()
114 __be32 val, __be32 mask) in cxgb4_fill_ipv6_tos()
123 __be32 val, __be32 mask) in cxgb4_fill_ipv6_proto()
132 __be32 val, __be32 mask) in cxgb4_fill_ipv6_src_ip0()
141 __be32 val, __be32 mask) in cxgb4_fill_ipv6_src_ip1()
150 __be32 val, __be32 mask) in cxgb4_fill_ipv6_src_ip2()
[all …]
/linux/include/uapi/linux/iio/ !
H A Devents.h29 #define IIO_EVENT_CODE_EXTRACT_TYPE(mask) ((mask >> 56) & 0xFF) argument
31 #define IIO_EVENT_CODE_EXTRACT_DIR(mask) ((mask >> 48) & 0x7F) argument
33 #define IIO_EVENT_CODE_EXTRACT_CHAN_TYPE(mask) ((mask >> 32) & 0xFF) argument
37 #define IIO_EVENT_CODE_EXTRACT_CHAN(mask) ((__s16)(mask & 0xFFFF)) argument
38 #define IIO_EVENT_CODE_EXTRACT_CHAN2(mask) ((__s16)(((mask) >> 16) & 0xFFFF)) argument
40 #define IIO_EVENT_CODE_EXTRACT_MODIFIER(mask) ((mask >> 40) & 0xFF) argument
41 #define IIO_EVENT_CODE_EXTRACT_DIFF(mask) (((mask) >> 55) & 0x1) argument
/linux/include/asm-generic/ !
H A Dword-at-a-time.h20 unsigned long mask = (val & c->low_bits) + c->low_bits; in prep_zero_mask() local
24 #define create_zero_mask(mask) (mask) argument
26 static inline long find_zero(unsigned long mask) in find_zero()
50 #define zero_bytemask(mask) (~1ul << __fls(mask)) argument
75 static inline long count_masked_bytes(unsigned long mask) in count_masked_bytes()
83 static inline long count_masked_bytes(long mask) in count_masked_bytes()
96 unsigned long mask = ((a - c->one_bits) & ~a) & c->high_bits; in has_zero() local
113 #define zero_bytemask(mask) (mask) argument
115 static inline unsigned long find_zero(unsigned long mask) in find_zero()
/linux/fs/ocfs2/cluster/ !
H A Dmasklog.h118 #define __mlog_test_u64(mask, bits) \ argument
121 #define __mlog_set_u64(mask, bits) do { \ argument
125 #define __mlog_clear_u64(mask, bits) do { \ argument
129 #define MLOG_BITS_RHS(mask) { \ argument
138 #define __mlog_test_u64(mask, bits) ((mask) & bits.words[0]) argument
139 #define __mlog_set_u64(mask, bits) do { \ argument
142 #define __mlog_clear_u64(mask, bits) do { \ argument
145 #define MLOG_BITS_RHS(mask) { { (mask) } } argument
157 #define mlog(mask, fmt, ...) \ argument
165 #define mlog_ratelimited(mask, fmt, ...) \ argument
/linux/arch/powerpc/include/asm/ !
H A Dword-at-a-time.h23 unsigned long mask = (val & c->low_bits) + c->low_bits; in prep_zero_mask() local
27 #define create_zero_mask(mask) (mask) argument
29 static inline long find_zero(unsigned long mask) in find_zero()
44 static inline unsigned long zero_bytemask(unsigned long mask) in zero_bytemask()
91 static inline unsigned long find_zero(unsigned long mask) in find_zero()
97 static inline unsigned long zero_bytemask(unsigned long mask) in zero_bytemask()
119 static inline long count_masked_bytes(long mask) in count_masked_bytes()
133 static inline unsigned long find_zero(unsigned long mask) in find_zero()
141 unsigned long mask = ((a - c->one_bits) & ~a) & c->high_bits; in has_zero() local
152 #define zero_bytemask(mask) (mask) argument
/linux/tools/testing/selftests/powerpc/primitives/ !
H A Dword-at-a-time.h23 unsigned long mask = (val & c->low_bits) + c->low_bits; in prep_zero_mask() local
27 #define create_zero_mask(mask) (mask) argument
29 static inline long find_zero(unsigned long mask) in find_zero()
44 static inline unsigned long zero_bytemask(unsigned long mask) in zero_bytemask()
91 static inline unsigned long find_zero(unsigned long mask) in find_zero()
97 static inline unsigned long zero_bytemask(unsigned long mask) in zero_bytemask()
119 static inline long count_masked_bytes(long mask) in count_masked_bytes()
133 static inline unsigned long find_zero(unsigned long mask) in find_zero()
141 unsigned long mask = ((a - c->one_bits) & ~a) & c->high_bits; in has_zero() local
152 #define zero_bytemask(mask) (mask) argument
/linux/arch/powerpc/sysdev/ !
H A Dfsl_rcpm.c30 unsigned int mask = 1 << hw_cpu; in rcpm_v1_irq_mask() local
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
71 static void rcpm_v1_set_ip_power(bool enable, u32 mask) in rcpm_v1_set_ip_power()
79 static void rcpm_v2_set_ip_power(bool enable, u32 mask) in rcpm_v2_set_ip_power()
90 unsigned int mask = 1 << hw_cpu; in rcpm_v1_cpu_enter_state() local
108 u32 mask = 1 << cpu_core_index_of_thread(cpu); in rcpm_v2_cpu_enter_state() local
167 unsigned int mask = 1 << hw_cpu; in rcpm_v1_cpu_exit_state() local
191 u32 mask = 1 << cpu_core_index_of_thread(cpu); in rcpm_v2_cpu_exit_state() local
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/ !
H A Ddr_ste.c11 u8 mask[DR_STE_SIZE_MASK]; member
715 struct mlx5dr_match_param *mask, in mlx5dr_ste_build_pre_check()
806 static void dr_ste_copy_mask_misc(char *mask, struct mlx5dr_match_misc *spec, bool clr) in dr_ste_copy_mask_misc()
858 static void dr_ste_copy_mask_spec(char *mask, struct mlx5dr_match_spec *spec, bool clr) in dr_ste_copy_mask_spec()
910 static void dr_ste_copy_mask_misc2(char *mask, struct mlx5dr_match_misc2 *spec, bool clr) in dr_ste_copy_mask_misc2()
955 static void dr_ste_copy_mask_misc3(char *mask, struct mlx5dr_match_misc3 *spec, bool clr) in dr_ste_copy_mask_misc3()
985 static void dr_ste_copy_mask_misc4(char *mask, struct mlx5dr_match_misc4 *spec, bool clr) in dr_ste_copy_mask_misc4()
1005 static void dr_ste_copy_mask_misc5(char *mask, struct mlx5dr_match_misc5 *spec, bool clr) in dr_ste_copy_mask_misc5()
1027 struct mlx5dr_match_parameters *mask, in mlx5dr_ste_copy_param()
1129 struct mlx5dr_match_param *mask, in mlx5dr_ste_build_eth_l2_src_dst()
[all …]
H A Ddr_ste_v1.c224 u8 *mask = tag + DR_STE_SIZE_TAG; in dr_ste_v1_prepare_for_postsend() local
968 struct mlx5dr_match_spec *mask = inner ? &value->inner : &value->outer; in dr_ste_v1_build_eth_l2_src_dst_bit_mask() local
1027 struct mlx5dr_match_param *mask) in dr_ste_v1_build_eth_l2_src_dst_init()
1051 struct mlx5dr_match_param *mask) in dr_ste_v1_build_eth_l3_ipv6_dst_init()
1075 struct mlx5dr_match_param *mask) in dr_ste_v1_build_eth_l3_ipv6_src_init()
1110 struct mlx5dr_match_param *mask) in dr_ste_v1_build_eth_l3_ipv4_5_tuple_init()
1122 struct mlx5dr_match_spec *mask = inner ? &value->inner : &value->outer; in dr_ste_v1_build_eth_l2_src_or_dst_bit_mask() local
1230 struct mlx5dr_match_spec *mask = inner ? &value->inner : &value->outer; in dr_ste_v1_build_eth_l2_src_bit_mask() local
1251 struct mlx5dr_match_param *mask) in dr_ste_v1_build_eth_l2_src_init()
1263 struct mlx5dr_match_spec *mask = inner ? &value->inner : &value->outer; in dr_ste_v1_build_eth_l2_dst_bit_mask() local
[all …]
H A Ddr_ste_v0.c709 struct mlx5dr_match_spec *mask = inner ? &value->inner : &value->outer; in dr_ste_v0_build_eth_l2_src_dst_bit_mask() local
784 struct mlx5dr_match_param *mask) in dr_ste_v0_build_eth_l2_src_dst_init()
810 struct mlx5dr_match_param *mask) in dr_ste_v0_build_eth_l3_ipv6_dst_init()
836 struct mlx5dr_match_param *mask) in dr_ste_v0_build_eth_l3_ipv6_src_init()
873 struct mlx5dr_match_param *mask) in dr_ste_v0_build_eth_l3_ipv4_5_tuple_init()
886 struct mlx5dr_match_spec *mask = inner ? &value->inner : &value->outer; in dr_ste_v0_build_eth_l2_src_or_dst_bit_mask() local
998 struct mlx5dr_match_spec *mask = inner ? &value->inner : &value->outer; in dr_ste_v0_build_eth_l2_src_bit_mask() local
1021 struct mlx5dr_match_param *mask) in dr_ste_v0_build_eth_l2_src_init()
1034 struct mlx5dr_match_spec *mask = sb->inner ? &value->inner : &value->outer; in dr_ste_v0_build_eth_l2_dst_bit_mask() local
1057 struct mlx5dr_match_param *mask) in dr_ste_v0_build_eth_l2_dst_init()
[all …]
/linux/fs/xfs/ !
H A Dxfs_health.c109 unsigned int mask) in xfs_fs_mark_sick()
130 unsigned int mask) in xfs_fs_mark_corrupt()
153 unsigned int mask) in xfs_fs_mark_healthy()
191 unsigned int mask) in xfs_agno_mark_sick()
206 unsigned int mask) in xfs_group_check_mask()
218 unsigned int mask) in xfs_group_mark_sick()
242 unsigned int mask) in xfs_group_mark_corrupt()
267 unsigned int mask) in xfs_group_mark_healthy()
305 unsigned int mask) in xfs_rgno_mark_sick()
337 unsigned int mask) in xfs_inode_mark_sick()
[all …]
/linux/arch/arm/mach-footbridge/ !
H A Disa-irq.c32 unsigned int mask = 1 << (d->irq & 7); in isa_mask_pic_lo_irq() local
39 unsigned int mask = 1 << (d->irq & 7); in isa_ack_pic_lo_irq() local
47 unsigned int mask = 1 << (d->irq & 7); in isa_unmask_pic_lo_irq() local
60 unsigned int mask = 1 << (d->irq & 7); in isa_mask_pic_hi_irq() local
67 unsigned int mask = 1 << (d->irq & 7); in isa_ack_pic_hi_irq() local
76 unsigned int mask = 1 << (d->irq & 7); in isa_unmask_pic_hi_irq() local
/linux/drivers/bcma/ !
H A Ddriver_chipcommon.c19 u32 mask, u32 value) in bcma_cc_write32_masked()
264 void bcma_chipco_irq_mask(struct bcma_drv_cc *cc, u32 mask, u32 value) in bcma_chipco_irq_mask()
269 u32 bcma_chipco_irq_status(struct bcma_drv_cc *cc, u32 mask) in bcma_chipco_irq_status()
274 u32 bcma_chipco_gpio_in(struct bcma_drv_cc *cc, u32 mask) in bcma_chipco_gpio_in()
279 u32 bcma_chipco_gpio_out(struct bcma_drv_cc *cc, u32 mask, u32 value) in bcma_chipco_gpio_out()
292 u32 bcma_chipco_gpio_outen(struct bcma_drv_cc *cc, u32 mask, u32 value) in bcma_chipco_gpio_outen()
309 u32 bcma_chipco_gpio_control(struct bcma_drv_cc *cc, u32 mask, u32 value) in bcma_chipco_gpio_control()
322 u32 bcma_chipco_gpio_intmask(struct bcma_drv_cc *cc, u32 mask, u32 value) in bcma_chipco_gpio_intmask()
334 u32 bcma_chipco_gpio_polarity(struct bcma_drv_cc *cc, u32 mask, u32 value) in bcma_chipco_gpio_polarity()
346 u32 bcma_chipco_gpio_pullup(struct bcma_drv_cc *cc, u32 mask, u32 value) in bcma_chipco_gpio_pullup()
[all …]
/linux/drivers/phy/ !
H A Dphy-airoha-pcie.c52 static void airoha_phy_clear_bits(void __iomem *reg, u32 mask) in airoha_phy_clear_bits()
59 static void airoha_phy_set_bits(void __iomem *reg, u32 mask) in airoha_phy_set_bits()
66 static void airoha_phy_update_bits(void __iomem *reg, u32 mask, u32 val) in airoha_phy_update_bits()
75 #define airoha_phy_update_field(reg, mask, val) \ argument
83 #define airoha_phy_csr_2l_clear_bits(pcie_phy, reg, mask) \ argument
85 #define airoha_phy_csr_2l_set_bits(pcie_phy, reg, mask) \ argument
87 #define airoha_phy_csr_2l_update_field(pcie_phy, reg, mask, val) \ argument
89 #define airoha_phy_pma0_clear_bits(pcie_phy, reg, mask) \ argument
91 #define airoha_phy_pma1_clear_bits(pcie_phy, reg, mask) \ argument
93 #define airoha_phy_pma0_set_bits(pcie_phy, reg, mask) \ argument
[all …]
/linux/crypto/ !
H A Dapi.c59 u32 mask) in __crypto_alg_lookup()
104 struct crypto_larval *crypto_larval_alloc(const char *name, u32 type, u32 mask) in crypto_larval_alloc()
127 u32 mask) in crypto_larval_add()
202 u32 type, u32 mask) in crypto_larval_wait()
254 u32 mask) in crypto_alg_lookup()
291 u32 mask) in crypto_larval_lookup()
338 struct crypto_alg *crypto_alg_mod_lookup(const char *name, u32 type, u32 mask) in crypto_alg_mod_lookup()
379 static unsigned int crypto_ctxsize(struct crypto_alg *alg, u32 type, u32 mask) in crypto_ctxsize()
409 u32 mask, gfp_t gfp) in __crypto_alloc_tfmgfp()
441 u32 mask) in __crypto_alloc_tfm()
[all …]
/linux/arch/sparc/include/asm/ !
H A Dbitops_32.h34 unsigned long *ADDR, mask; in test_and_set_bit() local
44 unsigned long *ADDR, mask; in set_bit() local
54 unsigned long *ADDR, mask; in test_and_clear_bit() local
64 unsigned long *ADDR, mask; in clear_bit() local
74 unsigned long *ADDR, mask; in test_and_change_bit() local
84 unsigned long *ADDR, mask; in change_bit() local
/linux/arch/mips/lib/ !
H A Dbitops.c25 unsigned long mask; in __mips_set_bit() local
46 unsigned long mask; in __mips_clear_bit() local
67 unsigned long mask; in __mips_change_bit() local
89 unsigned long mask; in __mips_test_and_set_bit_lock() local
113 unsigned long mask; in __mips_test_and_clear_bit() local
137 unsigned long mask; in __mips_test_and_change_bit() local
150 bool __mips_xor_is_negative_byte(unsigned long mask, in __mips_xor_is_negative_byte()
/linux/sound/soc/sof/ !
H A Dops.c16 u32 mask, u32 value) in snd_sof_pci_update_bits_unlocked() argument
39 u32 mask, u32 value) in snd_sof_pci_update_bits() argument
52 snd_sof_dsp_update_bits_unlocked(struct snd_sof_dev * sdev,u32 bar,u32 offset,u32 mask,u32 value) snd_sof_dsp_update_bits_unlocked() argument
72 snd_sof_dsp_update_bits64_unlocked(struct snd_sof_dev * sdev,u32 bar,u32 offset,u64 mask,u64 value) snd_sof_dsp_update_bits64_unlocked() argument
91 snd_sof_dsp_update_bits(struct snd_sof_dev * sdev,u32 bar,u32 offset,u32 mask,u32 value) snd_sof_dsp_update_bits() argument
105 snd_sof_dsp_update_bits64(struct snd_sof_dev * sdev,u32 bar,u32 offset,u64 mask,u64 value) snd_sof_dsp_update_bits64() argument
120 snd_sof_dsp_update_bits_forced_unlocked(struct snd_sof_dev * sdev,u32 bar,u32 offset,u32 mask,u32 value) snd_sof_dsp_update_bits_forced_unlocked() argument
135 snd_sof_dsp_update_bits_forced(struct snd_sof_dev * sdev,u32 bar,u32 offset,u32 mask,u32 value) snd_sof_dsp_update_bits_forced() argument
[all...]
/linux/arch/mips/sgi-ip30/ !
H A Dip30-irq.c46 u64 pending, mask, cause, error_irqs, err_reg; in ip30_error_irq() local
101 u64 pend, mask; in ip30_normal_irq() local
147 unsigned long *mask = &per_cpu(irq_enable_mask, hd->cpu); in ip30_mask_heart_irq() local
156 unsigned long *mask = &per_cpu(irq_enable_mask, hd->cpu); in ip30_mask_and_ack_heart_irq() local
166 unsigned long *mask = &per_cpu(irq_enable_mask, hd->cpu); in ip30_unmask_heart_irq() local
173 const struct cpumask *mask, bool force) in ip30_set_heart_irq_affinity()
250 unsigned long *mask = &per_cpu(irq_enable_mask, cpu); in ip30_install_ipi() local
266 unsigned long *mask; in arch_init_irq() local
/linux/tools/include/asm-generic/bitops/ !
H A Dnon-atomic.h19 unsigned long mask = BIT_MASK(nr); in ___set_bit() local
28 unsigned long mask = BIT_MASK(nr); in ___clear_bit() local
46 unsigned long mask = BIT_MASK(nr); in ___change_bit() local
64 unsigned long mask = BIT_MASK(nr); in ___test_and_set_bit() local
84 unsigned long mask = BIT_MASK(nr); in ___test_and_clear_bit() local
96 unsigned long mask = BIT_MASK(nr); in ___test_and_change_bit() local
/linux/sound/soc/ !
H A Dsoc-ops.c96 unsigned int mask; in snd_soc_put_enum_double() local
114 unsigned int mask, unsigned int shift, int max, in sdca_soc_q78_reg_to_ctl() argument
130 sdca_soc_q78_ctl_to_reg(struct soc_mixer_control * mc,int val,unsigned int mask,unsigned int shift,int max) sdca_soc_q78_ctl_to_reg() argument
145 soc_mixer_reg_to_ctl(struct soc_mixer_control * mc,unsigned int reg_val,unsigned int mask,unsigned int shift,int max,bool sx) soc_mixer_reg_to_ctl() argument
168 soc_mixer_ctl_to_reg(struct soc_mixer_control * mc,int val,unsigned int mask,unsigned int shift,int max) soc_mixer_ctl_to_reg() argument
235 soc_put_volsw(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol,struct soc_mixer_control * mc,int mask,int max) soc_put_volsw() argument
290 soc_get_volsw(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol,struct soc_mixer_control * mc,int mask,int max,bool sx) soc_get_volsw() argument
380 unsigned int mask = soc_mixer_mask(mc); snd_soc_get_volsw() local
401 unsigned int mask = soc_mixer_mask(mc); snd_soc_put_volsw() local
422 unsigned int mask = soc_mixer_sx_mask(mc); snd_soc_get_volsw_sx() local
442 unsigned int mask = soc_mixer_sx_mask(mc); snd_soc_put_volsw_sx() local
567 unsigned int val, mask; snd_soc_bytes_put() local
719 unsigned long mask = GENMASK(mc->nbits - 1, 0); snd_soc_get_xr_sx() local
763 unsigned long mask = GENMASK(mc->nbits - 1, 0); snd_soc_put_xr_sx() local
807 unsigned int mask = BIT(mc->shift); snd_soc_get_strobe() local
840 unsigned int mask = BIT(mc->shift); snd_soc_put_strobe() local
[all...]
/linux/include/asm-generic/bitops/ !
H A Dgeneric-non-atomic.h30 unsigned long mask = BIT_MASK(nr); in generic___set_bit() local
39 unsigned long mask = BIT_MASK(nr); in generic___clear_bit() local
57 unsigned long mask = BIT_MASK(nr); in generic___change_bit() local
75 unsigned long mask = BIT_MASK(nr); in generic___test_and_set_bit() local
95 unsigned long mask = BIT_MASK(nr); in generic___test_and_clear_bit() local
107 unsigned long mask = BIT_MASK(nr); in generic___test_and_change_bit() local
169 unsigned long mask = BIT_MASK(nr); in const_test_bit() local
/linux/arch/sh/include/asm/ !
H A Dbitops-llsc.h7 int mask; in set_bit() local
28 int mask; in clear_bit() local
49 int mask; in change_bit() local
70 int mask, retval; in test_and_set_bit() local
95 int mask, retval; in test_and_clear_bit() local
121 int mask, retval; in test_and_change_bit() local

12345678910>>...170