Lines Matching refs:written
85 * When the VID header is being written out, it shifts the VID header pointer
211 * of physical eraseblock @pnum. If all the data were successfully written,
216 * Note, in case of an error, it is possible that something was still written
223 size_t written;
270 err = ubi->mtd->write(ubi->mtd, addr, len, &written, buf);
272 ubi_err("error %d while writing %d bytes to PEB %d:%d, written "
273 "%zd bytes", err, len, pnum, offset, written);
277 ubi_assert(written == len);
498 size_t written;
504 err = ubi->mtd->write(ubi->mtd, addr, 4, &written, (void *)&data);
507 err = ubi->mtd->write(ubi->mtd, addr, 4, &written,
1309 * @buf: buffer with data which were written
1310 * @pnum: physical eraseblock number the data were written to
1311 * @offset: offset within the physical eraseblock the data were written to
1312 * @len: how many bytes were written
1314 * This functions reads data which were recently written and compares it with