/openbmc/linux/drivers/accel/habanalabs/gaudi/ |
H A D | gaudi_security.c | 489 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 …]
|
/openbmc/linux/drivers/accel/habanalabs/goya/ |
H A D | goya_security.c | 30 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 …]
|
/openbmc/u-boot/drivers/phy/marvell/ |
H A D | comphy_cp110.c | 209 mask = 0; in comphy_pcie_power_up() 630 mask = data; in comphy_usb3_power_up() 987 mask = data; in comphy_sata_power_up() 1110 mask = data; in comphy_sgmii_power_up() 1129 mask = data; in comphy_sgmii_power_up() 1410 mask = data; in comphy_sfi_power_up() 1429 mask = data; in comphy_sfi_power_up() 1588 mask = data; in comphy_rxauii_power_up() 1607 mask = data; in comphy_rxauii_power_up() 1755 mask = data; in comphy_utmi_power_up() [all …]
|
/openbmc/linux/drivers/video/fbdev/riva/ |
H A 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 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 …]
|
/openbmc/linux/drivers/mfd/ |
H A D | sec-irq.c | 22 .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 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, 166 .mask = WM8350_CS1_EINT, 171 .mask = WM8350_CS2_EINT, 297 .mask = WM8350_GP0_EINT, 302 .mask = WM8350_GP1_EINT, [all …]
|
H A 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 …]
|
/openbmc/linux/include/sound/ |
H A D | pcm_params.h | 28 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 …]
|
/openbmc/u-boot/drivers/gpio/ |
H A D | at91_gpio.c | 48 u32 mask; in at91_set_port_pullup() local 74 u32 mask; in at91_set_pio_periph() local 92 u32 mask; in at91_set_a_periph() local 111 u32 mask; in at91_set_b_periph() local 130 u32 mask; in at91_pio3_set_a_periph() local 153 u32 mask; in at91_pio3_set_b_periph() local 175 u32 mask; in at91_pio3_set_c_periph() local 197 u32 mask; in at91_pio3_set_d_periph() local 227 u32 mask; in at91_set_port_input() local 253 u32 mask; in at91_set_port_output() local [all …]
|
H A D | lpc32xx_gpio.c | 69 int port, mask; in lpc32xx_gpio_direction_input() local 74 mask = GPIO_TO_MASK(offset); in lpc32xx_gpio_direction_input() 89 if ((mask >= 25) && (mask <= 30)) in lpc32xx_gpio_direction_input() 111 int port, rank, mask, value; in lpc32xx_gpio_get_value() local 140 mask = GPIO_TO_MASK(offset); in lpc32xx_gpio_get_value() 151 int port, mask; in gpio_set() local 156 mask = GPIO_TO_MASK(gpio); in gpio_set() 185 int port, mask; in gpio_clr() local 190 mask = GPIO_TO_MASK(gpio); in gpio_clr() 233 int port, mask; in lpc32xx_gpio_direction_output() local [all …]
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_tc_u32_parse.h | 49 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 …]
|
/openbmc/u-boot/arch/microblaze/include/asm/ |
H A D | bitops.h | 39 int mask; in set_bit() local 45 *a |= mask; in set_bit() 52 int mask; in __set_bit() local 56 *a |= mask; in __set_bit() 69 int mask; in clear_bit() local 75 *a &= ~mask; in clear_bit() 84 int mask; in change_bit() local 97 int mask; in __change_bit() local 115 *a |= mask; in test_and_set_bit() 129 *a |= mask; in __test_and_set_bit() [all …]
|
/openbmc/linux/include/asm-generic/ |
H A D | word-at-a-time.h | 20 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 …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
H A D | dr_matcher.c | 422 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 D | dr_ste.c | 11 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 D | dr_ste_v1.h | 37 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 …]
|
/openbmc/linux/drivers/video/fbdev/ |
H A D | c2p_core.h | 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() 82 _transp(d, 5, 7, n, mask); in transp8() 104 u32 mask = get_mask(n); in transp4() local [all …]
|
/openbmc/u-boot/drivers/pinctrl/ |
H A D | pinctrl-at91.c | 105 writel(mask, &pio->idr); in at91_mux_disable_interrupt() 181 writel(mask, &pio->ifer); in at91_mux_pio3_set_debounce() 191 writel(mask, &pio->pudr); in at91_mux_pio3_set_pulldown() 197 u32 mask) in at91_mux_pio3_disable_schmitt_trig() argument 278 writel(mask, &pio->pdr); in at91_mux_gpio_disable() 283 writel(mask, &pio->per); in at91_mux_gpio_enable() 296 ops->mux_A_periph(pio, mask); in at91_pmx_set() 299 ops->mux_B_periph(pio, mask); in at91_pmx_set() 321 u32 mask = BIT(pin); in at91_pinconf_set() local 371 u32 conf, mask, count, i; in at91_pinctrl_set_state() local [all …]
|
/openbmc/linux/arch/sparc/include/asm/ |
H A D | bitops_32.h | 34 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 …]
|
/openbmc/linux/arch/powerpc/sysdev/ |
H A 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() 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 …]
|
/openbmc/u-boot/arch/mips/include/asm/ |
H A D | bitops.h | 207 *a |= mask; in __test_and_set_bit() 310 *a ^= mask; in __test_and_change_bit() 329 int mask; in set_bit() local 336 *a |= mask; in set_bit() 351 int mask; in __set_bit() local 356 *a |= mask; in __set_bit() 371 int mask; in clear_bit() local 393 int mask; in change_bit() local 400 *a ^= mask; in change_bit() 438 *a |= mask; in test_and_set_bit() [all …]
|
/openbmc/linux/fs/ocfs2/cluster/ |
H A D | masklog.h | 118 #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 …]
|
/openbmc/linux/arch/sh/include/asm/ |
H A D | bitops-cas.h | 16 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 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 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 …]
|
H A 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 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 …]
|