wbuf_pagesize 124 fs/jffs2/jffs2_fs_sb.h uint32_t wbuf_pagesize; /* 0 for NOR and other flashes with no wbuf */ wbuf_pagesize 47 fs/jffs2/readinode.c int adj = ofs % c->wbuf_pagesize; wbuf_pagesize 49 fs/jffs2/readinode.c adj = c->wbuf_pagesize - adj; wbuf_pagesize 932 fs/jffs2/readinode.c int rem = to_read % c->wbuf_pagesize; wbuf_pagesize 935 fs/jffs2/readinode.c to_read += c->wbuf_pagesize - rem; wbuf_pagesize 980 fs/jffs2/readinode.c len = sizeof(union jffs2_node_union) + c->wbuf_pagesize; wbuf_pagesize 1020 fs/jffs2/readinode.c rem = end % c->wbuf_pagesize; wbuf_pagesize 1022 fs/jffs2/readinode.c end += c->wbuf_pagesize - rem; wbuf_pagesize 55 fs/jffs2/scan.c if (!jffs2_can_mark_obsolete(c) && min < c->wbuf_pagesize) wbuf_pagesize 56 fs/jffs2/scan.c return c->wbuf_pagesize; wbuf_pagesize 250 fs/jffs2/scan.c if (!jffs2_can_mark_obsolete(c) && c->wbuf_pagesize && c->nextblock && (c->nextblock->free_size % c->wbuf_pagesize)) { wbuf_pagesize 255 fs/jffs2/scan.c uint32_t skip = c->nextblock->free_size % c->wbuf_pagesize; wbuf_pagesize 496 fs/jffs2/scan.c if (c->wbuf_pagesize) wbuf_pagesize 497 fs/jffs2/scan.c buf_len = c->wbuf_pagesize; wbuf_pagesize 35 fs/jffs2/wbuf.c #define PAGE_DIV(x) ( ((unsigned long)(x) / (unsigned long)(c->wbuf_pagesize)) * (unsigned long)(c->wbuf_pagesize) ) wbuf_pagesize 36 fs/jffs2/wbuf.c #define PAGE_MOD(x) ( (unsigned long)(x) % (unsigned long)(c->wbuf_pagesize) ) wbuf_pagesize 237 fs/jffs2/wbuf.c ret = mtd_read(c->mtd, ofs, c->wbuf_pagesize, &retlen, c->wbuf_verify); wbuf_pagesize 242 fs/jffs2/wbuf.c } else if (retlen != c->wbuf_pagesize) { wbuf_pagesize 244 fs/jffs2/wbuf.c __func__, ofs, retlen, c->wbuf_pagesize); wbuf_pagesize 247 fs/jffs2/wbuf.c if (!memcmp(buf, c->wbuf_verify, c->wbuf_pagesize)) wbuf_pagesize 260 fs/jffs2/wbuf.c c->wbuf, c->wbuf_pagesize, 0); wbuf_pagesize 264 fs/jffs2/wbuf.c c->wbuf_verify, c->wbuf_pagesize, 0); wbuf_pagesize 408 fs/jffs2/wbuf.c if (end-start >= c->wbuf_pagesize) { wbuf_pagesize 415 fs/jffs2/wbuf.c uint32_t towrite = (end-start) - ((end-start)%c->wbuf_pagesize); wbuf_pagesize 614 fs/jffs2/wbuf.c memset(c->wbuf + c->wbuf_len, 0, c->wbuf_pagesize - c->wbuf_len); wbuf_pagesize 616 fs/jffs2/wbuf.c if ( c->wbuf_len + sizeof(struct jffs2_unknown_node) < c->wbuf_pagesize) { wbuf_pagesize 620 fs/jffs2/wbuf.c padnode->totlen = cpu_to_je32(c->wbuf_pagesize - c->wbuf_len); wbuf_pagesize 632 fs/jffs2/wbuf.c mtd_write(c->mtd, c->wbuf_ofs, c->wbuf_pagesize, &retlen, wbuf_pagesize 638 fs/jffs2/wbuf.c ret = mtd_write(c->mtd, c->wbuf_ofs, c->wbuf_pagesize, wbuf_pagesize 644 fs/jffs2/wbuf.c } else if (retlen != c->wbuf_pagesize) { wbuf_pagesize 646 fs/jffs2/wbuf.c retlen, c->wbuf_pagesize); wbuf_pagesize 658 fs/jffs2/wbuf.c uint32_t waste = c->wbuf_pagesize - c->wbuf_len; wbuf_pagesize 691 fs/jffs2/wbuf.c memset(c->wbuf,0xff,c->wbuf_pagesize); wbuf_pagesize 693 fs/jffs2/wbuf.c c->wbuf_ofs += c->wbuf_pagesize; wbuf_pagesize 784 fs/jffs2/wbuf.c if (len && !c->wbuf_len && (len >= c->wbuf_pagesize)) wbuf_pagesize 787 fs/jffs2/wbuf.c if (len > (c->wbuf_pagesize - c->wbuf_len)) wbuf_pagesize 788 fs/jffs2/wbuf.c len = c->wbuf_pagesize - c->wbuf_len; wbuf_pagesize 813 fs/jffs2/wbuf.c memset(c->wbuf,0xff,c->wbuf_pagesize); wbuf_pagesize 852 fs/jffs2/wbuf.c c->wbuf_len = c->wbuf_pagesize; wbuf_pagesize 865 fs/jffs2/wbuf.c if (c->wbuf_len == c->wbuf_pagesize) { wbuf_pagesize 875 fs/jffs2/wbuf.c if (vlen >= c->wbuf_pagesize) { wbuf_pagesize 889 fs/jffs2/wbuf.c if (c->wbuf_len == c->wbuf_pagesize) { wbuf_pagesize 987 fs/jffs2/wbuf.c if (!c->wbuf_pagesize || !c->wbuf_len) wbuf_pagesize 1204 fs/jffs2/wbuf.c c->wbuf_pagesize = c->mtd->writesize; wbuf_pagesize 1207 fs/jffs2/wbuf.c c->wbuf = kmalloc(c->wbuf_pagesize, GFP_KERNEL); wbuf_pagesize 1218 fs/jffs2/wbuf.c c->wbuf_verify = kmalloc(c->wbuf_pagesize, GFP_KERNEL); wbuf_pagesize 1243 fs/jffs2/wbuf.c c->wbuf_pagesize = c->mtd->erasesize; wbuf_pagesize 1268 fs/jffs2/wbuf.c c->wbuf = kmalloc(c->wbuf_pagesize, GFP_KERNEL); wbuf_pagesize 1273 fs/jffs2/wbuf.c c->wbuf_verify = kmalloc(c->wbuf_pagesize, GFP_KERNEL); wbuf_pagesize 1281 fs/jffs2/wbuf.c c->wbuf_pagesize, c->sector_size); wbuf_pagesize 1302 fs/jffs2/wbuf.c c->wbuf_pagesize = c->mtd->writesize; wbuf_pagesize 1305 fs/jffs2/wbuf.c c->wbuf = kmalloc(c->wbuf_pagesize, GFP_KERNEL); wbuf_pagesize 1310 fs/jffs2/wbuf.c c->wbuf_verify = kmalloc(c->wbuf_pagesize, GFP_KERNEL); wbuf_pagesize 1336 fs/jffs2/wbuf.c c->wbuf_pagesize = c->mtd->writesize; wbuf_pagesize 1338 fs/jffs2/wbuf.c c->wbuf = kmalloc(c->wbuf_pagesize, GFP_KERNEL); wbuf_pagesize 1343 fs/jffs2/wbuf.c c->wbuf_pagesize, c->sector_size);