HomeSort by relevance Sort by last modified time
    Searched refs:lnum (Results 1 - 25 of 71) sorted by null

1 2 3

  /external/u-boot/include/linux/mtd/
ubi.h 255 int ubi_leb_read(struct ubi_volume_desc *desc, int lnum, char *buf, int offset,
257 int ubi_leb_read_sg(struct ubi_volume_desc *desc, int lnum, struct ubi_sgl *sgl,
259 int ubi_leb_write(struct ubi_volume_desc *desc, int lnum, const void *buf,
261 int ubi_leb_change(struct ubi_volume_desc *desc, int lnum, const void *buf,
263 int ubi_leb_erase(struct ubi_volume_desc *desc, int lnum);
264 int ubi_leb_unmap(struct ubi_volume_desc *desc, int lnum);
265 int ubi_leb_map(struct ubi_volume_desc *desc, int lnum);
266 int ubi_is_mapped(struct ubi_volume_desc *desc, int lnum);
268 int ubi_flush(int ubi_num, int vol_id, int lnum);
274 static inline int ubi_read(struct ubi_volume_desc *desc, int lnum, char *buf
    [all...]
  /external/u-boot/fs/ubifs/
scan.c 55 * @lnum: logical eraseblock number
61 int ubifs_scan_a_node(const struct ubifs_info *c, void *buf, int len, int lnum,
70 dbg_scan("hit empty space at LEB %d:%d", lnum, offs);
81 dbg_ntype(ch->node_type), lnum, offs);
83 if (ubifs_check_node(c, buf, lnum, offs, quiet, 1))
96 lnum, offs);
111 lnum, offs, ALIGN(offs + node_len + pad_len, 8));
122 * @lnum: logical eraseblock number
129 struct ubifs_scan_leb *ubifs_start_scan(const struct ubifs_info *c, int lnum,
135 dbg_scan("scan LEB %d:%d", lnum, offs)
    [all...]
log.c 28 * @lnum: logical eraseblock number to search
30 * This function searches bud LEB @lnum. Returns bud description object in case
33 struct ubifs_bud *ubifs_search_bud(struct ubifs_info *c, int lnum)
42 if (lnum < bud->lnum)
44 else if (lnum > bud->lnum)
58 * @lnum: logical eraseblock number to search
60 * This functions returns the wbuf for @lnum or %NULL if there is not one.
62 struct ubifs_wbuf *ubifs_get_wbuf(struct ubifs_info *c, int lnum)
380 int lnum = c->jheads[i].wbuf.lnum; local
500 int lnum, err = 0; local
532 int lnum; member in struct:done_ref
629 int lnum, err, first = 1, write_lnum, offs = 0; local
    [all...]
recovery.c 87 * @lnum: LEB number
101 static int get_master_node(const struct ubifs_info *c, int lnum, void **pbuf,
112 err = ubifs_leb_read(c, lnum, sbuf, 0, c->leb_size, 0);
136 ret = ubifs_scan_a_node(c, buf, len, lnum, offs, 1);
142 ret = ubifs_scan_a_node(c, buf, len, lnum, offs, 1);
156 dbg_rcvry("found a master node at %d:%d", lnum, offs);
167 dbg_rcvry("found corruption at %d:%d", lnum, offs);
199 int err = 0, lnum = UBIFS_MST_LNUM, sz = c->mst_node_alsz; local
208 err = ubifs_leb_change(c, lnum, mst, sz);
211 err = ubifs_leb_change(c, lnum + 1, mst, sz)
500 int lnum = sleb->lnum, endpt = start; local
993 int err, lnum = ucleb->lnum, offs = 0, len = ucleb->endpt, quiet = 1; local
1112 int lnum, err; local
1424 int err, lnum, offs, len; local
    [all...]
lpt_commit.c 132 * @lnum: LEB number
136 static void upd_ltab(struct ubifs_info *c, int lnum, int free, int dirty)
139 lnum, c->ltab[lnum - c->lpt_first].free,
140 c->ltab[lnum - c->lpt_first].dirty, free, dirty);
141 ubifs_assert(lnum >= c->lpt_first && lnum <= c->lpt_last);
142 c->ltab[lnum - c->lpt_first].free = free;
143 c->ltab[lnum - c->lpt_first].dirty += dirty;
149 * @lnum: LEB number is passed and returned her
191 int lnum, offs, len, alen, done_lsave, done_ltab, err; local
370 int lnum, offs, len, from, err, wlen, alen, done_ltab, done_lsave; local
1195 int i, lnum = -1, dirty = 0; local
1706 int lnum, err, i, cnt; local
    [all...]
io.c 92 int ubifs_leb_read(const struct ubifs_info *c, int lnum, void *buf, int offs,
97 err = ubi_read(c->ubi, lnum, buf, offs, len);
104 len, lnum, offs, err);
110 int ubifs_leb_write(struct ubifs_info *c, int lnum, const void *buf, int offs,
119 err = ubi_leb_write(c->ubi, lnum, buf, offs, len);
122 err = dbg_leb_write(c, lnum, buf, offs, len);
126 len, lnum, offs, err);
133 int ubifs_leb_change(struct ubifs_info *c, int lnum, const void *buf, int len)
141 err = ubi_leb_change(c->ubi, lnum, buf, len);
144 err = dbg_leb_change(c, lnum, buf, len)
    [all...]
gc.c 64 * @lnum: LEB number written is returned here
78 wbuf->lnum, wbuf->offs + wbuf->used, gc_lnum,
268 err = ubifs_tnc_has_node(c, &snod->key, 0, sleb->lnum,
314 int err, new_lnum = wbuf->lnum, new_offs = wbuf->offs + wbuf->used;
321 err = ubifs_tnc_replace(c, &snod->key, sleb->lnum,
345 if (wbuf->lnum == -1) {
464 int err = 0, lnum = lp->lnum; local
468 ubifs_assert(c->gc_lnum != lnum);
469 ubifs_assert(wbuf->lnum != lnum)
964 int lnum; local
    [all...]
replay.c 33 * @lnum: logical eraseblock number of the node
49 int lnum; member in struct:replay_entry
97 lp = ubifs_lpt_lookup_dirty(c, b->bud->lnum);
124 dbg_mnt("bud LEB %d was GC'd (%d free, %d dirty)", b->bud->lnum,
126 dbg_gc("bud LEB %d was GC'd (%d free, %d dirty)", b->bud->lnum,
138 b->bud->lnum, lp->free, lp->dirty, b->free,
150 b->bud->lnum, c->leb_size - b->free);
217 r->lnum, r->offs, r->len, r->deletion, r->sqnum);
226 err = ubifs_tnc_add_nm(c, &r->key, r->lnum, r->offs,
246 err = ubifs_tnc_add(c, &r->key, r->lnum, r->offs
537 int err = 0, used = 0, lnum = b->bud->lnum, offs = b->bud->start; local
782 int lnum = le32_to_cpu(ref->lnum); local
1003 int err, lnum, free; local
    [all...]
misc.h 160 * @lnum: LEB to add dirty space for
166 static inline int ubifs_add_dirt(struct ubifs_info *c, int lnum, int dirty)
168 return ubifs_update_one_lp(c, lnum, LPROPS_NC, dirty, 0, 0);
174 * @lnum: LEB to return
180 static inline int ubifs_return_leb(struct ubifs_info *c, int lnum)
182 return ubifs_change_one_lp(c, lnum, LPROPS_NC, LPROPS_NC, 0,
286 * @lnum: current log LEB
289 * 'lnum'.
291 static inline int ubifs_next_log_lnum(const struct ubifs_info *c, int lnum)
293 lnum += 1
    [all...]
tnc.c 51 * @lnum: LEB number of obsoleted index node
71 static int insert_old_idx(struct ubifs_info *c, int lnum, int offs)
79 old_idx->lnum = lnum;
86 if (lnum < o->lnum)
88 else if (lnum > o->lnum)
119 return insert_old_idx(c, zbr->lnum, zbr->offs);
122 return insert_old_idx(c, c->zroot.lnum,
1504 int n, err = 0, lnum = -1, uninitialized_var(offs); local
1735 int lnum = bu->zbranch[0].lnum, offs = bu->zbranch[0].offs, len, err, i; local
    [all...]
lpt.c 389 int lnum = nnode->nbranch[i].lnum; local
391 if (lnum == 0)
392 lnum = c->lpt_last + 1;
393 pack_bits(&addr, &pos, lnum - c->lpt_first, c->lpt_lnum_bits);
454 * @lnum: LEB number to which to add dirty space
457 void ubifs_add_lpt_dirt(struct ubifs_info *c, int lnum, int dirty)
459 if (!dirty || !lnum)
462 lnum, dirty, c->ltab[lnum - c->lpt_first].dirty)
606 int lnum, err = 0, node_sz, iopos, i, j, cnt, len, alen, row; local
870 int lnum = pnode->lprops[i].lnum; local
1008 int lnum; local
1071 int lnum = ubifs_unpack_bits(&addr, &pos, c->lnum_bits); local
1110 int lnum = nnode->nbranch[i].lnum; local
1172 int i, lnum; local
1195 int err, lnum, offs; local
1263 int err, lnum, offs; local
1363 int lnum = c->lsave[i]; local
1981 int ret, lnum = lprops->lnum; local
2110 int lnum = (pnode->num << UBIFS_LPT_FANOUT_SHIFT) + i + local
    [all...]
tnc_misc.c 253 * @lnum: LEB of the indexing node to read
264 static int read_znode(struct ubifs_info *c, int lnum, int offs, int len,
274 err = ubifs_read_node(c, idx, UBIFS_IDX_NODE, len, lnum, offs);
284 lnum, offs, znode->level, znode->child_cnt);
300 zbr->lnum = le32_to_cpu(br->lnum);
307 if (zbr->lnum < c->main_first ||
308 zbr->lnum >= c->leb_cnt || zbr->offs < 0 ||
380 ubifs_err(c, "bad indexing node at LEB %d:%d, error %d", lnum, offs, err);
413 err = read_znode(c, zbr->lnum, zbr->offs, zbr->len, znode)
    [all...]
  /external/google-styleguide/
google_python_style.vim 3 setlocal indentexpr=GetGooglePythonIndent(v:lnum)
7 function GetGooglePythonIndent(lnum)
18 call cursor(a:lnum, 1)
20 \ "line('.') < " . (a:lnum - s:maxoff) . " ? dummy :"
31 return GetPythonIndent(a:lnum)
  /external/u-boot/drivers/mtd/ubi/
eba.c 22 * They are indexed by (@vol_id, @lnum) pairs.
82 * @lnum: logical eraseblock number
89 int lnum)
104 if (lnum < le->lnum)
106 else if (lnum > le->lnum)
120 * @lnum: logical eraseblock number
122 * This function adds new entry for logical eraseblock (@vol_id, @lnum) to the
128 int vol_id, int lnum)
1056 int err, vol_id, lnum, data_size, aldata_size, idx; local
    [all...]
kapi.c 367 * @lnum: logical eraseblock number to read from
374 static int leb_read_sanity_check(struct ubi_volume_desc *desc, int lnum,
381 if (vol_id < 0 || vol_id >= ubi->vtbl_slots || lnum < 0 ||
382 lnum >= vol->used_ebs || offset < 0 || len < 0 ||
390 if (lnum == vol->used_ebs - 1 &&
404 * @lnum: logical eraseblock number to read from
410 * This function reads data from offset @offset of logical eraseblock @lnum and
428 int ubi_leb_read(struct ubi_volume_desc *desc, int lnum, char *buf, int offset,
435 dbg_gen("read %d bytes from LEB %d:%d:%d", len, vol_id, lnum, offset);
437 err = leb_read_sanity_check(desc, lnum, offset, len)
    [all...]
upd.c 180 vol->vol_id, req->lnum, req->bytes);
182 return ubi_eba_atomic_leb_change(ubi, vol, req->lnum, NULL, 0);
187 vol->ch_lnum = req->lnum;
200 * @lnum: logical eraseblock number
225 static int write_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum,
240 err = ubi_eba_write_leb(ubi, vol, lnum, buf, 0, len);
252 err = ubi_eba_write_leb_st(ubi, vol, lnum, buf, len, used_ebs);
275 int lnum, offs, err = 0, len, to_write = count; local
277 int lnum, err = 0, len, to_write = count;
287 lnum = div_u64_rem(vol->upd_received, vol->usable_leb_size, &offs)
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/pgen2/
tokenize.py 361 lnum = parenlev = continued = 0
372 lnum = lnum + 1
382 strstart, (lnum, end), contline + line)
387 strstart, (lnum, len(line)), contline)
412 (lnum, pos), (lnum, pos + len(comment_token)), line)
414 (lnum, nl_pos), (lnum, len(line)), line)
417 (lnum, pos), (lnum, len(line)), line)
    [all...]
  /external/python/cpython2/Lib/
tokenize.py 303 lnum = parenlev = continued = 0
321 lnum += 1
331 strstart, (lnum, end), contline + line)
336 strstart, (lnum, len(line)), contline)
366 (lnum, pos), (lnum, pos + len(comment_token)), line)
368 (lnum, nl_pos), (lnum, len(line)), line)
371 (lnum, pos), (lnum, len(line)), line
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
tokenize.py 286 lnum = parenlev = continued = 0
297 lnum += 1
307 strstart, (lnum, end), contline + line)
312 strstart, (lnum, len(line)), contline)
342 (lnum, pos), (lnum, pos + len(comment_token)), line)
344 (lnum, nl_pos), (lnum, len(line)), line)
347 (lnum, pos), (lnum, len(line)), line)
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
tokenize.py 280 lnum = parenlev = continued = 0
291 lnum += 1
301 strstart, (lnum, end), contline + line)
306 strstart, (lnum, len(line)), contline)
336 (lnum, pos), (lnum, pos + len(comment_token)), line)
338 (lnum, nl_pos), (lnum, len(line)), line)
341 (lnum, pos), (lnum, len(line)), line)
    [all...]
  /external/llvm/utils/vim/indent/
