Lines Matching refs:bytes
68 * @bytes: new data size in bytes
75 long long bytes)
88 vol->used_bytes = bytes;
89 vol->used_ebs = div_u64_rem(bytes, vol->usable_leb_size,
108 * @bytes: update bytes
110 * This function starts volume update operation. If @bytes is zero, the volume
115 long long bytes)
119 dbg_gen("start update of volume %d, %llu bytes", vol->vol_id, bytes);
142 if (bytes == 0) {
152 vol->upd_ebs = div_u64(bytes + vol->usable_leb_size - 1,
154 vol->upd_bytes = bytes;
173 dbg_gen("start changing LEB %d:%d, %u bytes",
174 vol->vol_id, req->lnum, req->bytes);
175 if (req->bytes == 0)
178 vol->upd_bytes = req->bytes;
183 vol->upd_buf = vmalloc(ALIGN((int)req->bytes, ubi->min_io_size));
201 * case of dynamic volume, this function checks if the data contains 0xFF bytes
202 * at the end. If yes, the 0xFF bytes are cut and not written. So if the whole
203 * buffer contains only 0xFF bytes, the LEB is left unmapped.
205 * The reason why we skip the trailing 0xFF bytes in case of dynamic volume is
207 * eraseblock in future. Indeed, writing 0xFF bytes may have side effects and
230 dbg_gen("all %d bytes contain 0xFF - skip", len);
257 * @count: how much bytes to write
261 * function returns %0 in case of success, number of bytes written during the
270 dbg_gen("write %d of %lld bytes, %lld already passed",
371 * @count: how much bytes to write
376 * of bytes written during the last call if the whole "atomic LEB change"
385 dbg_gen("write %d of %lld bytes, %lld already passed",