Lines Matching full:eraseblock
9 * The UBI Eraseblock Association (EBA) sub-system.
11 * This sub-system is responsible for I/O to/from logical eraseblock.
17 * The EBA sub-system implements per-logical eraseblock locking. Before
18 * accessing a logical eraseblock it is locked for reading or writing. The
19 * per-logical eraseblock locking is implemented by means of the lock tree. The
25 * time a logical eraseblock is mapped to a physical eraseblock and it is
41 * @pnum: the physical eraseblock number attached to the LEB
100 * @lnum: logical eraseblock number
205 * @lnum: logical eraseblock number
208 * object if the logical eraseblock is locked and %NULL if it is not.
243 * @lnum: logical eraseblock number
245 * This function adds new entry for logical eraseblock (@vol_id, @lnum) to the
269 * This logical eraseblock is already locked. The newly in ltree_add_entry()
312 * leb_read_lock - lock logical eraseblock for reading.
315 * @lnum: logical eraseblock number
317 * This function locks a logical eraseblock for reading. Returns zero in case
332 * leb_read_unlock - unlock logical eraseblock.
335 * @lnum: logical eraseblock number
354 * leb_write_lock - lock logical eraseblock for writing.
357 * @lnum: logical eraseblock number
359 * This function locks a logical eraseblock for writing. Returns zero in case
374 * leb_write_trylock - try to lock logical eraseblock for writing.
377 * @lnum: logical eraseblock number
379 * This function locks a logical eraseblock for writing if there is no
408 * leb_write_unlock - unlock logical eraseblock.
411 * @lnum: logical eraseblock number
432 * @lnum: logical eraseblock number
442 * ubi_eba_unmap_leb - un-map logical eraseblock.
445 * @lnum: logical eraseblock number
447 * This function un-maps logical eraseblock @lnum and schedules corresponding
448 * physical eraseblock for erasure. Returns zero in case of success and a
465 /* This logical eraseblock is already unmapped */ in ubi_eba_unmap_leb()
485 * @lnum: logical eraseblock number
486 * @pnum: physical eraseblock number
581 * @lnum: logical eraseblock number
587 * If the logical eraseblock @lnum is unmapped, @buf is filled with 0xFF
589 * eraseblock data CRC checking.
617 * The logical eraseblock is not mapped, fill the whole buffer in ubi_eba_read_leb()
738 * @lnum: logical eraseblock number
792 * @pnum: the physical eraseblock to recover
793 * @lnum: logical eraseblock number
801 * from the potentially bad physical eraseblock to a good physical eraseblock.
877 * Bad luck? This physical eraseblock is bad too? Crud. Let's in try_recover_peb()
890 * @pnum: the physical eraseblock to recover
892 * @lnum: logical eraseblock number
898 * from the potentially bad physical eraseblock to a good physical eraseblock.
933 * @lnum: logical eraseblock number
940 * eraseblock @lnum of volume @vol to a new physical eraseblock. Returns zero
988 ubi_warn(ubi, "failed to return physical eraseblock %d, error %d", in try_write_vid_and_data()
994 ubi_warn(ubi, "failed to return physical eraseblock %d, error %d", in try_write_vid_and_data()
1006 * @lnum: logical eraseblock number
1008 * @offset: offset within the logical eraseblock where to write
1011 * This function writes data to logical eraseblock @lnum of a dynamic volume
1054 * The logical eraseblock is not mapped. We have to get a free physical in ubi_eba_write_leb()
1055 * eraseblock and write the volume identifier header there first. in ubi_eba_write_leb()
1079 * physical eraseblock, so just put it and request a new one. in ubi_eba_write_leb()
1080 * We assume that if this physical eraseblock went bad, the in ubi_eba_write_leb()
1102 * @lnum: logical eraseblock number
1107 * This function writes data to logical eraseblock @lnum of static volume
1109 * eraseblock in this static volume.
1111 * When writing to the last logical eraseblock, the @len argument doesn't have
1182 * ubi_eba_atomic_leb_change - change logical eraseblock atomically.
1185 * @lnum: logical eraseblock number
1189 * This function changes the contents of a logical eraseblock atomically. @buf
1190 * has to contain new logical eraseblock data, and @len - the length of the
1298 * ubi_eba_copy_leb - copy logical eraseblock.
1300 * @from: physical eraseblock number from where to copy
1301 * @to: physical eraseblock number where to copy
1302 * @vid_hdr: VID header of the @from physical eraseblock
1304 * This function copies logical eraseblock from physical eraseblock @from to
1305 * physical eraseblock @to. The @vid_hdr buffer may be changed by this
1337 * this logical eraseblock belongs to might be being deleted. Since the in ubi_eba_copy_leb()
1350 * We do not want anybody to write to this logical eraseblock while we in ubi_eba_copy_leb()
1417 * It may turn out to be that the whole @from physical eraseblock in ubi_eba_copy_leb()