Lines Matching refs:inst
110 for (int inst = 0; inst < NHW_RRAMC_UICR_TOTAL_INST; inst++) { in nhw_RRAMC_uicr_init() local
111 struct hw_rramc_st_t *this = &hw_rramc_st[inst]; in nhw_RRAMC_uicr_init()
112 this->RRAMC_regs = &NRF_RRAMC_regs[inst]; in nhw_RRAMC_uicr_init()
113 NRF_RRAMC_regs_p[inst] = &NRF_RRAMC_regs[inst]; in nhw_RRAMC_uicr_init()
115 NRF_RRAMC_regs[inst].READY = 1; in nhw_RRAMC_uicr_init()
116 NRF_RRAMC_regs[inst].READYNEXT = 1; in nhw_RRAMC_uicr_init()
117 NRF_RRAMC_regs[inst].EVENTS_READY = 1; in nhw_RRAMC_uicr_init()
118 NRF_RRAMC_regs[inst].EVENTS_READYNEXT = 1; in nhw_RRAMC_uicr_init()
119 NRF_RRAMC_regs[inst].ACCESSERRORADDR = 0x00FFFFFF; in nhw_RRAMC_uicr_init()
120 NRF_RRAMC_regs[inst].BUFSTATUS.WRITEBUFEMPTY = 1; in nhw_RRAMC_uicr_init()
121 NRF_RRAMC_regs[inst].READYNEXTTIMEOUT = 0x00000080; in nhw_RRAMC_uicr_init()
122 NRF_RRAMC_regs[inst].POWER.CONFIG = 0x00000100; in nhw_RRAMC_uicr_init()
124 this->rram_start_addr = rram_start_addr[inst]; in nhw_RRAMC_uicr_init()
125 this->rram_size = rram_size[inst]; in nhw_RRAMC_uicr_init()
127 nhw_nvm_init_storage(&this->rram_st, &nvmc_args.rram[inst], in nhw_RRAMC_uicr_init()
130 this->uicr_size = uicr_size[inst]; in nhw_RRAMC_uicr_init()
131 nhw_nvm_init_storage(&this->uicr_st, &nvmc_args.uicr[inst], in nhw_RRAMC_uicr_init()
134 NRF_UICR_regs_p[inst] = (NRF_UICR_Type *)this->uicr_st.storage; in nhw_RRAMC_uicr_init()
144 for (int inst = 0; inst < NHW_RRAMC_UICR_TOTAL_INST; inst++) { in nhw_RRAMC_uicr_clean_up() local
145 struct hw_rramc_st_t *this = &hw_rramc_st[inst]; in nhw_RRAMC_uicr_clean_up()
156 static void nhw_RRAMC_erase_uicr(uint inst){ in nhw_RRAMC_erase_uicr() argument
157 struct hw_rramc_st_t *this = &hw_rramc_st[inst]; in nhw_RRAMC_erase_uicr()
164 static void nhw_RRAMC_erase_all(uint inst){ in nhw_RRAMC_erase_all() argument
165 struct hw_rramc_st_t *this = &hw_rramc_st[inst]; in nhw_RRAMC_erase_all()
166 nhw_RRAMC_erase_uicr(inst); in nhw_RRAMC_erase_all()
170 void nhw_RRAMC_regw_sideeffects_ERASEALL(uint inst) { in nhw_RRAMC_regw_sideeffects_ERASEALL() argument
171 NRF_RRAMC_regs[inst].ERASE.ERASEALL &= 1; in nhw_RRAMC_regw_sideeffects_ERASEALL()
173 if (NRF_RRAMC_regs[inst].ERASE.ERASEALL) { in nhw_RRAMC_regw_sideeffects_ERASEALL()
174 NRF_RRAMC_regs[inst].ERASE.ERASEALL = 0; in nhw_RRAMC_regw_sideeffects_ERASEALL()
175 nhw_RRAMC_erase_all(inst); in nhw_RRAMC_regw_sideeffects_ERASEALL()
194 static void nhw_RRAMC_address_location(uint32_t address, uint *inst, nvm_storage_state_t **storage,… in nhw_RRAMC_address_location() argument
196 *inst = i; in nhw_RRAMC_address_location()
230 uint inst; in nhw_RRAMC_write_word() local
232 nhw_RRAMC_address_location(address, &inst, &backend, &offset); in nhw_RRAMC_write_word()
254 uint inst; in nhw_RRAMC_write_halfword() local
256 nhw_RRAMC_address_location(address, &inst, &backend, &offset); in nhw_RRAMC_write_halfword()
272 uint inst; in nhw_RRAMC_write_byte() local
274 nhw_RRAMC_address_location(address, &inst, &backend, &offset); in nhw_RRAMC_write_byte()
292 uint inst; in nhw_RRAMC_read_word() local
294 nhw_RRAMC_address_location(address, &inst, &backend, &offset); in nhw_RRAMC_read_word()
302 uint inst; in nhw_RRAMC_read_halfword() local
304 nhw_RRAMC_address_location(address, &inst, &backend, &offset); in nhw_RRAMC_read_halfword()
312 uint inst; in nhw_RRAMC_read_byte() local
314 nhw_RRAMC_address_location(address, &inst, &backend, &offset); in nhw_RRAMC_read_byte()
338 uint inst; in nhw_RRAMC_write_buffer() local
340 nhw_RRAMC_address_location(address, &inst, &backend, &offset); in nhw_RRAMC_write_buffer()
368 uint inst; in nhw_RRAMC_read_buffer() local
370 nhw_RRAMC_address_location(address, &inst, &backend, &offset); in nhw_RRAMC_read_buffer()
379 void* nhw_RRAMC_get_RRAM_base_address(uint inst) { in nhw_RRAMC_get_RRAM_base_address() argument
380 return (void*)hw_rramc_st[inst].rram_st.storage; in nhw_RRAMC_get_RRAM_base_address()