Lines Matching refs:offset
194 …w_RRAMC_address_location(uint32_t address, uint *inst, nvm_storage_state_t **storage, int *offset){ in nhw_RRAMC_address_location() argument
200 *offset = address - hw_rramc_st[i].rram_start_addr; in nhw_RRAMC_address_location()
206 *offset = address - (uint32_t)hw_rramc_st[i].uicr_st.storage; in nhw_RRAMC_address_location()
228 int offset; in nhw_RRAMC_write_word() local
232 nhw_RRAMC_address_location(address, &inst, &backend, &offset); in nhw_RRAMC_write_word()
234 *(uint32_t*)&backend->storage[offset] = value; in nhw_RRAMC_write_word()
252 int offset; in nhw_RRAMC_write_halfword() local
256 nhw_RRAMC_address_location(address, &inst, &backend, &offset); in nhw_RRAMC_write_halfword()
258 *(uint16_t*)&backend->storage[offset] = value; in nhw_RRAMC_write_halfword()
270 int offset; in nhw_RRAMC_write_byte() local
274 nhw_RRAMC_address_location(address, &inst, &backend, &offset); in nhw_RRAMC_write_byte()
276 *(uint8_t*)&backend->storage[offset] = value; in nhw_RRAMC_write_byte()
290 int offset; in nhw_RRAMC_read_word() local
294 nhw_RRAMC_address_location(address, &inst, &backend, &offset); in nhw_RRAMC_read_word()
296 return *(uint32_t*)&backend->storage[offset]; in nhw_RRAMC_read_word()
300 int offset; in nhw_RRAMC_read_halfword() local
304 nhw_RRAMC_address_location(address, &inst, &backend, &offset); in nhw_RRAMC_read_halfword()
306 return *(uint16_t*)&backend->storage[offset]; in nhw_RRAMC_read_halfword()
310 int offset; in nhw_RRAMC_read_byte() local
314 nhw_RRAMC_address_location(address, &inst, &backend, &offset); in nhw_RRAMC_read_byte()
316 return *(uint8_t*)&backend->storage[offset]; in nhw_RRAMC_read_byte()
336 int offset; in nhw_RRAMC_write_buffer() local
340 nhw_RRAMC_address_location(address, &inst, &backend, &offset); in nhw_RRAMC_write_buffer()
342 if (offset + size >= backend->size) { in nhw_RRAMC_write_buffer()
346 (void)memcpy(&backend->storage[offset], src, size); in nhw_RRAMC_write_buffer()
366 int offset; in nhw_RRAMC_read_buffer() local
370 nhw_RRAMC_address_location(address, &inst, &backend, &offset); in nhw_RRAMC_read_buffer()
372 if (offset + size >= backend->size) { in nhw_RRAMC_read_buffer()
376 (void)memcpy(dest, &backend->storage[offset], size); in nhw_RRAMC_read_buffer()