Lines Matching refs:part
87 struct mtd_part *part = PART(mtd); in part_read() local
91 stats = part->master->ecc_stats; in part_read()
92 res = part->master->_read(part->master, from + part->offset, len, in part_read()
96 part->master->ecc_stats.failed - stats.failed; in part_read()
99 part->master->ecc_stats.corrected - stats.corrected; in part_read()
107 struct mtd_part *part = PART(mtd); in part_point() local
109 return part->master->_point(part->master, from + part->offset, len, in part_point()
115 struct mtd_part *part = PART(mtd); in part_unpoint() local
117 return part->master->_unpoint(part->master, from + part->offset, len); in part_unpoint()
126 struct mtd_part *part = PART(mtd); in part_get_unmapped_area() local
128 offset += part->offset; in part_get_unmapped_area()
129 return part->master->_get_unmapped_area(part->master, len, offset, in part_get_unmapped_area()
136 struct mtd_part *part = PART(mtd); in part_read_oob() local
161 res = part->master->_read_oob(part->master, from + part->offset, ops); in part_read_oob()
174 struct mtd_part *part = PART(mtd); in part_read_user_prot_reg() local
175 return part->master->_read_user_prot_reg(part->master, from, len, in part_read_user_prot_reg()
182 struct mtd_part *part = PART(mtd); in part_get_user_prot_info() local
183 return part->master->_get_user_prot_info(part->master, len, retlen, in part_get_user_prot_info()
190 struct mtd_part *part = PART(mtd); in part_read_fact_prot_reg() local
191 return part->master->_read_fact_prot_reg(part->master, from, len, in part_read_fact_prot_reg()
198 struct mtd_part *part = PART(mtd); in part_get_fact_prot_info() local
199 return part->master->_get_fact_prot_info(part->master, len, retlen, in part_get_fact_prot_info()
206 struct mtd_part *part = PART(mtd); in part_write() local
207 return part->master->_write(part->master, to + part->offset, len, in part_write()
214 struct mtd_part *part = PART(mtd); in part_panic_write() local
215 return part->master->_panic_write(part->master, to + part->offset, len, in part_panic_write()
222 struct mtd_part *part = PART(mtd); in part_write_oob() local
228 return part->master->_write_oob(part->master, to + part->offset, ops); in part_write_oob()
234 struct mtd_part *part = PART(mtd); in part_write_user_prot_reg() local
235 return part->master->_write_user_prot_reg(part->master, from, len, in part_write_user_prot_reg()
242 struct mtd_part *part = PART(mtd); in part_lock_user_prot_reg() local
243 return part->master->_lock_user_prot_reg(part->master, from, len); in part_lock_user_prot_reg()
250 struct mtd_part *part = PART(mtd); in part_writev() local
251 return part->master->_writev(part->master, vecs, count, in part_writev()
252 to + part->offset, retlen); in part_writev()
258 struct mtd_part *part = PART(mtd); in part_erase() local
261 instr->addr += part->offset; in part_erase()
262 ret = part->master->_erase(part->master, instr); in part_erase()
265 instr->fail_addr -= part->offset; in part_erase()
266 instr->addr -= part->offset; in part_erase()
274 struct mtd_part *part = PART(instr->mtd); in mtd_erase_callback() local
277 instr->fail_addr -= part->offset; in mtd_erase_callback()
278 instr->addr -= part->offset; in mtd_erase_callback()
287 struct mtd_part *part = PART(mtd); in part_lock() local
288 return part->master->_lock(part->master, ofs + part->offset, len); in part_lock()
293 struct mtd_part *part = PART(mtd); in part_unlock() local
294 return part->master->_unlock(part->master, ofs + part->offset, len); in part_unlock()
299 struct mtd_part *part = PART(mtd); in part_is_locked() local
300 return part->master->_is_locked(part->master, ofs + part->offset, len); in part_is_locked()
305 struct mtd_part *part = PART(mtd); in part_sync() local
306 part->master->_sync(part->master); in part_sync()
312 struct mtd_part *part = PART(mtd); in part_suspend() local
313 return part->master->_suspend(part->master); in part_suspend()
318 struct mtd_part *part = PART(mtd); in part_resume() local
319 part->master->_resume(part->master); in part_resume()
325 struct mtd_part *part = PART(mtd); in part_block_isreserved() local
326 ofs += part->offset; in part_block_isreserved()
327 return part->master->_block_isreserved(part->master, ofs); in part_block_isreserved()
332 struct mtd_part *part = PART(mtd); in part_block_isbad() local
333 ofs += part->offset; in part_block_isbad()
334 return part->master->_block_isbad(part->master, ofs); in part_block_isbad()
339 struct mtd_part *part = PART(mtd); in part_block_markbad() local
342 ofs += part->offset; in part_block_markbad()
343 res = part->master->_block_markbad(part->master, ofs); in part_block_markbad()
382 const struct mtd_partition *part, int partno, in allocate_partition() argument
390 name = kstrdup(part->name, GFP_KERNEL); in allocate_partition()
401 slave->mtd.flags = master->flags & ~part->mask_flags; in allocate_partition()
402 slave->mtd.size = part->size; in allocate_partition()
476 slave->offset = part->offset; in allocate_partition()
497 part->name, master->size - slave->offset, in allocate_partition()
515 part->name); in allocate_partition()
521 part->name, master->name, (unsigned long long)slave->mtd.size); in allocate_partition()
556 part->name); in allocate_partition()
562 part->name); in allocate_partition()
588 struct mtd_partition part; in mtd_add_partition() local
604 part.name = name; in mtd_add_partition()
605 part.size = length; in mtd_add_partition()
606 part.offset = offset; in mtd_add_partition()
607 part.mask_flags = 0; in mtd_add_partition()
608 part.ecclayout = NULL; in mtd_add_partition()
610 new = allocate_partition(master, &part, -1, offset); in mtd_add_partition()
811 struct mtd_part *part; in mtd_is_partition() local
815 list_for_each_entry(part, &mtd_partitions, list) in mtd_is_partition()
816 if (&part->mtd == mtd) { in mtd_is_partition()