Lines Matching refs:vid_hdr_offset
655 if (ubi->vid_hdr_offset < 0) in io_init()
716 if (ubi->vid_hdr_offset == 0) in io_init()
718 ubi->vid_hdr_offset = ubi->vid_hdr_aloffset = in io_init()
721 ubi->vid_hdr_aloffset = ubi->vid_hdr_offset & in io_init()
723 ubi->vid_hdr_shift = ubi->vid_hdr_offset - in io_init()
728 ubi->leb_start = ubi->vid_hdr_offset + UBI_VID_HDR_SIZE; in io_init()
731 dbg_msg("vid_hdr_offset %d", ubi->vid_hdr_offset); in io_init()
744 if (ubi->vid_hdr_offset < UBI_EC_HDR_SIZE || in io_init()
745 ubi->leb_start < ubi->vid_hdr_offset + UBI_VID_HDR_SIZE || in io_init()
749 ubi->vid_hdr_offset, ubi->leb_start); in io_init()
767 if (ubi->vid_hdr_offset + UBI_VID_HDR_SIZE <= ubi->hdrs_min_io_size) { in io_init()
789 ubi->vid_hdr_offset, ubi->vid_hdr_aloffset); in io_init()
875 int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, int vid_hdr_offset) in ubi_attach_mtd_dev() argument
936 ubi->vid_hdr_offset = vid_hdr_offset; in ubi_attach_mtd_dev()