Lines Matching refs:i
120 for (int i = 1; i < NHW_NVMC_UICR_TOTAL_INST; i++) { in nhw_nvmc_find_next_event() local
121 if (hw_nvmc_st[i].timer < Timer_NVMC) { in nhw_nvmc_find_next_event()
122 Timer_NVMC = hw_nvmc_st[i].timer; in nhw_nvmc_find_next_event()
171 for (uint i = 0; i < this->flash_size; i+=4) { in nhw_nvmc_uicr_init() local
172 if (*(uint32_t*)(this->flash_st.storage + i) != 0) { in nhw_nvmc_uicr_init()
174 this->page_erased[i/page_size] = false; in nhw_nvmc_uicr_init()
176 i = (i + page_size)/page_size*page_size; in nhw_nvmc_uicr_init()
301 #define ERASE_ENABLED_CHECK(i, x) \ argument
302 if ((NRF_NVMC_regs[i].CONFIG & NVMC_CONFIG_WEN_Msk) != NVMC_CONFIG_WEN_Een) { \
305 __func__, x, i, NRF_NVMC_regs[i].CONFIG); \
309 #define ERASEPARTIAL_ENABLED_CHECK(i, x) \ argument
310 if ((NRF_NVMC_regs[i].CONFIG & NVMC_CONFIG_WEN_Msk) != NVMC_CONFIG_WEN_PEen) { \
313 __func__, x, i, NRF_NVMC_regs[i].CONFIG); \
317 #define BUSY_CHECK(i, x) \ argument
318 if ( hw_nvmc_st[i].flash_op != flash_idle) { \
321 __func__, x, i, hw_nvmc_st[inst].flash_op); \
325 #define CHECK_ERASE_ADDRESS(i, x) \ argument
326 if ((x < hw_nvmc_st[i].flash_start_addr) \
327 || (x >= hw_nvmc_st[i].flash_start_addr + hw_nvmc_st[i].flash_size)) { \
329 "outside of the flash (%i) area\n", __func__, x, i); \
331 if (x % hw_nvmc_st[i].flash_page_size != 0) { \
336 #define CHECK_PARTIAL_ERASE(i, addr, type) \ argument
337 …if (nvmc_args.flash_erase_warnings && hw_nvmc_st[i].time_under_erase[addr/hw_nvmc_st[i].flash_page…
340 __func__, type, i, addr, \
341 hw_nvmc_st[i].time_under_erase[addr/hw_nvmc_st[i].flash_page_size], \
452 for (int i = 0; i < NHW_NVMC_UICR_TOTAL_INST; i ++) { in nhw_nvmc_address_location() local
453 *inst = i; in nhw_nvmc_address_location()
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()
456 *storage = &hw_nvmc_st[i].flash_st; 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()
462 *storage = &hw_nvmc_st[i].uicr_st; in nhw_nvmc_address_location()
463 *offset = address - (uint32_t)hw_nvmc_st[i].uicr_st.storage; in nhw_nvmc_address_location()
625 for (uint32_t i = offset; i < offset + size ; i+= this->flash_page_size) { in nhw_nmvc_read_buffer() local
626 CHECK_PARTIAL_ERASE(inst, i, "read"); in nhw_nmvc_read_buffer()
653 for (int i = 0; i < NHW_NVMC_UICR_TOTAL_INST; i++) { in NVM_BACKEND_PARAMS_CALLBACS() local
654 nvmc_args.uicr[i].in_ram = true; in NVM_BACKEND_PARAMS_CALLBACS()
655 nvmc_args.flash[i].in_ram = true; in NVM_BACKEND_PARAMS_CALLBACS()