Lines Matching refs:vid_hdr_offset
614 if (ubi->vid_hdr_offset < 0) in io_init()
669 if (ubi->vid_hdr_offset && ((ubi->vid_hdr_offset + UBI_VID_HDR_SIZE) > in io_init()
671 ubi_err(ubi, "VID header offset %d too large.", ubi->vid_hdr_offset); in io_init()
681 if (ubi->vid_hdr_offset == 0) in io_init()
683 ubi->vid_hdr_offset = ubi->vid_hdr_aloffset = in io_init()
686 ubi->vid_hdr_aloffset = ubi->vid_hdr_offset & in io_init()
688 ubi->vid_hdr_shift = ubi->vid_hdr_offset - in io_init()
693 ubi->leb_start = ubi->vid_hdr_offset + UBI_VID_HDR_SIZE; in io_init()
696 dbg_gen("vid_hdr_offset %d", ubi->vid_hdr_offset); in io_init()
709 if (ubi->vid_hdr_offset < UBI_EC_HDR_SIZE || in io_init()
710 ubi->leb_start < ubi->vid_hdr_offset + UBI_VID_HDR_SIZE || in io_init()
714 ubi->vid_hdr_offset, ubi->leb_start); in io_init()
732 if (ubi->vid_hdr_offset + UBI_VID_HDR_SIZE <= ubi->hdrs_min_io_size) { in io_init()
835 int vid_hdr_offset, int max_beb_per1024, bool disable_fm) in ubi_attach_mtd_dev() argument
922 ubi->vid_hdr_offset = vid_hdr_offset; in ubi_attach_mtd_dev()
1016 ubi->vid_hdr_offset, ubi->vid_hdr_aloffset, ubi->leb_start); in ubi_attach_mtd_dev()