Lines Matching refs:upd_buf
123 vol->upd_buf = vmalloc(ubi->leb_size); in ubi_start_update()
124 if (!vol->upd_buf) in ubi_start_update()
147 vfree(vol->upd_buf); in ubi_start_update()
183 vol->upd_buf = vmalloc(ALIGN((int)req->bytes, ubi->min_io_size)); in ubi_start_leb_change()
184 if (!vol->upd_buf) in ubi_start_leb_change()
296 err = copy_from_user(vol->upd_buf + offs, buf, len); in ubi_more_update_data()
309 err = write_leb(ubi, vol, lnum, vol->upd_buf, flush_len, in ubi_more_update_data()
331 err = copy_from_user(vol->upd_buf, buf, len); in ubi_more_update_data()
337 err = write_leb(ubi, vol, lnum, vol->upd_buf, in ubi_more_update_data()
360 vfree(vol->upd_buf); in ubi_more_update_data()
394 err = copy_from_user(vol->upd_buf + vol->upd_received, buf, count); in ubi_more_leb_change_data()
403 memset(vol->upd_buf + vol->upd_bytes, 0xFF, in ubi_more_leb_change_data()
405 len = ubi_calc_data_len(ubi, vol->upd_buf, len); in ubi_more_leb_change_data()
407 vol->upd_buf, len); in ubi_more_leb_change_data()
416 vfree(vol->upd_buf); in ubi_more_leb_change_data()