Lines Matching refs:address

181     __func__, address)
194 static void nhw_RRAMC_address_location(uint32_t address, uint *inst, nvm_storage_state_t **storage,… in nhw_RRAMC_address_location() argument
197 if ((address >= hw_rramc_st[i].rram_start_addr) \ in nhw_RRAMC_address_location()
198 && (address < hw_rramc_st[i].rram_start_addr + hw_rramc_st[i].rram_size)) { in nhw_RRAMC_address_location()
200 *offset = address - hw_rramc_st[i].rram_start_addr; 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()
206 *offset = address - (uint32_t)hw_rramc_st[i].uicr_st.storage; in nhw_RRAMC_address_location()
210 OUT_OF_RRAM_ERROR(address); in nhw_RRAMC_address_location()
221 void nhw_RRAMC_write_word(uint32_t address, uint32_t value){ in nhw_RRAMC_write_word() argument
222 if ((address & 3) != 0){ in nhw_RRAMC_write_word()
225 __func__, address); in nhw_RRAMC_write_word()
232 nhw_RRAMC_address_location(address, &inst, &backend, &offset); in nhw_RRAMC_write_word()
245 void nhw_RRAMC_write_halfword(uint32_t address, uint16_t value){ in nhw_RRAMC_write_halfword() argument
246 if ((address & 1) != 0){ in nhw_RRAMC_write_halfword()
249 __func__, address); in nhw_RRAMC_write_halfword()
256 nhw_RRAMC_address_location(address, &inst, &backend, &offset); in nhw_RRAMC_write_halfword()
269 void nhw_RRAMC_write_byte(uint32_t address, uint8_t value){ in nhw_RRAMC_write_byte() argument
274 nhw_RRAMC_address_location(address, &inst, &backend, &offset); in nhw_RRAMC_write_byte()
289 uint32_t nhw_RRAMC_read_word(uint32_t address) { in nhw_RRAMC_read_word() argument
294 nhw_RRAMC_address_location(address, &inst, &backend, &offset); in nhw_RRAMC_read_word()
299 uint16_t nhw_RRAMC_read_halfword(uint32_t address) { in nhw_RRAMC_read_halfword() argument
304 nhw_RRAMC_address_location(address, &inst, &backend, &offset); in nhw_RRAMC_read_halfword()
309 uint8_t nhw_RRAMC_read_byte(uint32_t address) { in nhw_RRAMC_read_byte() argument
314 nhw_RRAMC_address_location(address, &inst, &backend, &offset); in nhw_RRAMC_read_byte()
335 void nhw_RRAMC_write_buffer(uint32_t address, void *src, size_t size) { in nhw_RRAMC_write_buffer() argument
340 nhw_RRAMC_address_location(address, &inst, &backend, &offset); in nhw_RRAMC_write_buffer()
343 OUT_OF_RRAM_ERROR(address + size); in nhw_RRAMC_write_buffer()
365 void nhw_RRAMC_read_buffer(void *dest, uint32_t address, size_t size) { in nhw_RRAMC_read_buffer() argument
370 nhw_RRAMC_address_location(address, &inst, &backend, &offset); in nhw_RRAMC_read_buffer()
373 OUT_OF_RRAM_ERROR(address + size); in nhw_RRAMC_read_buffer()