Lines Matching defs:part
81 _nflash_mtd_read(struct mtd_info *mtd, struct mtd_partition *part,
95 /* Locate the part */
96 if (!part) {
100 part = &nflash_parts[i];
104 if (!part)
132 good_bytes = part->offset & ~mask;
208 struct mtd_partition *part = NULL;
220 /* Locate the part */
225 part = &nflash_parts[i];
229 if (!part)
234 if ((to + len) > (part->offset + part->size))
248 good_bytes = part->offset & ~mask;
250 part_blk_end = reciprocal_divide(part->offset + part->size, r_blocksize);
274 ret = _nflash_mtd_read(mtd, part, from, blocksize,
326 (blk_offset < (part->offset+part->size))) {
331 if (blk_offset >= (part->offset+part->size)) {
349 struct mtd_partition *part = NULL;
372 /* Locate the part */
376 part = &nflash_parts[i];
381 if (!part)
387 part_start_blk = reciprocal_divide(part->offset & ~(blocksize-1),
389 part_end_blk = reciprocal_divide(((part->offset + part->size) + (blocksize-1)),
410 if ((new_addr + (erase_blknum * blocksize)) > (part->offset + part->size)) {