Home
last modified time | relevance | path

Searched refs:nBlock (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/char/
H A Dnwflash.c45 static int erase_block(int nBlock);
149 int nBlock, temp, rc; in flash_write() local
182 nBlock = (int) p >> 16; //block # of 64K bytes in flash_write()
187 temp = ((int) (p + count) >> 16) - nBlock + 1; in flash_write()
197 "starting at %d.\n", temp, nBlock); in flash_write()
199 for (; temp; temp--, nBlock++) { in flash_write()
201 printk(KERN_DEBUG "flash_write: erasing block %d.\n", nBlock); in flash_write()
210 rc = erase_block(nBlock); in flash_write()
292 static int erase_block(int nBlock) in erase_block() argument
319 pWritePtr = (unsigned char *) ((unsigned int) (FLASH_BASE + 0x8000 + (nBlock << 16))); in erase_block()
[all …]