Home
last modified time | relevance | path

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

/hal_microchip-latest/mec5/drivers/
Dmec_defs.h62 #define MEC_BIT_SET(d, pos) ((d) |= BIT(pos)) argument
66 #define MEC_BIT_CLR(d, pos) ((d) &= ~BIT(pos)) argument
74 #define MEC_FIELD_VAL(val, pos) ((uint32_t)(val) << (pos)) argument
Dmec_emi.c300 uint8_t pos = (appid & 0x1fu); in mec_hal_emi_is_appid() local
302 if (regs->AIDS[idx] & MEC_BIT(pos)) { in mec_hal_emi_is_appid()
317 uint8_t pos = (appid & 0x1fu); in mec_hal_emi_clear_appid() local
319 regs->AIDS[idx] &= ~MEC_BIT(pos); in mec_hal_emi_clear_appid()
Dmec_qspi.c468 uint8_t pos; member
486 uint32_t pos = cstm_tbl[field].pos; in mec_hal_qspi_cs_timing_adjust() local
489 base->CSTM = (base->CSTM & ~(msk0 << pos)) | ((val & msk0) << pos); in mec_hal_qspi_cs_timing_adjust()
Dmec_i2c.c279 uint8_t pos = 0; in mec_hal_i2c_smb_own_addr() local
294 pos = MEC_I2C_SMB_OWN_ADDR_OAD0_Pos; in mec_hal_i2c_smb_own_addr()
298 pos = MEC_I2C_SMB_OWN_ADDR_OAD1_Pos; in mec_hal_i2c_smb_own_addr()
307 *curr_addr = (uint16_t)((regs->OWN_ADDR & msk) >> pos); in mec_hal_i2c_smb_own_addr()
310 | (((uint32_t)new_addr << pos) & msk)); in mec_hal_i2c_smb_own_addr()
Dmec_espi_vw.c581 uint32_t pos = MEC_ESPI_VW_CTVW_SRC_ISELS_SRC0_IRQ_SEL_Pos * 8u; in mec_hal_espi_vw_ct_irqsel_set() local
585 temp |= ((xlat_isel(irq_sel) << pos) & msk); in mec_hal_espi_vw_ct_irqsel_set()
/hal_microchip-latest/mec/mec1501/component/
Decia.h292 #define MCHP_GIRQ_SRC_CLR(n, pos) \ argument
293 REG32(MCHP_GIRQ_SRC_ADDR(n)) = BIT(pos)
295 #define MCHP_GIRQ_SET_EN(n, pos) \ argument
296 REG32(MCHP_GIRQ_ENSET_ADDR(n)) = BIT(pos)
298 #define MCHP_GIRQ_CLR_EN(n, pos) \ argument
299 REG32(MCHP_GIRQ_ENCLR_ADDR(n)) = BIT(pos)
301 #define MCHP_GIRQ_IS_RESULT(n, pos) \ argument
302 ((REG32(MCHP_GIRQ_RESULT_ADDR(n)) & BIT(pos)) != 0u)
/hal_microchip-latest/mpfs/drivers/mss/mss_mmc/
Dmss_mmc.c2904 uint8_t pos, length, curr_length; in phy_training_mmc() local
2921 pos = length = curr_length = MMC_CLEAR; in phy_training_mmc()
2934 pos = delay - length; in phy_training_mmc()
2967 new_delay = pos + (length / BYTES_2); in phy_training_mmc()
5486 uint8_t pos = 0u; in calc_longest_valid_delay_chain_val() local
5497 pos = i - length; in calc_longest_valid_delay_chain_val()
5506 pos += (length / 2u); in calc_longest_valid_delay_chain_val()
5508 return (pos); in calc_longest_valid_delay_chain_val()