Home
last modified time | relevance | path

Searched refs:bitpos (Results 1 – 7 of 7) sorted by relevance

/hal_microchip-latest/mec5/drivers/
Dmec_espi_vw.c168 uint32_t bitpos; in mec_hal_espi_vw_ct_girq_ctrl() local
175 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() local
213 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 …]
Dmec_gpio.c35 uint8_t bitpos; member
172 uint8_t bitpos = pin_get_bitpos((uint16_t)(pin & 0xffffu)); in pin_is_valid() local
174 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() local
360 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 …]
Dmec_ecia_api.h86 uint32_t mec_hal_girq_result_test(uint32_t girq, uint32_t bitpos);
Dmec_uart.c697 uint8_t bitpos = MEC_UART_MCR_DTR_Pos; in mec_hal_uart_dtr_rts_set() local
704 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()
Dmec_ecia.c501 uint32_t mec_hal_girq_result_test(uint32_t girq_num, uint32_t bitpos) in mec_hal_girq_result_test() argument
505 return (result & MEC_BIT(bitpos)); in mec_hal_girq_result_test()
/hal_microchip-latest/mec/mec1501/component/
Dpcr.h139 #define MCHP_PCR_SLP(bitpos) (1u << (bitpos)) argument
482 uint32_t bitpos = (uint32_t) pcr_id & 0x1f; in mchp_pcr_periph_slp_ctrl() local
486 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() local
500 REG32(raddr) = (1u << bitpos); in mchp_pcr_periph_reset()
Despi_io.h256 #define MCHP_ESPI_SERASE_SZ(bitpos) BIT((bitpos)+10) argument