Lines Matching refs:vid_hdr_offset
627 * If @ubi->vid_hdr_offset or @ubi->leb_start is zero, default offsets are
654 if (ubi->vid_hdr_offset < 0)
701 if (ubi->vid_hdr_offset == 0)
703 ubi->vid_hdr_offset = ubi->vid_hdr_aloffset =
706 ubi->vid_hdr_aloffset = ubi->vid_hdr_offset &
708 ubi->vid_hdr_shift = ubi->vid_hdr_offset -
713 ubi->leb_start = ubi->vid_hdr_offset + UBI_EC_HDR_SIZE;
716 dbg_msg("vid_hdr_offset %d", ubi->vid_hdr_offset);
729 if (ubi->vid_hdr_offset < UBI_EC_HDR_SIZE ||
730 ubi->leb_start < ubi->vid_hdr_offset + UBI_VID_HDR_SIZE ||
734 ubi->vid_hdr_offset, ubi->leb_start);
752 if (ubi->vid_hdr_offset + UBI_VID_HDR_SIZE <= ubi->hdrs_min_io_size) {
774 ubi->vid_hdr_offset, ubi->vid_hdr_aloffset);
844 * @vid_hdr_offset: VID header offset
855 int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, int vid_hdr_offset)
916 ubi->vid_hdr_offset = vid_hdr_offset;