Lines Matching defs:from
11 * This sub-system is responsible for I/O to/from logical eraseblock.
539 ubi_err(ubi, "unable to read VID header back from PEB %i: %i",
583 * @offset: offset from where to read
621 dbg_eba("read %d bytes from offset %d of LEB %d:%d (unmapped)",
629 dbg_eba("read %d bytes from offset %d of LEB %d:%d, PEB %d",
740 * @offset: offset from where to read
790 * try_recover_peb - try to recover from write failure.
801 * from the potentially bad physical eraseblock to a good physical eraseblock.
888 * recover_peb - recover from write failure.
898 * from the potentially bad physical eraseblock to a good physical eraseblock.
1275 * cannot read data from the target PEB (an error @err happened). If the error
1286 * And bear in mind, this is about reading from the target PEB, i.e. the PEB
1300 * @from: physical eraseblock number from where to copy
1302 * @vid_hdr: VID header of the @from physical eraseblock
1304 * This function copies logical eraseblock from physical eraseblock @from to
1311 int ubi_eba_copy_leb(struct ubi_device *ubi, int from, int to,
1324 dbg_wl("copy LEB %d:%d, PEB %d to PEB %d", vol_id, lnum, from, to);
1356 * (@from). This task locks the LEB and goes sleep in the
1375 if (vol->eba_tbl->entries[lnum].pnum != from) {
1377 vol_id, lnum, from, vol->eba_tbl->entries[lnum].pnum);
1390 err = ubi_io_read_data(ubi, ubi->peb_buf, from, 0, aldata_size);
1392 ubi_warn(ubi, "error %d while reading data from PEB %d",
1393 err, from);
1402 * have to read the contents, cut 0xFF bytes from the end and copy only
1417 * It may turn out to be that the whole @from physical eraseblock
1442 ubi_warn(ubi, "error %d while reading VID header back from PEB %d",
1462 ubi_assert(vol->eba_tbl->entries[lnum].pnum == from);