Searched refs:pos (Results 1 – 7 of 7) sorted by relevance
62 #define MEC_BIT_SET(d, pos) ((d) |= BIT(pos)) argument66 #define MEC_BIT_CLR(d, pos) ((d) &= ~BIT(pos)) argument74 #define MEC_FIELD_VAL(val, pos) ((uint32_t)(val) << (pos)) argument
300 uint8_t pos = (appid & 0x1fu); in mec_hal_emi_is_appid() local302 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() local319 regs->AIDS[idx] &= ~MEC_BIT(pos); in mec_hal_emi_clear_appid()
468 uint8_t pos; member486 uint32_t pos = cstm_tbl[field].pos; in mec_hal_qspi_cs_timing_adjust() local489 base->CSTM = (base->CSTM & ~(msk0 << pos)) | ((val & msk0) << pos); in mec_hal_qspi_cs_timing_adjust()
279 uint8_t pos = 0; in mec_hal_i2c_smb_own_addr() local294 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()
581 uint32_t pos = MEC_ESPI_VW_CTVW_SRC_ISELS_SRC0_IRQ_SEL_Pos * 8u; in mec_hal_espi_vw_ct_irqsel_set() local585 temp |= ((xlat_isel(irq_sel) << pos) & msk); in mec_hal_espi_vw_ct_irqsel_set()
292 #define MCHP_GIRQ_SRC_CLR(n, pos) \ argument293 REG32(MCHP_GIRQ_SRC_ADDR(n)) = BIT(pos)295 #define MCHP_GIRQ_SET_EN(n, pos) \ argument296 REG32(MCHP_GIRQ_ENSET_ADDR(n)) = BIT(pos)298 #define MCHP_GIRQ_CLR_EN(n, pos) \ argument299 REG32(MCHP_GIRQ_ENCLR_ADDR(n)) = BIT(pos)301 #define MCHP_GIRQ_IS_RESULT(n, pos) \ argument302 ((REG32(MCHP_GIRQ_RESULT_ADDR(n)) & BIT(pos)) != 0u)
2904 uint8_t pos, length, curr_length; in phy_training_mmc() local2921 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() local5497 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()