Lines Matching defs:numbytes
68 int sysFlashErase(uint off, unsigned int numbytes);
536 sysFlashErase(uint off, unsigned int numbytes)
538 unsigned long end = off + numbytes;
542 err = sflash_commit(sih, cc, off, numbytes, NULL);
561 sysFlashWrite(uint off, uchar *src, uint numbytes)
565 DPRINT(("Writing 0x%x bytes to flash @0x%x ...\n", (unsigned int)numbytes, off));
568 err = sflash_commit(sih, cc, off, numbytes, src);
570 if (!sysFlashErase(off, numbytes))
572 err = flash_write(off, src, numbytes);
584 sysFlashRead(uint off, uchar *buf, uint numbytes)
589 while (numbytes) {
590 read = sflash_read(sih, cc, off, numbytes, buf);
591 numbytes -= read;
598 ASSERT(!(numbytes & (flashutl_wsz - 1)));
600 while (numbytes) {
602 numbytes -= flashutl_wsz;