Lines Matching defs:vidb
456 struct ubi_vid_io_buf vidb;
483 ubi_init_vid_buf(ubi, &vidb, &vid_hdr);
484 ubi_assert(&vid_hdr == ubi_get_vid_hdr(&vidb));
486 err = ubi_io_read_vid_hdr(ubi, pnum, &vidb, 0);
955 * @vidb: the volume identifier buffer to store data in
959 * @pnum and stores it in @vidb. It also checks CRC checksum of the read
967 struct ubi_vid_io_buf *vidb, int verbose)
971 struct ubi_vid_hdr *vid_hdr = ubi_get_vid_hdr(vidb);
972 void *p = vidb->buffer;
1039 * @vidb: the volume identifier buffer to write
1043 * @vidb->hdr->magic and the @vidb->hdr->version fields, as well as calculates
1044 * header CRC checksum and stores it at vidb->hdr->hdr_crc.
1051 struct ubi_vid_io_buf *vidb)
1053 struct ubi_vid_hdr *vid_hdr = ubi_get_vid_hdr(vidb);
1056 void *p = vidb->buffer;
1242 struct ubi_vid_io_buf *vidb;
1249 vidb = ubi_alloc_vid_buf(ubi, GFP_NOFS);
1250 if (!vidb)
1253 vid_hdr = ubi_get_vid_hdr(vidb);
1254 p = vidb->buffer;
1275 ubi_free_vid_buf(vidb);