Lines Matching refs:cpylen
111 int cpylen; in block2mtd_read() local
115 cpylen = PAGE_SIZE - offset; // multiple pages in block2mtd_read()
117 cpylen = len; // this page in block2mtd_read()
118 len = len - cpylen; in block2mtd_read()
124 memcpy(buf, page_address(page) + offset, cpylen); in block2mtd_read()
128 *retlen += cpylen; in block2mtd_read()
129 buf += cpylen; in block2mtd_read()
145 int cpylen; in _block2mtd_write() local
149 cpylen = PAGE_SIZE - offset; // multiple pages in _block2mtd_write()
151 cpylen = len; // this page in _block2mtd_write()
152 len = len - cpylen; in _block2mtd_write()
158 if (memcmp(page_address(page)+offset, buf, cpylen)) { in _block2mtd_write()
160 memcpy(page_address(page) + offset, buf, cpylen); in _block2mtd_write()
168 *retlen += cpylen; in _block2mtd_write()
170 buf += cpylen; in _block2mtd_write()