Lines Matching refs:lnum
156 int err = 0, lnum, offs, bytes_left; in gluebi_read() local
160 lnum = div_u64_rem(from, mtd->erasesize, &offs); in gluebi_read()
168 err = ubi_read(gluebi->desc, lnum, buf, offs, to_read); in gluebi_read()
172 lnum += 1; in gluebi_read()
196 int err = 0, lnum, offs, bytes_left; in gluebi_write() local
200 lnum = div_u64_rem(to, mtd->erasesize, &offs); in gluebi_write()
212 err = ubi_leb_write(gluebi->desc, lnum, buf, offs, to_write); in gluebi_write()
216 lnum += 1; in gluebi_write()
236 int err, i, lnum, count; in gluebi_erase() local
242 lnum = mtd_div_by_eb(instr->addr, mtd); in gluebi_erase()
247 err = ubi_leb_unmap(gluebi->desc, lnum + i); in gluebi_erase()
258 err = ubi_leb_erase(gluebi->desc, lnum + i); in gluebi_erase()
265 instr->fail_addr = (long long)lnum * mtd->erasesize; in gluebi_erase()