Lines Matching refs:new_blk

1622 static int ms_copy_page(struct rtsx_chip *chip, u16 old_blk, u16 new_blk,
1631 old_blk, new_blk, log_blk);
1635 retval = ms_read_extra_data(chip, new_blk, 0, extra, MS_EXTRA_SIZE);
1744 ms_write_extra_data(chip, new_blk, i,
1782 data[2] = (u8)(new_blk >> 8);
1783 data[3] = (u8)new_blk;
3124 u16 new_blk, u16 log_blk, u8 start_page,
3181 data[2] = (u8)(new_blk >> 8);
3182 data[3] = (u8)new_blk;
3315 static int ms_finish_write(struct rtsx_chip *chip, u16 old_blk, u16 new_blk,
3321 retval = ms_copy_page(chip, old_blk, new_blk, log_blk,
3337 ms_set_l2p_tbl(chip, seg_no, log_blk - ms_start_idx[seg_no], new_blk);
3342 static int ms_prepare_write(struct rtsx_chip *chip, u16 old_blk, u16 new_blk,
3348 retval = ms_copy_page(chip, old_blk, new_blk, log_blk,
3399 u16 old_blk = 0, new_blk = 0, log_blk, total_sec_cnt = sector_cnt;
3452 new_blk = delay_write->new_phyblock;
3458 new_blk = delay_write->new_phyblock;
3470 new_blk = ms_get_unused_block(chip, seg_no);
3471 if (old_blk == 0xFFFF || new_blk == 0xFFFF) {
3477 retval = ms_prepare_write(chip, old_blk, new_blk,
3517 dev_dbg(rtsx_dev(chip), "seg_no = %d, old_blk = 0x%x, new_blk = 0x%x\n",
3518 seg_no, old_blk, new_blk);
3537 retval = ms_write_multiple_pages(chip, old_blk, new_blk,
3562 new_blk);
3599 new_blk = ms_get_unused_block(chip, seg_no);
3600 if (new_blk == 0xFFFF) {
3606 dev_dbg(rtsx_dev(chip), "seg_no = %d, old_blk = 0x%x, new_blk = 0x%x\n",
3607 seg_no, old_blk, new_blk);
3617 delay_write->new_phyblock = new_blk;
3621 retval = ms_finish_write(chip, old_blk, new_blk,