/Zephyr-latest/drivers/interrupt_controller/ |
D | intc_mchp_ecia_xec.c | 46 #define ECIA_XEC_PCR_BITPOS DT_INST_CLOCKS_CELL(0, bitpos) 50 DT_INST_CLOCKS_CELL(0, bitpos), \ 204 uint8_t bitpos = MCHP_XEC_ECIA_GIRQ_POS(ecia_info); in mchp_xec_ecia_info_girq_src_clr() local 206 mchp_xec_ecia_girq_src_clr(girq_num, bitpos); in mchp_xec_ecia_info_girq_src_clr() 212 uint8_t bitpos = MCHP_XEC_ECIA_GIRQ_POS(ecia_info); in mchp_xec_ecia_info_girq_src_en() local 214 mchp_xec_ecia_girq_src_en(girq_num, bitpos); in mchp_xec_ecia_info_girq_src_en() 220 uint8_t bitpos = MCHP_XEC_ECIA_GIRQ_POS(ecia_info); in mchp_xec_ecia_info_girq_src_dis() local 222 mchp_xec_ecia_girq_src_dis(girq_num, bitpos); in mchp_xec_ecia_info_girq_src_dis() 477 uint8_t bitpos = 31 - (__builtin_clz(result) & 0x1f); in xec_girq_isr() local 480 girq->SRC = BIT(bitpos); in xec_girq_isr() [all …]
|
/Zephyr-latest/soc/microchip/mec/common/ |
D | soc_pcr.h | 15 #define MCHP_XEC_PCR_SCR_ENCODE(slp_idx, bitpos, domain) \ argument 16 ((((uint32_t)(domain) & 0xff) << 24) | (((bitpos) & 0x1f) << 3) \
|
/Zephyr-latest/drivers/timer/ |
D | mchp_xec_rtos_timer.c | 112 static inline void girq_src_clr(int girq, int bitpos) in girq_src_clr() argument 118 ECIA_XEC_REGS->GIRQ[girq - 8].SRC = BIT(bitpos); in girq_src_clr() 121 static inline void girq_src_en(int girq, int bitpos) in girq_src_en() argument 127 ECIA_XEC_REGS->GIRQ[girq - 8].EN_SET = BIT(bitpos); in girq_src_en() 130 static inline void girq_src_dis(int girq, int bitpos) in girq_src_dis() argument 136 ECIA_XEC_REGS->GIRQ[girq - 8].EN_CLR = BIT(bitpos); in girq_src_dis()
|
/Zephyr-latest/drivers/i3c/ |
D | i3c_common.c | 39 int bitpos; in i3c_addr_slots_set() local 49 bitpos = dev_addr * 2; in i3c_addr_slots_set() 50 idx = bitpos / BITS_PER_LONG; in i3c_addr_slots_set() 51 bitpos %= BITS_PER_LONG; in i3c_addr_slots_set() 53 slots->slots[idx] &= ~((unsigned long)I3C_ADDR_SLOT_STATUS_MASK << bitpos); in i3c_addr_slots_set() 54 slots->slots[idx] |= status << bitpos; in i3c_addr_slots_set() 62 int bitpos; in i3c_addr_slots_status() local 75 bitpos = dev_addr * 2; in i3c_addr_slots_status() 76 idx = bitpos / BITS_PER_LONG; in i3c_addr_slots_status() 77 bitpos %= BITS_PER_LONG; in i3c_addr_slots_status() [all …]
|
/Zephyr-latest/drivers/usb/common/nrf_usbd_common/ |
D | nrf_usbd_common.c | 462 static inline nrf_usbd_common_ep_t bit2ep(uint8_t bitpos) in bit2ep() argument 466 return (nrf_usbd_common_ep_t)((bitpos >= NRF_USBD_COMMON_EPOUT_BITPOS_0) in bit2ep() 467 ? NRF_USBD_COMMON_EPOUT(bitpos - NRF_USBD_COMMON_EPOUT_BITPOS_0) in bit2ep() 468 : NRF_USBD_COMMON_EPIN(bitpos)); in bit2ep() 588 uint8_t bitpos = NRF_CTZ(ep_waiting); in usbd_ep_abort_all() local 590 if (!NRF_USBD_COMMON_EP_IS_ISO(bit2ep(bitpos))) { in usbd_ep_abort_all() 591 usbd_ep_abort(bit2ep(bitpos)); in usbd_ep_abort_all() 593 ep_waiting &= ~(1U << bitpos); in usbd_ep_abort_all() 679 static void usbd_ep_data_handler(nrf_usbd_common_ep_t ep, uint8_t bitpos) in usbd_ep_data_handler() argument 683 m_ep_ready |= (1U << bitpos); in usbd_ep_data_handler() [all …]
|
/Zephyr-latest/soc/microchip/mec/mec172x/reg/ |
D | mec172x_ecia.h | 485 #define MCHP_GIRQ13_NVIC_DIRECT(bitpos) (20u + (uint32_t)(bitpos)) argument 524 #define MCHP_GIRQ14_NVIC_DIRECT(bitpos) (24u + (uint32_t)(bitpos)) argument 585 #define MCHP_GIRQ15_NVIC_DIRECT(bitpos) (40u + (uint32_t)(bitpos)) argument 598 #define MCHP_GIRQ16_NVIC_DIRECT(bitpos) (65u + (uint32_t)(bitpos)) argument
|
D | mec172x_pcr.h | 84 #define MCHP_PCR_SLP(bitpos) BIT(bitpos) argument
|
D | mec172x_espi_iom.h | 174 #define MCHP_ESPI_SERASE_SZ(bitpos) BIT((bitpos) + 10u) argument
|
/Zephyr-latest/drivers/clock_control/ |
D | clock_control_mchp_xec.c | 830 uint16_t bitpos = 0; in xec_cc_on() local 855 bitpos = MCHP_XEC_PCR_SCR_GET_BITPOS(cc->pcr_info); in xec_cc_on() 862 pcr->SLP_EN[pcr_idx] &= ~BIT(bitpos); in xec_cc_on() 864 pcr->SLP_EN[pcr_idx] |= BIT(bitpos); in xec_cc_on()
|
/Zephyr-latest/drivers/crypto/ |
D | crypto_mchp_xec_symcr.c | 525 DT_INST_CLOCKS_CELL(i, bitpos), \
|
/Zephyr-latest/drivers/espi/ |
D | espi_mchp_xec_host_v2.c | 128 uint8_t bitpos = MCHP_XEC_ECIA_GIRQ_POS(xec_mbox0_cfg.ecia_info); in mbox0_isr() local 131 mchp_soc_ecia_girq_src_clr(girq, bitpos); in mbox0_isr()
|
/Zephyr-latest/drivers/spi/ |
D | spi_xec_qmspi_ldma.c | 1031 DT_INST_CLOCKS_CELL(i, bitpos), \
|