Lines Matching refs:nvm_regs_p
52 static struct pic32_reg_nvm *nvm_regs_p; variable
57 writel(nvmop, &nvm_regs_p->ctrl.raw); in flash_initiate_operation()
60 writel(NVM_WREN, &nvm_regs_p->ctrl.set); in flash_initiate_operation()
63 writel(LOCK_KEY, &nvm_regs_p->key.raw); in flash_initiate_operation()
64 writel(UNLOCK_KEY1, &nvm_regs_p->key.raw); in flash_initiate_operation()
65 writel(UNLOCK_KEY2, &nvm_regs_p->key.raw); in flash_initiate_operation()
68 writel(NVM_WR, &nvm_regs_p->ctrl.set); in flash_initiate_operation()
73 int ret = wait_for_bit_le32(&nvm_regs_p->ctrl.raw, in flash_wait_till_busy()
83 tmp = readl(&nvm_regs_p->ctrl.raw); in flash_complete_operation()
97 writel(NVM_WREN, &nvm_regs_p->ctrl.clr); in flash_complete_operation()
149 writel(sect_start, &nvm_regs_p->addr.raw); in flash_erase()
202 writel(CPHYSADDR(dest), &nvm_regs_p->addr.raw); in write_word()
203 writel(word, &nvm_regs_p->data.raw); in write_word()
407 nvm_regs_p = ioremap(addr, size); in pic32_flash_probe()
418 writel(NVM_WREN, &nvm_regs_p->ctrl.clr); in pic32_flash_probe()