Home
last modified time | relevance | path

Searched refs:bpos (Results 1 – 5 of 5) sorted by relevance

/hal_microchip-latest/mec5/drivers/
Dmec_pcr.c199 uint32_t bpos = pid % 32u; in mec_hal_pcr_set_blk_slp_en() local
201 MEC_PCR->SLP_EN[idx] |= MEC_BIT(bpos); in mec_hal_pcr_set_blk_slp_en()
211 uint32_t bpos = pid % 32u; in mec_hal_pcr_clr_blk_slp_en() local
213 MEC_PCR->SLP_EN[idx] &= ~MEC_BIT(bpos); in mec_hal_pcr_clr_blk_slp_en()
219 uint32_t bpos; in mec_hal_pcr_is_blk_slp_en() local
223 bpos = pid % 32u; in mec_hal_pcr_is_blk_slp_en()
225 if (MEC_PCR->SLP_EN[idx] & MEC_BIT(bpos)) { in mec_hal_pcr_is_blk_slp_en()
293 uint32_t bpos, idx, temp; in mec_hal_pcr_blk_reset() local
300 bpos = pid % 32u; in mec_hal_pcr_blk_reset()
303 MEC_PCR->RST_EN[idx] = MEC_BIT(bpos); in mec_hal_pcr_blk_reset()
[all …]
Dmec_ecia.c306 uint32_t bpos = 0; in enable_girq_direct_bitmap() local
316 bpos = 31u - msb; /* convert number of leading zeros to bit position */ in enable_girq_direct_bitmap()
317 if ((bpos >= MEC5_ECIA_FIRST_GIRQ_NOS) && (bpos <= MEC5_ECIA_LAST_GIRQ_NOS)) { in enable_girq_direct_bitmap()
319 &girq_routing_tbl[bpos - MEC5_ECIA_FIRST_GIRQ_NOS]; in enable_girq_direct_bitmap()
321 if (pgr->nmap && !(MEC_ECIA0->BLK_EN_SET & MEC_BIT(bpos))) { in enable_girq_direct_bitmap()
326 dbm &= (uint32_t)~MEC_BIT(bpos); in enable_girq_direct_bitmap()
Dmec_gpio.c419 uint32_t bpos = mec_cfg_tbl[prop_id].bitpos; in mec_hal_gpio_get_ctrl_property() local
421 *prop = (uint8_t)((ctrl >> bpos) & msk0); in mec_hal_gpio_get_ctrl_property()
433 uint32_t bpos = mec_cfg_tbl[prop_id].bitpos; in mec_hal_gpio_set_ctrl_property() local
435 ctrl = (ctrl & ~(msk0 << bpos)) | (((uint32_t)val & msk0) << bpos); in mec_hal_gpio_set_ctrl_property()
454 uint32_t bpos = mec_cfg_tbl[prop_id].bitpos; in mec_hal_gpio_get_property() local
460 *prop = (uint8_t)((MEC_MMCR32(regaddr) >> bpos) & msk0); in mec_hal_gpio_get_property()
478 uint32_t bpos = mec_cfg_tbl[prop_id].bitpos; in mec_hal_gpio_set_property() local
485 MEC_MMCR32(regaddr) = ((MEC_MMCR32(regaddr) & ~(msk0 << bpos)) in mec_hal_gpio_set_property()
486 | (((uint32_t)val & msk0) << bpos)); in mec_hal_gpio_set_property()
Dmec_espi_vw.c627 uint32_t bpos = src_idx * 8u; in mec_hal_espi_vw_ct_config() local
633 regval |= (val << bpos) & msk; in mec_hal_espi_vw_ct_config()
/hal_microchip-latest/mec/common/
Dmec_defs.h45 #define BIT_CLR(v, bpos) (v) &= ~BIT(bpos) argument