Lines Matching refs:err

51 	int err;  in set_update_marker()  local
66 err = ubi_change_vtbl_record(ubi, vol->vol_id, &vtbl_rec); in set_update_marker()
69 return err; in set_update_marker()
85 int err; in clear_update_marker() local
106 err = ubi_change_vtbl_record(ubi, vol->vol_id, &vtbl_rec); in clear_update_marker()
109 return err; in clear_update_marker()
125 int i, err; in ubi_start_update() local
135 err = set_update_marker(ubi, vol); in ubi_start_update()
136 if (err) in ubi_start_update()
137 return err; in ubi_start_update()
141 err = ubi_eba_unmap_leb(ubi, vol, i); in ubi_start_update()
142 if (err) in ubi_start_update()
143 return err; in ubi_start_update()
147 err = ubi_wl_flush(ubi, UBI_ALL, UBI_ALL); in ubi_start_update()
148 if (err) in ubi_start_update()
149 return err; in ubi_start_update()
151 err = clear_update_marker(ubi, vol, 0); in ubi_start_update()
152 if (err) in ubi_start_update()
153 return err; in ubi_start_update()
230 int err; in write_leb() local
242 err = ubi_eba_write_leb(ubi, vol, lnum, buf, 0, len); in write_leb()
254 err = ubi_eba_write_leb_st(ubi, vol, lnum, buf, len, used_ebs); in write_leb()
257 return err; in write_leb()
277 int lnum, offs, err = 0, len, to_write = count; in ubi_more_update_data() local
279 int lnum, err = 0, len, to_write = count; in ubi_more_update_data()
309 err = copy_from_user(vol->upd_buf + offs, buf, len); in ubi_more_update_data()
310 if (err) in ubi_more_update_data()
322 err = write_leb(ubi, vol, lnum, vol->upd_buf, flush_len, in ubi_more_update_data()
324 if (err) in ubi_more_update_data()
325 return err; in ubi_more_update_data()
344 err = copy_from_user(vol->upd_buf, buf, len); in ubi_more_update_data()
345 if (err) in ubi_more_update_data()
350 err = write_leb(ubi, vol, lnum, vol->upd_buf, in ubi_more_update_data()
352 if (err) in ubi_more_update_data()
364 err = ubi_wl_flush(ubi, UBI_ALL, UBI_ALL); in ubi_more_update_data()
365 if (err) in ubi_more_update_data()
366 return err; in ubi_more_update_data()
368 err = clear_update_marker(ubi, vol, vol->upd_bytes); in ubi_more_update_data()
369 if (err) in ubi_more_update_data()
370 return err; in ubi_more_update_data()
372 err = to_write; in ubi_more_update_data()
376 return err; in ubi_more_update_data()
396 int err; in ubi_more_leb_change_data() local
407 err = copy_from_user(vol->upd_buf + vol->upd_received, buf, count); in ubi_more_leb_change_data()
408 if (err) in ubi_more_leb_change_data()
419 err = ubi_eba_atomic_leb_change(ubi, vol, vol->ch_lnum, in ubi_more_leb_change_data()
421 if (err) in ubi_more_leb_change_data()
422 return err; in ubi_more_leb_change_data()
428 err = count; in ubi_more_leb_change_data()
432 return err; in ubi_more_leb_change_data()