Searched refs:ubi_assert (Results 1 – 13 of 13) sorted by relevance
128 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_read()129 ubi_assert(offset >= 0 && offset + len <= ubi->peb_size); in ubi_io_read()130 ubi_assert(len > 0); in ubi_io_read()175 ubi_assert(len == read); in ubi_io_read()196 ubi_assert(0); in ubi_io_read()200 ubi_assert(len == read); in ubi_io_read()237 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_write()238 ubi_assert(offset >= 0 && offset + len <= ubi->peb_size); in ubi_io_write()239 ubi_assert(offset % ubi->hdrs_min_io_size == 0); in ubi_io_write()240 ubi_assert(len > 0 && len % ubi->hdrs_min_io_size == 0); in ubi_io_write()[all …]
160 ubi_assert(e->pnum != e1->pnum); in wl_tree_add()217 ubi_assert(ubi->works_count >= 0); in do_work()252 ubi_assert(e == e1); in in_wl_tree()261 ubi_assert(e->pnum != e1->pnum); in in_wl_tree()288 ubi_assert(pq_tail >= 0 && pq_tail < UBI_PROT_QUEUE_LEN); in prot_queue_add()522 ubi_assert(ubi->pq_head >= 0 && ubi->pq_head < UBI_PROT_QUEUE_LEN); in serve_prot_queue()565 ubi_assert(ubi->works_count >= 0); in __schedule_ubi_work()608 ubi_assert(e); in schedule_erase()691 ubi_assert(!ubi->move_from && !ubi->move_to);692 ubi_assert(!ubi->move_to_put);[all …]
55 ubi_assert(ubi->vtbl[vol->vol_id].upd_marker); in set_update_marker()89 ubi_assert(vol->upd_marker && vtbl_rec.upd_marker); in clear_update_marker()126 ubi_assert(!vol->updating && !vol->changing_leb); in ubi_start_update()177 ubi_assert(!vol->updating && !vol->changing_leb); in ubi_start_leb_change()319 ubi_assert(flush_len <= vol->usable_leb_size); in ubi_more_update_data()360 ubi_assert(vol->upd_received <= vol->upd_bytes); in ubi_more_update_data()423 ubi_assert(vol->upd_received <= vol->upd_bytes); in ubi_more_leb_change_data()
170 ubi_assert(lnum != le1->lnum); in ltree_add_entry()221 ubi_assert(le->users >= 0); in leb_read_unlock()274 ubi_assert(le->users >= 0); in leb_write_trylock()297 ubi_assert(le->users >= 0); in leb_write_unlock()385 ubi_assert(vol->vol_type != UBI_STATIC_VOLUME); in ubi_eba_read_leb()429 ubi_assert(lnum < be32_to_cpu(vid_hdr->used_ebs)); in ubi_eba_read_leb()430 ubi_assert(len == be32_to_cpu(vid_hdr->data_size)); in ubi_eba_read_leb()500 ubi_assert(sgl->list_pos < UBI_MAX_SG_COUNT); in ubi_eba_read_leb_sg()801 ubi_assert(!(len & (ubi->min_io_size - 1))); in ubi_eba_write_leb_st()853 ubi_assert(vol->eba_tbl[lnum] < 0); in ubi_eba_write_leb_st()[all …]
246 ubi_assert(pool->used < pool->size); in ubi_wl_get_peb()333 ubi_assert(pnum >= 0); in ubi_wl_put_fm_peb()334 ubi_assert(pnum < ubi->peb_count); in ubi_wl_put_fm_peb()345 ubi_assert(e->ec >= 0); in ubi_wl_put_fm_peb()
298 ubi_assert(aeb->lnum == new_aeb->lnum); in update_vol()406 ubi_assert(be32_to_cpu(new_vh->vol_id) == av->vol_id); in process_pool_aeb()830 ubi_assert(list_empty(&free)); in ubi_attach_fastmap()1147 ubi_assert(fm_pos <= ubi->fm_size); in ubi_write_fastmap()1151 ubi_assert(fm_pos <= ubi->fm_size); in ubi_write_fastmap()1197 ubi_assert(fm_pos <= ubi->fm_size); in ubi_write_fastmap()1210 ubi_assert(fm_pos <= ubi->fm_size); in ubi_write_fastmap()1222 ubi_assert(fm_pos <= ubi->fm_size); in ubi_write_fastmap()1235 ubi_assert(fm_pos <= ubi->fm_size); in ubi_write_fastmap()1243 ubi_assert(wl_e); in ubi_write_fastmap()[all …]
293 ubi_assert(ubi->ref_count >= 0); in ubi_get_device()330 ubi_assert(ubi->ref_count >= 0); in ubi_get_by_major()534 ubi_assert(MINOR(dev) == 0); in uif_init()686 ubi_assert(ubi->mtd->writesize == 1); in io_init()704 ubi_assert(ubi->hdrs_min_io_size > 0); in io_init()705 ubi_assert(ubi->hdrs_min_io_size <= ubi->min_io_size); in io_init()706 ubi_assert(ubi->min_io_size % ubi->hdrs_min_io_size == 0); in io_init()1075 ubi_assert(ref); in ubi_attach_mtd_dev()1130 ubi_assert(ubi_num == ubi->ubi_num); in ubi_detach_mtd_dev()
102 ubi_assert(idx >= 0 && idx < ubi->vtbl_slots); in ubi_change_vtbl_record()569 ubi_assert(!ubi->volumes[i]);637 ubi_assert(!ubi->volumes[i]);740 ubi_assert(i < ubi->vtbl_slots);
28 ubi_assert(!(length & (ubi->min_io_size - 1))); in ubi_calc_data_len()
21 #define ubi_assert(expr) do { \ macro
111 ubi_assert(vol->ref_count >= 0); in vol_attribute_show()361 ubi_assert(desc->mode == UBI_EXCLUSIVE); in ubi_remove_volume()362 ubi_assert(vol == ubi->volumes[vol_id]); in ubi_remove_volume()
1065 ubi_assert(offset >= 0); in ubi_io_read_data()1077 ubi_assert(offset >= 0); in ubi_io_write_data()
260 ubi_assert(vol_id == be32_to_cpu(vid_hdr->vol_id)); in add_volume()