Lines Matching refs:redunt

436 	u8 *ptr, id_buf[4], redunt[11];  in reset_xd()  local
683 retval = xd_read_redundant(chip, page_addr, redunt, 11); in reset_xd()
690 if (redunt[BLOCK_STATUS] != XD_GBLK) in reset_xd()
694 if (redunt[PAGE_STATUS] != XD_GPG) { in reset_xd()
697 redunt, 11); in reset_xd()
699 if (redunt[PAGE_STATUS] == XD_GPG) in reset_xd()
709 if (redunt[BLOCK_STATUS] == XD_GBLK && in reset_xd()
710 (redunt[PARITY] & XD_BA1_ALL0)) { in reset_xd()
741 static int xd_check_data_blank(u8 *redunt) in xd_check_data_blank() argument
746 if (redunt[PAGE_STATUS + i] != 0xFF) in xd_check_data_blank()
750 if ((redunt[PARITY] & (XD_ECC1_ALL1 | XD_ECC2_ALL1)) in xd_check_data_blank()
755 if (redunt[RESERVED0 + i] != 0xFF) in xd_check_data_blank()
762 static u16 xd_load_log_block_addr(u8 *redunt) in xd_load_log_block_addr() argument
766 if (redunt[PARITY] & XD_BA1_BA2_EQL) in xd_load_log_block_addr()
767 addr = ((u16)redunt[BLOCK_ADDR1_H] << 8) | in xd_load_log_block_addr()
768 redunt[BLOCK_ADDR1_L]; in xd_load_log_block_addr()
769 else if (redunt[PARITY] & XD_BA1_VALID) in xd_load_log_block_addr()
770 addr = ((u16)redunt[BLOCK_ADDR1_H] << 8) | in xd_load_log_block_addr()
771 redunt[BLOCK_ADDR1_L]; in xd_load_log_block_addr()
772 else if (redunt[PARITY] & XD_BA2_VALID) in xd_load_log_block_addr()
773 addr = ((u16)redunt[BLOCK_ADDR2_H] << 8) | in xd_load_log_block_addr()
774 redunt[BLOCK_ADDR2_L]; in xd_load_log_block_addr()
1294 u8 redunt[11]; in xd_build_l2p_tbl() local
1355 retval = xd_read_redundant(chip, page_addr, redunt, 11); in xd_build_l2p_tbl()
1359 if (redunt[BLOCK_STATUS] != 0xFF) { in xd_build_l2p_tbl()
1364 if (xd_check_data_blank(redunt)) { in xd_build_l2p_tbl()
1370 cur_fst_page_logoff = xd_load_log_block_addr(redunt); in xd_build_l2p_tbl()
1380 redunt[PAGE_STATUS] != XD_GPG) in xd_build_l2p_tbl()
1393 retval = xd_read_redundant(chip, page_addr, redunt, 11); in xd_build_l2p_tbl()
1397 cur_lst_page_logoff = xd_load_log_block_addr(redunt); in xd_build_l2p_tbl()
1406 redunt, 11); in xd_build_l2p_tbl()
1420 ent_lst_page_logoff = xd_load_log_block_addr(redunt); in xd_build_l2p_tbl()