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
204 * @lnum: logical eraseblock number
207 * object if the logical eraseblock is locked and %NULL if it is not.
242 * @lnum: logical eraseblock number
244 * This function adds new entry for logical eraseblock (@vol_id, @lnum) to the
268 * This logical eraseblock is already locked. The newly in ltree_add_entry()
311 * leb_read_lock - lock logical eraseblock for reading.
314 * @lnum: logical eraseblock number
316 * This function locks a logical eraseblock for reading. Returns zero in case
331 * leb_read_unlock - unlock logical eraseblock.
334 * @lnum: logical eraseblock number
353 * leb_write_lock - lock logical eraseblock for writing.
356 * @lnum: logical eraseblock number
358 * This function locks a logical eraseblock for writing. Returns zero in case
373 * leb_write_trylock - try to lock logical eraseblock for writing.
376 * @lnum: logical eraseblock number
378 * This function locks a logical eraseblock for writing if there is no
407 * leb_write_unlock - unlock logical eraseblock.
410 * @lnum: logical eraseblock number
431 * @lnum: logical eraseblock number
441 * ubi_eba_unmap_leb - un-map logical eraseblock.
444 * @lnum: logical eraseblock number
446 * This function un-maps logical eraseblock @lnum and schedules corresponding
447 * physical eraseblock for erasure. Returns zero in case of success and a
464 /* This logical eraseblock is already unmapped */ in ubi_eba_unmap_leb()
484 * @lnum: logical eraseblock number
485 * @pnum: physical eraseblock number
580 * @lnum: logical eraseblock number
586 * If the logical eraseblock @lnum is unmapped, @buf is filled with 0xFF
588 * eraseblock data CRC checking.
616 * The logical eraseblock is not mapped, fill the whole buffer in ubi_eba_read_leb()
737 * @lnum: logical eraseblock number
791 * @pnum: the physical eraseblock to recover
792 * @lnum: logical eraseblock number
800 * from the potentially bad physical eraseblock to a good physical eraseblock.
876 * Bad luck? This physical eraseblock is bad too? Crud. Let's in try_recover_peb()
889 * @pnum: the physical eraseblock to recover
891 * @lnum: logical eraseblock number
897 * from the potentially bad physical eraseblock to a good physical eraseblock.
932 * @lnum: logical eraseblock number
939 * eraseblock @lnum of volume @vol to a new physical eraseblock. Returns zero
996 * @lnum: logical eraseblock number
998 * @offset: offset within the logical eraseblock where to write
1001 * This function writes data to logical eraseblock @lnum of a dynamic volume
1044 * The logical eraseblock is not mapped. We have to get a free physical in ubi_eba_write_leb()
1045 * eraseblock and write the volume identifier header there first. in ubi_eba_write_leb()
1069 * physical eraseblock, so just put it and request a new one. in ubi_eba_write_leb()
1070 * We assume that if this physical eraseblock went bad, the in ubi_eba_write_leb()
1092 * @lnum: logical eraseblock number
1097 * This function writes data to logical eraseblock @lnum of static volume
1099 * eraseblock in this static volume.
1101 * When writing to the last logical eraseblock, the @len argument doesn't have
1172 * ubi_eba_atomic_leb_change - change logical eraseblock atomically.
1175 * @lnum: logical eraseblock number
1179 * This function changes the contents of a logical eraseblock atomically. @buf
1180 * has to contain new logical eraseblock data, and @len - the length of the
1288 * ubi_eba_copy_leb - copy logical eraseblock.
1290 * @from: physical eraseblock number from where to copy
1291 * @to: physical eraseblock number where to copy
1294 * This function copies logical eraseblock from physical eraseblock @from to
1295 * physical eraseblock @to. The @vid_hdr buffer may be changed by this
1327 * this logical eraseblock belongs to might be being deleted. Since the in ubi_eba_copy_leb()
1340 * We do not want anybody to write to this logical eraseblock while we in ubi_eba_copy_leb()
1407 * It may turn out to be that the whole @from physical eraseblock in ubi_eba_copy_leb()