Home
last modified time | relevance | path

Searched refs:BIT_MASK (Results 1 – 25 of 208) sorted by relevance

123456789

/Zephyr-Core-3.7.0/include/zephyr/drivers/interrupt_controller/
Dintc_vim.h51 #define VIM_GRP_RAW_STS_MASK (BIT_MASK(32))
54 #define VIM_GRP_RAW_STS_MAX (BIT_MASK(32))
60 #define VIM_GRP_STS_MSK_MASK (BIT_MASK(32))
63 #define VIM_GRP_STS_MSK_MAX (BIT_MASK(32))
69 #define VIM_GRP_INTR_EN_SET_MSK_MASK (BIT_MASK(32))
72 #define VIM_GRP_INTR_EN_SET_MSK_MAX (BIT_MASK(32))
78 #define VIM_GRP_INTR_EN_CLR_MSK_MASK (BIT_MASK(32))
81 #define VIM_GRP_INTR_EN_CLR_MSK_MAX (BIT_MASK(32))
87 #define VIM_GRP_IRQSTS_MSK_MASK (BIT_MASK(32))
90 #define VIM_GRP_IRQSTS_MSK_MAX (BIT_MASK(32))
[all …]
/Zephyr-Core-3.7.0/drivers/audio/
Dtlv320dac310x.h24 #define NDAC_DIV_MASK BIT_MASK(7)
30 #define MDAC_DIV_MASK BIT_MASK(7)
36 #define OSR_MSB_MASK BIT_MASK(2)
39 #define OSR_LSB_MASK BIT_MASK(8)
45 #define IF_CTRL_IFTYPE_MASK BIT_MASK(2)
51 #define IF_CTRL_WLEN_MASK BIT_MASK(2)
63 #define BCLK_DIV_MASK BIT_MASK(7)
69 #define PROC_BLK_SEL_MASK BIT_MASK(5)
92 #define HEADPHONE_DRV_CM_MASK (BIT_MASK(2) << 3)
106 #define HPX_ANA_VOL_MASK (BIT_MASK(7))
[all …]
Dtas6422dac.h31 #define MISC_CTRL_1_OTW_CONTROL_MASK (BIT_MASK(2) << 5)
39 #define MISC_CTRL_1_VOLUME_RATE_MASK (BIT_MASK(2) << 2)
45 #define MISC_CTRL_1_GAIN_MASK BIT_MASK(2)
54 #define MISC_CTRL_2_PWM_FREQUENCY_MASK (BIT_MASK(3) << 4)
63 #define MISC_CTRL_2_OUTPUT_PHASE_MASK BIT_MASK(2)
71 #define SAP_CTRL_INPUT_SAMPLING_RATE_MASK (BIT_MASK(2) << 6)
82 #define SAP_CTRL_INPUT_FORMAT_MASK BIT_MASK(3)
94 #define CH_STATE_CTRL_CH1_STATE_CTRL_MASK (BIT_MASK(2) << 6)
96 #define CH_STATE_CTRL_CH2_STATE_CTRL_MASK (BIT_MASK(2) << 4)
106 #define CH_VOLUME_CTRL_VOLUME_MASK BIT_MASK(8)
[all …]
/Zephyr-Core-3.7.0/include/zephyr/dt-bindings/adc/
Dadc.h18 #define ADC_ACQ_TIME(unit, value) (((unit) << 14) | ((value) & BIT_MASK(14)))
21 #define ADC_ACQ_TIME_MAX BIT_MASK(14)
23 #define ADC_ACQ_TIME_UNIT(time) (((time) >> 14) & BIT_MASK(2))
24 #define ADC_ACQ_TIME_VALUE(time) ((time) & BIT_MASK(14))
Dstm32_adc.h11 #define STM32_ADC_REG_MASK BIT_MASK(8)
13 #define STM32_ADC_SHIFT_MASK BIT_MASK(5)
15 #define STM32_ADC_MASK_MASK BIT_MASK(3)
17 #define STM32_ADC_REG_VAL_MASK BIT_MASK(3)
19 #define STM32_ADC_REAL_VAL_MASK BIT_MASK(13)
/Zephyr-Core-3.7.0/soc/gd/gd32/gd32f4xx/
Dgd32_regs.h22 #define RCU_CFG0_AHBPSC_MSK (BIT_MASK(4) << RCU_CFG0_AHBPSC_POS)
24 #define RCU_CFG0_APB1PSC_MSK (BIT_MASK(3) << RCU_CFG0_APB1PSC_POS)
26 #define RCU_CFG0_APB2PSC_MSK (BIT_MASK(3) << RCU_CFG0_APB2PSC_POS)
29 #define RCU_CFG1_TIMERSEL_MSK (BIT_MASK(1) << RCU_CFG1_TIMERSEL_POS)
/Zephyr-Core-3.7.0/include/zephyr/dt-bindings/pinctrl/
Dnxp-s32-pinctrl.h24 #define NXP_S32_MSCR_SSS_MASK BIT_MASK(3)
26 #define NXP_S32_IMCR_SSS_MASK BIT_MASK(4)
28 #define NXP_S32_IMCR_IDX_MASK BIT_MASK(9)
30 #define NXP_S32_MSCR_IDX_MASK BIT_MASK(9)
32 #define NXP_S32_MSCR_SIUL2_IDX_MASK BIT_MASK(3)
34 #define NXP_S32_IMCR_SIUL2_IDX_MASK BIT_MASK(3)
/Zephyr-Core-3.7.0/arch/arc/core/mpu/
Darc_mpu_v2_internal.h31 #define AUX_MPU_RDP_REGION_SIZE(size) (((size - 1) & BIT_MASK(2)) | \
32 (((size - 1) & (BIT_MASK(3) << 2)) << 7))
34 #define AUX_MPU_RDP_SIZE_SHIFT(rdp) ((rdp & BIT_MASK(2)) | (((rdp >> 9) & BIT_MASK(3)) << 2))
37 #define AUX_MPU_RDP_ATTR_MASK (BIT_MASK(6) << 3)
38 #define AUX_MPU_RDP_SIZE_MASK ((BIT_MASK(3) << 9) | BIT_MASK(2))
Darc_mpu_v6_internal.h34 #define AUX_MPU_RDP_REGION_SIZE(size) (((size - 1) & BIT_MASK(2)) | \
35 (((size - 1) & (BIT_MASK(3) << 2)) << 7))
37 #define AUX_MPU_RDP_SIZE_SHIFT(rdp) ((rdp & BIT_MASK(2)) | (((rdp >> 9) & BIT_MASK(3)) << 2))
40 #define AUX_MPU_RDP_ATTR_MASK (BIT_MASK(6) << 3)
41 #define AUX_MPU_RDP_SIZE_MASK ((BIT_MASK(3) << 9) | BIT_MASK(2))
/Zephyr-Core-3.7.0/include/zephyr/
Dirq_multilevel.h34 const uint32_t mask2 = BIT_MASK(CONFIG_2ND_LEVEL_INTERRUPT_BITS) << in irq_get_level()
36 const uint32_t mask3 = BIT_MASK(CONFIG_3RD_LEVEL_INTERRUPT_BITS) << in irq_get_level()
64 BIT_MASK(CONFIG_2ND_LEVEL_INTERRUPT_BITS)) - 1; in irq_from_level_2()
108 return irq & BIT_MASK(CONFIG_1ST_LEVEL_INTERRUPT_BITS); in irq_parent_level_2()
167 BIT_MASK(CONFIG_2ND_LEVEL_INTERRUPT_BITS); in irq_parent_level_3()
253 return irq & BIT_MASK(CONFIG_1ST_LEVEL_INTERRUPT_BITS + in irq_get_intc_irq()
/Zephyr-Core-3.7.0/soc/gd/gd32/gd32l23x/
Dgd32_regs.h18 #define RCU_CFG0_AHBPSC_MSK (BIT_MASK(4) << RCU_CFG0_AHBPSC_POS)
20 #define RCU_CFG0_APB1PSC_MSK (BIT_MASK(3) << RCU_CFG0_APB1PSC_POS)
22 #define RCU_CFG0_APB2PSC_MSK (BIT_MASK(3) << RCU_CFG0_APB2PSC_POS)
/Zephyr-Core-3.7.0/soc/gd/gd32/gd32f3x0/
Dgd32_regs.h19 #define RCU_CFG0_AHBPSC_MSK (BIT_MASK(4) << RCU_CFG0_AHBPSC_POS)
21 #define RCU_CFG0_APB1PSC_MSK (BIT_MASK(3) << RCU_CFG0_APB1PSC_POS)
23 #define RCU_CFG0_APB2PSC_MSK (BIT_MASK(3) << RCU_CFG0_APB2PSC_POS)
/Zephyr-Core-3.7.0/soc/gd/gd32/gd32f403/
Dgd32_regs.h19 #define RCU_CFG0_AHBPSC_MSK (BIT_MASK(4) << RCU_CFG0_AHBPSC_POS)
21 #define RCU_CFG0_APB1PSC_MSK (BIT_MASK(3) << RCU_CFG0_APB1PSC_POS)
23 #define RCU_CFG0_APB2PSC_MSK (BIT_MASK(3) << RCU_CFG0_APB2PSC_POS)
/Zephyr-Core-3.7.0/soc/gd/gd32/gd32vf103/
Dgd32_regs.h19 #define RCU_CFG0_AHBPSC_MSK (BIT_MASK(4) << RCU_CFG0_AHBPSC_POS)
21 #define RCU_CFG0_APB1PSC_MSK (BIT_MASK(3) << RCU_CFG0_APB1PSC_POS)
23 #define RCU_CFG0_APB2PSC_MSK (BIT_MASK(3) << RCU_CFG0_APB2PSC_POS)
/Zephyr-Core-3.7.0/soc/gd/gd32/gd32e10x/
Dgd32_regs.h19 #define RCU_CFG0_AHBPSC_MSK (BIT_MASK(4) << RCU_CFG0_AHBPSC_POS)
21 #define RCU_CFG0_APB1PSC_MSK (BIT_MASK(3) << RCU_CFG0_APB1PSC_POS)
23 #define RCU_CFG0_APB2PSC_MSK (BIT_MASK(3) << RCU_CFG0_APB2PSC_POS)
/Zephyr-Core-3.7.0/soc/gd/gd32/gd32e50x/
Dgd32_regs.h19 #define RCU_CFG0_AHBPSC_MSK (BIT_MASK(4) << RCU_CFG0_AHBPSC_POS)
21 #define RCU_CFG0_APB1PSC_MSK (BIT_MASK(3) << RCU_CFG0_APB1PSC_POS)
23 #define RCU_CFG0_APB2PSC_MSK (BIT_MASK(3) << RCU_CFG0_APB2PSC_POS)
/Zephyr-Core-3.7.0/soc/gd/gd32/gd32a50x/
Dgd32_regs.h20 #define RCU_CFG0_AHBPSC_MSK (BIT_MASK(4) << RCU_CFG0_AHBPSC_POS)
22 #define RCU_CFG0_APB1PSC_MSK (BIT_MASK(3) << RCU_CFG0_APB1PSC_POS)
24 #define RCU_CFG0_APB2PSC_MSK (BIT_MASK(3) << RCU_CFG0_APB2PSC_POS)
/Zephyr-Core-3.7.0/drivers/i2c/
Di2c_andes_atciic100.h42 #define TARGET_ADDR_MSK BIT_MASK(10)
43 #define DATA_MSK BIT_MASK(8)
46 #define IEN_ALL BIT_MASK(10)
59 #define STATUS_W1C_ALL (BIT_MASK(7) << 3)
82 #define CTRL_DATA_COUNT BIT_MASK(8)
85 #define CMD_MSK BIT_MASK(3)
94 #define SETUP_T_SUDAT (BIT_MASK(5) << 24)
95 #define SETUP_T_SP (BIT_MASK(3) << 21)
96 #define SETUP_T_HDDAT (BIT_MASK(5) << 16)
98 #define SETUP_T_SCLHI (BIT_MASK(9) << 4)
/Zephyr-Core-3.7.0/tests/lib/smf/src/
Dtest_lib_self_transition_smf.c83 BIT_MASK(ROOT_ENTRY),
84 BIT_MASK(PARENT_AB_ENTRY),
85 BIT_MASK(STATE_A_ENTRY),
87 BIT_MASK(STATE_A_RUN),
88 BIT_MASK(STATE_A_EXIT),
89 BIT_MASK(STATE_B_ENTRY),
91 BIT_MASK(STATE_B_1ST_RUN),
93 BIT_MASK(STATE_B_2ND_RUN),
94 BIT_MASK(PARENT_AB_RUN),
95 BIT_MASK(STATE_B_EXIT),
[all …]
/Zephyr-Core-3.7.0/include/zephyr/arch/arm64/
Dcache.h28 #define CTR_EL0_DMINLINE_MASK BIT_MASK(4)
30 #define CTR_EL0_CWG_MASK BIT_MASK(4)
34 #define CLIDR_EL1_LOC_MASK BIT_MASK(3)
36 #define CLIDR_EL1_CTYPE_MASK BIT_MASK(3)
40 #define CCSIDR_EL1_LN_SZ_MASK BIT_MASK(3)
42 #define CCSIDR_EL1_WAYS_MASK BIT_MASK(10)
44 #define CCSIDR_EL1_SETS_MASK BIT_MASK(15)
/Zephyr-Core-3.7.0/drivers/spi/
Dspi_pw.h67 #define PW_SPI_SCR_MASK (BIT_MASK(12) << 8)
84 #define PW_SPI_CTRL1_SPO_SPH_MASK (BIT_MASK(2) << 3)
111 #define PW_SPI_SITF_SITFL_MASK (BIT_MASK(6) << 16)
125 #define PW_SPI_SIRF_SIRFL_MASK (BIT_MASK(6) << 8)
129 #define PW_SPI_WM_MASK BIT_MASK(6)
142 #define PW_SPI_CLKS_MVAL_MASK (BIT_MASK(15) << 1)
145 #define PW_SPI_CLKS_NVAL_MASK (BIT_MASK(15) << 16)
/Zephyr-Core-3.7.0/include/zephyr/audio/
Ddmic.h213 return ((((pdm & BIT_MASK(3)) << 1) | lr) << in dmic_build_channel_map()
214 ((channel & BIT_MASK(3)) * 4U)); in dmic_build_channel_map()
235 channel_map >>= ((channel & BIT_MASK(3)) * 4U); in dmic_parse_channel_map()
237 *pdm = (channel_map >> 1) & BIT_MASK(3); in dmic_parse_channel_map()
254 return ((skew & BIT_MASK(4)) << ((pdm & BIT_MASK(3)) * 4U)); in dmic_build_clk_skew_map()
/Zephyr-Core-3.7.0/tests/kernel/gen_isr_table/src/
Dmain.c465 irq1 = BIT_MASK(CONFIG_1ST_LEVEL_INTERRUPT_BITS) >> 1; in ZTEST()
469 irq1 = BIT_MASK(CONFIG_1ST_LEVEL_INTERRUPT_BITS); in ZTEST()
488 irq1 = BIT_MASK(CONFIG_1ST_LEVEL_INTERRUPT_BITS) >> 1; in ZTEST()
489 irq2 = BIT_MASK(CONFIG_2ND_LEVEL_INTERRUPT_BITS) >> 1; in ZTEST()
493 irq1 = BIT_MASK(CONFIG_1ST_LEVEL_INTERRUPT_BITS); in ZTEST()
494 irq2 = BIT_MASK(CONFIG_2ND_LEVEL_INTERRUPT_BITS); in ZTEST()
514 irq1 = BIT_MASK(CONFIG_1ST_LEVEL_INTERRUPT_BITS) >> 1; in ZTEST()
515 irq2 = BIT_MASK(CONFIG_2ND_LEVEL_INTERRUPT_BITS) >> 1; in ZTEST()
516 irq3 = BIT_MASK(CONFIG_3RD_LEVEL_INTERRUPT_BITS) >> 1; in ZTEST()
520 irq1 = BIT_MASK(CONFIG_1ST_LEVEL_INTERRUPT_BITS); in ZTEST()
[all …]
/Zephyr-Core-3.7.0/drivers/sensor/ti/tmag5170/
Dtmag5170.c46 #define TMAG5170_CONV_AVG_MASK (BIT_MASK(3U) << TMAG5170_CONV_AVG_POS)
51 #define TMAG5170_MAG_TEMPCO_MASK (BIT_MASK(2U) << TMAG5170_MAG_TEMPCO_POS)
56 #define TMAG5170_OPERATING_MODE_MASK (BIT_MASK(3U) << TMAG5170_OPERATING_MODE_POS)
61 #define TMAG5170_T_CH_EN_MASK (BIT_MASK(1U) << TMAG5170_T_CH_EN_POS)
66 #define TMAG5170_T_RATE_MASK (BIT_MASK(1U) << TMAG5170_T_RATE_POS)
71 #define TMAG5170_ANGLE_EN_MASK (BIT_MASK(2U) << TMAG5170_ANGLE_EN_POS)
76 #define TMAG5170_SLEEPTIME_MASK (BIT_MASK(4U) << TMAG5170_SLEEPTIME_POS)
81 #define TMAG5170_MAG_CH_EN_MASK (BIT_MASK(4U) << TMAG5170_MAG_CH_EN_POS)
86 #define TMAG5170_Z_RANGE_MASK (BIT_MASK(2U) << TMAG5170_Z_RANGE_POS)
91 #define TMAG5170_Y_RANGE_MASK (BIT_MASK(2U) << TMAG5170_Y_RANGE_POS)
[all …]
/Zephyr-Core-3.7.0/drivers/sensor/ti/tmp112/
Dtmp112.h25 #define TMP112_CONV_RATE_MASK (BIT_MASK(2) << TMP112_CONV_RATE_SHIFT)
34 #define TMP112_CONV_RES_MASK (BIT_MASK(2) << TMP112_CONV_RES_SHIFT)

123456789