Lines Matching refs:upd_received
155 vol->upd_received = 0; in ubi_start_update()
179 vol->upd_received = 0; in ubi_start_leb_change()
271 count, vol->upd_bytes, vol->upd_received); in ubi_more_update_data()
276 lnum = div_u64_rem(vol->upd_received, vol->usable_leb_size, &offs); in ubi_more_update_data()
277 if (vol->upd_received + count > vol->upd_bytes) in ubi_more_update_data()
278 to_write = count = vol->upd_bytes - vol->upd_received; in ubi_more_update_data()
301 vol->upd_received + len == vol->upd_bytes) { in ubi_more_update_data()
315 vol->upd_received += len; in ubi_more_update_data()
336 vol->upd_received + len == vol->upd_bytes) { in ubi_more_update_data()
343 vol->upd_received += len; in ubi_more_update_data()
349 ubi_assert(vol->upd_received <= vol->upd_bytes); in ubi_more_update_data()
350 if (vol->upd_received == vol->upd_bytes) { in ubi_more_update_data()
386 count, vol->upd_bytes, vol->upd_received); in ubi_more_leb_change_data()
391 if (vol->upd_received + count > vol->upd_bytes) in ubi_more_leb_change_data()
392 count = vol->upd_bytes - vol->upd_received; in ubi_more_leb_change_data()
394 err = copy_from_user(vol->upd_buf + vol->upd_received, buf, count); in ubi_more_leb_change_data()
398 vol->upd_received += count; in ubi_more_leb_change_data()
400 if (vol->upd_received == vol->upd_bytes) { in ubi_more_leb_change_data()
412 ubi_assert(vol->upd_received <= vol->upd_bytes); in ubi_more_leb_change_data()
413 if (vol->upd_received == vol->upd_bytes) { in ubi_more_leb_change_data()