Home
last modified time | relevance | path

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

/nrf_hw_models-3.7.0/src/HW_models/
DNHW_NVM_backend.c35 st->storage = NULL; in nhw_nvm_initialize_data_storage()
38 st->storage = (uint8_t *)bs_malloc(st->size); in nhw_nvm_initialize_data_storage()
60 st->storage = mmap(NULL, st->size, PROT_WRITE | PROT_READ, MAP_SHARED, st->fd, 0); in nhw_nvm_initialize_data_storage()
61 if (st->storage == MAP_FAILED) { in nhw_nvm_initialize_data_storage()
69 (void)memset(st->storage, 0xFF, st->size); in nhw_nvm_initialize_data_storage()
94 if (st->storage != NULL) { in nhw_nvm_clear_storage()
95 free(st->storage); in nhw_nvm_clear_storage()
96 st->storage = NULL; in nhw_nvm_clear_storage()
101 if ((st->storage != MAP_FAILED) && (st->storage != NULL)) { in nhw_nvm_clear_storage()
102 munmap(st->storage, st->size); in nhw_nvm_clear_storage()
[all …]
DNHW_RRAMC.c134 NRF_UICR_regs_p[inst] = (NRF_UICR_Type *)this->uicr_st.storage; in nhw_RRAMC_uicr_init()
158 (void)memset(this->uicr_st.storage, 0xFF, this->uicr_st.size); in nhw_RRAMC_erase_uicr()
167 (void)memset(this->rram_st.storage, 0xFF, this->rram_st.size); in nhw_RRAMC_erase_all()
194 static void nhw_RRAMC_address_location(uint32_t address, uint *inst, nvm_storage_state_t **storage,… in nhw_RRAMC_address_location() argument
199 *storage = &hw_rramc_st[i].rram_st; in nhw_RRAMC_address_location()
203 if ((address >= (uint32_t)hw_rramc_st[i].uicr_st.storage) \ in nhw_RRAMC_address_location()
204 && (address < (uint32_t)hw_rramc_st[i].uicr_st.storage + hw_rramc_st[i].uicr_size)) { in nhw_RRAMC_address_location()
205 *storage = &hw_rramc_st[i].uicr_st; in nhw_RRAMC_address_location()
206 *offset = address - (uint32_t)hw_rramc_st[i].uicr_st.storage; in nhw_RRAMC_address_location()
234 *(uint32_t*)&backend->storage[offset] = value; in nhw_RRAMC_write_word()
[all …]
DNHW_NVMC.c164 NRF_UICR_regs_p[inst] = (NRF_UICR_Type *)this->uicr_st.storage; in nhw_nvmc_uicr_init()
172 if (*(uint32_t*)(this->flash_st.storage + i) != 0) { in nhw_nvmc_uicr_init()
213 memset(&this->flash_st.storage[base_address], 0xFF, this->flash_page_size); in nhw_nvmc_complete_erase()
234 (void)memset(this->uicr_st.storage, 0xFF, this->uicr_st.size); in nhw_nvmc_complete_erase_uicr()
243 (void)memset(this->flash_st.storage, 0xFF, this->flash_st.size); in nhw_nvmc_complete_erase_all()
451 static void nhw_nvmc_address_location(uint32_t address, uint *inst, nvm_storage_state_t **storage, … in nhw_nvmc_address_location() argument
456 *storage = &hw_nvmc_st[i].flash_st; in nhw_nvmc_address_location()
460 if ((address >= (uint32_t)hw_nvmc_st[i].uicr_st.storage) \ in nhw_nvmc_address_location()
461 && (address < (uint32_t)hw_nvmc_st[i].uicr_st.storage + hw_nvmc_st[i].uicr_size)) { in nhw_nvmc_address_location()
462 *storage = &hw_nvmc_st[i].uicr_st; in nhw_nvmc_address_location()
[all …]
DNHW_NVM_backend.h19 uint8_t *storage; member