llvm.vim 28 function! FindOpenBrace(lnum)
29 call cursor(a:lnum, 1)
35 let thisline = getline(v:lnum)
37 call cursor(v:lnum, 1)
40 if opening_lnum != v:lnum
47 let blockbegin = FindOpenBrace(v:lnum)
54 let prev_lnum = prevnonblank(v:lnum - 1)
  /external/swiftshader/third_party/llvm-7.0/llvm/utils/vim/indent/
llvm.vim 28 function! FindOpenBrace(lnum)
29 call cursor(a:lnum, 1)
35 let thisline = getline(v:lnum)
37 call cursor(v:lnum, 1)
40 if opening_lnum != v:lnum
47 let blockbegin = FindOpenBrace(v:lnum)
54 let prev_lnum = prevnonblank(v:lnum - 1)
  /external/python/cpython2/Lib/lib2to3/pgen2/
tokenize.py 363 lnum = parenlev = continued = 0
374 lnum = lnum + 1
384 strstart, (lnum, end), contline + line)
389 strstart, (lnum, len(line)), contline)
414 (lnum, pos), (lnum, pos + len(comment_token)), line)
416 (lnum, nl_pos), (lnum, len(line)), line)
419 (lnum, pos), (lnum, len(line)), line
    [all...]
  /external/python/cpython3/Lib/lib2to3/pgen2/
tokenize.py 351 lnum = parenlev = continued = 0
367 lnum = lnum + 1
377 strstart, (lnum, end), contline + line)
382 strstart, (lnum, len(line)), contline)
411 (lnum, pos), (lnum, pos + len(comment_token)), line)
413 (lnum, nl_pos), (lnum, len(line)), line)
416 (lnum, pos), (lnum, len(line)), line
    [all...]
  /external/u-boot/drivers/mtd/ubispl/
ubispl.c 109 /* Check volume id, volume type and lnum */
112 be32_to_cpu(vh->lnum) == fm_lnum)
114 ubi_dbg("RS: PEB %u vol: %u : %u typ %u lnum %u %u",
117 fm_lnum, be32_to_cpu(vh->lnum));
125 u32 pnum, u32 lnum)
133 if (lnum >= UBI_MAX_VOL_LEBS) {
134 ubi_warn("Vol: %u LEB %d > %d", vol_id, lnum, UBI_MAX_VOL_LEBS);
139 pnum, vol_id, lnum, !!test_bit(lnum, vi->found),
143 ltp = vi->lebs_to_pebs + lnum;
196 u32 vol_id, lnum; local
848 u32 lnum, last, len; local
    [all...]

Completed in 6167 milliseconds

1 2 3