Searched refs:pWritePtr (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/char/
H A Dnwflash.c323 volatile unsigned char *pWritePtr; erase_block() local
347 pWritePtr = (unsigned char *) ((unsigned int) (FLASH_BASE + 0x8000 + (nBlock << 16))); erase_block()
351 c1 = *pWritePtr; erase_block()
357 *(volatile unsigned char *) pWritePtr = 0x20; erase_block()
362 *(volatile unsigned char *) pWritePtr = 0xD0; erase_block()
379 c1 = *(volatile unsigned char *) (pWritePtr); erase_block()
388 *(volatile unsigned char *) pWritePtr = 0xFF; //back to normal operation erase_block()
394 printk(KERN_ERR "flash_erase: err at %p\n", pWritePtr); erase_block()
408 pWritePtr = (unsigned char *) ((unsigned int) (FLASH_BASE + (nBlock << 16))); erase_block()
410 for (temp = 0; temp < 16 * 1024; temp++, pWritePtr += 4) { erase_block()
411 if ((temp1 = *(volatile unsigned int *) pWritePtr) != 0xFFFFFFFF) { erase_block()
413 pWritePtr, temp1); erase_block()
429 unsigned char *pWritePtr; write_block() local
435 pWritePtr = (unsigned char *) ((unsigned int) (FLASH_BASE + p)); write_block()
450 for (offset = 0; offset < count; offset++, pWritePtr++) { write_block()
451 uAddress = (unsigned int) pWritePtr; write_block()
470 *CSR_ROMWRITEREG = (unsigned int) pWritePtr & 3; write_block()
538 pWritePtr - FLASH_BASE); write_block()
548 pWritePtr - FLASH_BASE); write_block()
560 pWritePtr = (unsigned char *) ((unsigned int) (FLASH_BASE + p)); write_block()
567 if ((c1 = *pWritePtr++) != c) { write_block()
569 pWritePtr - FLASH_BASE, c1, c); write_block()

Completed in 209 milliseconds