old_blk 1622 drivers/staging/rts5208/ms.c static int ms_copy_page(struct rtsx_chip *chip, u16 old_blk, u16 new_blk, old_blk 1631 drivers/staging/rts5208/ms.c old_blk, new_blk, log_blk); old_blk 1668 drivers/staging/rts5208/ms.c retval = ms_read_extra_data(chip, old_blk, i, extra, old_blk 1686 drivers/staging/rts5208/ms.c data[2] = (u8)(old_blk >> 8); old_blk 1687 drivers/staging/rts5208/ms.c data[3] = (u8)old_blk; old_blk 1734 drivers/staging/rts5208/ms.c ms_write_extra_data(chip, old_blk, i, old_blk 1839 drivers/staging/rts5208/ms.c data[2] = (u8)(old_blk >> 8); old_blk 1840 drivers/staging/rts5208/ms.c data[3] = (u8)old_blk; old_blk 3123 drivers/staging/rts5208/ms.c static int ms_write_multiple_pages(struct rtsx_chip *chip, u16 old_blk, old_blk 3145 drivers/staging/rts5208/ms.c data[2] = (u8)(old_blk >> 8); old_blk 3146 drivers/staging/rts5208/ms.c data[3] = (u8)old_blk; old_blk 3315 drivers/staging/rts5208/ms.c static int ms_finish_write(struct rtsx_chip *chip, u16 old_blk, u16 new_blk, old_blk 3321 drivers/staging/rts5208/ms.c retval = ms_copy_page(chip, old_blk, new_blk, log_blk, old_blk 3326 drivers/staging/rts5208/ms.c seg_no = old_blk >> 9; old_blk 3330 drivers/staging/rts5208/ms.c ms_set_bad_block(chip, old_blk); old_blk 3332 drivers/staging/rts5208/ms.c retval = ms_erase_block(chip, old_blk); old_blk 3334 drivers/staging/rts5208/ms.c ms_set_unused_block(chip, old_blk); old_blk 3342 drivers/staging/rts5208/ms.c static int ms_prepare_write(struct rtsx_chip *chip, u16 old_blk, u16 new_blk, old_blk 3348 drivers/staging/rts5208/ms.c retval = ms_copy_page(chip, old_blk, new_blk, log_blk, old_blk 3399 drivers/staging/rts5208/ms.c u16 old_blk = 0, new_blk = 0, log_blk, total_sec_cnt = sector_cnt; old_blk 3451 drivers/staging/rts5208/ms.c old_blk = delay_write->old_phyblock; old_blk 3457 drivers/staging/rts5208/ms.c old_blk = delay_write->old_phyblock; old_blk 3467 drivers/staging/rts5208/ms.c old_blk = ms_get_l2p_tbl old_blk 3471 drivers/staging/rts5208/ms.c if ((old_blk == 0xFFFF) || (new_blk == 0xFFFF)) { old_blk 3477 drivers/staging/rts5208/ms.c retval = ms_prepare_write(chip, old_blk, new_blk, old_blk 3508 drivers/staging/rts5208/ms.c old_blk = ms_get_l2p_tbl(chip, seg_no, old_blk 3510 drivers/staging/rts5208/ms.c if (old_blk == 0xFFFF) { old_blk 3518 drivers/staging/rts5208/ms.c seg_no, old_blk, new_blk); old_blk 3533 drivers/staging/rts5208/ms.c old_blk, log_blk, old_blk 3537 drivers/staging/rts5208/ms.c retval = ms_write_multiple_pages(chip, old_blk, new_blk, old_blk 3556 drivers/staging/rts5208/ms.c retval = ms_erase_block(chip, old_blk); old_blk 3558 drivers/staging/rts5208/ms.c ms_set_unused_block(chip, old_blk); old_blk 3591 drivers/staging/rts5208/ms.c old_blk = ms_get_l2p_tbl(chip, seg_no, old_blk 3593 drivers/staging/rts5208/ms.c if (old_blk == 0xFFFF) { old_blk 3607 drivers/staging/rts5208/ms.c seg_no, old_blk, new_blk); old_blk 3616 drivers/staging/rts5208/ms.c delay_write->old_phyblock = old_blk; old_blk 3621 drivers/staging/rts5208/ms.c retval = ms_finish_write(chip, old_blk, new_blk, old_blk 1098 drivers/staging/rts5208/xd.c static int xd_copy_page(struct rtsx_chip *chip, u32 old_blk, u32 new_blk, old_blk 1107 drivers/staging/rts5208/xd.c old_blk, new_blk); old_blk 1112 drivers/staging/rts5208/xd.c if ((old_blk == BLK_NOT_FOUND) || (new_blk == BLK_NOT_FOUND)) old_blk 1115 drivers/staging/rts5208/xd.c old_page = (old_blk << xd_card->block_shift) + start_page; old_blk 1172 drivers/staging/rts5208/xd.c old_blk); old_blk 1625 drivers/staging/rts5208/xd.c u32 old_blk, u32 new_blk, u32 log_blk, u8 page_off) old_blk 1632 drivers/staging/rts5208/xd.c dev_dbg(rtsx_dev(chip), "old_blk = 0x%x, ", old_blk); old_blk 1642 drivers/staging/rts5208/xd.c if (old_blk == BLK_NOT_FOUND) { old_blk 1652 drivers/staging/rts5208/xd.c retval = xd_copy_page(chip, old_blk, new_blk, old_blk 1664 drivers/staging/rts5208/xd.c retval = xd_erase_block(chip, old_blk); old_blk 1667 drivers/staging/rts5208/xd.c xd_mark_bad_block(chip, old_blk); old_blk 1670 drivers/staging/rts5208/xd.c xd_set_unused_block(chip, old_blk); old_blk 1684 drivers/staging/rts5208/xd.c u32 old_blk, u32 new_blk, u32 log_blk, u8 page_off) old_blk 1689 drivers/staging/rts5208/xd.c __func__, old_blk, new_blk, log_blk, (int)page_off); old_blk 1692 drivers/staging/rts5208/xd.c retval = xd_copy_page(chip, old_blk, new_blk, 0, page_off); old_blk 1700 drivers/staging/rts5208/xd.c static int xd_write_multiple_pages(struct rtsx_chip *chip, u32 old_blk, old_blk 1712 drivers/staging/rts5208/xd.c __func__, old_blk, new_blk, log_blk); old_blk 1769 drivers/staging/rts5208/xd.c if (old_blk != BLK_NOT_FOUND) { old_blk 1770 drivers/staging/rts5208/xd.c retval = xd_erase_block(chip, old_blk); old_blk 1773 drivers/staging/rts5208/xd.c xd_mark_bad_block(chip, old_blk); old_blk 1776 drivers/staging/rts5208/xd.c xd_set_unused_block(chip, old_blk); old_blk 1838 drivers/staging/rts5208/xd.c u32 log_blk, old_blk = 0, new_blk = 0; old_blk 1894 drivers/staging/rts5208/xd.c old_blk = delay_write->old_phyblock; old_blk 1900 drivers/staging/rts5208/xd.c old_blk = delay_write->old_phyblock; old_blk 1910 drivers/staging/rts5208/xd.c old_blk = xd_get_l2p_tbl(chip, zone_no, log_off); old_blk 1912 drivers/staging/rts5208/xd.c if ((old_blk == BLK_NOT_FOUND) || old_blk 1919 drivers/staging/rts5208/xd.c retval = xd_prepare_write(chip, old_blk, new_blk, old_blk 1950 drivers/staging/rts5208/xd.c old_blk = xd_get_l2p_tbl(chip, zone_no, log_off); old_blk 1951 drivers/staging/rts5208/xd.c if (old_blk == BLK_NOT_FOUND) { old_blk 1958 drivers/staging/rts5208/xd.c dev_dbg(rtsx_dev(chip), "old_blk = 0x%x\n", old_blk); old_blk 1974 drivers/staging/rts5208/xd.c retval = xd_read_multiple_pages(chip, old_blk, log_blk, old_blk 1983 drivers/staging/rts5208/xd.c retval = xd_write_multiple_pages(chip, old_blk, old_blk 2015 drivers/staging/rts5208/xd.c old_blk = xd_get_l2p_tbl(chip, zone_no, log_off); old_blk 2016 drivers/staging/rts5208/xd.c if (old_blk == BLK_NOT_FOUND) { old_blk 2043 drivers/staging/rts5208/xd.c delay_write->old_phyblock = old_blk; old_blk 2054 drivers/staging/rts5208/xd.c retval = xd_finish_write(chip, old_blk, new_blk, old_blk 1701 fs/xfs/libxfs/xfs_da_btree.c struct xfs_da_state_blk *old_blk, old_blk 1718 fs/xfs/libxfs/xfs_da_btree.c old_info = old_blk->bp->b_addr; old_blk 1720 fs/xfs/libxfs/xfs_da_btree.c ASSERT(old_blk->magic == XFS_DA_NODE_MAGIC || old_blk 1721 fs/xfs/libxfs/xfs_da_btree.c old_blk->magic == XFS_DIR2_LEAFN_MAGIC || old_blk 1722 fs/xfs/libxfs/xfs_da_btree.c old_blk->magic == XFS_ATTR_LEAF_MAGIC); old_blk 1724 fs/xfs/libxfs/xfs_da_btree.c switch (old_blk->magic) { old_blk 1726 fs/xfs/libxfs/xfs_da_btree.c before = xfs_attr_leaf_order(old_blk->bp, new_blk->bp); old_blk 1729 fs/xfs/libxfs/xfs_da_btree.c before = xfs_dir2_leafn_order(dp, old_blk->bp, new_blk->bp); old_blk 1732 fs/xfs/libxfs/xfs_da_btree.c before = xfs_da3_node_order(dp, old_blk->bp, new_blk->bp); old_blk 1744 fs/xfs/libxfs/xfs_da_btree.c new_info->forw = cpu_to_be32(old_blk->blkno); old_blk 1755 fs/xfs/libxfs/xfs_da_btree.c ASSERT(be32_to_cpu(tmp_info->forw) == old_blk->blkno); old_blk 1766 fs/xfs/libxfs/xfs_da_btree.c new_info->back = cpu_to_be32(old_blk->blkno); old_blk 1776 fs/xfs/libxfs/xfs_da_btree.c ASSERT(be32_to_cpu(tmp_info->back) == old_blk->blkno); old_blk 1783 fs/xfs/libxfs/xfs_da_btree.c xfs_trans_log_buf(args->trans, old_blk->bp, 0, sizeof(*tmp_info) - 1); old_blk 172 fs/xfs/libxfs/xfs_da_btree.h int xfs_da3_blk_link(xfs_da_state_t *state, xfs_da_state_blk_t *old_blk,