Lines Matching refs:val
73 int mec_hal_bbram_rd8(uint16_t byte_ofs, uint8_t *val) in mec_hal_bbram_rd8() argument
75 if (!val || (byte_ofs >= MEC_VBAT_MEM_SIZE)) { in mec_hal_bbram_rd8()
79 *val = MEC_VBATM->VBMEM[byte_ofs]; in mec_hal_bbram_rd8()
84 int mec_hal_bbram_wr8(uint16_t byte_ofs, uint8_t val) in mec_hal_bbram_wr8() argument
90 MEC_VBATM->VBMEM[byte_ofs] = val; in mec_hal_bbram_wr8()
95 int mec_hal_bbram_rd32(uint16_t byte_ofs, uint32_t *val) in mec_hal_bbram_rd32() argument
99 if (!val || (byte_ofs >= MEC_VBAT_MEM_SIZE)) { in mec_hal_bbram_rd32()
112 *val = r; in mec_hal_bbram_rd32()
117 int mec_hal_bbram_wr32(uint16_t byte_ofs, uint32_t val) in mec_hal_bbram_wr32() argument
124 MEC_MMCR32(&MEC_VBATM->VBMEM[byte_ofs]) = val; in mec_hal_bbram_wr32()
127 MEC_VBATM->VBMEM[byte_ofs + i] = val & 0xffu; in mec_hal_bbram_wr32()
128 val >>= 8; in mec_hal_bbram_wr32()