/Zephyr-Core-3.7.0/soc/atmel/sam/common/ |
D | soc_sam4l_gpio.c | 15 uint32_t mask, uint32_t flags) in configure_common_attr() argument 20 gpio->IERC = mask; in configure_common_attr() 24 gpio->PUERS = mask; in configure_common_attr() 26 gpio->PUERC = mask; in configure_common_attr() 31 gpio->PDERS = mask; in configure_common_attr() 33 gpio->PDERC = mask; in configure_common_attr() 38 gpio->ODMERS = mask; in configure_common_attr() 40 gpio->ODMERC = mask; in configure_common_attr() 45 uint32_t mask, uint32_t flags) in configure_input_attr() argument 52 gpio->GFERC = mask; in configure_input_attr() [all …]
|
D | soc_gpio.c | 24 static void configure_common_attr(Pio *pio, uint32_t mask, uint32_t flags) in configure_common_attr() argument 27 pio->PIO_IDR = mask; in configure_common_attr() 31 pio->PIO_PUER = mask; in configure_common_attr() 33 pio->PIO_PUDR = mask; in configure_common_attr() 40 pio->PIO_PPDER = mask; in configure_common_attr() 42 pio->PIO_PPDDR = mask; in configure_common_attr() 48 pio->PIO_MDER = mask; in configure_common_attr() 50 pio->PIO_MDDR = mask; in configure_common_attr() 54 static void configure_input_attr(Pio *pio, uint32_t mask, uint32_t flags) in configure_input_attr() argument 61 pio->PIO_IFSCER = mask; in configure_input_attr() [all …]
|
D | soc_sam4l_pm.c | 29 1, /* CPU MASK Instances */ 30 10, /* HSB MASK Instances */ 31 24, /* PBA MASK Instances */ 32 7, /* PBB MASK Instances */ 33 5, /* PBC MASK Instances */ 34 6, /* PBD MASK Instances */ 42 uint32_t mask; in soc_pmc_peripheral_enable() local 54 mask = *(&PM->CPUMASK + bus_id); in soc_pmc_peripheral_enable() 55 mask |= (1U << per_idx); in soc_pmc_peripheral_enable() 60 *(&PM->CPUMASK + bus_id) = mask; in soc_pmc_peripheral_enable() [all …]
|
/Zephyr-Core-3.7.0/soc/nxp/imx/imx8ulp/adsp/ |
D | _soc_inthandlers.h | 13 * order (low bits first) and will return a mask of that bit that can 119 static inline int _xtensa_handle_one_int5(unsigned int mask) in _xtensa_handle_one_int5() argument 123 if (mask & BIT(0)) { in _xtensa_handle_one_int5() 124 mask = BIT(0); in _xtensa_handle_one_int5() 131 return mask; in _xtensa_handle_one_int5() 134 static inline int _xtensa_handle_one_int2(unsigned int mask) in _xtensa_handle_one_int2() argument 138 if (mask & 0x70006) { in _xtensa_handle_one_int2() 139 if (mask & 0x6) { in _xtensa_handle_one_int2() 140 if (mask & BIT(1)) { in _xtensa_handle_one_int2() 141 mask = BIT(1); in _xtensa_handle_one_int2() [all …]
|
/Zephyr-Core-3.7.0/soc/espressif/common/include/ |
D | _soc_inthandlers.h | 14 * order (low bits first) and will return a mask of that bit that can 120 static inline int _xtensa_handle_one_int1(unsigned int mask) in _xtensa_handle_one_int1() argument 124 if (mask & 0x7f) { in _xtensa_handle_one_int1() 125 if (mask & 0x7) { in _xtensa_handle_one_int1() 126 if (mask & BIT(0)) { in _xtensa_handle_one_int1() 127 mask = BIT(0); in _xtensa_handle_one_int1() 131 if (mask & BIT(1)) { in _xtensa_handle_one_int1() 132 mask = BIT(1); in _xtensa_handle_one_int1() 136 if (mask & BIT(2)) { in _xtensa_handle_one_int1() 137 mask = BIT(2); in _xtensa_handle_one_int1() [all …]
|
/Zephyr-Core-3.7.0/soc/intel/intel_adsp/cavs/ |
D | _soc_inthandlers.h | 12 * order (low bits first) and will return a mask of that bit that can 85 static inline int _xtensa_handle_one_int1(unsigned int mask) in _xtensa_handle_one_int1() argument 89 if (mask & 0x3) { in _xtensa_handle_one_int1() 90 if (mask & BIT(0)) { in _xtensa_handle_one_int1() 91 mask = BIT(0); in _xtensa_handle_one_int1() 95 if (mask & BIT(1)) { in _xtensa_handle_one_int1() 96 mask = BIT(1); in _xtensa_handle_one_int1() 101 if (mask & BIT(2)) { in _xtensa_handle_one_int1() 102 mask = BIT(2); in _xtensa_handle_one_int1() 106 if (mask & BIT(3)) { in _xtensa_handle_one_int1() [all …]
|
/Zephyr-Core-3.7.0/soc/intel/intel_adsp/ace/ |
D | _soc_inthandlers.h | 11 * order (low bits first) and will return a mask of that bit that can 48 static inline int _xtensa_handle_one_int1(unsigned int mask) in _xtensa_handle_one_int1() argument 52 if (mask & BIT(0)) { in _xtensa_handle_one_int1() 53 mask = BIT(0); in _xtensa_handle_one_int1() 57 if (mask & BIT(1)) { in _xtensa_handle_one_int1() 58 mask = BIT(1); in _xtensa_handle_one_int1() 65 return mask; in _xtensa_handle_one_int1() 68 static inline int _xtensa_handle_one_int2(unsigned int mask) in _xtensa_handle_one_int2() argument 72 if (mask & BIT(2)) { in _xtensa_handle_one_int2() 73 mask = BIT(2); in _xtensa_handle_one_int2() [all …]
|
/Zephyr-Core-3.7.0/tests/subsys/lorawan/channels_mask/src/ |
D | main.c | 14 * @brief Test channels mask with size 1 16 * This test will request the channels mask changes, passing valid 25 /* Test the function when a region with mask size 1 is being used */ in ZTEST() 32 /* Configure channels mask with expected parameters */ in ZTEST() 34 zassert_equal(err, 0, "Denied right channels mask configuration"); in ZTEST() 36 /* Configure channels mask with unexpected channels mask size */ in ZTEST() 38 zassert_equal(err, -EINVAL, "Accepted an unexpected mask size for the selected region"); in ZTEST() 40 /* Configure channels mask with pointer to NULL */ in ZTEST() 46 * @brief Test channels mask with size 6 48 * This test will request the channels mask changes, passing valid [all …]
|
/Zephyr-Core-3.7.0/drivers/gpio/ |
D | gpio_sam4l.c | 41 uint32_t mask, in gpio_sam_port_configure() argument 53 gpio->IERC = mask; in gpio_sam_port_configure() 54 gpio->PUERC = mask; in gpio_sam_port_configure() 55 gpio->PDERC = mask; in gpio_sam_port_configure() 56 gpio->GPERS = mask; in gpio_sam_port_configure() 57 gpio->ODERC = mask; in gpio_sam_port_configure() 58 gpio->STERC = mask; in gpio_sam_port_configure() 67 gpio->STERS = mask; in gpio_sam_port_configure() 71 gpio->OVRS = mask; in gpio_sam_port_configure() 74 gpio->OVRC = mask; in gpio_sam_port_configure() [all …]
|
D | gpio_sam.c | 41 static int gpio_sam_port_configure(const struct device *dev, uint32_t mask, in gpio_sam_port_configure() argument 50 pio->PIO_MDER = mask; in gpio_sam_port_configure() 57 pio->PIO_MDDR = mask; in gpio_sam_port_configure() 64 pio->PIO_IDR = mask; in gpio_sam_port_configure() 66 pio->PIO_PUDR = mask; in gpio_sam_port_configure() 72 pio->PIO_PPDDR = mask; in gpio_sam_port_configure() 75 pio->PIO_PER = mask; in gpio_sam_port_configure() 77 pio->PIO_ODR = mask; in gpio_sam_port_configure() 86 pio->PIO_SODR = mask; in gpio_sam_port_configure() 90 pio->PIO_CODR = mask; in gpio_sam_port_configure() [all …]
|
D | gpio_mmio32.c | 23 * It is possible to specify a restricted mask of bits that are valid for 25 * mask will be preserved, even when the whole port is written to using 39 if ((config->mask & (1 << pin)) == 0) { in gpio_mmio32_config() 40 return -EINVAL; /* Pin not in our validity mask */ in gpio_mmio32_config() 58 *reg = (*reg & (config->mask & ~(1 << pin))); in gpio_mmio32_config() 71 *value = *config->reg & config->mask; in gpio_mmio32_port_get_raw() 77 uint32_t mask, in gpio_mmio32_port_set_masked_raw() argument 85 mask &= config->mask; in gpio_mmio32_port_set_masked_raw() 86 value &= mask; in gpio_mmio32_port_set_masked_raw() 90 *reg = (*reg & ~mask) | value; in gpio_mmio32_port_set_masked_raw() [all …]
|
D | gpio_nct38xx_port.c | 24 /* GPIO port 0 pinmux mask */ 45 uint32_t mask; in gpio_nct38xx_pin_config() local 73 mask = BIT(pin) | ~config->pinmux_mask; in gpio_nct38xx_pin_config() 75 ret = i2c_reg_update_byte_dt(data->i2c_dev, NCT38XX_REG_MUX_CONTROL, mask, new_reg); in gpio_nct38xx_pin_config() 85 mask = BIT(pin); in gpio_nct38xx_pin_config() 87 mask, new_reg); in gpio_nct38xx_pin_config() 93 mask = BIT(pin); in gpio_nct38xx_pin_config() 95 new_reg = mask; in gpio_nct38xx_pin_config() 100 mask, new_reg); in gpio_nct38xx_pin_config() 107 new_reg = mask; in gpio_nct38xx_pin_config() [all …]
|
D | gpio_grgpio2.c | 48 uint32_t mask = 1 << pin; in pin_configure() local 75 regs->output_or = mask; in pin_configure() 77 regs->output_and = ~mask; in pin_configure() 79 regs->dir_or = mask; in pin_configure() 82 regs->dir_and = ~mask; in pin_configure() 97 gpio_port_pins_t mask, in port_set_masked_raw() argument 106 value &= mask; in port_set_masked_raw() 108 port_val = (regs->output & ~mask) | value; in port_set_masked_raw() 159 const uint32_t mask = 1 << pin; in pin_interrupt_configure() local 163 if ((mask & data->imask) == 0) { in pin_interrupt_configure() [all …]
|
/Zephyr-Core-3.7.0/include/zephyr/drivers/interrupt_controller/ |
D | wuc_ite_it8xxx2.h | 18 * @param mask Pin mask of WUC group 20 void it8xxx2_wuc_enable(const struct device *dev, uint8_t mask); 27 * @param mask Pin mask of WUC group 29 void it8xxx2_wuc_disable(const struct device *dev, uint8_t mask); 36 * @param mask Pin mask of WUC group 38 void it8xxx2_wuc_clear_status(const struct device *dev, uint8_t mask); 44 * @param mask Pin mask of WUC group 47 void it8xxx2_wuc_set_polarity(const struct device *dev, uint8_t mask,
|
/Zephyr-Core-3.7.0/soc/nxp/imx/imx8/adsp/ |
D | _soc_inthandlers.h | 13 * order (low bits first) and will return a mask of that bit that can 86 static inline int _xtensa_handle_one_int1(unsigned int mask) in _xtensa_handle_one_int1() argument 90 if (mask & BIT(8)) { in _xtensa_handle_one_int1() 91 mask = BIT(8); in _xtensa_handle_one_int1() 98 return mask; in _xtensa_handle_one_int1() 101 static inline int _xtensa_handle_one_int2(unsigned int mask) in _xtensa_handle_one_int2() argument 106 mask &= XCHAL_INTLEVEL2_MASK; in _xtensa_handle_one_int2() 108 if (mask & BIT(i)) { in _xtensa_handle_one_int2() 109 mask = BIT(i); in _xtensa_handle_one_int2() 116 return mask; in _xtensa_handle_one_int2() [all …]
|
/Zephyr-Core-3.7.0/soc/nxp/imx/imx8m/adsp/ |
D | _soc_inthandlers.h | 13 * order (low bits first) and will return a mask of that bit that can 86 static inline int _xtensa_handle_one_int1(unsigned int mask) in _xtensa_handle_one_int1() argument 90 if (mask & BIT(8)) { in _xtensa_handle_one_int1() 91 mask = BIT(8); in _xtensa_handle_one_int1() 98 return mask; in _xtensa_handle_one_int1() 101 static inline int _xtensa_handle_one_int2(unsigned int mask) in _xtensa_handle_one_int2() argument 106 mask &= XCHAL_INTLEVEL2_MASK; in _xtensa_handle_one_int2() 108 if (mask & BIT(i)) { in _xtensa_handle_one_int2() 109 mask = BIT(i); in _xtensa_handle_one_int2() 116 return mask; in _xtensa_handle_one_int2() [all …]
|
/Zephyr-Core-3.7.0/soc/nxp/imx/imx8x/adsp/ |
D | _soc_inthandlers.h | 13 * order (low bits first) and will return a mask of that bit that can 86 static inline int _xtensa_handle_one_int1(unsigned int mask) in _xtensa_handle_one_int1() argument 90 if (mask & BIT(8)) { in _xtensa_handle_one_int1() 91 mask = BIT(8); in _xtensa_handle_one_int1() 98 return mask; in _xtensa_handle_one_int1() 101 static inline int _xtensa_handle_one_int2(unsigned int mask) in _xtensa_handle_one_int2() argument 106 mask &= XCHAL_INTLEVEL2_MASK; in _xtensa_handle_one_int2() 108 if (mask & BIT(i)) { in _xtensa_handle_one_int2() 109 mask = BIT(i); in _xtensa_handle_one_int2() 116 return mask; in _xtensa_handle_one_int2() [all …]
|
/Zephyr-Core-3.7.0/drivers/hwinfo/ |
D | hwinfo_mcux_rcm.c | 14 * @brief Translate from RCM reset source mask to Zephyr hwinfo sources mask. 19 * @param NXP MCUX RCM reset source mask. 20 * @retval Zephyr hwinfo reset source mask. 24 uint32_t mask = 0; in hwinfo_mcux_rcm_xlate_reset_sources() local 28 mask |= RESET_LOW_POWER_WAKE; in hwinfo_mcux_rcm_xlate_reset_sources() 33 mask |= RESET_BROWNOUT; in hwinfo_mcux_rcm_xlate_reset_sources() 38 mask |= RESET_CLOCK; in hwinfo_mcux_rcm_xlate_reset_sources() 44 mask |= RESET_PLL; in hwinfo_mcux_rcm_xlate_reset_sources() 49 mask |= RESET_WATCHDOG; in hwinfo_mcux_rcm_xlate_reset_sources() 53 mask |= RESET_PIN; in hwinfo_mcux_rcm_xlate_reset_sources() [all …]
|
/Zephyr-Core-3.7.0/soc/cdns/xtensa_sample_controller/include/ |
D | _soc_inthandlers.h | 8 * order (low bits first) and will return a mask of that bit that can 83 static inline int _xtensa_handle_one_int0(unsigned int mask) in _xtensa_handle_one_int0() argument 88 static inline int _xtensa_handle_one_int1(unsigned int mask) in _xtensa_handle_one_int1() argument 90 if (mask & 0x7f) { in _xtensa_handle_one_int1() 91 if (mask & 0x7) { in _xtensa_handle_one_int1() 92 if (mask & (1 << 0)) { in _xtensa_handle_one_int1() 98 if (mask & (1 << 1)) { in _xtensa_handle_one_int1() 104 if (mask & (1 << 2)) { in _xtensa_handle_one_int1() 111 if (mask & 0x18) { in _xtensa_handle_one_int1() 112 if (mask & (1 << 3)) { in _xtensa_handle_one_int1() [all …]
|
/Zephyr-Core-3.7.0/dts/arm/nuvoton/npcx/ |
D | npcx-miwus-int-map.dtsi | 17 group-mask = <0x02>; 22 group-mask = <0x04>; 33 group-mask = <0x01>; 38 group-mask = <0x02>; 43 group-mask = <0x04>; 48 group-mask = <0x08>; 53 group-mask = <0x10>; 58 group-mask = <0x20>; 63 group-mask = <0x40>; 68 group-mask = <0x80>; [all …]
|
/Zephyr-Core-3.7.0/drivers/rtc/ |
D | rtc_utils.c | 15 bool rtc_utils_validate_rtc_time(const struct rtc_time *timeptr, uint16_t mask) in rtc_utils_validate_rtc_time() argument 17 if ((mask & RTC_ALARM_TIME_MASK_SECOND) && (timeptr->tm_sec < 0 || timeptr->tm_sec > 59)) { in rtc_utils_validate_rtc_time() 21 if ((mask & RTC_ALARM_TIME_MASK_MINUTE) && (timeptr->tm_min < 0 || timeptr->tm_min > 59)) { in rtc_utils_validate_rtc_time() 25 if ((mask & RTC_ALARM_TIME_MASK_HOUR) && (timeptr->tm_hour < 0 || timeptr->tm_hour > 23)) { in rtc_utils_validate_rtc_time() 29 if ((mask & RTC_ALARM_TIME_MASK_MONTH) && (timeptr->tm_mon < 0 || timeptr->tm_mon > 11)) { in rtc_utils_validate_rtc_time() 33 if ((mask & RTC_ALARM_TIME_MASK_MONTHDAY) && in rtc_utils_validate_rtc_time() 38 if ((mask & RTC_ALARM_TIME_MASK_YEAR) && (timeptr->tm_year < 0 || timeptr->tm_year > 199)) { in rtc_utils_validate_rtc_time() 42 if ((mask & RTC_ALARM_TIME_MASK_WEEKDAY) && in rtc_utils_validate_rtc_time() 47 if ((mask & RTC_ALARM_TIME_MASK_YEARDAY) && in rtc_utils_validate_rtc_time() 52 if ((mask & RTC_ALARM_TIME_MASK_NSEC) && in rtc_utils_validate_rtc_time()
|
/Zephyr-Core-3.7.0/soc/renesas/rzt2m/ |
D | soc.c | 18 void rzt2m_unlock_prcrn(uint32_t mask) in rzt2m_unlock_prcrn() argument 23 prcrn |= PRC_KEY_CODE | mask; in rzt2m_unlock_prcrn() 28 void rzt2m_lock_prcrn(uint32_t mask) in rzt2m_lock_prcrn() argument 33 prcrn &= ~mask; in rzt2m_lock_prcrn() 39 void rzt2m_unlock_prcrs(uint32_t mask) in rzt2m_unlock_prcrs() argument 44 prcrs |= PRC_KEY_CODE | mask; in rzt2m_unlock_prcrs() 49 void rzt2m_lock_prcrs(uint32_t mask) in rzt2m_lock_prcrs() argument 54 prcrs &= ~mask; in rzt2m_lock_prcrs() 60 void rzt2m_set_sckcr2(uint32_t mask) in rzt2m_set_sckcr2() argument 62 syscon_write_reg(sckcr2_dev, 0, mask); in rzt2m_set_sckcr2() [all …]
|
/Zephyr-Core-3.7.0/dts/arm/nuvoton/npcx/npcx4/ |
D | npcx4-miwus-int-map.dtsi | 21 group-mask = <0x01>; 26 group-mask = <0x08>; 31 group-mask = <0x10>; 36 group-mask = <0x20>; 41 group-mask = <0x40>; 46 group-mask = <0x80>; 57 group-mask = <0x10>; 62 group-mask = <0x20>; 67 group-mask = <0x40>; 72 group-mask = <0x80>;
|
/Zephyr-Core-3.7.0/drivers/interrupt_controller/ |
D | wuc_ite_it8xxx2.c | 32 void it8xxx2_wuc_enable(const struct device *dev, uint8_t mask) in it8xxx2_wuc_enable() argument 46 *reg_wuenr |= mask; in it8xxx2_wuc_enable() 49 void it8xxx2_wuc_disable(const struct device *dev, uint8_t mask) in it8xxx2_wuc_disable() argument 63 *reg_wuenr &= ~mask; in it8xxx2_wuc_disable() 66 void it8xxx2_wuc_clear_status(const struct device *dev, uint8_t mask) in it8xxx2_wuc_clear_status() argument 76 *reg_wuesr = mask; in it8xxx2_wuc_clear_status() 79 void it8xxx2_wuc_set_polarity(const struct device *dev, uint8_t mask, uint32_t flags) in it8xxx2_wuc_set_polarity() argument 91 *reg_wubemr &= ~mask; in it8xxx2_wuc_set_polarity() 92 *reg_wuemr &= ~mask; in it8xxx2_wuc_set_polarity() 94 *reg_wubemr &= ~mask; in it8xxx2_wuc_set_polarity() [all …]
|
/Zephyr-Core-3.7.0/soc/nxp/imxrt/imxrt5xx/f1/include/ |
D | _soc_inthandlers.h | 116 static inline int _xtensa_handle_one_int1(unsigned int mask) in _xtensa_handle_one_int1() argument 120 mask &= XCHAL_INTLEVEL1_MASK; in _xtensa_handle_one_int1() 122 if (mask & BIT(i)) { in _xtensa_handle_one_int1() 123 mask = BIT(i); in _xtensa_handle_one_int1() 131 return mask; in _xtensa_handle_one_int1() 134 static inline int _xtensa_handle_one_int2(unsigned int mask) in _xtensa_handle_one_int2() argument 138 mask &= XCHAL_INTLEVEL2_MASK; in _xtensa_handle_one_int2() 140 if (mask & BIT(i)) { in _xtensa_handle_one_int2() 141 mask = BIT(i); in _xtensa_handle_one_int2() 149 return mask; in _xtensa_handle_one_int2() [all …]
|