H A D | xd.c | 1196 static int xd_copy_page(struct rtsx_chip *chip, u32 old_blk, u32 new_blk, xd_copy_page() argument 1205 old_blk, new_blk); xd_copy_page() local 1212 if ((old_blk == BLK_NOT_FOUND) || (new_blk == BLK_NOT_FOUND)) { xd_copy_page() 1217 old_page = (old_blk << xd_card->block_shift) + start_page; xd_copy_page() 1276 old_blk); xd_copy_page() local 1762 u32 old_blk, u32 new_blk, u32 log_blk, u8 page_off) xd_finish_write() 1768 dev_dbg(rtsx_dev(chip), "xd_finish_write, old_blk = 0x%x, new_blk = 0x%x, log_blk = 0x%x\n", xd_finish_write() 1769 old_blk, new_blk, log_blk); xd_finish_write() local 1779 if (old_blk == BLK_NOT_FOUND) { xd_finish_write() 1790 retval = xd_copy_page(chip, old_blk, new_blk, xd_finish_write() 1803 retval = xd_erase_block(chip, old_blk); xd_finish_write() 1806 xd_mark_bad_block(chip, old_blk); xd_finish_write() 1809 xd_set_unused_block(chip, old_blk); xd_finish_write() 1823 u32 old_blk, u32 new_blk, u32 log_blk, u8 page_off) xd_prepare_write() 1827 dev_dbg(rtsx_dev(chip), "%s, old_blk = 0x%x, new_blk = 0x%x, log_blk = 0x%x, page_off = %d\n", xd_prepare_write() 1828 __func__, old_blk, new_blk, log_blk, (int)page_off); xd_prepare_write() local 1831 retval = xd_copy_page(chip, old_blk, new_blk, 0, page_off); xd_prepare_write() 1842 static int xd_write_multiple_pages(struct rtsx_chip *chip, u32 old_blk, xd_write_multiple_pages() argument 1853 dev_dbg(rtsx_dev(chip), "%s, old_blk = 0x%x, new_blk = 0x%x, log_blk = 0x%x\n", xd_write_multiple_pages() 1854 __func__, old_blk, new_blk, log_blk); xd_write_multiple_pages() local 1917 if (old_blk != BLK_NOT_FOUND) { xd_write_multiple_pages() 1918 retval = xd_erase_block(chip, old_blk); xd_write_multiple_pages() 1921 xd_mark_bad_block(chip, old_blk); xd_write_multiple_pages() 1924 xd_set_unused_block(chip, old_blk); xd_write_multiple_pages() 1991 u32 log_blk, old_blk = 0, new_blk = 0; xd_rw() local 2052 old_blk = delay_write->old_phyblock; xd_rw() 2058 old_blk = delay_write->old_phyblock; xd_rw() 2069 old_blk = xd_get_l2p_tbl(chip, zone_no, log_off); xd_rw() 2071 if ((old_blk == BLK_NOT_FOUND) || xd_rw() 2079 retval = xd_prepare_write(chip, old_blk, new_blk, xd_rw() 2114 old_blk = xd_get_l2p_tbl(chip, zone_no, log_off); xd_rw() 2115 if (old_blk == BLK_NOT_FOUND) { xd_rw() 2123 dev_dbg(rtsx_dev(chip), "old_blk = 0x%x\n", old_blk); xd_rw() local 2140 retval = xd_read_multiple_pages(chip, old_blk, log_blk, xd_rw() 2150 retval = xd_write_multiple_pages(chip, old_blk, xd_rw() 2184 old_blk = xd_get_l2p_tbl(chip, zone_no, log_off); xd_rw() 2185 if (old_blk == BLK_NOT_FOUND) { xd_rw() 2214 delay_write->old_phyblock = old_blk; xd_rw() 2226 retval = xd_finish_write(chip, old_blk, new_blk, xd_rw() 1761 xd_finish_write(struct rtsx_chip *chip, u32 old_blk, u32 new_blk, u32 log_blk, u8 page_off) xd_finish_write() argument 1822 xd_prepare_write(struct rtsx_chip *chip, u32 old_blk, u32 new_blk, u32 log_blk, u8 page_off) xd_prepare_write() argument
|