Searched refs:ubi_assert (Results 1 – 14 of 14) sorted by relevance
122 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_read()123 ubi_assert(offset >= 0 && offset + len <= ubi->peb_size); in ubi_io_read()124 ubi_assert(len > 0); in ubi_io_read()169 ubi_assert(len == read); in ubi_io_read()190 ubi_assert(0); in ubi_io_read()194 ubi_assert(len == read); in ubi_io_read()231 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_write()232 ubi_assert(offset >= 0 && offset + len <= ubi->peb_size); in ubi_io_write()233 ubi_assert(offset % ubi->hdrs_min_io_size == 0); in ubi_io_write()234 ubi_assert(len > 0 && len % ubi->hdrs_min_io_size == 0); in ubi_io_write()[all …]
49 ubi_assert(ubi->vtbl[vol->vol_id].upd_marker); in set_update_marker()83 ubi_assert(vol->upd_marker && vtbl_rec.upd_marker); in clear_update_marker()120 ubi_assert(!vol->updating && !vol->changing_leb); in ubi_start_update()171 ubi_assert(!vol->updating && !vol->changing_leb); in ubi_start_leb_change()308 ubi_assert(flush_len <= vol->usable_leb_size); in ubi_more_update_data()349 ubi_assert(vol->upd_received <= vol->upd_bytes); in ubi_more_update_data()412 ubi_assert(vol->upd_received <= vol->upd_bytes); in ubi_more_leb_change_data()
155 ubi_assert(e->pnum != e1->pnum); in wl_tree_add()212 ubi_assert(ubi->works_count >= 0); in do_work()247 ubi_assert(e == e1); in in_wl_tree()256 ubi_assert(e->pnum != e1->pnum); in in_wl_tree()304 ubi_assert(pq_tail >= 0 && pq_tail < UBI_PROT_QUEUE_LEN); in prot_queue_add()530 ubi_assert(ubi->pq_head >= 0 && ubi->pq_head < UBI_PROT_QUEUE_LEN); in serve_prot_queue()546 ubi_assert(ubi->works_count >= 0); in __schedule_ubi_work()588 ubi_assert(e); in schedule_erase()670 ubi_assert(!ubi->move_from && !ubi->move_to);671 ubi_assert(!ubi->move_to_put);[all …]
179 ubi_assert(dst && vol && vol->eba_tbl); in ubi_eba_copy_table()292 ubi_assert(lnum != le1->lnum); in ltree_add_entry()343 ubi_assert(le->users >= 0); in leb_read_unlock()396 ubi_assert(le->users >= 0); in leb_write_trylock()419 ubi_assert(le->users >= 0); in leb_write_unlock()525 ubi_assert(0); in check_mapping()545 ubi_assert(err == 0 || err == UBI_IO_BITFLIPS); in check_mapping()623 ubi_assert(vol->vol_type != UBI_STATIC_VOLUME); in ubi_eba_read_leb()686 ubi_assert(lnum < be32_to_cpu(vid_hdr->used_ebs)); in ubi_eba_read_leb()687 ubi_assert(len == be32_to_cpu(vid_hdr->data_size)); in ubi_eba_read_leb()[all …]
270 ubi_assert(pool->used < pool->size); in ubi_wl_get_peb()339 ubi_assert(rwsem_is_locked(&ubi->fm_eba_sem)); in get_peb_for_wl()421 ubi_assert(pnum >= 0); in ubi_wl_put_fm_peb()422 ubi_assert(pnum < ubi->peb_count); in ubi_wl_put_fm_peb()433 ubi_assert(e->ec >= 0); in ubi_wl_put_fm_peb()
267 ubi_assert(aeb->lnum == new_aeb->lnum); in update_vol()356 ubi_assert(vol_id == av->vol_id); in process_pool_aeb()781 ubi_assert(list_empty(&free)); in ubi_attach_fastmap()1179 ubi_assert(fm_pos <= ubi->fm_size); in ubi_write_fastmap()1183 ubi_assert(fm_pos <= ubi->fm_size); in ubi_write_fastmap()1229 ubi_assert(fm_pos <= ubi->fm_size); in ubi_write_fastmap()1242 ubi_assert(fm_pos <= ubi->fm_size); in ubi_write_fastmap()1254 ubi_assert(fm_pos <= ubi->fm_size); in ubi_write_fastmap()1267 ubi_assert(fm_pos <= ubi->fm_size); in ubi_write_fastmap()1275 ubi_assert(wl_e); in ubi_write_fastmap()[all …]
261 ubi_assert(ubi->ref_count >= 0); in ubi_get_device()298 ubi_assert(ubi->ref_count >= 0); in ubi_get_by_major()456 ubi_assert(MINOR(dev) == 0); in uif_init()645 ubi_assert(ubi->hdrs_min_io_size > 0); in io_init()646 ubi_assert(ubi->hdrs_min_io_size <= ubi->min_io_size); in io_init()647 ubi_assert(ubi->min_io_size % ubi->hdrs_min_io_size == 0); in io_init()1085 ubi_assert(ubi_num == ubi->ubi_num); in ubi_detach_mtd_dev()
96 ubi_assert(idx >= 0 && idx < ubi->vtbl_slots); in ubi_change_vtbl_record()565 ubi_assert(!ubi->volumes[i]); in init_volumes()643 ubi_assert(!ubi->volumes[i]); in init_volumes()750 ubi_assert(i < ubi->vtbl_slots); in check_attaching_info()
17 #define ubi_assert(expr) do { \ macro
27 ubi_assert(!(length & (ubi->min_io_size - 1))); in ubi_calc_data_len()
51 ubi_assert(users > 0); in get_exclusive()76 ubi_assert(vol->readers == 0 && vol->writers == 0 && vol->metaonly == 0); in revoke_exclusive()77 ubi_assert(vol->exclusive == 1 && desc->mode == UBI_EXCLUSIVE); in revoke_exclusive()128 ubi_assert(!vol->changing_leb); in vol_cdev_release()
99 ubi_assert(vol->ref_count >= 0); in vol_attribute_show()340 ubi_assert(desc->mode == UBI_EXCLUSIVE); in ubi_remove_volume()341 ubi_assert(vol == ubi->volumes[vol_id]); in ubi_remove_volume()
1135 ubi_assert(offset >= 0); in ubi_io_read_data()1147 ubi_assert(offset >= 0); in ubi_io_write_data()
403 ubi_assert(vol_id == be32_to_cpu(vid_hdr->vol_id)); in add_volume()