/linux-3.4.99/drivers/staging/rts5139/ |
D | ms.c | 42 struct ms_info *ms_card = &(chip->ms_card); in ms_set_err_code() local 44 ms_card->err_code = err_code; in ms_set_err_code() 49 struct ms_info *ms_card = &(chip->ms_card); in ms_check_err_code() local 51 return (ms_card->err_code == err_code); in ms_check_err_code() 62 struct ms_info *ms_card = &(chip->ms_card); in ms_transfer_tpc() local 100 if (CHK_MSPRO(ms_card) && !(chip->rsp_buf[1] & 0x80)) { in ms_transfer_tpc() 122 struct ms_info *ms_card = &(chip->ms_card); in ms_transfer_data() local 190 ms_card->last_rw_int = val = chip->rsp_buf[1]; in ms_transfer_data() 200 struct ms_info *ms_card = &(chip->ms_card); in ms_write_bytes() local 247 if (CHK_MSPRO(ms_card) && !(val & 0x80)) { in ms_write_bytes() [all …]
|
D | ms_mg.c | 234 struct ms_info *ms_card = &(chip->ms_card); in mg_chg() local 267 memcpy(ms_card->magic_gate_id, buf, 16); in mg_chg() 308 ms_card->mg_auth = 0; in mg_chg() 325 struct ms_info *ms_card = &(chip->ms_card); in mg_get_rsp_chg() local 362 memcpy(buf2 + 4, ms_card->magic_gate_id, 16); in mg_get_rsp_chg() 394 struct ms_info *ms_card = &(chip->ms_card); in mg_rsp() local 434 ms_card->mg_auth = 1; in mg_rsp() 452 struct ms_info *ms_card = &(chip->ms_card); in mg_get_ICV() local 475 retval = mg_send_ex_cmd(chip, MG_GET_IBD, ms_card->mg_entry_num); in mg_get_ICV() 516 struct ms_info *ms_card = &(chip->ms_card); in mg_set_ICV() local [all …]
|
D | rts51x_chip.h | 637 #define CHK_MSPRO(ms_card) \ argument 638 (((ms_card)->ms_type & 0xFF) == TYPE_MSPRO) 639 #define CHK_HG8BIT(ms_card) \ argument 640 (CHK_MSPRO(ms_card) && (((ms_card)->ms_type & HG8BIT) == HG8BIT)) 641 #define CHK_MSXC(ms_card) \ argument 642 (CHK_MSPRO(ms_card) && ((ms_card)->ms_type & MS_XC)) 643 #define CHK_MSHG(ms_card) \ argument 644 (CHK_MSPRO(ms_card) && ((ms_card)->ms_type & MS_HG)) 646 #define CHK_MS8BIT(ms_card) (((ms_card)->ms_type & MS_8BIT)) argument 647 #define CHK_MS4BIT(ms_card) (((ms_card)->ms_type & MS_4BIT)) argument [all …]
|
D | ms.h | 226 #define MS_SET_BAD_BLOCK_FLG(ms_card) ((ms_card)->multi_flag |= 0x80) argument 227 #define MS_CLR_BAD_BLOCK_FLG(ms_card) ((ms_card)->multi_flag &= 0x7F) argument 228 #define MS_TST_BAD_BLOCK_FLG(ms_card) ((ms_card)->multi_flag & 0x80) argument
|
D | rts51x_scsi.c | 598 struct ms_info *ms_card = &(chip->ms_card); in ms_mode_sense() local 619 if (CHK_MSXC(ms_card)) { in ms_mode_sense() 622 } else if (CHK_MSPRO(ms_card)) { in ms_mode_sense() 680 memcpy(buf + sys_info_offset, ms_card->raw_sys_info, len); in ms_mode_sense() 772 struct ms_info *ms_card = &(chip->ms_card); in request_sense() local 778 && PRO_UNDER_FORMATTING(ms_card)) { in request_sense() 1469 struct ms_info *ms_card = &(chip->ms_card); in ms_format_cmnd() local 1500 if (!CHK_MSPRO(ms_card)) { in ms_format_cmnd() 1521 struct ms_info *ms_card = &(chip->ms_card); in get_ms_information() local 1545 if ((CHK_MSXC(ms_card) && (dev_info_id == 0x10)) || in get_ms_information() [all …]
|
D | rts51x_card.c | 49 struct ms_info *ms_card = &(chip->ms_card); in do_remaining_work() local 70 if (CHK_MSPRO(ms_card)) { in do_remaining_work() 71 if (ms_card->seq_mode) { in do_remaining_work() 73 ms_card->counter++; in do_remaining_work() 75 ms_card->counter = 0; in do_remaining_work() 78 if (ms_card->delay_write.delay_write_flag) { in do_remaining_work() 80 ms_card->counter++; in do_remaining_work() 82 ms_card->counter = 0; in do_remaining_work() 93 if (ms_card->counter > POLLING_WAIT_CNT) in do_remaining_work() 391 struct ms_info *ms_card = &(chip->ms_card); in switch_ssc_clock() local [all …]
|
D | rts51x_chip.c | 928 struct ms_info *ms_card = &(chip->ms_card); in rts51x_pp_status() local 1008 if (CHK_MSPRO(ms_card)) { in rts51x_pp_status() 1009 if (CHK_MSXC(ms_card)) in rts51x_pp_status() 1014 if (CHK_HG8BIT(ms_card)) in rts51x_pp_status() 1133 struct ms_info *ms_card = &(chip->ms_card); in rts51x_read_status() local 1135 if (CHK_MSPRO(ms_card)) { in rts51x_read_status() 1137 if (CHK_HG8BIT(ms_card)) in rts51x_read_status() 1140 if (CHK_MSXC(ms_card)) in rts51x_read_status()
|
/linux-3.4.99/drivers/staging/rts_pstor/ |
D | ms.c | 36 struct ms_info *ms_card = &(chip->ms_card); in ms_set_err_code() local 38 ms_card->err_code = err_code; in ms_set_err_code() 43 struct ms_info *ms_card = &(chip->ms_card); in ms_check_err_code() local 45 return (ms_card->err_code == err_code); in ms_check_err_code() 55 struct ms_info *ms_card = &(chip->ms_card); in ms_transfer_tpc() local 88 if (CHK_MSPRO(ms_card) && !(*ptr & 0x80)) { in ms_transfer_tpc() 173 struct ms_info *ms_card = &(chip->ms_card); in ms_write_bytes() local 215 if (CHK_MSPRO(ms_card) && !(val & 0x80)) { in ms_write_bytes() 237 struct ms_info *ms_card = &(chip->ms_card); in ms_read_bytes() local 277 if (CHK_MSPRO(ms_card) && !(val & 0x80)) { in ms_read_bytes() [all …]
|
D | ms.h | 197 #define MS_SET_BAD_BLOCK_FLG(ms_card) ((ms_card)->multi_flag |= 0x80) argument 198 #define MS_CLR_BAD_BLOCK_FLG(ms_card) ((ms_card)->multi_flag &= 0x7F) argument 199 #define MS_TST_BAD_BLOCK_FLG(ms_card) ((ms_card)->multi_flag & 0x80) argument
|
D | rtsx_chip.h | 543 #define CHK_MSPRO(ms_card) (((ms_card)->ms_type & 0xFF) == TYPE_MSPRO) argument 544 #define CHK_HG8BIT(ms_card) (CHK_MSPRO(ms_card) && (((ms_card)->ms_type & HG8BIT) == HG8BIT)) argument 545 #define CHK_MSXC(ms_card) (CHK_MSPRO(ms_card) && ((ms_card)->ms_type & MS_XC)) argument 546 #define CHK_MSHG(ms_card) (CHK_MSPRO(ms_card) && ((ms_card)->ms_type & MS_HG)) argument 548 #define CHK_MS8BIT(ms_card) (((ms_card)->ms_type & MS_8BIT)) argument 549 #define CHK_MS4BIT(ms_card) (((ms_card)->ms_type & MS_4BIT)) argument 758 struct ms_info ms_card; member
|
D | rtsx_scsi.c | 445 struct ms_info *ms_card = &(chip->ms_card); in request_sense() local 450 if ((get_lun_card(chip, lun) == MS_CARD) && ms_card->pro_under_formatting) { in request_sense() 451 if (ms_card->format_status == FORMAT_SUCCESS) { in request_sense() 453 ms_card->pro_under_formatting = 0; in request_sense() 454 ms_card->progress = 0; in request_sense() 455 } else if (ms_card->format_status == FORMAT_IN_PROGRESS) { in request_sense() 458 0, (u16)(ms_card->progress)); in request_sense() 462 ms_card->pro_under_formatting = 0; in request_sense() 463 ms_card->progress = 0; in request_sense() 489 struct ms_info *ms_card = &(chip->ms_card); in ms_mode_sense() local [all …]
|
D | rtsx_card.c | 47 struct ms_info *ms_card = &(chip->ms_card); in do_remaining_work() local 70 if (CHK_MSPRO(ms_card)) { in do_remaining_work() 71 if (ms_card->seq_mode) { in do_remaining_work() 73 ms_card->cleanup_counter++; in do_remaining_work() 75 ms_card->cleanup_counter = 0; in do_remaining_work() 79 if (ms_card->delay_write.delay_write_flag) { in do_remaining_work() 81 ms_card->cleanup_counter++; in do_remaining_work() 83 ms_card->cleanup_counter = 0; in do_remaining_work() 95 if (ms_card->cleanup_counter > POLLING_WAIT_CNT) in do_remaining_work() 653 struct ms_info *ms_card = &(chip->ms_card); in switch_ssc_clock() local [all …]
|
D | rtsx.c | 578 struct ms_info *ms_card = &(chip->ms_card); in rtsx_polling_thread() local 582 ms_card->cleanup_counter = 0; in rtsx_polling_thread()
|
D | rtsx_chip.c | 948 struct ms_info *ms_card = &(chip->ms_card); in rtsx_init_chip() local 963 memset(ms_card, 0, sizeof(struct ms_info)); in rtsx_init_chip()
|