Lines Matching refs:offs
53 uint32_t offs; in scpart_scan_partmap() local
71 for (offs = MAP_OFFS_IN_BLK; in scpart_scan_partmap()
72 offs < master->erasesize - sizeof(*tmpdesc); in scpart_scan_partmap()
73 offs += sizeof(*tmpdesc)) { in scpart_scan_partmap()
74 tmpdesc = (struct sc_part_desc *)&buf[offs]; in scpart_scan_partmap()
107 loff_t offs = 0; in scpart_find_partmap() local
112 (offs < master->size) && in scpart_find_partmap()
113 !mtd_block_isbad(master, offs)) { in scpart_find_partmap()
114 res2 = mtd_read(master, offs, PART_MAGIC_LEN, &retlen, rdbuf); in scpart_find_partmap()
120 pr_debug("Signature found at 0x%llx\n", offs); in scpart_find_partmap()
122 res = scpart_scan_partmap(master, offs, ppdesc); in scpart_find_partmap()
126 offs += master->erasesize; in scpart_find_partmap()
131 pr_info("Valid 'SC PART MAP' (%d partitions) found at 0x%llx\n", res, offs); in scpart_find_partmap()