Lines Matching refs:p
46 static int write_block(unsigned long p, const char __user *buf, int count);
146 unsigned long p = *ppos; in flash_write() local
154 p, buf, count); in flash_write()
159 if (p < 64 * 1024 && (!gbWriteBase64Enable)) in flash_write()
165 if (p >= gbFlashSize) in flash_write()
168 if (count > gbFlashSize - p) in flash_write()
169 count = gbFlashSize - p; in flash_write()
182 nBlock = (int) p >> 16; //block # of 64K bytes in flash_write()
187 temp = ((int) (p + count) >> 16) - nBlock + 1; in flash_write()
192 if (((int) (p + count) & 0xFFFF) == 0) in flash_write()
220 "from buf %p, bytes left %X.\n", p, buf, in flash_write()
226 rc = write_block(p, buf, count - written); in flash_write()
249 p += rc; in flash_write()
397 static int write_block(unsigned long p, const char __user *buf, int count) in write_block() argument
407 pWritePtr = (unsigned char *) ((unsigned int) (FLASH_BASE + p)); in write_block()
412 offset = p & 0xFFFF; in write_block()
532 pWritePtr = (unsigned char *) ((unsigned int) (FLASH_BASE + p)); in write_block()