/drivers/staging/rts5139/ |
D | rts51x_chip.h | 487 #define CHK_SD(sd_card) (((sd_card)->sd_type & 0xFF) == TYPE_SD) argument 488 #define CHK_SD_HS(sd_card) \ argument 489 (CHK_SD(sd_card) && ((sd_card)->sd_type & SD_HS)) 490 #define CHK_SD_SDR50(sd_card) \ argument 491 (CHK_SD(sd_card) && ((sd_card)->sd_type & SD_SDR50)) 492 #define CHK_SD_DDR50(sd_card) \ argument 493 (CHK_SD(sd_card) && ((sd_card)->sd_type & SD_DDR50)) 494 #define CHK_SD_SDR104(sd_card) \ argument 495 (CHK_SD(sd_card) && ((sd_card)->sd_type & SD_SDR104)) 496 #define CHK_SD_HCXC(sd_card) \ argument [all …]
|
D | sd.c | 40 struct sd_info *sd_card = &(chip->sd_card); in sd_set_reset_fail() local 42 sd_card->sd_reset_fail |= err_code; in sd_set_reset_fail() 47 struct sd_info *sd_card = &(chip->sd_card); in sd_clear_reset_fail() local 49 sd_card->sd_reset_fail = 0; in sd_clear_reset_fail() 54 struct sd_info *sd_card = &(chip->sd_card); in sd_check_reset_fail() local 56 return sd_card->sd_reset_fail & err_code; in sd_check_reset_fail() 61 struct sd_info *sd_card = &(chip->sd_card); in sd_set_err_code() local 63 sd_card->err_code |= err_code; in sd_set_err_code() 68 struct sd_info *sd_card = &(chip->sd_card); in sd_clr_err_code() local 70 sd_card->err_code = 0; in sd_clr_err_code() [all …]
|
D | sd_cprm.c | 285 struct sd_info *sd_card = &(chip->sd_card); local 293 if (sd_card->pre_cmd_err) { 294 sd_card->pre_cmd_err = 0; 303 sd_card->last_rsp_type = rsp_type; 309 if ((sd_card->sd_lock_status & SD_LOCK_1BIT_MODE) == 0) { 310 if (CHK_MMC_8BIT(sd_card)) { 316 } else if (CHK_SD(sd_card) || CHK_MMC_4BIT(sd_card)) { 337 ext_sd_send_cmd_get_rsp(chip, APP_CMD, sd_card->sd_addr, 344 sd_card->rsp, rsp_len, 0); 363 sd_card->pre_cmd_err = 1; [all …]
|
D | rts51x_fop.c | 143 struct sd_info *sd_card = &(chip->sd_card); in rts51x_sd_get_rsp() local 146 if (sd_card->pre_cmd_err) { in rts51x_sd_get_rsp() 147 sd_card->pre_cmd_err = 0; in rts51x_sd_get_rsp() 151 if (sd_card->last_rsp_type == SD_RSP_TYPE_R0) in rts51x_sd_get_rsp() 153 else if (sd_card->last_rsp_type == SD_RSP_TYPE_R2) in rts51x_sd_get_rsp() 158 retval = copy_to_user((void *)rsp->rsp, (void *)sd_card->rsp, count); in rts51x_sd_get_rsp() 164 sd_card->rsp[0], sd_card->rsp[1], sd_card->rsp[2], in rts51x_sd_get_rsp() 165 sd_card->rsp[3]); in rts51x_sd_get_rsp()
|
D | rts51x_chip.c | 383 struct sd_info *sd_card = &(chip->sd_card); in rts51x_polling_func() local 385 if (sd_card->sd_erase_status) { in rts51x_polling_func() 391 sd_card->sd_erase_status = SD_NOT_ERASE; in rts51x_polling_func() 392 sd_card->sd_lock_notify = 1; in rts51x_polling_func() 405 sd_card->sd_erase_status = SD_NOT_ERASE; in rts51x_polling_func() 927 struct sd_info *sd_card = &(chip->sd_card); in rts51x_pp_status() local 971 if (CHK_SD(sd_card)) { in rts51x_pp_status() 972 if (CHK_SD_HCXC(sd_card)) { in rts51x_pp_status() 973 if (sd_card->capacity > 0x4000000) in rts51x_pp_status() 982 if (CHK_SD_SDR104(sd_card)) in rts51x_pp_status() [all …]
|
D | rts51x_card.c | 47 struct sd_info *sd_card = &(chip->sd_card); in do_remaining_work() local 52 if (sd_card->seq_mode) { in do_remaining_work() 54 sd_card->counter++; in do_remaining_work() 56 sd_card->counter = 0; in do_remaining_work() 87 if (sd_card->counter > POLLING_WAIT_CNT) in do_remaining_work() 390 struct sd_info *sd_card = &(chip->sd_card); in switch_ssc_clock() local 423 if (CHK_SD_SDR104(sd_card)) { in switch_ssc_clock() 425 } else if (CHK_SD_SDR50(sd_card)) { in switch_ssc_clock() 427 } else if (CHK_SD_DDR50(sd_card)) { in switch_ssc_clock() 431 } else if (CHK_SD_HS(sd_card)) { in switch_ssc_clock() [all …]
|
D | rts51x_scsi.c | 453 struct sd_info *sd_card = &(chip->sd_card); in test_unit_ready() local 454 if (sd_card->sd_lock_notify) { in test_unit_ready() 455 sd_card->sd_lock_notify = 0; in test_unit_ready() 458 } else if (sd_card->sd_lock_status & SD_LOCKED) { in test_unit_ready() 801 struct sd_info *sd_card = &(chip->sd_card); in read_write() local 823 if (sd_card->sd_erase_status) { in read_write() 832 if (sd_card->sd_lock_status & SD_LOCKED) { in read_write() 1137 struct sd_info *sd_card = &(chip->sd_card); in get_sd_csd() local 1151 rts51x_set_xfer_buf(sd_card->raw_csd, scsi_bufflen(srb), srb); in get_sd_csd() 1875 struct sd_info *sd_card = &(chip->sd_card); in rts51x_scsi_handler() local [all …]
|
/drivers/staging/rts_pstor/ |
D | rtsx_chip.h | 392 #define CHK_SD(sd_card) (((sd_card)->sd_type & 0xFF) == TYPE_SD) argument 393 #define CHK_SD_HS(sd_card) (CHK_SD(sd_card) && ((sd_card)->sd_type & SD_HS)) argument 394 #define CHK_SD_SDR50(sd_card) (CHK_SD(sd_card) && ((sd_card)->sd_type & SD_SDR50)) argument 395 #define CHK_SD_DDR50(sd_card) (CHK_SD(sd_card) && ((sd_card)->sd_type & SD_DDR50)) argument 396 #define CHK_SD_SDR104(sd_card) (CHK_SD(sd_card) && ((sd_card)->sd_type & SD_SDR104)) argument 397 #define CHK_SD_HCXC(sd_card) (CHK_SD(sd_card) && ((sd_card)->sd_type & SD_HCXC)) argument 398 #define CHK_SD_HC(sd_card) (CHK_SD_HCXC(sd_card) && ((sd_card)->capacity <= 0x4000000)) argument 399 #define CHK_SD_XC(sd_card) (CHK_SD_HCXC(sd_card) && ((sd_card)->capacity > 0x4000000)) argument 400 #define CHK_SD30_SPEED(sd_card) (CHK_SD_SDR50(sd_card) || CHK_SD_DDR50(sd_card) || CHK_SD_SDR104(s… argument 402 #define SET_SD(sd_card) ((sd_card)->sd_type = TYPE_SD) argument [all …]
|
D | sd.c | 62 struct sd_info *sd_card = &(chip->sd_card); in sd_set_err_code() local 64 sd_card->err_code |= err_code; in sd_set_err_code() 69 struct sd_info *sd_card = &(chip->sd_card); in sd_clr_err_code() local 71 sd_card->err_code = 0; in sd_clr_err_code() 76 struct sd_info *sd_card = &(chip->sd_card); in sd_check_err_code() local 78 return sd_card->err_code & err_code; in sd_check_err_code() 157 struct sd_info *sd_card = &(chip->sd_card); in sd_send_cmd_get_rsp() local 299 sd_card->sd_data_buf_ready = 1; in sd_send_cmd_get_rsp() 301 sd_card->sd_data_buf_ready = 0; in sd_send_cmd_get_rsp() 317 struct sd_info *sd_card = &(chip->sd_card); in sd_read_data() local [all …]
|
D | rtsx_card.c | 43 struct sd_info *sd_card = &(chip->sd_card); in do_remaining_work() local 50 if (sd_card->seq_mode) { in do_remaining_work() 52 sd_card->cleanup_counter++; in do_remaining_work() 54 sd_card->cleanup_counter = 0; in do_remaining_work() 89 if (sd_card->cleanup_counter > POLLING_WAIT_CNT) in do_remaining_work() 652 struct sd_info *sd_card = &(chip->sd_card); in switch_ssc_clock() local 673 struct sd_info *sd_card = &(chip->sd_card); in switch_ssc_clock() local 674 if (CHK_SD30_SPEED(sd_card) || CHK_MMC_DDR52(sd_card)) in switch_ssc_clock() 703 if (CHK_SD_SDR104(sd_card)) { in switch_ssc_clock() 705 } else if (CHK_SD_SDR50(sd_card)) { in switch_ssc_clock() [all …]
|
D | rtsx_scsi.c | 263 struct sd_info *sd_card = &(chip->sd_card); in test_unit_ready() local 264 if (sd_card->sd_lock_notify) { in test_unit_ready() 265 sd_card->sd_lock_notify = 0; in test_unit_ready() 268 } else if (sd_card->sd_lock_status & SD_LOCKED) { in test_unit_ready() 682 struct sd_info *sd_card = &(chip->sd_card); in read_write() local 709 if (sd_card->sd_erase_status) { in read_write() 719 if (sd_card->sd_lock_status & SD_LOCKED) { in read_write() 1147 struct sd_info *sd_card = &(chip->sd_card); in get_sd_csd() local 1161 rtsx_stor_set_xfer_buf(sd_card->raw_csd, scsi_bufflen(srb), srb); in get_sd_csd() 1318 struct sd_info *sd_card = &(chip->sd_card); in set_variable() local [all …]
|
D | rtsx_chip.c | 946 struct sd_info *sd_card = &(chip->sd_card); in rtsx_init_chip() local 962 memset(sd_card, 0, sizeof(struct sd_info)); in rtsx_init_chip() 1151 struct sd_info *sd_card = &(chip->sd_card); in rtsx_polling_func() local 1194 if (sd_card->sd_erase_status) { in rtsx_polling_func() 1200 sd_card->sd_erase_status = SD_NOT_ERASE; in rtsx_polling_func() 1201 sd_card->sd_lock_notify = 1; in rtsx_polling_func() 1207 sd_card->sd_erase_status = SD_NOT_ERASE; in rtsx_polling_func() 1208 sd_card->sd_lock_notify = 1; in rtsx_polling_func() 1213 sd_card->sd_erase_status = SD_NOT_ERASE; in rtsx_polling_func()
|
D | rtsx_card.h | 1036 struct sd_info *sd_card = &(chip->sd_card); in get_card_size() local 1038 if ((get_lun_card(chip, lun) == SD_CARD) && (sd_card->sd_lock_status & SD_LOCKED)) in get_card_size()
|
D | rtsx.c | 576 struct sd_info *sd_card = &(chip->sd_card); in rtsx_polling_thread() local 580 sd_card->cleanup_counter = 0; in rtsx_polling_thread()
|