Lines Matching full:storage
28 * At boot, do whatever is necessary for a given storage
36 st->storage = NULL; in nhw_nvm_initialize_data_storage()
39 st->storage = (uint8_t *)bs_malloc(st->size); in nhw_nvm_initialize_data_storage()
61 st->storage = mmap(NULL, st->size, PROT_WRITE | PROT_READ, MAP_SHARED, st->fd, 0); in nhw_nvm_initialize_data_storage()
62 if (st->storage == MAP_FAILED) { in nhw_nvm_initialize_data_storage()
70 (void)memset(st->storage, 0xFF, st->size); in nhw_nvm_initialize_data_storage()
89 * necessary for a given storage (free'ing heap,
95 if (st->storage != NULL) { in nhw_nvm_clear_storage()
96 free(st->storage); in nhw_nvm_clear_storage()
97 st->storage = NULL; in nhw_nvm_clear_storage()
102 if ((st->storage != MAP_FAILED) && (st->storage != NULL)) { in nhw_nvm_clear_storage()
103 munmap(st->storage, st->size); in nhw_nvm_clear_storage()
104 st->storage = NULL; in nhw_nvm_clear_storage()