Lines Matching defs:written
72 * When the VID header is being written out, it shifts the VID header pointer
214 * of physical eraseblock @pnum. If all the data were successfully written,
219 * Note, in case of an error, it is possible that something was still written
226 size_t written;
271 err = mtd_write(ubi->mtd, addr, len, &written, buf);
273 ubi_err(ubi, "error %d while writing %d bytes to PEB %d:%d, written %zd bytes",
274 err, len, pnum, offset, written);
278 ubi_assert(written == len);
452 size_t written;
478 err = mtd_write(ubi->mtd, addr, 4, &written, (void *)&data);
490 err = mtd_write(ubi->mtd, addr, 4, &written, (void *)&data);
1282 * @buf: buffer with data which were written
1283 * @pnum: physical eraseblock number the data were written to
1284 * @offset: offset within the physical eraseblock the data were written to
1285 * @len: how many bytes were written
1287 * This functions reads data which were recently written and compares it with