Lines Matching refs:BUSWIDTH
61 #define FLASH_BLOCKSIZE_PARAM (4096 * BUSWIDTH)
69 #define FLASH_BLOCKSIZE_MAIN (32768 * BUSWIDTH)
78 #define BUSWIDTH 4 /* don't change this - a lot of the code _will_ break if you change this */
456 if (from & (BUSWIDTH - 1))
458 int gap = BUSWIDTH - (from & (BUSWIDTH - 1));
464 while (len >= BUSWIDTH)
468 buf += BUSWIDTH;
469 from += BUSWIDTH;
470 len -= BUSWIDTH;
474 if (len & (BUSWIDTH - 1))
537 if (to & (BUSWIDTH - 1))
539 __u32 aligned = to & ~(BUSWIDTH - 1);
545 while (len && i < BUSWIDTH) tmp[i++] = buf[n++], len--;
546 while (i < BUSWIDTH) tmp[i++] = 0xFF;
556 while (len >= BUSWIDTH)
560 to += BUSWIDTH;
561 buf += BUSWIDTH;
562 *retlen += BUSWIDTH;
563 len -= BUSWIDTH;
567 if (len & (BUSWIDTH - 1))
572 while (i < BUSWIDTH) tmp[i++] = 0xFF;