Lines Matching refs:backend
486 nvm_storage_state_t *backend; in nhw_nmvc_write_word() local
489 nhw_nvmc_address_location(address, &inst, &backend, &offset); in nhw_nmvc_write_word()
496 if (backend == &this->flash_st) { in nhw_nmvc_write_word()
519 if (backend == &this->flash_st) { in nhw_nmvc_write_word()
528 *(uint32_t*)&backend->storage[offset] &= value; in nhw_nmvc_write_word()
553 nvm_storage_state_t *backend; in nhw_nmvc_read_word() local
556 nhw_nvmc_address_location(address, &inst, &backend, &offset); in nhw_nmvc_read_word()
560 if (backend == &this->flash_st) { in nhw_nmvc_read_word()
564 return *(uint32_t*)&backend->storage[offset]; in nhw_nmvc_read_word()
569 nvm_storage_state_t *backend; in nhw_nmvc_read_halfword() local
572 nhw_nvmc_address_location(address, &inst, &backend, &offset); in nhw_nmvc_read_halfword()
576 if (backend == &this->flash_st) { in nhw_nmvc_read_halfword()
580 return *(uint16_t*)&backend->storage[offset]; in nhw_nmvc_read_halfword()
585 nvm_storage_state_t *backend; in nhw_nmvc_read_byte() local
588 nhw_nvmc_address_location(address, &inst, &backend, &offset); in nhw_nmvc_read_byte()
592 if (backend == &this->flash_st) { in nhw_nmvc_read_byte()
596 return *(uint8_t*)&backend->storage[offset]; in nhw_nmvc_read_byte()
617 nvm_storage_state_t *backend; in nhw_nmvc_read_buffer() local
620 nhw_nvmc_address_location(address, &inst, &backend, &offset); in nhw_nmvc_read_buffer()
624 if ((backend == &this->flash_st) && (nvmc_args.flash_erase_warnings)) { in nhw_nmvc_read_buffer()
630 if (offset + size >= backend->size) { in nhw_nmvc_read_buffer()
634 (void)memcpy(dest, &backend->storage[offset], size); in nhw_nmvc_read_buffer()