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 …]
272 ubi_assert(pool->used < pool->size); in ubi_wl_get_peb()341 ubi_assert(rwsem_is_locked(&ubi->fm_eba_sem)); in get_peb_for_wl()423 ubi_assert(pnum >= 0); in ubi_wl_put_fm_peb()424 ubi_assert(pnum < ubi->peb_count); in ubi_wl_put_fm_peb()435 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 …]
262 ubi_assert(ubi->ref_count >= 0); in ubi_get_device()299 ubi_assert(ubi->ref_count >= 0); in ubi_get_by_major()457 ubi_assert(MINOR(dev) == 0); in uif_init()647 ubi_assert(ubi->hdrs_min_io_size > 0); in io_init()648 ubi_assert(ubi->hdrs_min_io_size <= ubi->min_io_size); in io_init()649 ubi_assert(ubi->min_io_size % ubi->hdrs_min_io_size == 0); in io_init()1110 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
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()
27 ubi_assert(!(length & (ubi->min_io_size - 1))); in ubi_calc_data_len()
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()