Searched refs:old_blk (Results 1 - 4 of 4) sorted by relevance

/linux-4.4.14/drivers/staging/rts5208/
H A Dxd.c1196 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
H A Dms.c1862 static int ms_copy_page(struct rtsx_chip *chip, u16 old_blk, u16 new_blk, ms_copy_page() argument
1871 old_blk, new_blk, log_blk); ms_copy_page() local
1920 ms_read_extra_data(chip, old_blk, i, extra, MS_EXTRA_SIZE); ms_copy_page()
1937 data[2] = (u8)(old_blk >> 8); ms_copy_page()
1938 data[3] = (u8)old_blk; ms_copy_page()
1993 ms_write_extra_data(chip, old_blk, i, ms_copy_page()
2107 data[2] = (u8)(old_blk >> 8); ms_copy_page()
2108 data[3] = (u8)old_blk; ms_copy_page()
3506 static int ms_write_multiple_pages(struct rtsx_chip *chip, u16 old_blk, ms_write_multiple_pages() argument
3530 data[2] = (u8)(old_blk >> 8); ms_write_multiple_pages()
3531 data[3] = (u8)old_blk; ms_write_multiple_pages()
3729 static int ms_finish_write(struct rtsx_chip *chip, u16 old_blk, u16 new_blk, ms_finish_write() argument
3735 retval = ms_copy_page(chip, old_blk, new_blk, log_blk, ms_finish_write()
3742 seg_no = old_blk >> 9; ms_finish_write()
3746 ms_set_bad_block(chip, old_blk); ms_finish_write()
3748 retval = ms_erase_block(chip, old_blk); ms_finish_write()
3750 ms_set_unused_block(chip, old_blk); ms_finish_write()
3758 static int ms_prepare_write(struct rtsx_chip *chip, u16 old_blk, u16 new_blk, ms_prepare_write() argument
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
3875 old_blk = delay_write->old_phyblock; ms_rw_multi_sector()
3881 old_blk = delay_write->old_phyblock; ms_rw_multi_sector()
3892 old_blk = ms_get_l2p_tbl(chip, seg_no, ms_rw_multi_sector()
3895 if ((old_blk == 0xFFFF) || (new_blk == 0xFFFF)) { ms_rw_multi_sector()
3902 retval = ms_prepare_write(chip, old_blk, new_blk, ms_rw_multi_sector()
3935 old_blk = ms_get_l2p_tbl(chip, seg_no, ms_rw_multi_sector()
3937 if (old_blk == 0xFFFF) { ms_rw_multi_sector()
3945 dev_dbg(rtsx_dev(chip), "seg_no = %d, old_blk = 0x%x, new_blk = 0x%x\n", ms_rw_multi_sector()
3946 seg_no, old_blk, new_blk); ms_rw_multi_sector() local
3961 old_blk, log_blk, start_page, end_page, ms_rw_multi_sector()
3964 retval = ms_write_multiple_pages(chip, old_blk, ms_rw_multi_sector()
3984 retval = ms_erase_block(chip, old_blk); ms_rw_multi_sector()
3986 ms_set_unused_block(chip, old_blk); ms_rw_multi_sector()
4020 old_blk = ms_get_l2p_tbl(chip, seg_no, ms_rw_multi_sector()
4022 if (old_blk == 0xFFFF) { ms_rw_multi_sector()
4037 dev_dbg(rtsx_dev(chip), "seg_no = %d, old_blk = 0x%x, new_blk = 0x%x\n", ms_rw_multi_sector()
4038 seg_no, old_blk, new_blk); ms_rw_multi_sector() local
4047 delay_write->old_phyblock = old_blk; ms_rw_multi_sector()
4052 retval = ms_finish_write(chip, old_blk, new_blk, ms_rw_multi_sector()
/linux-4.4.14/fs/xfs/libxfs/
H A Dxfs_da_btree.c1647 struct xfs_da_state_blk *old_blk, xfs_da3_blk_link()
1664 old_info = old_blk->bp->b_addr; xfs_da3_blk_link()
1666 ASSERT(old_blk->magic == XFS_DA_NODE_MAGIC || xfs_da3_blk_link()
1667 old_blk->magic == XFS_DIR2_LEAFN_MAGIC || xfs_da3_blk_link()
1668 old_blk->magic == XFS_ATTR_LEAF_MAGIC); xfs_da3_blk_link()
1670 switch (old_blk->magic) { xfs_da3_blk_link()
1672 before = xfs_attr_leaf_order(old_blk->bp, new_blk->bp); xfs_da3_blk_link()
1675 before = xfs_dir2_leafn_order(dp, old_blk->bp, new_blk->bp); xfs_da3_blk_link()
1678 before = xfs_da3_node_order(dp, old_blk->bp, new_blk->bp); xfs_da3_blk_link()
1690 new_info->forw = cpu_to_be32(old_blk->blkno); xfs_da3_blk_link()
1701 ASSERT(be32_to_cpu(tmp_info->forw) == old_blk->blkno); xfs_da3_blk_link()
1712 new_info->back = cpu_to_be32(old_blk->blkno); xfs_da3_blk_link()
1722 ASSERT(be32_to_cpu(tmp_info->back) == old_blk->blkno); xfs_da3_blk_link()
1729 xfs_trans_log_buf(args->trans, old_blk->bp, 0, sizeof(*tmp_info) - 1); xfs_da3_blk_link()
1645 xfs_da3_blk_link( struct xfs_da_state *state, struct xfs_da_state_blk *old_blk, struct xfs_da_state_blk *new_blk) xfs_da3_blk_link() argument
H A Dxfs_da_btree.h185 int xfs_da3_blk_link(xfs_da_state_t *state, xfs_da_state_blk_t *old_blk,

Completed in 333 milliseconds