/linux/drivers/misc/habanalabs/gaudi/ |
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 …]
|
/linux/drivers/misc/habanalabs/goya/ |
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 …]
|
/linux/drivers/video/fbdev/riva/ |
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 …]
|
/linux/drivers/mfd/ |
A D | sec-irq.c | 23 .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 …]
|
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 …]
|
A D | wm831x-irq.c | 28 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 …]
|
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 …]
|
A D | wm5110-tables.c | 285 .mask = ARIZONA_MICD_CLAMP_FALL_EINT1 288 .mask = ARIZONA_MICD_CLAMP_RISE_EINT1 328 .reg_offset = 1, .mask = ARIZONA_DSP_IRQ8_EINT1 331 .reg_offset = 1, .mask = ARIZONA_DSP_IRQ7_EINT1 334 .reg_offset = 1, .mask = ARIZONA_DSP_IRQ6_EINT1 337 .reg_offset = 1, .mask = ARIZONA_DSP_IRQ5_EINT1 340 .reg_offset = 1, .mask = ARIZONA_DSP_IRQ4_EINT1 359 .reg_offset = 2, .mask = ARIZONA_HPDET_EINT1 362 .reg_offset = 2, .mask = ARIZONA_MICDET_EINT1 519 .reg_offset = 2, .mask = ARIZONA_HPDET_EINT1 [all …]
|
/linux/include/sound/ |
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 …]
|
/linux/drivers/net/ethernet/chelsio/cxgb4/ |
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 …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
A D | dr_matcher.c | 410 mask.outer = matcher->mask.outer; in dr_matcher_set_ste_builders() 413 mask.misc = matcher->mask.misc; in dr_matcher_set_ste_builders() 416 mask.inner = matcher->mask.inner; in dr_matcher_set_ste_builders() 419 mask.misc2 = matcher->mask.misc2; in dr_matcher_set_ste_builders() 422 mask.misc3 = matcher->mask.misc3; in dr_matcher_set_ste_builders() 425 mask.misc4 = matcher->mask.misc4; in dr_matcher_set_ste_builders() 478 if (DR_MASK_IS_L2_DST(mask.outer, mask.misc, outer)) in dr_matcher_set_ste_builders() 491 if (DR_MASK_IS_ETH_L4_SET(mask.outer, mask.misc, outer)) in dr_matcher_set_ste_builders() 578 if (DR_MASK_IS_L2_DST(mask.inner, mask.misc, inner)) in dr_matcher_set_ste_builders() 591 if (DR_MASK_IS_ETH_L4_SET(mask.inner, mask.misc, inner)) in dr_matcher_set_ste_builders() [all …]
|
A D | dr_ste.c | 11 u8 mask[DR_STE_SIZE_MASK]; member 83 memset(&hw_ste->mask, 0, sizeof(hw_ste->mask)); in dr_ste_set_always_hit() 89 hw_ste->mask[0] = 0; in dr_ste_set_always_miss() 611 if (mask->misc.source_port && mask->misc.source_port != 0xffff) { in mlx5dr_ste_build_pre_check() 640 &matcher->mask, value); in mlx5dr_ste_build_ste_arr() 889 u8 *data = (u8 *)mask->match_buf; in mlx5dr_ste_copy_param() 898 buff = mask->match_buf; in mlx5dr_ste_copy_param() 1013 struct mlx5dr_match_param *mask, in mlx5dr_ste_build_eth_l2_src() argument 1023 struct mlx5dr_match_param *mask, in mlx5dr_ste_build_eth_l2_dst() argument 1082 ste_ctx->build_mpls_init(sb, mask); in mlx5dr_ste_build_mpls() [all …]
|
/linux/include/asm-generic/ |
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 …]
|
/linux/drivers/platform/x86/ |
A D | mlx-platform.c | 492 .mask = BIT(0), 498 .mask = BIT(1), 508 .mask = BIT(0), 514 .mask = BIT(1), 523 .mask = BIT(0), 530 .mask = BIT(1), 540 .mask = BIT(0), 546 .mask = BIT(1), 555 .mask = BIT(0), 562 .mask = BIT(1), [all …]
|
/linux/arch/powerpc/sysdev/ |
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 …]
|
/linux/drivers/media/platform/rcar-vin/ |
A D | rcar-core.c | 753 unsigned int mask = 0; in rvin_csi2_get_mask() local 755 for (route = vin->info->routes; route->mask; route++) { in rvin_csi2_get_mask() 762 mask |= route->mask; in rvin_csi2_get_mask() 766 return mask; in rvin_csi2_get_mask() 799 unsigned int mask = ~0; in rvin_csi2_link_notify() local 850 mask &= rvin_csi2_get_mask(group->vin[i], csi_id, channel); in rvin_csi2_link_notify() 884 mask_new = mask & rvin_csi2_get_mask(vin, csi_id, channel); in rvin_csi2_link_notify() 916 for (route = vin->info->routes; route->mask; route++) { in rvin_csi2_setup_links() 1162 { .csi = RVIN_CSI40, .channel = 1, .vin = 0, .mask = BIT(2) }, 1163 { .csi = RVIN_CSI20, .channel = 0, .vin = 1, .mask = BIT(0) }, [all …]
|
/linux/drivers/video/fbdev/ |
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 …]
|
/linux/drivers/gpio/ |
A D | gpio-vr41xx.c | 228 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/drivers/iio/imu/st_lsm6dsx/ |
A D | st_lsm6dsx_core.c | 95 .mask = BIT(0), 99 .mask = BIT(7), 103 .mask = BIT(6), 203 .mask = BIT(0), 207 .mask = BIT(7), 211 .mask = BIT(6), 369 .mask = BIT(0), 1402 switch (mask) { in st_lsm6dsx_read_raw() 1440 switch (mask) { in st_lsm6dsx_write_raw() 1666 long mask) in st_lsm6dsx_write_raw_get_fmt() argument [all …]
|
/linux/arch/sparc/include/asm/ |
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 …]
|
/linux/drivers/iio/accel/ |
A D | st_accel_core.c | 128 .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/gpu/drm/amd/display/dc/gpio/dce80/ |
A D | hw_translate_dce80.c | 48 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/dce60/ |
A D | hw_translate_dce60.c | 48 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/ |
A D | bitops.h | 91 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() 121 *addr |= mask; in arch___set_bit() 130 *addr &= ~mask; in arch___clear_bit() 139 *addr ^= mask; in arch___change_bit() 150 *addr |= mask; in arch___test_and_set_bit() 151 return old & mask; in arch___test_and_set_bit() 162 *addr &= ~mask; in arch___test_and_clear_bit() 163 return old & mask; in arch___test_and_clear_bit() [all …]
|
/linux/drivers/input/joystick/ |
A D | analog.c | 96 int mask; member 105 unsigned char mask; member 188 this = port->mask; in analog_cooked_read() 278 if (port->analog[i].mask) in analog_poll() 464 if (!port->mask) in analog_init_masks() 467 if ((port->mask & 3) != 3 && port->mask != 0xc) { in analog_init_masks() 480 | port->mask | ((port->mask << 8) & ANALOG_HAT_FCS) in analog_init_masks() 497 analog[1].mask &= (analog[0].mask & ANALOG_EXTENSIONS) ? ANALOG_GAMEPAD in analog_init_masks() 498 : (((ANALOG_BTNS_STD | port->mask) & ~analog[0].mask) | ANALOG_GAMEPAD); in analog_init_masks() 516 return -!(analog[0].mask || analog[1].mask); in analog_init_masks() [all …]
|