D | docg3.c | 456 static int doc_read_seek(struct docg3 *docg3, int block0, int block1, int page, in doc_read_seek() argument 462 block0, block1, page, ofs, wear); in doc_read_seek() 485 sector = (block1 << DOC_ADDR_BLOCK_SHIFT) + (page & DOC_ADDR_PAGE_MASK); in doc_read_seek() 505 static int doc_write_seek(struct docg3 *docg3, int block0, int block1, int page, in doc_write_seek() argument 511 block0, block1, page, ofs); in doc_write_seek() 538 sector = (block1 << DOC_ADDR_BLOCK_SHIFT) + (page & DOC_ADDR_PAGE_MASK); in doc_write_seek() 695 static int doc_read_page_prepare(struct docg3 *docg3, int block0, int block1, in doc_read_page_prepare() argument 701 block0, block1, page, offset); in doc_read_page_prepare() 713 ret = doc_read_seek(docg3, block0, block1, page, wear_area, offset); in doc_read_page_prepare() 832 static void calc_block_sector(loff_t from, int *block0, int *block1, int *page, in calc_block_sector() argument [all …]
|