Lines Matching defs:offset
27 u32 offset;
37 if (of_property_read_u32(np, "partitions-table-offset", &offset)) {
38 pr_err("Failed to get partitions table offset\n");
42 err = mtd_read(mtd, offset, sizeof(hdr), &bytes_read, (uint8_t *)&hdr);
44 pr_err("Failed to read from %s at 0x%x\n", mtd->name, offset);
54 err = mtd_read(mtd, offset + sizeof(hdr), size, &bytes_read, buf);
56 pr_err("Failed to read from %s at 0x%zx\n", mtd->name, offset + sizeof(hdr));
79 size_t offset;
97 for (idx = 0, offset = TPLINK_SAFELOADER_DATA_OFFSET;
99 sscanf(buf + offset, "partition %64s base 0x%llx size 0x%llx%zn\n",
100 name, &parts[idx].offset, &parts[idx].size, &bytes) == 3;
101 idx++, offset += bytes + 1) {