Lines Matching refs:bytes
471 | (516 << 9) /* 516 user data bytes */
472 | (10 << 19) /* 10 parity bytes */
476 /* 0 spare bytes for 16 bit nand or 1 spare bytes for 8 bit */
527 int flash_read_ext(ptentry *ptn, unsigned extra_per_page, unsigned offset, void *data, unsigned bytes)
531 unsigned count = (bytes + 2047 + extra_per_page) / (2048 + extra_per_page);
560 int flash_write(ptentry *ptn, unsigned extra_per_page, const void *data, unsigned bytes)
572 while(bytes > 0) {
573 if(bytes < wsize) {
574 dprintf("flash_write_image: image undersized (%d < %d)\n", bytes, wsize);
598 bytes += (page & 63) * wsize;
609 bytes -= wsize;