ms_card 22 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 24 drivers/staging/rts5208/ms.c ms_card->err_code = err_code; ms_card 29 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 31 drivers/staging/rts5208/ms.c return (ms_card->err_code == err_code); ms_card 42 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 78 drivers/staging/rts5208/ms.c if (CHK_MSPRO(ms_card) && !(*ptr & 0x80)) { ms_card 165 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 206 drivers/staging/rts5208/ms.c if (CHK_MSPRO(ms_card) && !(val & 0x80)) { ms_card 229 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 271 drivers/staging/rts5208/ms.c if (CHK_MSPRO(ms_card) && !(val & 0x80)) { ms_card 336 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 339 drivers/staging/rts5208/ms.c if (CHK_HG8BIT(ms_card)) { ms_card 341 drivers/staging/rts5208/ms.c ms_card->ms_clock = chip->asic_ms_hg_clk; ms_card 343 drivers/staging/rts5208/ms.c ms_card->ms_clock = chip->fpga_ms_hg_clk; ms_card 345 drivers/staging/rts5208/ms.c } else if (CHK_MSPRO(ms_card) || CHK_MS4BIT(ms_card)) { ms_card 347 drivers/staging/rts5208/ms.c ms_card->ms_clock = chip->asic_ms_4bit_clk; ms_card 349 drivers/staging/rts5208/ms.c ms_card->ms_clock = chip->fpga_ms_4bit_clk; ms_card 353 drivers/staging/rts5208/ms.c ms_card->ms_clock = chip->asic_ms_1bit_clk; ms_card 355 drivers/staging/rts5208/ms.c ms_card->ms_clock = chip->fpga_ms_1bit_clk; ms_card 358 drivers/staging/rts5208/ms.c retval = switch_clock(chip, ms_card->ms_clock); ms_card 371 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 378 drivers/staging/rts5208/ms.c retval = switch_clock(chip, ms_card->ms_clock); ms_card 493 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 497 drivers/staging/rts5208/ms.c ms_card->ms_type = 0; ms_card 498 drivers/staging/rts5208/ms.c ms_card->check_ms_flow = 0; ms_card 499 drivers/staging/rts5208/ms.c ms_card->switch_8bit_fail = 0; ms_card 500 drivers/staging/rts5208/ms.c ms_card->delay_write.delay_write_flag = 0; ms_card 502 drivers/staging/rts5208/ms.c ms_card->pro_under_formatting = 0; ms_card 589 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 613 drivers/staging/rts5208/ms.c ms_card->check_ms_flow = 1; ms_card 624 drivers/staging/rts5208/ms.c ms_card->check_ms_flow = 1; ms_card 646 drivers/staging/rts5208/ms.c ms_card->check_ms_flow = 1; ms_card 650 drivers/staging/rts5208/ms.c ms_card->ms_type |= TYPE_MSPRO; ms_card 658 drivers/staging/rts5208/ms.c ms_card->ms_type &= 0x0F; ms_card 661 drivers/staging/rts5208/ms.c ms_card->ms_type |= MS_HG; ms_card 663 drivers/staging/rts5208/ms.c ms_card->ms_type &= 0x0F; ms_card 741 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 761 drivers/staging/rts5208/ms.c ms_card->ms_type |= MS_8BIT; ms_card 778 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 824 drivers/staging/rts5208/ms.c if (CHK_MSHG(ms_card) && chip->support_ms_8bit && switch_8bit_bus) { ms_card 827 drivers/staging/rts5208/ms.c ms_card->switch_8bit_fail = 1; ms_card 875 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 892 drivers/staging/rts5208/ms.c if (CHK_MS8BIT(ms_card)) ms_card 1012 drivers/staging/rts5208/ms.c ms_card->ms_type |= MS_XC; ms_card 1062 drivers/staging/rts5208/ms.c if (CHK_MSXC(ms_card)) { ms_card 1091 drivers/staging/rts5208/ms.c memcpy(ms_card->raw_sys_info, buf + sys_info_addr, 96); ms_card 1093 drivers/staging/rts5208/ms.c memcpy(ms_card->raw_model_name, buf + model_name_addr, 48); ms_card 1099 drivers/staging/rts5208/ms.c if (CHK_MSXC(ms_card)) { ms_card 1127 drivers/staging/rts5208/ms.c if (CHK_MSXC(ms_card)) { ms_card 1129 drivers/staging/rts5208/ms.c ms_card->capacity = xc_total_blk * xc_blk_size; ms_card 1132 drivers/staging/rts5208/ms.c ms_card->capacity = total_blk * blk_size; ms_card 1135 drivers/staging/rts5208/ms.c ms_card->capacity = total_blk * blk_size; ms_card 1136 drivers/staging/rts5208/ms.c chip->capacity[chip->card2lun[MS_CARD]] = ms_card->capacity; ms_card 1149 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 1167 drivers/staging/rts5208/ms.c if (ms_card->switch_8bit_fail) { ms_card 1181 drivers/staging/rts5208/ms.c if (CHK_HG8BIT(ms_card)) ms_card 1184 drivers/staging/rts5208/ms.c if (change_power_class && CHK_MSXC(ms_card)) { ms_card 1199 drivers/staging/rts5208/ms.c (ms_card->raw_sys_info[46] & 0x18) >> 3; ms_card 1222 drivers/staging/rts5208/ms.c if (CHK_HG8BIT(ms_card)) ms_card 1254 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 1263 drivers/staging/rts5208/ms.c if (CHK_MS4BIT(ms_card)) { ms_card 1335 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 1347 drivers/staging/rts5208/ms.c if (CHK_MS4BIT(ms_card)) ms_card 1391 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 1400 drivers/staging/rts5208/ms.c if (CHK_MS4BIT(ms_card)) ms_card 1460 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 1475 drivers/staging/rts5208/ms.c if (CHK_MS4BIT(ms_card)) ms_card 1518 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 1529 drivers/staging/rts5208/ms.c if (CHK_MS4BIT(ms_card)) ms_card 1625 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 1680 drivers/staging/rts5208/ms.c if (CHK_MS4BIT(ms_card)) ms_card 1739 drivers/staging/rts5208/ms.c MS_SET_BAD_BLOCK_FLG(ms_card); ms_card 1775 drivers/staging/rts5208/ms.c if (CHK_MS4BIT(ms_card)) ms_card 1833 drivers/staging/rts5208/ms.c if (CHK_MS4BIT(ms_card)) ms_card 1881 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 1893 drivers/staging/rts5208/ms.c ms_card->ms_type |= TYPE_MS; ms_card 1930 drivers/staging/rts5208/ms.c ms_card->boot_block = i; ms_card 1943 drivers/staging/rts5208/ms.c retval = ms_read_page(chip, ms_card->boot_block, j); ms_card 1946 drivers/staging/rts5208/ms.c i = ms_card->boot_block + 1; ms_card 1953 drivers/staging/rts5208/ms.c retval = ms_read_page(chip, ms_card->boot_block, 0); ms_card 1968 drivers/staging/rts5208/ms.c memcpy(ms_card->raw_sys_info, ptr, 96); ms_card 1999 drivers/staging/rts5208/ms.c i = ms_card->boot_block + 1; ms_card 2007 drivers/staging/rts5208/ms.c i = ms_card->boot_block + 1; ms_card 2018 drivers/staging/rts5208/ms.c ms_card->block_shift = 5; ms_card 2019 drivers/staging/rts5208/ms.c ms_card->page_off = 0x1F; ms_card 2022 drivers/staging/rts5208/ms.c ms_card->block_shift = 4; ms_card 2023 drivers/staging/rts5208/ms.c ms_card->page_off = 0x0F; ms_card 2027 drivers/staging/rts5208/ms.c ms_card->total_block = ((u16)ptr[8] << 8) | ptr[9]; ms_card 2032 drivers/staging/rts5208/ms.c if (ms_card->block_shift == 4) { /* 4MB or 8MB */ ms_card 2034 drivers/staging/rts5208/ms.c ms_card->capacity = 0x1EE0; ms_card 2036 drivers/staging/rts5208/ms.c ms_card->capacity = 0x3DE0; ms_card 2040 drivers/staging/rts5208/ms.c ms_card->capacity = 0x7BC0; ms_card 2042 drivers/staging/rts5208/ms.c ms_card->capacity = 0xF7C0; ms_card 2044 drivers/staging/rts5208/ms.c ms_card->capacity = 0x1EF80; ms_card 2046 drivers/staging/rts5208/ms.c ms_card->capacity = 0x3DF00; ms_card 2053 drivers/staging/rts5208/ms.c ms_card->capacity = ((u32)eblock_cnt - 2) << ms_card->block_shift; ms_card 2056 drivers/staging/rts5208/ms.c chip->capacity[chip->card2lun[MS_CARD]] = ms_card->capacity; ms_card 2085 drivers/staging/rts5208/ms.c ms_card->ms_type |= MS_4BIT; ms_card 2088 drivers/staging/rts5208/ms.c if (CHK_MS4BIT(ms_card)) ms_card 2098 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 2103 drivers/staging/rts5208/ms.c ms_card->segment_cnt = ms_card->total_block >> 9; ms_card 2105 drivers/staging/rts5208/ms.c ms_card->segment_cnt); ms_card 2107 drivers/staging/rts5208/ms.c size = ms_card->segment_cnt * sizeof(struct zone_entry); ms_card 2108 drivers/staging/rts5208/ms.c ms_card->segment = vzalloc(size); ms_card 2109 drivers/staging/rts5208/ms.c if (!ms_card->segment) ms_card 2112 drivers/staging/rts5208/ms.c retval = ms_read_page(chip, ms_card->boot_block, 1); ms_card 2117 drivers/staging/rts5208/ms.c for (i = 0; i < (((ms_card->total_block >> 9) * 10) + 1); i++) { ms_card 2134 drivers/staging/rts5208/ms.c block_no = ms_card->segment[seg_no].disable_count++; ms_card 2135 drivers/staging/rts5208/ms.c ms_card->segment[seg_no].defect_list[block_no] = defect_block; ms_card 2138 drivers/staging/rts5208/ms.c for (i = 0; i < ms_card->segment_cnt; i++) { ms_card 2139 drivers/staging/rts5208/ms.c ms_card->segment[i].build_flag = 0; ms_card 2140 drivers/staging/rts5208/ms.c ms_card->segment[i].l2p_table = NULL; ms_card 2141 drivers/staging/rts5208/ms.c ms_card->segment[i].free_table = NULL; ms_card 2142 drivers/staging/rts5208/ms.c ms_card->segment[i].get_index = 0; ms_card 2143 drivers/staging/rts5208/ms.c ms_card->segment[i].set_index = 0; ms_card 2144 drivers/staging/rts5208/ms.c ms_card->segment[i].unused_blk_cnt = 0; ms_card 2147 drivers/staging/rts5208/ms.c i, ms_card->segment[i].disable_count); ms_card 2153 drivers/staging/rts5208/ms.c vfree(ms_card->segment); ms_card 2154 drivers/staging/rts5208/ms.c ms_card->segment = NULL; ms_card 2161 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 2164 drivers/staging/rts5208/ms.c if (!ms_card->segment) ms_card 2167 drivers/staging/rts5208/ms.c segment = &ms_card->segment[seg_no]; ms_card 2178 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 2181 drivers/staging/rts5208/ms.c if (!ms_card->segment) ms_card 2184 drivers/staging/rts5208/ms.c segment = &ms_card->segment[seg_no]; ms_card 2191 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 2196 drivers/staging/rts5208/ms.c segment = &ms_card->segment[seg_no]; ms_card 2207 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 2211 drivers/staging/rts5208/ms.c segment = &ms_card->segment[seg_no]; ms_card 2234 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 2240 drivers/staging/rts5208/ms.c segment = &ms_card->segment[seg_no]; ms_card 2276 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 2285 drivers/staging/rts5208/ms.c if (!ms_card->segment) { ms_card 2291 drivers/staging/rts5208/ms.c if (ms_card->segment[seg_no].build_flag) { ms_card 2302 drivers/staging/rts5208/ms.c segment = &ms_card->segment[seg_no]; ms_card 2350 drivers/staging/rts5208/ms.c if (seg_no == ms_card->segment_cnt - 1) { ms_card 2418 drivers/staging/rts5208/ms.c if (seg_no == ms_card->segment_cnt - 1) { ms_card 2443 drivers/staging/rts5208/ms.c if (seg_no == ms_card->segment_cnt - 1) { ms_card 2461 drivers/staging/rts5208/ms.c if (tmp_blk < ms_card->boot_block) { ms_card 2470 drivers/staging/rts5208/ms.c ms_card->page_off + 1); ms_card 2497 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 2498 drivers/staging/rts5208/ms.c int seg_no = ms_card->total_block / 512 - 1; ms_card 2501 drivers/staging/rts5208/ms.c memset(ms_card, 0, sizeof(struct ms_info)); ms_card 2511 drivers/staging/rts5208/ms.c ms_card->ms_type = 0; ms_card 2515 drivers/staging/rts5208/ms.c if (ms_card->check_ms_flow) { ms_card 2528 drivers/staging/rts5208/ms.c if (!CHK_MSPRO(ms_card)) { ms_card 2537 drivers/staging/rts5208/ms.c dev_dbg(rtsx_dev(chip), "ms_card->ms_type = 0x%x\n", ms_card->ms_type); ms_card 2571 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 2574 drivers/staging/rts5208/ms.c if (ms_card->seq_mode) { ms_card 2579 drivers/staging/rts5208/ms.c ms_card->seq_mode = 0; ms_card 2580 drivers/staging/rts5208/ms.c ms_card->total_sec_cnt = 0; ms_card 2589 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 2593 drivers/staging/rts5208/ms.c if (ms_card->ms_clock > 30) ms_card 2594 drivers/staging/rts5208/ms.c ms_card->ms_clock -= 20; ms_card 2596 drivers/staging/rts5208/ms.c if (ms_card->ms_clock == CLK_80) ms_card 2597 drivers/staging/rts5208/ms.c ms_card->ms_clock = CLK_60; ms_card 2598 drivers/staging/rts5208/ms.c else if (ms_card->ms_clock == CLK_60) ms_card 2599 drivers/staging/rts5208/ms.c ms_card->ms_clock = CLK_40; ms_card 2613 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 2621 drivers/staging/rts5208/ms.c ms_card->cleanup_counter = 0; ms_card 2623 drivers/staging/rts5208/ms.c if (CHK_MSHG(ms_card)) { ms_card 2665 drivers/staging/rts5208/ms.c if (ms_card->seq_mode) { ms_card 2666 drivers/staging/rts5208/ms.c if ((ms_card->pre_dir != srb->sc_data_direction) || ms_card 2667 drivers/staging/rts5208/ms.c ((ms_card->pre_sec_addr + ms_card->pre_sec_cnt) != ms_card 2669 drivers/staging/rts5208/ms.c (mode_2k && (ms_card->seq_mode & MODE_512_SEQ)) || ms_card 2670 drivers/staging/rts5208/ms.c (!mode_2k && (ms_card->seq_mode & MODE_2K_SEQ)) || ms_card 2672 drivers/staging/rts5208/ms.c ((ms_card->total_sec_cnt + sector_cnt) > 0xFE00)) { ms_card 2673 drivers/staging/rts5208/ms.c ms_card->seq_mode = 0; ms_card 2674 drivers/staging/rts5208/ms.c ms_card->total_sec_cnt = 0; ms_card 2686 drivers/staging/rts5208/ms.c if (!ms_card->seq_mode) { ms_card 2687 drivers/staging/rts5208/ms.c ms_card->total_sec_cnt = 0; ms_card 2689 drivers/staging/rts5208/ms.c if ((ms_card->capacity - start_sector) > 0xFE00) ms_card 2692 drivers/staging/rts5208/ms.c count = (u16)(ms_card->capacity - start_sector); ms_card 2696 drivers/staging/rts5208/ms.c ms_card->seq_mode = MODE_2K_SEQ; ms_card 2698 drivers/staging/rts5208/ms.c ms_card->seq_mode = MODE_512_SEQ; ms_card 2705 drivers/staging/rts5208/ms.c ms_card->seq_mode = 0; ms_card 2714 drivers/staging/rts5208/ms.c ms_card->seq_mode = 0; ms_card 2737 drivers/staging/rts5208/ms.c if (ms_card->seq_mode) { ms_card 2738 drivers/staging/rts5208/ms.c ms_card->pre_sec_addr = start_sector; ms_card 2739 drivers/staging/rts5208/ms.c ms_card->pre_sec_cnt = sector_cnt; ms_card 2740 drivers/staging/rts5208/ms.c ms_card->pre_dir = srb->sc_data_direction; ms_card 2741 drivers/staging/rts5208/ms.c ms_card->total_sec_cnt += sector_cnt; ms_card 2750 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 2761 drivers/staging/rts5208/ms.c ms_card->format_status = FORMAT_FAIL; ms_card 2767 drivers/staging/rts5208/ms.c ms_card->format_status = FORMAT_FAIL; ms_card 2774 drivers/staging/rts5208/ms.c ms_card->format_status = FORMAT_SUCCESS; ms_card 2777 drivers/staging/rts5208/ms.c ms_card->format_status = FORMAT_FAIL; ms_card 2789 drivers/staging/rts5208/ms.c ms_card->format_status = FORMAT_FAIL; ms_card 2796 drivers/staging/rts5208/ms.c ms_card->format_status = FORMAT_FAIL; ms_card 2809 drivers/staging/rts5208/ms.c ms_card->progress = 0; ms_card 2814 drivers/staging/rts5208/ms.c ms_card->progress = (u16)ulltmp; ms_card 2816 drivers/staging/rts5208/ms.c dev_dbg(rtsx_dev(chip), "progress = %d\n", ms_card->progress); ms_card 2821 drivers/staging/rts5208/ms.c ms_card->format_status = FORMAT_FAIL; ms_card 2833 drivers/staging/rts5208/ms.c ms_card->format_status = FORMAT_FAIL; ms_card 2838 drivers/staging/rts5208/ms.c ms_card->format_status = FORMAT_FAIL; ms_card 2843 drivers/staging/rts5208/ms.c ms_card->format_status = FORMAT_FAIL; ms_card 2848 drivers/staging/rts5208/ms.c ms_card->format_status = FORMAT_SUCCESS; ms_card 2849 drivers/staging/rts5208/ms.c ms_card->pro_under_formatting = 0; ms_card 2851 drivers/staging/rts5208/ms.c ms_card->format_status = FORMAT_IN_PROGRESS; ms_card 2853 drivers/staging/rts5208/ms.c ms_card->format_status = FORMAT_FAIL; ms_card 2854 drivers/staging/rts5208/ms.c ms_card->pro_under_formatting = 0; ms_card 2863 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 2866 drivers/staging/rts5208/ms.c if (ms_card->pro_under_formatting && ms_card 2872 drivers/staging/rts5208/ms.c if (ms_card->format_status != FORMAT_IN_PROGRESS) ms_card 2881 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 2937 drivers/staging/rts5208/ms.c ms_card->pro_under_formatting = 1; ms_card 2938 drivers/staging/rts5208/ms.c ms_card->progress = 0; ms_card 2939 drivers/staging/rts5208/ms.c ms_card->format_status = FORMAT_IN_PROGRESS; ms_card 2944 drivers/staging/rts5208/ms.c ms_card->pro_under_formatting = 0; ms_card 2945 drivers/staging/rts5208/ms.c ms_card->progress = 0; ms_card 2946 drivers/staging/rts5208/ms.c ms_card->format_status = FORMAT_SUCCESS; ms_card 2959 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 2978 drivers/staging/rts5208/ms.c if (CHK_MS4BIT(ms_card)) ms_card 3128 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 3139 drivers/staging/rts5208/ms.c if (CHK_MS4BIT(ms_card)) ms_card 3175 drivers/staging/rts5208/ms.c if (CHK_MS4BIT(ms_card)) ms_card 3299 drivers/staging/rts5208/ms.c (page_addr == ms_card->page_off)) { ms_card 3318 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 3322 drivers/staging/rts5208/ms.c page_off, ms_card->page_off + 1); ms_card 3328 drivers/staging/rts5208/ms.c if (MS_TST_BAD_BLOCK_FLG(ms_card)) { ms_card 3329 drivers/staging/rts5208/ms.c MS_CLR_BAD_BLOCK_FLG(ms_card); ms_card 3360 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 3361 drivers/staging/rts5208/ms.c struct ms_delay_write_tag *delay_write = &ms_card->delay_write; ms_card 3395 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 3403 drivers/staging/rts5208/ms.c struct ms_delay_write_tag *delay_write = &ms_card->delay_write; ms_card 3408 drivers/staging/rts5208/ms.c ms_card->cleanup_counter = 0; ms_card 3418 drivers/staging/rts5208/ms.c log_blk = (u16)(start_sector >> ms_card->block_shift); ms_card 3419 drivers/staging/rts5208/ms.c start_page = (u8)(start_sector & ms_card->page_off); ms_card 3426 drivers/staging/rts5208/ms.c if (ms_card->segment[seg_no].build_flag == 0) { ms_card 3521 drivers/staging/rts5208/ms.c if ((start_page + total_sec_cnt) > (ms_card->page_off + 1)) ms_card 3522 drivers/staging/rts5208/ms.c end_page = ms_card->page_off + 1; ms_card 3555 drivers/staging/rts5208/ms.c if (end_page == (ms_card->page_off + 1)) { ms_card 3581 drivers/staging/rts5208/ms.c if (ms_card->segment[seg_no].build_flag == 0) { ms_card 3613 drivers/staging/rts5208/ms.c if (end_page < (ms_card->page_off + 1)) { ms_card 3647 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 3650 drivers/staging/rts5208/ms.c if (CHK_MSPRO(ms_card)) ms_card 3662 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 3665 drivers/staging/rts5208/ms.c if (ms_card->segment) { ms_card 3666 drivers/staging/rts5208/ms.c for (i = 0; i < ms_card->segment_cnt; i++) { ms_card 3667 drivers/staging/rts5208/ms.c vfree(ms_card->segment[i].l2p_table); ms_card 3668 drivers/staging/rts5208/ms.c ms_card->segment[i].l2p_table = NULL; ms_card 3669 drivers/staging/rts5208/ms.c vfree(ms_card->segment[i].free_table); ms_card 3670 drivers/staging/rts5208/ms.c ms_card->segment[i].free_table = NULL; ms_card 3672 drivers/staging/rts5208/ms.c vfree(ms_card->segment); ms_card 3673 drivers/staging/rts5208/ms.c ms_card->segment = NULL; ms_card 3895 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 3926 drivers/staging/rts5208/ms.c memcpy(ms_card->magic_gate_id, buf, 16); ms_card 3963 drivers/staging/rts5208/ms.c ms_card->mg_auth = 0; ms_card 3970 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 4005 drivers/staging/rts5208/ms.c memcpy(buf2 + 4, ms_card->magic_gate_id, 16); ms_card 4024 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 4064 drivers/staging/rts5208/ms.c ms_card->mg_auth = 1; ms_card 4071 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 4092 drivers/staging/rts5208/ms.c retval = mg_send_ex_cmd(chip, MG_GET_IBD, ms_card->mg_entry_num); ms_card 4122 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 4144 drivers/staging/rts5208/ms.c retval = mg_send_ex_cmd(chip, MG_SET_IBD, ms_card->mg_entry_num); ms_card 4146 drivers/staging/rts5208/ms.c if (ms_card->mg_auth == 0) { ms_card 4185 drivers/staging/rts5208/ms.c if (ms_card->mg_auth == 0) { ms_card 4206 drivers/staging/rts5208/ms.c if (ms_card->mg_auth == 0) { ms_card 4230 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 4232 drivers/staging/rts5208/ms.c if (CHK_MSPRO(ms_card)) { ms_card 4233 drivers/staging/rts5208/ms.c if (ms_card->seq_mode) { ms_card 4236 drivers/staging/rts5208/ms.c ms_card->cleanup_counter = 0; ms_card 4238 drivers/staging/rts5208/ms.c if (CHK_MSHG(ms_card)) { ms_card 4244 drivers/staging/rts5208/ms.c else if ((!CHK_MSPRO(ms_card)) && ms_card 4245 drivers/staging/rts5208/ms.c ms_card->delay_write.delay_write_flag) { ms_card 4248 drivers/staging/rts5208/ms.c ms_card->cleanup_counter = 0; ms_card 4287 drivers/staging/rts5208/ms.c struct ms_info *ms_card = &chip->ms_card; ms_card 4291 drivers/staging/rts5208/ms.c ms_card->delay_write.delay_write_flag = 0; ms_card 4293 drivers/staging/rts5208/ms.c ms_card->pro_under_formatting = 0; ms_card 4301 drivers/staging/rts5208/ms.c memset(ms_card->raw_sys_info, 0, 96); ms_card 4303 drivers/staging/rts5208/ms.c memset(ms_card->raw_model_name, 0, 48); ms_card 184 drivers/staging/rts5208/ms.h #define MS_SET_BAD_BLOCK_FLG(ms_card) ((ms_card)->multi_flag |= 0x80) ms_card 185 drivers/staging/rts5208/ms.h #define MS_CLR_BAD_BLOCK_FLG(ms_card) ((ms_card)->multi_flag &= 0x7F) ms_card 186 drivers/staging/rts5208/ms.h #define MS_TST_BAD_BLOCK_FLG(ms_card) ((ms_card)->multi_flag & 0x80) ms_card 482 drivers/staging/rts5208/rtsx.c struct ms_info *ms_card = &chip->ms_card; ms_card 486 drivers/staging/rts5208/rtsx.c ms_card->cleanup_counter = 0; ms_card 29 drivers/staging/rts5208/rtsx_card.c struct ms_info *ms_card = &chip->ms_card; ms_card 52 drivers/staging/rts5208/rtsx_card.c if (CHK_MSPRO(ms_card)) { ms_card 53 drivers/staging/rts5208/rtsx_card.c if (ms_card->seq_mode) { ms_card 55 drivers/staging/rts5208/rtsx_card.c ms_card->cleanup_counter++; ms_card 57 drivers/staging/rts5208/rtsx_card.c ms_card->cleanup_counter = 0; ms_card 61 drivers/staging/rts5208/rtsx_card.c if (ms_card->delay_write.delay_write_flag) { ms_card 63 drivers/staging/rts5208/rtsx_card.c ms_card->cleanup_counter++; ms_card 65 drivers/staging/rts5208/rtsx_card.c ms_card->cleanup_counter = 0; ms_card 77 drivers/staging/rts5208/rtsx_card.c if (ms_card->cleanup_counter > POLLING_WAIT_CNT) ms_card 758 drivers/staging/rts5208/rtsx_chip.c struct ms_info *ms_card = &chip->ms_card; ms_card 769 drivers/staging/rts5208/rtsx_chip.c memset(ms_card, 0, sizeof(struct ms_info)); ms_card 562 drivers/staging/rts5208/rtsx_chip.h #define CHK_MSPRO(ms_card) (((ms_card)->ms_type & 0xFF) == TYPE_MSPRO) ms_card 563 drivers/staging/rts5208/rtsx_chip.h #define CHK_HG8BIT(ms_card) (CHK_MSPRO(ms_card) && \ ms_card 564 drivers/staging/rts5208/rtsx_chip.h (((ms_card)->ms_type & HG8BIT) == HG8BIT)) ms_card 565 drivers/staging/rts5208/rtsx_chip.h #define CHK_MSXC(ms_card) (CHK_MSPRO(ms_card) && \ ms_card 566 drivers/staging/rts5208/rtsx_chip.h ((ms_card)->ms_type & MS_XC)) ms_card 567 drivers/staging/rts5208/rtsx_chip.h #define CHK_MSHG(ms_card) (CHK_MSPRO(ms_card) && \ ms_card 568 drivers/staging/rts5208/rtsx_chip.h ((ms_card)->ms_type & MS_HG)) ms_card 570 drivers/staging/rts5208/rtsx_chip.h #define CHK_MS8BIT(ms_card) (((ms_card)->ms_type & MS_8BIT)) ms_card 571 drivers/staging/rts5208/rtsx_chip.h #define CHK_MS4BIT(ms_card) (((ms_card)->ms_type & MS_4BIT)) ms_card 772 drivers/staging/rts5208/rtsx_chip.h struct ms_info ms_card; ms_card 602 drivers/staging/rts5208/rtsx_scsi.c struct ms_info *ms_card = &chip->ms_card; ms_card 608 drivers/staging/rts5208/rtsx_scsi.c ms_card->pro_under_formatting) { ms_card 609 drivers/staging/rts5208/rtsx_scsi.c if (ms_card->format_status == FORMAT_SUCCESS) { ms_card 611 drivers/staging/rts5208/rtsx_scsi.c ms_card->pro_under_formatting = 0; ms_card 612 drivers/staging/rts5208/rtsx_scsi.c ms_card->progress = 0; ms_card 613 drivers/staging/rts5208/rtsx_scsi.c } else if (ms_card->format_status == FORMAT_IN_PROGRESS) { ms_card 616 drivers/staging/rts5208/rtsx_scsi.c 0, (u16)(ms_card->progress)); ms_card 620 drivers/staging/rts5208/rtsx_scsi.c ms_card->pro_under_formatting = 0; ms_card 621 drivers/staging/rts5208/rtsx_scsi.c ms_card->progress = 0; ms_card 646 drivers/staging/rts5208/rtsx_scsi.c struct ms_info *ms_card = &chip->ms_card; ms_card 669 drivers/staging/rts5208/rtsx_scsi.c if (CHK_MSXC(ms_card)) { ms_card 672 drivers/staging/rts5208/rtsx_scsi.c } else if (CHK_MSPRO(ms_card)) { ms_card 732 drivers/staging/rts5208/rtsx_scsi.c memcpy(buf + sys_info_offset, ms_card->raw_sys_info, len); ms_card 1401 drivers/staging/rts5208/rtsx_scsi.c struct ms_info *ms_card = &chip->ms_card; ms_card 1413 drivers/staging/rts5208/rtsx_scsi.c ms_card->ms_clock = srb->cmnd[5]; ms_card 1462 drivers/staging/rts5208/rtsx_scsi.c struct ms_info *ms_card = &chip->ms_card; ms_card 1475 drivers/staging/rts5208/rtsx_scsi.c tmp = (u8)(ms_card->ms_clock); ms_card 1540 drivers/staging/rts5208/rtsx_scsi.c struct ms_info *ms_card = &chip->ms_card; ms_card 1624 drivers/staging/rts5208/rtsx_scsi.c if (CHK_MSPRO(ms_card)) { ms_card 1625 drivers/staging/rts5208/rtsx_scsi.c if (CHK_MSXC(ms_card)) ms_card 1630 drivers/staging/rts5208/rtsx_scsi.c if (CHK_HG8BIT(ms_card)) ms_card 2492 drivers/staging/rts5208/rtsx_scsi.c struct ms_info *ms_card = &chip->ms_card; ms_card 2494 drivers/staging/rts5208/rtsx_scsi.c if (CHK_MSPRO(ms_card)) { ms_card 2496 drivers/staging/rts5208/rtsx_scsi.c if (CHK_HG8BIT(ms_card)) ms_card 2499 drivers/staging/rts5208/rtsx_scsi.c if (CHK_MSXC(ms_card)) ms_card 2709 drivers/staging/rts5208/rtsx_scsi.c struct ms_info *ms_card = &chip->ms_card; ms_card 2755 drivers/staging/rts5208/rtsx_scsi.c if (!CHK_MSPRO(ms_card)) { ms_card 2773 drivers/staging/rts5208/rtsx_scsi.c struct ms_info *ms_card = &chip->ms_card; ms_card 2797 drivers/staging/rts5208/rtsx_scsi.c if ((CHK_MSXC(ms_card) && (dev_info_id == 0x10)) || ms_card 2798 drivers/staging/rts5208/rtsx_scsi.c (!CHK_MSXC(ms_card) && (dev_info_id == 0x13)) || ms_card 2799 drivers/staging/rts5208/rtsx_scsi.c !CHK_MSPRO(ms_card)) { ms_card 2821 drivers/staging/rts5208/rtsx_scsi.c if (CHK_MSXC(ms_card)) ms_card 2851 drivers/staging/rts5208/rtsx_scsi.c memcpy(buf + i, ms_card->raw_sys_info, 96); ms_card 2854 drivers/staging/rts5208/rtsx_scsi.c memcpy(buf + i, ms_card->raw_model_name, 48); ms_card 2945 drivers/staging/rts5208/rtsx_scsi.c struct ms_info *ms_card = &chip->ms_card; ms_card 2974 drivers/staging/rts5208/rtsx_scsi.c if (!CHK_MSPRO(ms_card)) { ms_card 3014 drivers/staging/rts5208/rtsx_scsi.c ms_card->mg_entry_num = srb->cmnd[5]; ms_card 3044 drivers/staging/rts5208/rtsx_scsi.c struct ms_info *ms_card = &chip->ms_card; ms_card 3077 drivers/staging/rts5208/rtsx_scsi.c if (!CHK_MSPRO(ms_card)) { ms_card 3132 drivers/staging/rts5208/rtsx_scsi.c ms_card->mg_entry_num = srb->cmnd[5]; ms_card 3166 drivers/staging/rts5208/rtsx_scsi.c struct ms_info *ms_card = &chip->ms_card; ms_card 3188 drivers/staging/rts5208/rtsx_scsi.c (ms_card->format_status == FORMAT_IN_PROGRESS)) { ms_card 3193 drivers/staging/rts5208/rtsx_scsi.c 0, (u16)(ms_card->progress));