Lines Matching defs:offset
42 uint32_t kernel_ofs; /* kernel data offset */
44 uint32_t rootfs_ofs; /* rootfs data offset */
46 uint32_t boot_ofs; /* bootloader data offset */
52 tplink_read_header(struct mtd_info *mtd, size_t offset)
65 ret = mtd_read(mtd, offset, header_len, &retlen,
90 static int tplink_check_rootfs_magic(struct mtd_info *mtd, size_t offset)
96 ret = mtd_read(mtd, offset, sizeof(magic), &retlen,
114 size_t offset)
131 header = tplink_read_header(master, offset);
138 squashfs_offset = offset + sizeof(struct tplink_fw_header) +
145 rootfs_offset = offset + be32_to_cpu(header->rootfs_ofs);
150 parts[0].offset = 0;
151 parts[0].size = offset;
155 parts[1].offset = offset;
156 parts[1].size = rootfs_offset - offset;
159 parts[2].offset = rootfs_offset;
163 parts[3].offset = art_offset;
168 parts[4].offset = offset;
169 parts[4].size = art_offset - offset;