Searched refs:nBlock (Results 1 – 1 of 1) sorted by relevance
44 static int erase_block(int nBlock);148 int nBlock, temp, rc; in flash_write() local181 nBlock = (int) p >> 16; //block # of 64K bytes in flash_write()186 temp = ((int) (p + count) >> 16) - nBlock + 1; in flash_write()196 "starting at %d.\n", temp, nBlock); in flash_write()198 for (; temp; temp--, nBlock++) { in flash_write()200 printk(KERN_DEBUG "flash_write: erasing block %d.\n", nBlock); in flash_write()209 rc = erase_block(nBlock); in flash_write()291 static int erase_block(int nBlock) in erase_block() argument318 pWritePtr = (unsigned char *) ((unsigned int) (FLASH_BASE + 0x8000 + (nBlock << 16))); in erase_block()[all …]