Lines Matching refs:parent

202 int mtd_parse_partitions(struct mtd_info *parent, const char **_mtdparts,  in mtd_parse_partitions()  argument
236 parts[idx].size = parent->size - cur_sz; in mtd_parse_partitions()
240 if (sz < parent->writesize || do_div(sz, parent->writesize)) { in mtd_parse_partitions()
242 parent->writesize); in mtd_parse_partitions()
250 parts[idx].ecclayout = parent->ecclayout; in mtd_parse_partitions()
295 stats = mtd->parent->ecc_stats; in part_read()
296 res = mtd->parent->_read(mtd->parent, from + mtd->offset, len, in part_read()
300 mtd->parent->ecc_stats.failed - stats.failed; in part_read()
303 mtd->parent->ecc_stats.corrected - stats.corrected; in part_read()
311 return mtd->parent->_point(mtd->parent, from + mtd->offset, len, in part_point()
317 return mtd->parent->_unpoint(mtd->parent, from + mtd->offset, len); in part_unpoint()
327 return mtd->parent->_get_unmapped_area(mtd->parent, len, offset, flags); in part_get_unmapped_area()
357 res = mtd->parent->_read_oob(mtd->parent, from + mtd->offset, ops); in part_read_oob()
370 return mtd->parent->_read_user_prot_reg(mtd->parent, from, len, in part_read_user_prot_reg()
377 return mtd->parent->_get_user_prot_info(mtd->parent, len, retlen, in part_get_user_prot_info()
384 return mtd->parent->_read_fact_prot_reg(mtd->parent, from, len, in part_read_fact_prot_reg()
391 return mtd->parent->_get_fact_prot_info(mtd->parent, len, retlen, in part_get_fact_prot_info()
398 return mtd->parent->_write(mtd->parent, to + mtd->offset, len, in part_write()
405 return mtd->parent->_panic_write(mtd->parent, to + mtd->offset, len, in part_panic_write()
416 return mtd->parent->_write_oob(mtd->parent, to + mtd->offset, ops); in part_write_oob()
422 return mtd->parent->_write_user_prot_reg(mtd->parent, from, len, in part_write_user_prot_reg()
429 return mtd->parent->_lock_user_prot_reg(mtd->parent, from, len); in part_lock_user_prot_reg()
436 return mtd->parent->_writev(mtd->parent, vecs, count, in part_writev()
446 ret = mtd->parent->_erase(mtd->parent, instr); in part_erase()
469 return mtd->parent->_lock(mtd->parent, ofs + mtd->offset, len); in part_lock()
474 return mtd->parent->_unlock(mtd->parent, ofs + mtd->offset, len); in part_unlock()
479 return mtd->parent->_is_locked(mtd->parent, ofs + mtd->offset, len); in part_is_locked()
484 mtd->parent->_sync(mtd->parent); in part_sync()
490 return mtd->parent->_suspend(mtd->parent); in part_suspend()
495 mtd->parent->_resume(mtd->parent); in part_resume()
502 return mtd->parent->_block_isreserved(mtd->parent, ofs); in part_block_isreserved()
508 return mtd->parent->_block_isbad(mtd->parent, ofs); in part_block_isbad()
516 res = mtd->parent->_block_markbad(mtd->parent, ofs); in part_block_markbad()
606 slave->dev.parent = master->dev.parent; in allocate_partition()
666 slave->parent = master; in allocate_partition()
993 return mtd->parent->size; in mtd_get_device_size()