xd_card 481 drivers/staging/rts5208/rtsx.c struct xd_info *xd_card = &chip->xd_card; xd_card 485 drivers/staging/rts5208/rtsx.c xd_card->cleanup_counter = 0; xd_card 27 drivers/staging/rts5208/rtsx_card.c struct xd_info *xd_card = &chip->xd_card; xd_card 42 drivers/staging/rts5208/rtsx_card.c if (xd_card->delay_write.delay_write_flag) { xd_card 44 drivers/staging/rts5208/rtsx_card.c xd_card->cleanup_counter++; xd_card 46 drivers/staging/rts5208/rtsx_card.c xd_card->cleanup_counter = 0; xd_card 74 drivers/staging/rts5208/rtsx_card.c if (xd_card->cleanup_counter > POLLING_WAIT_CNT) xd_card 757 drivers/staging/rts5208/rtsx_chip.c struct xd_info *xd_card = &chip->xd_card; xd_card 767 drivers/staging/rts5208/rtsx_chip.c memset(xd_card, 0, sizeof(struct xd_info)); xd_card 771 drivers/staging/rts5208/rtsx_chip.h struct xd_info xd_card; xd_card 1399 drivers/staging/rts5208/rtsx_scsi.c struct xd_info *xd_card = &chip->xd_card; xd_card 1405 drivers/staging/rts5208/rtsx_scsi.c xd_card->xd_clock = srb->cmnd[5]; xd_card 1460 drivers/staging/rts5208/rtsx_scsi.c struct xd_info *xd_card = &chip->xd_card; xd_card 1467 drivers/staging/rts5208/rtsx_scsi.c tmp = (u8)(xd_card->xd_clock); xd_card 29 drivers/staging/rts5208/xd.c struct xd_info *xd_card = &chip->xd_card; xd_card 31 drivers/staging/rts5208/xd.c xd_card->err_code = err_code; xd_card 36 drivers/staging/rts5208/xd.c struct xd_info *xd_card = &chip->xd_card; xd_card 38 drivers/staging/rts5208/xd.c return (xd_card->err_code == err_code); xd_card 43 drivers/staging/rts5208/xd.c struct xd_info *xd_card = &chip->xd_card; xd_card 47 drivers/staging/rts5208/xd.c xd_card->xd_clock = 47; xd_card 49 drivers/staging/rts5208/xd.c xd_card->xd_clock = CLK_50; xd_card 51 drivers/staging/rts5208/xd.c retval = switch_clock(chip, xd_card->xd_clock); xd_card 60 drivers/staging/rts5208/xd.c struct xd_info *xd_card = &chip->xd_card; xd_card 67 drivers/staging/rts5208/xd.c retval = switch_clock(chip, xd_card->xd_clock); xd_card 106 drivers/staging/rts5208/xd.c struct xd_info *xd_card = &chip->xd_card; xd_card 117 drivers/staging/rts5208/xd.c xd_card->addr_cycle | xd_card 129 drivers/staging/rts5208/xd.c (xd_card->addr_cycle - 1) | XD_CALC_ECC | xd_card 441 drivers/staging/rts5208/xd.c struct xd_info *xd_card = &chip->xd_card; xd_card 577 drivers/staging/rts5208/xd.c xd_card->device_code = id_buf[1]; xd_card 580 drivers/staging/rts5208/xd.c switch (xd_card->device_code) { xd_card 583 drivers/staging/rts5208/xd.c xd_card->block_shift = 4; xd_card 584 drivers/staging/rts5208/xd.c xd_card->page_off = 0x0F; xd_card 585 drivers/staging/rts5208/xd.c xd_card->addr_cycle = 3; xd_card 586 drivers/staging/rts5208/xd.c xd_card->zone_cnt = 1; xd_card 587 drivers/staging/rts5208/xd.c xd_card->capacity = 8000; xd_card 588 drivers/staging/rts5208/xd.c XD_SET_4MB(xd_card); xd_card 591 drivers/staging/rts5208/xd.c xd_card->block_shift = 4; xd_card 592 drivers/staging/rts5208/xd.c xd_card->page_off = 0x0F; xd_card 593 drivers/staging/rts5208/xd.c xd_card->addr_cycle = 3; xd_card 594 drivers/staging/rts5208/xd.c xd_card->zone_cnt = 1; xd_card 595 drivers/staging/rts5208/xd.c xd_card->capacity = 16000; xd_card 598 drivers/staging/rts5208/xd.c XD_PAGE_512(xd_card); xd_card 599 drivers/staging/rts5208/xd.c xd_card->addr_cycle = 3; xd_card 600 drivers/staging/rts5208/xd.c xd_card->zone_cnt = 1; xd_card 601 drivers/staging/rts5208/xd.c xd_card->capacity = 32000; xd_card 604 drivers/staging/rts5208/xd.c XD_PAGE_512(xd_card); xd_card 605 drivers/staging/rts5208/xd.c xd_card->addr_cycle = 3; xd_card 606 drivers/staging/rts5208/xd.c xd_card->zone_cnt = 2; xd_card 607 drivers/staging/rts5208/xd.c xd_card->capacity = 64000; xd_card 610 drivers/staging/rts5208/xd.c XD_PAGE_512(xd_card); xd_card 611 drivers/staging/rts5208/xd.c xd_card->addr_cycle = 4; xd_card 612 drivers/staging/rts5208/xd.c xd_card->zone_cnt = 4; xd_card 613 drivers/staging/rts5208/xd.c xd_card->capacity = 128000; xd_card 616 drivers/staging/rts5208/xd.c XD_PAGE_512(xd_card); xd_card 617 drivers/staging/rts5208/xd.c xd_card->addr_cycle = 4; xd_card 618 drivers/staging/rts5208/xd.c xd_card->zone_cnt = 8; xd_card 619 drivers/staging/rts5208/xd.c xd_card->capacity = 256000; xd_card 622 drivers/staging/rts5208/xd.c XD_PAGE_512(xd_card); xd_card 623 drivers/staging/rts5208/xd.c xd_card->addr_cycle = 4; xd_card 624 drivers/staging/rts5208/xd.c xd_card->zone_cnt = 16; xd_card 625 drivers/staging/rts5208/xd.c xd_card->capacity = 512000; xd_card 628 drivers/staging/rts5208/xd.c XD_PAGE_512(xd_card); xd_card 629 drivers/staging/rts5208/xd.c xd_card->addr_cycle = 4; xd_card 630 drivers/staging/rts5208/xd.c xd_card->zone_cnt = 32; xd_card 631 drivers/staging/rts5208/xd.c xd_card->capacity = 1024000; xd_card 634 drivers/staging/rts5208/xd.c XD_PAGE_512(xd_card); xd_card 635 drivers/staging/rts5208/xd.c xd_card->addr_cycle = 4; xd_card 636 drivers/staging/rts5208/xd.c xd_card->zone_cnt = 64; xd_card 637 drivers/staging/rts5208/xd.c xd_card->capacity = 2048000; xd_card 640 drivers/staging/rts5208/xd.c XD_PAGE_512(xd_card); xd_card 641 drivers/staging/rts5208/xd.c xd_card->addr_cycle = 4; xd_card 642 drivers/staging/rts5208/xd.c xd_card->zone_cnt = 128; xd_card 643 drivers/staging/rts5208/xd.c xd_card->capacity = 4096000; xd_card 655 drivers/staging/rts5208/xd.c if (id_buf[1] != xd_card->device_code) xd_card 664 drivers/staging/rts5208/xd.c xd_card->block_shift = 0; xd_card 665 drivers/staging/rts5208/xd.c xd_card->page_off = 0; xd_card 666 drivers/staging/rts5208/xd.c xd_card->addr_cycle = 0; xd_card 667 drivers/staging/rts5208/xd.c xd_card->capacity = 0; xd_card 687 drivers/staging/rts5208/xd.c page_addr = (u32)i << xd_card->block_shift; xd_card 732 drivers/staging/rts5208/xd.c xd_card->cis_block = (u16)i; xd_card 739 drivers/staging/rts5208/xd.c dev_dbg(rtsx_dev(chip), "CIS block: 0x%x\n", xd_card->cis_block); xd_card 740 drivers/staging/rts5208/xd.c if (xd_card->cis_block == 0xFFFF) xd_card 743 drivers/staging/rts5208/xd.c chip->capacity[chip->card2lun[XD_CARD]] = xd_card->capacity; xd_card 788 drivers/staging/rts5208/xd.c struct xd_info *xd_card = &chip->xd_card; xd_card 792 drivers/staging/rts5208/xd.c xd_card->zone_cnt); xd_card 794 drivers/staging/rts5208/xd.c if (xd_card->zone_cnt < 1) xd_card 797 drivers/staging/rts5208/xd.c size = xd_card->zone_cnt * sizeof(struct zone_entry); xd_card 800 drivers/staging/rts5208/xd.c xd_card->zone = vmalloc(size); xd_card 801 drivers/staging/rts5208/xd.c if (!xd_card->zone) xd_card 804 drivers/staging/rts5208/xd.c for (i = 0; i < xd_card->zone_cnt; i++) { xd_card 805 drivers/staging/rts5208/xd.c xd_card->zone[i].build_flag = 0; xd_card 806 drivers/staging/rts5208/xd.c xd_card->zone[i].l2p_table = NULL; xd_card 807 drivers/staging/rts5208/xd.c xd_card->zone[i].free_table = NULL; xd_card 808 drivers/staging/rts5208/xd.c xd_card->zone[i].get_index = 0; xd_card 809 drivers/staging/rts5208/xd.c xd_card->zone[i].set_index = 0; xd_card 810 drivers/staging/rts5208/xd.c xd_card->zone[i].unused_blk_cnt = 0; xd_card 833 drivers/staging/rts5208/xd.c struct xd_info *xd_card = &chip->xd_card; xd_card 838 drivers/staging/rts5208/xd.c if (zone_no >= xd_card->zone_cnt) { xd_card 840 drivers/staging/rts5208/xd.c zone_no, xd_card->zone_cnt); xd_card 843 drivers/staging/rts5208/xd.c zone = &xd_card->zone[zone_no]; xd_card 868 drivers/staging/rts5208/xd.c struct xd_info *xd_card = &chip->xd_card; xd_card 872 drivers/staging/rts5208/xd.c if (zone_no >= xd_card->zone_cnt) { xd_card 874 drivers/staging/rts5208/xd.c zone_no, xd_card->zone_cnt); xd_card 877 drivers/staging/rts5208/xd.c zone = &xd_card->zone[zone_no]; xd_card 907 drivers/staging/rts5208/xd.c struct xd_info *xd_card = &chip->xd_card; xd_card 910 drivers/staging/rts5208/xd.c zone = &xd_card->zone[zone_no]; xd_card 916 drivers/staging/rts5208/xd.c struct xd_info *xd_card = &chip->xd_card; xd_card 920 drivers/staging/rts5208/xd.c zone = &xd_card->zone[zone_no]; xd_card 947 drivers/staging/rts5208/xd.c 0, xd_card->page_off + 1); xd_card 965 drivers/staging/rts5208/xd.c struct xd_info *xd_card = &chip->xd_card; xd_card 968 drivers/staging/rts5208/xd.c memset(xd_card, 0, sizeof(struct xd_info)); xd_card 970 drivers/staging/rts5208/xd.c xd_card->block_shift = 0; xd_card 971 drivers/staging/rts5208/xd.c xd_card->page_off = 0; xd_card 972 drivers/staging/rts5208/xd.c xd_card->addr_cycle = 0; xd_card 973 drivers/staging/rts5208/xd.c xd_card->capacity = 0; xd_card 974 drivers/staging/rts5208/xd.c xd_card->zone_cnt = 0; xd_card 975 drivers/staging/rts5208/xd.c xd_card->cis_block = 0xFFFF; xd_card 976 drivers/staging/rts5208/xd.c xd_card->delay_write.delay_write_flag = 0; xd_card 995 drivers/staging/rts5208/xd.c struct xd_info *xd_card = &chip->xd_card; xd_card 1018 drivers/staging/rts5208/xd.c page_addr = phy_blk << xd_card->block_shift; xd_card 1023 drivers/staging/rts5208/xd.c xd_card->page_off + 1); xd_card 1047 drivers/staging/rts5208/xd.c struct xd_info *xd_card = &chip->xd_card; xd_card 1067 drivers/staging/rts5208/xd.c page_addr = (phy_blk << xd_card->block_shift) + start_page; xd_card 1101 drivers/staging/rts5208/xd.c struct xd_info *xd_card = &chip->xd_card; xd_card 1115 drivers/staging/rts5208/xd.c old_page = (old_blk << xd_card->block_shift) + start_page; xd_card 1116 drivers/staging/rts5208/xd.c new_page = (new_blk << xd_card->block_shift) + start_page; xd_card 1118 drivers/staging/rts5208/xd.c XD_CLR_BAD_NEWBLK(xd_card); xd_card 1170 drivers/staging/rts5208/xd.c XD_SET_BAD_OLDBLK(xd_card); xd_card 1180 drivers/staging/rts5208/xd.c if (XD_CHK_BAD_OLDBLK(xd_card)) xd_card 1200 drivers/staging/rts5208/xd.c XD_SET_BAD_NEWBLK(xd_card); xd_card 1241 drivers/staging/rts5208/xd.c struct xd_info *xd_card = &chip->xd_card; xd_card 1249 drivers/staging/rts5208/xd.c page_addr = phy_blk << xd_card->block_shift; xd_card 1295 drivers/staging/rts5208/xd.c struct xd_info *xd_card = &chip->xd_card; xd_card 1305 drivers/staging/rts5208/xd.c if (!xd_card->zone) { xd_card 1311 drivers/staging/rts5208/xd.c if (xd_card->zone[zone_no].build_flag) { xd_card 1317 drivers/staging/rts5208/xd.c zone = &xd_card->zone[zone_no]; xd_card 1334 drivers/staging/rts5208/xd.c if (xd_card->cis_block == 0xFFFF) xd_card 1337 drivers/staging/rts5208/xd.c start = xd_card->cis_block + 1; xd_card 1338 drivers/staging/rts5208/xd.c if (XD_CHK_4MB(xd_card)) { xd_card 1359 drivers/staging/rts5208/xd.c u32 page_addr = i << xd_card->block_shift; xd_card 1388 drivers/staging/rts5208/xd.c XD_SET_MBR_FAIL(xd_card); xd_card 1398 drivers/staging/rts5208/xd.c page_addr = ((i + 1) << xd_card->block_shift) - 1; xd_card 1409 drivers/staging/rts5208/xd.c xd_card->block_shift) - 1; xd_card 1447 drivers/staging/rts5208/xd.c if (XD_CHK_4MB(xd_card)) xd_card 1503 drivers/staging/rts5208/xd.c struct xd_info *xd_card = &chip->xd_card; xd_card 1518 drivers/staging/rts5208/xd.c page_addr = ((u32)i) << xd_card->block_shift; xd_card 1531 drivers/staging/rts5208/xd.c page_addr = (phy_blk << xd_card->block_shift) + start_page; xd_card 1597 drivers/staging/rts5208/xd.c XD_CLR_BAD_OLDBLK(xd_card); xd_card 1602 drivers/staging/rts5208/xd.c xd_card->page_off + 1); xd_card 1604 drivers/staging/rts5208/xd.c if (!XD_CHK_BAD_NEWBLK(xd_card)) { xd_card 1609 drivers/staging/rts5208/xd.c XD_CLR_BAD_NEWBLK(xd_card); xd_card 1611 drivers/staging/rts5208/xd.c XD_CLR_BAD_OLDBLK(xd_card); xd_card 1617 drivers/staging/rts5208/xd.c XD_CLR_BAD_OLDBLK(xd_card); xd_card 1627 drivers/staging/rts5208/xd.c struct xd_info *xd_card = &chip->xd_card; xd_card 1636 drivers/staging/rts5208/xd.c if (page_off > xd_card->page_off) xd_card 1644 drivers/staging/rts5208/xd.c page_off, xd_card->page_off + 1); xd_card 1653 drivers/staging/rts5208/xd.c page_off, xd_card->page_off + 1); xd_card 1655 drivers/staging/rts5208/xd.c if (!XD_CHK_BAD_NEWBLK(xd_card)) { xd_card 1660 drivers/staging/rts5208/xd.c XD_CLR_BAD_NEWBLK(xd_card); xd_card 1666 drivers/staging/rts5208/xd.c if (XD_CHK_BAD_OLDBLK(xd_card)) { xd_card 1668 drivers/staging/rts5208/xd.c XD_CLR_BAD_OLDBLK(xd_card); xd_card 1674 drivers/staging/rts5208/xd.c XD_CLR_BAD_OLDBLK(xd_card); xd_card 1705 drivers/staging/rts5208/xd.c struct xd_info *xd_card = &chip->xd_card; xd_card 1721 drivers/staging/rts5208/xd.c page_addr = (new_blk << xd_card->block_shift) + start_page; xd_card 1766 drivers/staging/rts5208/xd.c if (end_page == (xd_card->page_off + 1)) { xd_card 1767 drivers/staging/rts5208/xd.c xd_card->delay_write.delay_write_flag = 0; xd_card 1772 drivers/staging/rts5208/xd.c if (XD_CHK_BAD_OLDBLK(xd_card)) { xd_card 1774 drivers/staging/rts5208/xd.c XD_CLR_BAD_OLDBLK(xd_card); xd_card 1780 drivers/staging/rts5208/xd.c XD_CLR_BAD_OLDBLK(xd_card); xd_card 1804 drivers/staging/rts5208/xd.c struct xd_info *xd_card = &chip->xd_card; xd_card 1805 drivers/staging/rts5208/xd.c struct xd_delay_write_tag *delay_write = &xd_card->delay_write; xd_card 1831 drivers/staging/rts5208/xd.c struct xd_info *xd_card = &chip->xd_card; xd_card 1834 drivers/staging/rts5208/xd.c struct xd_delay_write_tag *delay_write = &xd_card->delay_write; xd_card 1845 drivers/staging/rts5208/xd.c xd_card->cleanup_counter = 0; xd_card 1862 drivers/staging/rts5208/xd.c log_blk = start_sector >> xd_card->block_shift; xd_card 1863 drivers/staging/rts5208/xd.c start_page = (u8)start_sector & xd_card->page_off; xd_card 1867 drivers/staging/rts5208/xd.c if (xd_card->zone[zone_no].build_flag == 0) { xd_card 1967 drivers/staging/rts5208/xd.c if ((start_page + total_sec_cnt) > (xd_card->page_off + 1)) xd_card 1968 drivers/staging/rts5208/xd.c end_page = xd_card->page_off + 1; xd_card 2005 drivers/staging/rts5208/xd.c if (xd_card->zone[zone_no].build_flag == 0) { xd_card 2040 drivers/staging/rts5208/xd.c (end_page != (xd_card->page_off + 1))) { xd_card 2075 drivers/staging/rts5208/xd.c struct xd_info *xd_card = &chip->xd_card; xd_card 2078 drivers/staging/rts5208/xd.c if (xd_card->zone) { xd_card 2079 drivers/staging/rts5208/xd.c for (i = 0; i < xd_card->zone_cnt; i++) { xd_card 2080 drivers/staging/rts5208/xd.c vfree(xd_card->zone[i].l2p_table); xd_card 2081 drivers/staging/rts5208/xd.c xd_card->zone[i].l2p_table = NULL; xd_card 2082 drivers/staging/rts5208/xd.c vfree(xd_card->zone[i].free_table); xd_card 2083 drivers/staging/rts5208/xd.c xd_card->zone[i].free_table = NULL; xd_card 2085 drivers/staging/rts5208/xd.c vfree(xd_card->zone); xd_card 2086 drivers/staging/rts5208/xd.c xd_card->zone = NULL; xd_card 2093 drivers/staging/rts5208/xd.c struct xd_info *xd_card = &chip->xd_card; xd_card 2095 drivers/staging/rts5208/xd.c if (xd_card->delay_write.delay_write_flag) { xd_card 2098 drivers/staging/rts5208/xd.c xd_card->cleanup_counter = 0; xd_card 2138 drivers/staging/rts5208/xd.c struct xd_info *xd_card = &chip->xd_card; xd_card 2145 drivers/staging/rts5208/xd.c xd_card->delay_write.delay_write_flag = 0; xd_card 102 drivers/staging/rts5208/xd.h #define XD_PAGE_512(xd_card) \ xd_card 104 drivers/staging/rts5208/xd.h (xd_card)->block_shift = 5; \ xd_card 105 drivers/staging/rts5208/xd.h (xd_card)->page_off = 0x1F; \ xd_card 108 drivers/staging/rts5208/xd.h #define XD_SET_BAD_NEWBLK(xd_card) ((xd_card)->multi_flag |= 0x01) xd_card 109 drivers/staging/rts5208/xd.h #define XD_CLR_BAD_NEWBLK(xd_card) ((xd_card)->multi_flag &= ~0x01) xd_card 110 drivers/staging/rts5208/xd.h #define XD_CHK_BAD_NEWBLK(xd_card) ((xd_card)->multi_flag & 0x01) xd_card 112 drivers/staging/rts5208/xd.h #define XD_SET_BAD_OLDBLK(xd_card) ((xd_card)->multi_flag |= 0x02) xd_card 113 drivers/staging/rts5208/xd.h #define XD_CLR_BAD_OLDBLK(xd_card) ((xd_card)->multi_flag &= ~0x02) xd_card 114 drivers/staging/rts5208/xd.h #define XD_CHK_BAD_OLDBLK(xd_card) ((xd_card)->multi_flag & 0x02) xd_card 116 drivers/staging/rts5208/xd.h #define XD_SET_MBR_FAIL(xd_card) ((xd_card)->multi_flag |= 0x04) xd_card 117 drivers/staging/rts5208/xd.h #define XD_CLR_MBR_FAIL(xd_card) ((xd_card)->multi_flag &= ~0x04) xd_card 118 drivers/staging/rts5208/xd.h #define XD_CHK_MBR_FAIL(xd_card) ((xd_card)->multi_flag & 0x04) xd_card 120 drivers/staging/rts5208/xd.h #define XD_SET_ECC_FLD_ERR(xd_card) ((xd_card)->multi_flag |= 0x08) xd_card 121 drivers/staging/rts5208/xd.h #define XD_CLR_ECC_FLD_ERR(xd_card) ((xd_card)->multi_flag &= ~0x08) xd_card 122 drivers/staging/rts5208/xd.h #define XD_CHK_ECC_FLD_ERR(xd_card) ((xd_card)->multi_flag & 0x08) xd_card 124 drivers/staging/rts5208/xd.h #define XD_SET_4MB(xd_card) ((xd_card)->multi_flag |= 0x10) xd_card 125 drivers/staging/rts5208/xd.h #define XD_CLR_4MB(xd_card) ((xd_card)->multi_flag &= ~0x10) xd_card 126 drivers/staging/rts5208/xd.h #define XD_CHK_4MB(xd_card) ((xd_card)->multi_flag & 0x10) xd_card 128 drivers/staging/rts5208/xd.h #define XD_SET_ECC_ERR(xd_card) ((xd_card)->multi_flag |= 0x40) xd_card 129 drivers/staging/rts5208/xd.h #define XD_CLR_ECC_ERR(xd_card) ((xd_card)->multi_flag &= ~0x40) xd_card 130 drivers/staging/rts5208/xd.h #define XD_CHK_ECC_ERR(xd_card) ((xd_card)->multi_flag & 0x40)