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);
953 * @vidb: the volume identifier buffer to store data in
957 * @pnum and stores it in @vidb. It also checks CRC checksum of the read
965 struct ubi_vid_io_buf *vidb, int verbose)
969 struct ubi_vid_hdr *vid_hdr = ubi_get_vid_hdr(vidb);
970 void *p = vidb->buffer;
1037 * @vidb: the volume identifier buffer to write
1041 * @vidb->hdr->magic and the @vidb->hdr->version fields, as well as calculates
1042 * header CRC checksum and stores it at vidb->hdr->hdr_crc.
1049 struct ubi_vid_io_buf *vidb)
1051 struct ubi_vid_hdr *vid_hdr = ubi_get_vid_hdr(vidb);
1054 void *p = vidb->buffer;
1240 struct ubi_vid_io_buf *vidb;
1247 vidb = ubi_alloc_vid_buf(ubi, GFP_NOFS);
1248 if (!vidb)
1251 vid_hdr = ubi_get_vid_hdr(vidb);
1252 p = vidb->buffer;
1273 ubi_free_vid_buf(vidb);