Lines Matching refs:cpylen
108 int cpylen; in block2mtd_read() local
112 cpylen = PAGE_SIZE - offset; // multiple pages in block2mtd_read()
114 cpylen = len; // this page in block2mtd_read()
115 len = len - cpylen; in block2mtd_read()
121 memcpy(buf, page_address(page) + offset, cpylen); in block2mtd_read()
125 *retlen += cpylen; in block2mtd_read()
126 buf += cpylen; in block2mtd_read()
142 int cpylen; in _block2mtd_write() local
146 cpylen = PAGE_SIZE - offset; // multiple pages in _block2mtd_write()
148 cpylen = len; // this page in _block2mtd_write()
149 len = len - cpylen; in _block2mtd_write()
155 if (memcmp(page_address(page)+offset, buf, cpylen)) { in _block2mtd_write()
157 memcpy(page_address(page) + offset, buf, cpylen); in _block2mtd_write()
165 *retlen += cpylen; in _block2mtd_write()
167 buf += cpylen; in _block2mtd_write()