Lines Matching refs:nBlock
45 static int erase_block(int nBlock);
149 int nBlock, temp, rc;
182 nBlock = (int) p >> 16; //block # of 64K bytes
187 temp = ((int) (p + count) >> 16) - nBlock + 1;
197 "starting at %d.\n", temp, nBlock);
199 for (; temp; temp--, nBlock++) {
201 printk(KERN_DEBUG "flash_write: erasing block %d.\n", nBlock);
210 rc = erase_block(nBlock);
292 static int erase_block(int nBlock)
319 pWritePtr = (unsigned char *) ((unsigned int) (FLASH_BASE + 0x8000 + (nBlock << 16)));
380 pWritePtr = (unsigned char *) ((unsigned int) (FLASH_BASE + (nBlock << 16)));