Lines Matching refs:peb_size
123 ubi_assert(offset >= 0 && offset + len <= ubi->peb_size); in ubi_io_read()
152 addr = (loff_t)pnum * ubi->peb_size + offset; in ubi_io_read()
244 ubi_assert(offset >= 0 && offset + len <= ubi->peb_size); in ubi_io_write()
282 addr = (loff_t)pnum * ubi->peb_size + offset; in ubi_io_write()
302 len = ubi->peb_size - offset; in ubi_io_write()
335 ei.addr = (loff_t)pnum * ubi->peb_size; in do_sync_erase()
336 ei.len = ubi->peb_size; in do_sync_erase()
351 err = ubi_self_check_all_ff(ubi, pnum, 0, ubi->peb_size); in do_sync_erase()
390 err = ubi_io_read(ubi, ubi->peb_buf, pnum, 0, ubi->peb_size); in torture_peb()
394 err = ubi_check_pattern(ubi->peb_buf, 0xFF, ubi->peb_size); in torture_peb()
403 memset(ubi->peb_buf, patterns[i], ubi->peb_size); in torture_peb()
404 err = ubi_io_write(ubi, ubi->peb_buf, pnum, 0, ubi->peb_size); in torture_peb()
408 memset(ubi->peb_buf, ~patterns[i], ubi->peb_size); in torture_peb()
409 err = ubi_io_read(ubi, ubi->peb_buf, pnum, 0, ubi->peb_size); in torture_peb()
414 ubi->peb_size); in torture_peb()
486 addr = (loff_t)pnum * ubi->peb_size; in nor_erase_prepare()
515 ubi_dump_flash(ubi, pnum, 0, ubi->peb_size); in nor_erase_prepare()
593 ret = mtd_block_isbad(mtd, (loff_t)pnum * ubi->peb_size); in ubi_io_is_bad()
628 err = mtd_block_markbad(mtd, (loff_t)pnum * ubi->peb_size); in ubi_io_mark_bad()
1373 loff_t addr = (loff_t)pnum * ubi->peb_size + offset; in self_check_write()
1437 loff_t addr = (loff_t)pnum * ubi->peb_size + offset; in ubi_self_check_all_ff()