Searched refs:bitpos (Results 1 – 7 of 7) sorted by relevance
168 uint32_t bitpos; in mec_hal_espi_vw_ct_girq_ctrl() local175 bitpos = (ct_idx * 4u) + src_idx; in mec_hal_espi_vw_ct_girq_ctrl()177 MEC_ECIA0->GIRQ[MEC_GIRQ_IDX_GIRQ24].EN_SET = MEC_BIT(bitpos); in mec_hal_espi_vw_ct_girq_ctrl()179 MEC_ECIA0->GIRQ[MEC_GIRQ_IDX_GIRQ24].EN_CLR = MEC_BIT(bitpos); in mec_hal_espi_vw_ct_girq_ctrl()182 bitpos = ((ct_idx - MEC_CTVW_IDX07) * 4u) + src_idx; in mec_hal_espi_vw_ct_girq_ctrl()184 MEC_ECIA0->GIRQ[MEC_GIRQ_IDX_GIRQ25].EN_SET = MEC_BIT(bitpos); in mec_hal_espi_vw_ct_girq_ctrl()186 MEC_ECIA0->GIRQ[MEC_GIRQ_IDX_GIRQ25].EN_CLR = MEC_BIT(bitpos); in mec_hal_espi_vw_ct_girq_ctrl()206 uint32_t bitpos; in mec_hal_espi_vw_ct_girq_clr() local213 bitpos = (ct_idx * 4u) + src_idx; in mec_hal_espi_vw_ct_girq_clr()214 MEC_ECIA0->GIRQ[MEC_GIRQ_IDX_GIRQ24].SOURCE = MEC_BIT(bitpos); in mec_hal_espi_vw_ct_girq_clr()[all …]
35 uint8_t bitpos; member172 uint8_t bitpos = pin_get_bitpos((uint16_t)(pin & 0xffffu)); in pin_is_valid() local174 if ((port < MEC_GPIO_PORT_MAX) && (valid_ctrl_masks[port] & MEC_BIT(bitpos))) { in pin_is_valid()356 uint32_t bitpos = pin_get_bitpos(pin & 0xffffu); in mec_hal_gpio_is_locked() local360 if (MEC_GPIO->LOCK[MEC_GPIO_PORT_MAX - 1u - port] & MEC_BIT(bitpos)) { in mec_hal_gpio_is_locked()419 uint32_t bpos = mec_cfg_tbl[prop_id].bitpos; in mec_hal_gpio_get_ctrl_property()433 uint32_t bpos = mec_cfg_tbl[prop_id].bitpos; in mec_hal_gpio_set_ctrl_property()454 uint32_t bpos = mec_cfg_tbl[prop_id].bitpos; in mec_hal_gpio_get_property()478 uint32_t bpos = mec_cfg_tbl[prop_id].bitpos; in mec_hal_gpio_set_property()520 uint32_t bitpos = mec_cfg_tbl[prop].bitpos; in mec_hal_gpio_set_props() local[all …]
86 uint32_t mec_hal_girq_result_test(uint32_t girq, uint32_t bitpos);
697 uint8_t bitpos = MEC_UART_MCR_DTR_Pos; in mec_hal_uart_dtr_rts_set() local704 bitpos = MEC_UART_MCR_RTS_Pos; in mec_hal_uart_dtr_rts_set()708 base->MCR |= MEC_BIT(bitpos); in mec_hal_uart_dtr_rts_set()710 base->MCR &= (uint8_t)~MEC_BIT(bitpos); in mec_hal_uart_dtr_rts_set()
501 uint32_t mec_hal_girq_result_test(uint32_t girq_num, uint32_t bitpos) in mec_hal_girq_result_test() argument505 return (result & MEC_BIT(bitpos)); in mec_hal_girq_result_test()
139 #define MCHP_PCR_SLP(bitpos) (1u << (bitpos)) argument482 uint32_t bitpos = (uint32_t) pcr_id & 0x1f; in mchp_pcr_periph_slp_ctrl() local486 REG32(raddr) |= (1u << bitpos); in mchp_pcr_periph_slp_ctrl()488 REG32(raddr) &= ~(1u << bitpos); in mchp_pcr_periph_slp_ctrl()496 uint32_t bitpos = (uint32_t) pcr_id & 0x1f; in mchp_pcr_periph_reset() local500 REG32(raddr) = (1u << bitpos); in mchp_pcr_periph_reset()
256 #define MCHP_ESPI_SERASE_SZ(bitpos) BIT((bitpos)+10) argument