Lines Matching refs:address
347 __func__, address)
349 void nhw_nvmc_erase_page(uint inst, uint32_t address){ in nhw_nvmc_erase_page() argument
352 CHECK_ERASE_ADDRESS(inst, address); in nhw_nvmc_erase_page()
359 this->erase_page = (address - this->flash_start_addr) / this->flash_page_size; in nhw_nvmc_erase_page()
409 void nhw_nvmc_erase_page_partial(uint inst, uint32_t address) { in nhw_nvmc_erase_page_partial() argument
416 CHECK_ERASE_ADDRESS(inst, address); in nhw_nvmc_erase_page_partial()
419 this->erase_page = (address - this->flash_start_addr)/this->flash_page_size; in nhw_nvmc_erase_page_partial()
451 static void nhw_nvmc_address_location(uint32_t address, uint *inst, nvm_storage_state_t **storage, … in nhw_nvmc_address_location() argument
454 if ((address >= hw_nvmc_st[i].flash_start_addr) \ in nhw_nvmc_address_location()
455 && (address < hw_nvmc_st[i].flash_start_addr + hw_nvmc_st[i].flash_size)) { in nhw_nvmc_address_location()
457 *offset = address - hw_nvmc_st[i].flash_start_addr; 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()
463 *offset = address - (uint32_t)hw_nvmc_st[i].uicr_st.storage; in nhw_nvmc_address_location()
467 OUT_OF_FLASH_ERROR(address); in nhw_nvmc_address_location()
478 void nhw_nmvc_write_word(uint32_t address, uint32_t value){ in nhw_nmvc_write_word() argument
479 if ((address & 3) != 0){ in nhw_nmvc_write_word()
482 __func__, address); in nhw_nmvc_write_word()
489 nhw_nvmc_address_location(address, &inst, &backend, &offset); in nhw_nmvc_write_word()
499 nhw_nvmc_erase_page(inst, address); in nhw_nmvc_write_word()
505 nhw_nvmc_erase_page_partial(inst, address); in nhw_nmvc_write_word()
551 uint32_t nhw_nmvc_read_word(uint32_t address) { in nhw_nmvc_read_word() argument
556 nhw_nvmc_address_location(address, &inst, &backend, &offset); in nhw_nmvc_read_word()
567 uint16_t nhw_nmvc_read_halfword(uint32_t address) { in nhw_nmvc_read_halfword() argument
572 nhw_nvmc_address_location(address, &inst, &backend, &offset); in nhw_nmvc_read_halfword()
583 uint8_t nhw_nmvc_read_byte(uint32_t address) { in nhw_nmvc_read_byte() argument
588 nhw_nvmc_address_location(address, &inst, &backend, &offset); in nhw_nmvc_read_byte()
615 void nhw_nmvc_read_buffer(void *dest, uint32_t address, size_t size) { in nhw_nmvc_read_buffer() argument
620 nhw_nvmc_address_location(address, &inst, &backend, &offset); in nhw_nmvc_read_buffer()
631 OUT_OF_FLASH_ERROR(address + size); in nhw_nmvc_read_buffer()