vidb 443 drivers/mtd/ubi/attach.c struct ubi_vid_io_buf *vidb = NULL; vidb 486 drivers/mtd/ubi/attach.c vidb = ubi_alloc_vid_buf(ubi, GFP_KERNEL); vidb 487 drivers/mtd/ubi/attach.c if (!vidb) vidb 491 drivers/mtd/ubi/attach.c err = ubi_io_read_vid_hdr(ubi, pnum, vidb, 0); vidb 505 drivers/mtd/ubi/attach.c vid_hdr = ubi_get_vid_hdr(vidb); vidb 531 drivers/mtd/ubi/attach.c ubi_free_vid_buf(vidb); vidb 543 drivers/mtd/ubi/attach.c ubi_free_vid_buf(vidb); vidb 945 drivers/mtd/ubi/attach.c struct ubi_vid_io_buf *vidb = ai->vidb; vidb 946 drivers/mtd/ubi/attach.c struct ubi_vid_hdr *vidh = ubi_get_vid_hdr(vidb); vidb 1044 drivers/mtd/ubi/attach.c err = ubi_io_read_vid_hdr(ubi, pnum, vidb, 0); vidb 1388 drivers/mtd/ubi/attach.c ai->vidb = ubi_alloc_vid_buf(ubi, GFP_KERNEL); vidb 1389 drivers/mtd/ubi/attach.c if (!ai->vidb) vidb 1438 drivers/mtd/ubi/attach.c ubi_free_vid_buf(ai->vidb); vidb 1444 drivers/mtd/ubi/attach.c ubi_free_vid_buf(ai->vidb); vidb 1502 drivers/mtd/ubi/attach.c scan_ai->vidb = ubi_alloc_vid_buf(ubi, GFP_KERNEL); vidb 1503 drivers/mtd/ubi/attach.c if (!scan_ai->vidb) vidb 1515 drivers/mtd/ubi/attach.c ubi_free_vid_buf(scan_ai->vidb); vidb 1536 drivers/mtd/ubi/attach.c ubi_free_vid_buf(scan_ai->vidb); vidb 1660 drivers/mtd/ubi/attach.c struct ubi_vid_io_buf *vidb = ai->vidb; vidb 1661 drivers/mtd/ubi/attach.c struct ubi_vid_hdr *vidh = ubi_get_vid_hdr(vidb); vidb 1797 drivers/mtd/ubi/attach.c err = ubi_io_read_vid_hdr(ubi, aeb->pnum, vidb, 1); vidb 502 drivers/mtd/ubi/eba.c struct ubi_vid_io_buf *vidb; vidb 511 drivers/mtd/ubi/eba.c vidb = ubi_alloc_vid_buf(ubi, GFP_NOFS); vidb 512 drivers/mtd/ubi/eba.c if (!vidb) vidb 515 drivers/mtd/ubi/eba.c err = ubi_io_read_vid_hdr(ubi, *pnum, vidb, 0); vidb 548 drivers/mtd/ubi/eba.c vid_hdr = ubi_get_vid_hdr(vidb); vidb 565 drivers/mtd/ubi/eba.c ubi_free_vid_buf(vidb); vidb 600 drivers/mtd/ubi/eba.c struct ubi_vid_io_buf *vidb; vidb 637 drivers/mtd/ubi/eba.c vidb = ubi_alloc_vid_buf(ubi, GFP_NOFS); vidb 638 drivers/mtd/ubi/eba.c if (!vidb) { vidb 643 drivers/mtd/ubi/eba.c vid_hdr = ubi_get_vid_hdr(vidb); vidb 645 drivers/mtd/ubi/eba.c err = ubi_io_read_vid_hdr(ubi, pnum, vidb, 1); vidb 691 drivers/mtd/ubi/eba.c ubi_free_vid_buf(vidb); vidb 728 drivers/mtd/ubi/eba.c ubi_free_vid_buf(vidb); vidb 809 drivers/mtd/ubi/eba.c struct ubi_vid_io_buf *vidb, bool *retry) vidb 827 drivers/mtd/ubi/eba.c err = ubi_io_read_vid_hdr(ubi, pnum, vidb, 1); vidb 834 drivers/mtd/ubi/eba.c vid_hdr = ubi_get_vid_hdr(vidb); vidb 857 drivers/mtd/ubi/eba.c err = ubi_io_write_vid_hdr(ubi, new_pnum, vidb); vidb 908 drivers/mtd/ubi/eba.c struct ubi_vid_io_buf *vidb; vidb 910 drivers/mtd/ubi/eba.c vidb = ubi_alloc_vid_buf(ubi, GFP_NOFS); vidb 911 drivers/mtd/ubi/eba.c if (!vidb) vidb 917 drivers/mtd/ubi/eba.c err = try_recover_peb(vol, pnum, lnum, buf, offset, len, vidb, vidb 925 drivers/mtd/ubi/eba.c ubi_free_vid_buf(vidb); vidb 946 drivers/mtd/ubi/eba.c struct ubi_vid_io_buf *vidb, const void *buf, vidb 963 drivers/mtd/ubi/eba.c err = ubi_io_write_vid_hdr(ubi, pnum, vidb); vidb 1012 drivers/mtd/ubi/eba.c struct ubi_vid_io_buf *vidb; vidb 1048 drivers/mtd/ubi/eba.c vidb = ubi_alloc_vid_buf(ubi, GFP_NOFS); vidb 1049 drivers/mtd/ubi/eba.c if (!vidb) { vidb 1054 drivers/mtd/ubi/eba.c vid_hdr = ubi_get_vid_hdr(vidb); vidb 1064 drivers/mtd/ubi/eba.c err = try_write_vid_and_data(vol, lnum, vidb, buf, offset, len); vidb 1078 drivers/mtd/ubi/eba.c ubi_free_vid_buf(vidb); vidb 1115 drivers/mtd/ubi/eba.c struct ubi_vid_io_buf *vidb; vidb 1128 drivers/mtd/ubi/eba.c vidb = ubi_alloc_vid_buf(ubi, GFP_NOFS); vidb 1129 drivers/mtd/ubi/eba.c if (!vidb) vidb 1132 drivers/mtd/ubi/eba.c vid_hdr = ubi_get_vid_hdr(vidb); vidb 1153 drivers/mtd/ubi/eba.c err = try_write_vid_and_data(vol, lnum, vidb, buf, 0, len); vidb 1167 drivers/mtd/ubi/eba.c ubi_free_vid_buf(vidb); vidb 1193 drivers/mtd/ubi/eba.c struct ubi_vid_io_buf *vidb; vidb 1211 drivers/mtd/ubi/eba.c vidb = ubi_alloc_vid_buf(ubi, GFP_NOFS); vidb 1212 drivers/mtd/ubi/eba.c if (!vidb) vidb 1215 drivers/mtd/ubi/eba.c vid_hdr = ubi_get_vid_hdr(vidb); vidb 1237 drivers/mtd/ubi/eba.c err = try_write_vid_and_data(vol, lnum, vidb, buf, 0, len); vidb 1257 drivers/mtd/ubi/eba.c ubi_free_vid_buf(vidb); vidb 1303 drivers/mtd/ubi/eba.c struct ubi_vid_io_buf *vidb) vidb 1306 drivers/mtd/ubi/eba.c struct ubi_vid_hdr *vid_hdr = ubi_get_vid_hdr(vidb); vidb 1420 drivers/mtd/ubi/eba.c err = ubi_io_write_vid_hdr(ubi, to, vidb); vidb 1430 drivers/mtd/ubi/eba.c err = ubi_io_read_vid_hdr(ubi, to, vidb, 1); vidb 456 drivers/mtd/ubi/io.c struct ubi_vid_io_buf vidb; vidb 483 drivers/mtd/ubi/io.c ubi_init_vid_buf(ubi, &vidb, &vid_hdr); vidb 484 drivers/mtd/ubi/io.c ubi_assert(&vid_hdr == ubi_get_vid_hdr(&vidb)); vidb 486 drivers/mtd/ubi/io.c err = ubi_io_read_vid_hdr(ubi, pnum, &vidb, 0); vidb 965 drivers/mtd/ubi/io.c struct ubi_vid_io_buf *vidb, int verbose) vidb 969 drivers/mtd/ubi/io.c struct ubi_vid_hdr *vid_hdr = ubi_get_vid_hdr(vidb); vidb 970 drivers/mtd/ubi/io.c void *p = vidb->buffer; vidb 1049 drivers/mtd/ubi/io.c struct ubi_vid_io_buf *vidb) vidb 1051 drivers/mtd/ubi/io.c struct ubi_vid_hdr *vid_hdr = ubi_get_vid_hdr(vidb); vidb 1054 drivers/mtd/ubi/io.c void *p = vidb->buffer; vidb 1240 drivers/mtd/ubi/io.c struct ubi_vid_io_buf *vidb; vidb 1247 drivers/mtd/ubi/io.c vidb = ubi_alloc_vid_buf(ubi, GFP_NOFS); vidb 1248 drivers/mtd/ubi/io.c if (!vidb) vidb 1251 drivers/mtd/ubi/io.c vid_hdr = ubi_get_vid_hdr(vidb); vidb 1252 drivers/mtd/ubi/io.c p = vidb->buffer; vidb 1273 drivers/mtd/ubi/io.c ubi_free_vid_buf(vidb); vidb 781 drivers/mtd/ubi/ubi.h struct ubi_vid_io_buf *vidb; vidb 898 drivers/mtd/ubi/ubi.h struct ubi_vid_io_buf *vidb); vidb 934 drivers/mtd/ubi/ubi.h struct ubi_vid_io_buf *vidb, int verbose); vidb 936 drivers/mtd/ubi/ubi.h struct ubi_vid_io_buf *vidb); vidb 1067 drivers/mtd/ubi/ubi.h struct ubi_vid_io_buf *vidb, vidb 1073 drivers/mtd/ubi/ubi.h vidb->buffer = buf; vidb 1074 drivers/mtd/ubi/ubi.h vidb->hdr = buf + ubi->vid_hdr_shift; vidb 1085 drivers/mtd/ubi/ubi.h struct ubi_vid_io_buf *vidb; vidb 1088 drivers/mtd/ubi/ubi.h vidb = kzalloc(sizeof(*vidb), gfp_flags); vidb 1089 drivers/mtd/ubi/ubi.h if (!vidb) vidb 1094 drivers/mtd/ubi/ubi.h kfree(vidb); vidb 1098 drivers/mtd/ubi/ubi.h ubi_init_vid_buf(ubi, vidb, buf); vidb 1100 drivers/mtd/ubi/ubi.h return vidb; vidb 1107 drivers/mtd/ubi/ubi.h static inline void ubi_free_vid_buf(struct ubi_vid_io_buf *vidb) vidb 1109 drivers/mtd/ubi/ubi.h if (!vidb) vidb 1112 drivers/mtd/ubi/ubi.h kfree(vidb->buffer); vidb 1113 drivers/mtd/ubi/ubi.h kfree(vidb); vidb 1120 drivers/mtd/ubi/ubi.h static inline struct ubi_vid_hdr *ubi_get_vid_hdr(struct ubi_vid_io_buf *vidb) vidb 1122 drivers/mtd/ubi/ubi.h return vidb->hdr; vidb 289 drivers/mtd/ubi/vtbl.c struct ubi_vid_io_buf *vidb; vidb 295 drivers/mtd/ubi/vtbl.c vidb = ubi_alloc_vid_buf(ubi, GFP_KERNEL); vidb 296 drivers/mtd/ubi/vtbl.c if (!vidb) vidb 299 drivers/mtd/ubi/vtbl.c vid_hdr = ubi_get_vid_hdr(vidb); vidb 317 drivers/mtd/ubi/vtbl.c err = ubi_io_write_vid_hdr(ubi, new_aeb->pnum, vidb); vidb 332 drivers/mtd/ubi/vtbl.c ubi_free_vid_buf(vidb); vidb 346 drivers/mtd/ubi/vtbl.c ubi_free_vid_buf(vidb); vidb 663 drivers/mtd/ubi/wl.c struct ubi_vid_io_buf *vidb; vidb 671 drivers/mtd/ubi/wl.c vidb = ubi_alloc_vid_buf(ubi, GFP_NOFS); vidb 672 drivers/mtd/ubi/wl.c if (!vidb) vidb 675 drivers/mtd/ubi/wl.c vid_hdr = ubi_get_vid_hdr(vidb); vidb 777 drivers/mtd/ubi/wl.c err = ubi_io_read_vid_hdr(ubi, e1->pnum, vidb, 0); vidb 824 drivers/mtd/ubi/wl.c err = ubi_eba_copy_leb(ubi, e1->pnum, e2->pnum, vidb); vidb 882 drivers/mtd/ubi/wl.c ubi_free_vid_buf(vidb); vidb 949 drivers/mtd/ubi/wl.c ubi_free_vid_buf(vidb); vidb 980 drivers/mtd/ubi/wl.c ubi_free_vid_buf(vidb); vidb 996 drivers/mtd/ubi/wl.c ubi_free_vid_buf(vidb);