H A D | ms.c | 1812 static void ms_set_page_status(u16 log_blk, u8 type, u8 *extra, int extra_len) ms_set_page_status() argument 1827 extra[2] = (u8)(log_blk >> 8); ms_set_page_status() 1828 extra[3] = (u8)log_blk; ms_set_page_status() 1831 static int ms_init_page(struct rtsx_chip *chip, u16 phy_blk, u16 log_blk, ms_init_page() argument 1841 extra[2] = (u8)(log_blk >> 8); ms_init_page() 1842 extra[3] = (u8)log_blk; ms_init_page() 1863 u16 log_blk, u8 start_page, u8 end_page) ms_copy_page() 1871 old_blk, new_blk, log_blk); ms_copy_page() local 1988 ms_set_page_status(log_blk, setPS_NG, ms_copy_page() 1999 ms_set_page_status(log_blk, setPS_Error, ms_copy_page() 2051 data[6 + 2] = (u8)(log_blk >> 8); ms_copy_page() 2052 data[6 + 3] = (u8)log_blk; ms_copy_page() 2589 u16 start, end, phy_blk, log_blk, tmp_blk, idx; ms_build_l2p_tbl() local 2683 log_blk = ((u16)extra[2] << 8) | extra[3]; ms_build_l2p_tbl() 2685 if (log_blk == 0xFFFF) { ms_build_l2p_tbl() 2695 if ((log_blk < ms_start_idx[seg_no]) || ms_build_l2p_tbl() 2696 (log_blk >= ms_start_idx[seg_no+1])) { ms_build_l2p_tbl() 2706 idx = log_blk - ms_start_idx[seg_no]; ms_build_l2p_tbl() 2722 log_blk-ms_start_idx[seg_no], us1, us2); ms_build_l2p_tbl() 2743 for (log_blk = ms_start_idx[seg_no]; ms_build_l2p_tbl() 2744 log_blk < ms_start_idx[seg_no + 1]; log_blk++) { ms_build_l2p_tbl() 2745 idx = log_blk - ms_start_idx[seg_no]; ms_build_l2p_tbl() 2752 retval = ms_init_page(chip, phy_blk, log_blk, 0, 1); ms_build_l2p_tbl() 2775 for (log_blk = 0; log_blk < 494; log_blk++) { ms_build_l2p_tbl() 2776 tmp_blk = segment->l2p_table[log_blk]; ms_build_l2p_tbl() 2785 log_blk, 0, ms_card->page_off + 1); ms_build_l2p_tbl() 2791 segment->l2p_table[log_blk] = phy_blk; ms_build_l2p_tbl() 3323 u16 log_blk, u8 start_page, u8 end_page, ms_read_multiple_pages() 3407 ms_set_page_status(log_blk, setPS_NG, extra, MS_EXTRA_SIZE); ms_read_multiple_pages() 3507 u16 new_blk, u16 log_blk, u8 start_page, ms_write_multiple_pages() 3584 data[8] = (u8)(log_blk >> 8); ms_write_multiple_pages() 3585 data[9] = (u8)log_blk; ms_write_multiple_pages() 3730 u16 log_blk, u8 page_off) ms_finish_write() 3735 retval = ms_copy_page(chip, old_blk, new_blk, log_blk, ms_finish_write() 3753 ms_set_l2p_tbl(chip, seg_no, log_blk - ms_start_idx[seg_no], new_blk); ms_finish_write() 3759 u16 log_blk, u8 start_page) ms_prepare_write() 3764 retval = ms_copy_page(chip, old_blk, new_blk, log_blk, ms_prepare_write() 3821 u16 old_blk = 0, new_blk = 0, log_blk, total_sec_cnt = sector_cnt; ms_rw_multi_sector() local 3841 log_blk = (u16)(start_sector >> ms_card->block_shift); ms_rw_multi_sector() 3845 if (log_blk < ms_start_idx[seg_no+1]) ms_rw_multi_sector() 3862 (delay_write->logblock == log_blk) && ms_rw_multi_sector() 3867 delay_write->new_phyblock, log_blk, ms_rw_multi_sector() 3878 (delay_write->logblock == log_blk) && ms_rw_multi_sector() 3893 log_blk - ms_start_idx[seg_no]); ms_rw_multi_sector() 3903 log_blk, start_page); ms_rw_multi_sector() 3936 log_blk - ms_start_idx[seg_no]); ms_rw_multi_sector() 3961 old_blk, log_blk, start_page, end_page, ms_rw_multi_sector() 3965 new_blk, log_blk, start_page, end_page, ms_rw_multi_sector() 3989 log_blk - ms_start_idx[seg_no], ms_rw_multi_sector() 4001 log_blk++; ms_rw_multi_sector() 4005 if (log_blk < ms_start_idx[seg_no+1]) ms_rw_multi_sector() 4021 log_blk - ms_start_idx[seg_no]); ms_rw_multi_sector() 4049 delay_write->logblock = log_blk; ms_rw_multi_sector() 4053 log_blk, end_page); ms_rw_multi_sector() 1862 ms_copy_page(struct rtsx_chip *chip, u16 old_blk, u16 new_blk, u16 log_blk, u8 start_page, u8 end_page) ms_copy_page() argument 3322 ms_read_multiple_pages(struct rtsx_chip *chip, u16 phy_blk, u16 log_blk, u8 start_page, u8 end_page, u8 *buf, unsigned int *index, unsigned int *offset) ms_read_multiple_pages() argument 3506 ms_write_multiple_pages(struct rtsx_chip *chip, u16 old_blk, u16 new_blk, u16 log_blk, u8 start_page, u8 end_page, u8 *buf, unsigned int *index, unsigned int *offset) ms_write_multiple_pages() argument 3729 ms_finish_write(struct rtsx_chip *chip, u16 old_blk, u16 new_blk, u16 log_blk, u8 page_off) ms_finish_write() argument 3758 ms_prepare_write(struct rtsx_chip *chip, u16 old_blk, u16 new_blk, u16 log_blk, u8 start_page) ms_prepare_write() argument
|