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()243 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_write()244 ubi_assert(offset >= 0 && offset + len <= ubi->peb_size); in ubi_io_write()245 ubi_assert(offset % ubi->hdrs_min_io_size == 0); in ubi_io_write()246 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()218 ubi_assert(ubi->works_count >= 0); in do_work()253 ubi_assert(e == e1); in in_wl_tree()262 ubi_assert(e->pnum != e1->pnum); in in_wl_tree()310 ubi_assert(pq_tail >= 0 && pq_tail < UBI_PROT_QUEUE_LEN); in prot_queue_add()542 ubi_assert(ubi->pq_head >= 0 && ubi->pq_head < UBI_PROT_QUEUE_LEN); in serve_prot_queue()558 ubi_assert(ubi->works_count >= 0); in __schedule_ubi_work()600 ubi_assert(e); in schedule_erase()682 ubi_assert(!ubi->move_from && !ubi->move_to);683 ubi_assert(!ubi->move_to_put);[all …]
176 ubi_assert(dst && vol && vol->eba_tbl); in ubi_eba_copy_table()289 ubi_assert(lnum != le1->lnum); in ltree_add_entry()340 ubi_assert(le->users >= 0); in leb_read_unlock()393 ubi_assert(le->users >= 0); in leb_write_trylock()416 ubi_assert(le->users >= 0); in leb_write_unlock()522 ubi_assert(0); in check_mapping()542 ubi_assert(err == 0 || err == UBI_IO_BITFLIPS); in check_mapping()620 ubi_assert(vol->vol_type != UBI_STATIC_VOLUME); in ubi_eba_read_leb()683 ubi_assert(lnum < be32_to_cpu(vid_hdr->used_ebs)); in ubi_eba_read_leb()684 ubi_assert(len == be32_to_cpu(vid_hdr->data_size)); in ubi_eba_read_leb()[all …]
336 ubi_assert(pool->used < pool->size); in ubi_wl_get_peb()405 ubi_assert(rwsem_is_locked(&ubi->fm_eba_sem)); in get_peb_for_wl()487 ubi_assert(pnum >= 0); in ubi_wl_put_fm_peb()488 ubi_assert(pnum < ubi->peb_count); in ubi_wl_put_fm_peb()499 ubi_assert(e->ec >= 0); in ubi_wl_put_fm_peb()
268 ubi_assert(aeb->lnum == new_aeb->lnum); in update_vol()357 ubi_assert(vol_id == av->vol_id); in process_pool_aeb()782 ubi_assert(list_empty(&free)); in ubi_attach_fastmap()1180 ubi_assert(fm_pos <= ubi->fm_size); in ubi_write_fastmap()1184 ubi_assert(fm_pos <= ubi->fm_size); in ubi_write_fastmap()1230 ubi_assert(fm_pos <= ubi->fm_size); in ubi_write_fastmap()1243 ubi_assert(fm_pos <= ubi->fm_size); in ubi_write_fastmap()1255 ubi_assert(fm_pos <= ubi->fm_size); in ubi_write_fastmap()1268 ubi_assert(fm_pos <= ubi->fm_size); in ubi_write_fastmap()1276 ubi_assert(wl_e); in ubi_write_fastmap()[all …]
268 ubi_assert(ubi->ref_count >= 0); in ubi_get_device()305 ubi_assert(ubi->ref_count >= 0); in ubi_get_by_major()463 ubi_assert(MINOR(dev) == 0); in uif_init()653 ubi_assert(ubi->hdrs_min_io_size > 0); in io_init()654 ubi_assert(ubi->hdrs_min_io_size <= ubi->min_io_size); in io_init()655 ubi_assert(ubi->min_io_size % ubi->hdrs_min_io_size == 0); in io_init()1125 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()
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()366 ubi_assert(desc->mode == UBI_EXCLUSIVE); in ubi_remove_volume()367 ubi_assert(vol == ubi->volumes[vol_id]); in ubi_remove_volume()
17 #define ubi_assert(expr) do { \ macro
1150 ubi_assert(offset >= 0); in ubi_io_read_data()1162 ubi_assert(offset >= 0); in ubi_io_write_data()
403 ubi_assert(vol_id == be32_to_cpu(vid_hdr->vol_id)); in add_volume()