Lines Matching defs:offset
93 child->part.offset = part->offset;
96 if (child->part.offset == MTDPART_OFS_APPEND)
97 child->part.offset = cur_offset;
98 if (child->part.offset == MTDPART_OFS_NXTBLK) {
100 child->part.offset = cur_offset;
103 child->part.offset += wr_alignment - remainder;
107 child->part.offset);
110 if (child->part.offset == MTDPART_OFS_RETAIN) {
111 child->part.offset = cur_offset;
112 if (parent_size - child->part.offset >= child->part.size) {
113 child->part.size = parent_size - child->part.offset -
117 part->name, parent_size - child->part.offset,
124 child->part.size = parent_size - child->part.offset;
127 child->part.offset, child->part.offset + child->part.size,
131 if (child->part.offset >= parent_size) {
133 child->part.offset = 0;
142 if (child->part.offset + child->part.size > parent->size) {
143 child->part.size = parent_size - child->part.offset;
151 u64 end = child->part.offset + child->part.size;
156 for (i = 0; i < max && regions[i].offset <= child->part.offset;
164 for (; i < max && regions[i].offset < end; i++) {
227 return sysfs_emit(buf, "%lld\n", mtd->part.offset);
229 static DEVICE_ATTR_RO(offset); /* mtd partition offset */
246 long long offset, long long length)
255 /* the direct offset is expected */
256 if (offset == MTDPART_OFS_APPEND ||
257 offset == MTDPART_OFS_NXTBLK)
261 length = parent_size - offset;
269 part.offset = offset;
271 child = allocate_partition(parent, &part, -1, offset);
431 cur_offset = child->part.offset + child->part.size;