Lines Matching defs:part
117 _nflash_mtd_read(struct mtd_info *mtd, struct mtd_partition *part,
131 /* Locate the part */
132 if (!part) {
136 part = &nflash_parts[i];
140 if (!part)
171 good_bytes = part->offset & ~mask;
248 struct mtd_partition *part = NULL;
260 /* Locate the part */
265 part = &nflash_parts[i];
269 if (!part)
274 if ((to + len) > (part->offset + part->size))
288 good_bytes = part->offset & ~mask;
290 part_blk_end = reciprocal_divide(part->offset + part->size, r_blocksize);
314 ret = _nflash_mtd_read(mtd, part, from, blocksize,
366 (blk_offset < (part->offset+part->size))) {
371 if (blk_offset >= (part->offset+part->size)) {
389 struct mtd_partition *part = NULL;
412 /* Locate the part */
416 part = &nflash_parts[i];
421 if (!part)
427 part_start_blk = reciprocal_divide(part->offset & ~(blocksize-1),
429 part_end_blk = reciprocal_divide(((part->offset + part->size) + (blocksize-1)),
450 if ((new_addr + (erase_blknum * blocksize)) > (part->offset + part->size)) {