Lines Matching defs:count
46 static int write_block(unsigned long p, const char __user *buf, int count);
130 "buffer=%p, count=0x%zx.\n", *ppos, buf, size);
147 unsigned int count = size;
153 printk("flash_write: offset=0x%lX, buffer=0x%p, count=0x%X.\n",
154 p, buf, count);
163 * check for out of range pos or count
166 return count ? -ENXIO : 0;
168 if (count > gbFlashSize - p)
169 count = gbFlashSize - p;
171 if (!access_ok(buf, count))
187 temp = ((int) (p + count) >> 16) - nBlock + 1;
192 if (((int) (p + count) & 0xFFFF) == 0)
221 count - written);
226 rc = write_block(p, buf, count - written);
397 static int write_block(unsigned long p, const char __user *buf, int count)
414 if (offset + count > 0x10000)
415 count = 0x10000 - offset;
422 for (offset = 0; offset < count; offset++, pWritePtr++) {
534 for (offset = 0; offset < count; offset++) {
546 return count;