Lines Matching refs:sbuf
109 void *sbuf, *buf;
111 sbuf = vmalloc(c->leb_size);
112 if (!sbuf) {
116 err = ubifs_leb_read(c, lnum, sbuf, 0, c->leb_size, 0);
123 buf = sbuf;
187 *pbuf = sbuf;
193 vfree(sbuf);
632 * @sbuf: LEB-sized buffer to use
641 struct ubifs_scan_leb *ubifs_recover_leb(struct ubifs_info *c, int lnum, int offs, void *sbuf, int jhead)
646 void *buf = sbuf + offs;
650 sleb = ubifs_start_scan(c, lnum, offs, sbuf);
816 buf = sbuf + offs;
900 * @sbuf: LEB-sized buffer to use
908 struct ubifs_scan_leb *ubifs_recover_log_leb(struct ubifs_info *c, int lnum, int offs, void *sbuf)
923 sleb = ubifs_scan(c, next_lnum, 0, sbuf, 0);
949 return ubifs_recover_leb(c, lnum, offs, sbuf, -1);
957 * @sbuf: LEB-sized buffer to use
963 static int recover_head(struct ubifs_info *c, int lnum, int offs, void *sbuf)
976 err = ubifs_leb_read(c, lnum, sbuf, offs, len, 1);
977 if (err || !is_empty(sbuf, len)) {
982 err = ubifs_leb_read(c, lnum, sbuf, 0, offs, 1);
986 return ubifs_leb_change(c, lnum, sbuf, offs);
995 * @sbuf: LEB-sized buffer to use
1009 int ubifs_recover_inl_heads(struct ubifs_info *c, void *sbuf)
1016 err = recover_head(c, c->ihead_lnum, c->ihead_offs, sbuf);
1023 return recover_head(c, c->nhead_lnum, c->nhead_offs, sbuf);
1030 * @sbuf: LEB-sized buffer to use
1038 static int clean_an_unclean_leb(struct ubifs_info *c, struct ubifs_unclean_leb *ucleb, void *sbuf)
1041 void *buf = sbuf;
1102 buf = c->sbuf + len - pad_len;
1108 err = ubifs_leb_change(c, lnum, sbuf, len);
1121 * @sbuf: LEB-sized buffer to use
1129 int ubifs_clean_lebs(struct ubifs_info *c, void *sbuf)
1137 err = clean_an_unclean_leb(c, ucleb, sbuf);
1473 struct ubifs_ino_node *ino = c->sbuf;
1495 err = ubifs_leb_read(c, lnum, c->sbuf, 0, c->leb_size, 1);
1500 ino = c->sbuf + offs;
1506 p = c->sbuf;
1513 err = ubifs_leb_change(c, lnum, c->sbuf, len);
1619 err = ubifs_tnc_lookup(c, &key, c->sbuf);
1631 struct ubifs_ino_node *ino = c->sbuf;