Home
last modified time | relevance | path

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

/hal_microchip-latest/mec5/drivers/
Dmec_espi_fc.c167 uint32_t exp = 0; in mec_hal_espi_fc_max_read_req_sz() local
169 exp = ((iobase->FCCFG & MEC_ESPI_IO_FCCFG_MAX_RD_REQ_SZ_Msk) >> in mec_hal_espi_fc_max_read_req_sz()
171 if (exp == 0u) { in mec_hal_espi_fc_max_read_req_sz()
175 exp += 5u; in mec_hal_espi_fc_max_read_req_sz()
177 return (1u << exp); in mec_hal_espi_fc_max_read_req_sz()
183 uint32_t exp = 0; in mec_hal_espi_fc_max_pld_sz() local
185 exp = (iobase->FCCFG & MEC_ESPI_IO_FCCFG_MAX_PLD_SZ_Msk) >> MEC_ESPI_IO_FCCFG_MAX_PLD_SZ_Pos; in mec_hal_espi_fc_max_pld_sz()
186 if ((exp == 0u) || (exp > 3u)) { /* reserved values */ in mec_hal_espi_fc_max_pld_sz()
190 exp += 5u; in mec_hal_espi_fc_max_pld_sz()
192 return (1u << exp); in mec_hal_espi_fc_max_pld_sz()