Lines Matching refs:upd_received
161 vol->upd_received = 0; in ubi_start_update()
185 vol->upd_received = 0; in ubi_start_leb_change()
282 count, vol->upd_bytes, vol->upd_received); in ubi_more_update_data()
287 lnum = div_u64_rem(vol->upd_received, vol->usable_leb_size, &offs); in ubi_more_update_data()
288 if (vol->upd_received + count > vol->upd_bytes) in ubi_more_update_data()
289 to_write = count = vol->upd_bytes - vol->upd_received; in ubi_more_update_data()
312 vol->upd_received + len == vol->upd_bytes) { in ubi_more_update_data()
326 vol->upd_received += len; in ubi_more_update_data()
347 vol->upd_received + len == vol->upd_bytes) { in ubi_more_update_data()
354 vol->upd_received += len; in ubi_more_update_data()
360 ubi_assert(vol->upd_received <= vol->upd_bytes); in ubi_more_update_data()
361 if (vol->upd_received == vol->upd_bytes) { in ubi_more_update_data()
397 count, vol->upd_bytes, vol->upd_received); in ubi_more_leb_change_data()
402 if (vol->upd_received + count > vol->upd_bytes) in ubi_more_leb_change_data()
403 count = vol->upd_bytes - vol->upd_received; in ubi_more_leb_change_data()
405 err = copy_from_user(vol->upd_buf + vol->upd_received, buf, count); in ubi_more_leb_change_data()
409 vol->upd_received += count; in ubi_more_leb_change_data()
411 if (vol->upd_received == vol->upd_bytes) { in ubi_more_leb_change_data()
423 ubi_assert(vol->upd_received <= vol->upd_bytes); in ubi_more_leb_change_data()
424 if (vol->upd_received == vol->upd_bytes) { in ubi_more_leb_change_data()