sd_card 905 drivers/pinctrl/qcom/pinctrl-ipq8074.c FUNCTION(sd_card), sd_card 1016 drivers/pinctrl/qcom/pinctrl-ipq8074.c PINGROUP(63, sd_card, pwm0, NA, gcc_plltest, NA, NA, NA, NA, NA), sd_card 799 drivers/pinctrl/qcom/pinctrl-msm8916.c FUNCTION(sd_card), sd_card 1624 drivers/pinctrl/qcom/pinctrl-msm8996.c FUNCTION(sd_card), sd_card 1308 drivers/pinctrl/qcom/pinctrl-msm8998.c FUNCTION(sd_card), sd_card 480 drivers/staging/rts5208/rtsx.c struct sd_info *sd_card = &chip->sd_card; sd_card 484 drivers/staging/rts5208/rtsx.c sd_card->cleanup_counter = 0; sd_card 25 drivers/staging/rts5208/rtsx_card.c struct sd_info *sd_card = &chip->sd_card; sd_card 32 drivers/staging/rts5208/rtsx_card.c if (sd_card->seq_mode) { sd_card 34 drivers/staging/rts5208/rtsx_card.c sd_card->cleanup_counter++; sd_card 36 drivers/staging/rts5208/rtsx_card.c sd_card->cleanup_counter = 0; sd_card 71 drivers/staging/rts5208/rtsx_card.c if (sd_card->cleanup_counter > POLLING_WAIT_CNT) sd_card 1021 drivers/staging/rts5208/rtsx_card.h struct sd_info *sd_card = &chip->sd_card; sd_card 1024 drivers/staging/rts5208/rtsx_card.h (sd_card->sd_lock_status & SD_LOCKED)) sd_card 756 drivers/staging/rts5208/rtsx_chip.c struct sd_info *sd_card = &chip->sd_card; sd_card 768 drivers/staging/rts5208/rtsx_chip.c memset(sd_card, 0, sizeof(struct sd_info)); sd_card 980 drivers/staging/rts5208/rtsx_chip.c struct sd_info *sd_card = &chip->sd_card; sd_card 983 drivers/staging/rts5208/rtsx_chip.c if (!sd_card->sd_erase_status) sd_card 989 drivers/staging/rts5208/rtsx_chip.c sd_card->sd_erase_status = SD_NOT_ERASE; sd_card 990 drivers/staging/rts5208/rtsx_chip.c sd_card->sd_lock_notify = 1; sd_card 994 drivers/staging/rts5208/rtsx_chip.c sd_card->sd_erase_status = SD_NOT_ERASE; sd_card 388 drivers/staging/rts5208/rtsx_chip.h #define CHK_SD(sd_card) (((sd_card)->sd_type & 0xFF) == TYPE_SD) sd_card 389 drivers/staging/rts5208/rtsx_chip.h #define CHK_SD_HS(sd_card) (CHK_SD(sd_card) && \ sd_card 390 drivers/staging/rts5208/rtsx_chip.h ((sd_card)->sd_type & SD_HS)) sd_card 391 drivers/staging/rts5208/rtsx_chip.h #define CHK_SD_SDR50(sd_card) (CHK_SD(sd_card) && \ sd_card 392 drivers/staging/rts5208/rtsx_chip.h ((sd_card)->sd_type & SD_SDR50)) sd_card 393 drivers/staging/rts5208/rtsx_chip.h #define CHK_SD_DDR50(sd_card) (CHK_SD(sd_card) && \ sd_card 394 drivers/staging/rts5208/rtsx_chip.h ((sd_card)->sd_type & SD_DDR50)) sd_card 395 drivers/staging/rts5208/rtsx_chip.h #define CHK_SD_SDR104(sd_card) (CHK_SD(sd_card) && \ sd_card 396 drivers/staging/rts5208/rtsx_chip.h ((sd_card)->sd_type & SD_SDR104)) sd_card 397 drivers/staging/rts5208/rtsx_chip.h #define CHK_SD_HCXC(sd_card) (CHK_SD(sd_card) && \ sd_card 398 drivers/staging/rts5208/rtsx_chip.h ((sd_card)->sd_type & SD_HCXC)) sd_card 399 drivers/staging/rts5208/rtsx_chip.h #define CHK_SD_HC(sd_card) (CHK_SD_HCXC(sd_card) && \ sd_card 400 drivers/staging/rts5208/rtsx_chip.h ((sd_card)->capacity <= 0x4000000)) sd_card 401 drivers/staging/rts5208/rtsx_chip.h #define CHK_SD_XC(sd_card) (CHK_SD_HCXC(sd_card) && \ sd_card 402 drivers/staging/rts5208/rtsx_chip.h ((sd_card)->capacity > 0x4000000)) sd_card 403 drivers/staging/rts5208/rtsx_chip.h #define CHK_SD30_SPEED(sd_card) (CHK_SD_SDR50(sd_card) || \ sd_card 404 drivers/staging/rts5208/rtsx_chip.h CHK_SD_DDR50(sd_card) || \ sd_card 405 drivers/staging/rts5208/rtsx_chip.h CHK_SD_SDR104(sd_card)) sd_card 407 drivers/staging/rts5208/rtsx_chip.h #define SET_SD(sd_card) ((sd_card)->sd_type = TYPE_SD) sd_card 408 drivers/staging/rts5208/rtsx_chip.h #define SET_SD_HS(sd_card) ((sd_card)->sd_type |= SD_HS) sd_card 409 drivers/staging/rts5208/rtsx_chip.h #define SET_SD_SDR50(sd_card) ((sd_card)->sd_type |= SD_SDR50) sd_card 410 drivers/staging/rts5208/rtsx_chip.h #define SET_SD_DDR50(sd_card) ((sd_card)->sd_type |= SD_DDR50) sd_card 411 drivers/staging/rts5208/rtsx_chip.h #define SET_SD_SDR104(sd_card) ((sd_card)->sd_type |= SD_SDR104) sd_card 412 drivers/staging/rts5208/rtsx_chip.h #define SET_SD_HCXC(sd_card) ((sd_card)->sd_type |= SD_HCXC) sd_card 414 drivers/staging/rts5208/rtsx_chip.h #define CLR_SD_HS(sd_card) ((sd_card)->sd_type &= ~SD_HS) sd_card 415 drivers/staging/rts5208/rtsx_chip.h #define CLR_SD_SDR50(sd_card) ((sd_card)->sd_type &= ~SD_SDR50) sd_card 416 drivers/staging/rts5208/rtsx_chip.h #define CLR_SD_DDR50(sd_card) ((sd_card)->sd_type &= ~SD_DDR50) sd_card 417 drivers/staging/rts5208/rtsx_chip.h #define CLR_SD_SDR104(sd_card) ((sd_card)->sd_type &= ~SD_SDR104) sd_card 418 drivers/staging/rts5208/rtsx_chip.h #define CLR_SD_HCXC(sd_card) ((sd_card)->sd_type &= ~SD_HCXC) sd_card 421 drivers/staging/rts5208/rtsx_chip.h #define CHK_MMC(sd_card) (((sd_card)->sd_type & 0xFF) == \ sd_card 423 drivers/staging/rts5208/rtsx_chip.h #define CHK_MMC_26M(sd_card) (CHK_MMC(sd_card) && \ sd_card 424 drivers/staging/rts5208/rtsx_chip.h ((sd_card)->sd_type & MMC_26M)) sd_card 425 drivers/staging/rts5208/rtsx_chip.h #define CHK_MMC_52M(sd_card) (CHK_MMC(sd_card) && \ sd_card 426 drivers/staging/rts5208/rtsx_chip.h ((sd_card)->sd_type & MMC_52M)) sd_card 427 drivers/staging/rts5208/rtsx_chip.h #define CHK_MMC_4BIT(sd_card) (CHK_MMC(sd_card) && \ sd_card 428 drivers/staging/rts5208/rtsx_chip.h ((sd_card)->sd_type & MMC_4BIT)) sd_card 429 drivers/staging/rts5208/rtsx_chip.h #define CHK_MMC_8BIT(sd_card) (CHK_MMC(sd_card) && \ sd_card 430 drivers/staging/rts5208/rtsx_chip.h ((sd_card)->sd_type & MMC_8BIT)) sd_card 431 drivers/staging/rts5208/rtsx_chip.h #define CHK_MMC_SECTOR_MODE(sd_card) (CHK_MMC(sd_card) && \ sd_card 432 drivers/staging/rts5208/rtsx_chip.h ((sd_card)->sd_type & MMC_SECTOR_MODE)) sd_card 433 drivers/staging/rts5208/rtsx_chip.h #define CHK_MMC_DDR52(sd_card) (CHK_MMC(sd_card) && \ sd_card 434 drivers/staging/rts5208/rtsx_chip.h ((sd_card)->sd_type & MMC_DDR52)) sd_card 436 drivers/staging/rts5208/rtsx_chip.h #define SET_MMC(sd_card) ((sd_card)->sd_type = TYPE_MMC) sd_card 437 drivers/staging/rts5208/rtsx_chip.h #define SET_MMC_26M(sd_card) ((sd_card)->sd_type |= MMC_26M) sd_card 438 drivers/staging/rts5208/rtsx_chip.h #define SET_MMC_52M(sd_card) ((sd_card)->sd_type |= MMC_52M) sd_card 439 drivers/staging/rts5208/rtsx_chip.h #define SET_MMC_4BIT(sd_card) ((sd_card)->sd_type |= MMC_4BIT) sd_card 440 drivers/staging/rts5208/rtsx_chip.h #define SET_MMC_8BIT(sd_card) ((sd_card)->sd_type |= MMC_8BIT) sd_card 441 drivers/staging/rts5208/rtsx_chip.h #define SET_MMC_SECTOR_MODE(sd_card) ((sd_card)->sd_type |= MMC_SECTOR_MODE) sd_card 442 drivers/staging/rts5208/rtsx_chip.h #define SET_MMC_DDR52(sd_card) ((sd_card)->sd_type |= MMC_DDR52) sd_card 444 drivers/staging/rts5208/rtsx_chip.h #define CLR_MMC_26M(sd_card) ((sd_card)->sd_type &= ~MMC_26M) sd_card 445 drivers/staging/rts5208/rtsx_chip.h #define CLR_MMC_52M(sd_card) ((sd_card)->sd_type &= ~MMC_52M) sd_card 446 drivers/staging/rts5208/rtsx_chip.h #define CLR_MMC_4BIT(sd_card) ((sd_card)->sd_type &= ~MMC_4BIT) sd_card 447 drivers/staging/rts5208/rtsx_chip.h #define CLR_MMC_8BIT(sd_card) ((sd_card)->sd_type &= ~MMC_8BIT) sd_card 448 drivers/staging/rts5208/rtsx_chip.h #define CLR_MMC_SECTOR_MODE(sd_card) ((sd_card)->sd_type &= ~MMC_SECTOR_MODE) sd_card 449 drivers/staging/rts5208/rtsx_chip.h #define CLR_MMC_DDR52(sd_card) ((sd_card)->sd_type &= ~MMC_DDR52) sd_card 451 drivers/staging/rts5208/rtsx_chip.h #define CHK_MMC_HS(sd_card) (CHK_MMC_52M(sd_card) && \ sd_card 452 drivers/staging/rts5208/rtsx_chip.h CHK_MMC_26M(sd_card)) sd_card 453 drivers/staging/rts5208/rtsx_chip.h #define CLR_MMC_HS(sd_card) \ sd_card 455 drivers/staging/rts5208/rtsx_chip.h CLR_MMC_DDR52(sd_card); \ sd_card 456 drivers/staging/rts5208/rtsx_chip.h CLR_MMC_52M(sd_card); \ sd_card 457 drivers/staging/rts5208/rtsx_chip.h CLR_MMC_26M(sd_card); \ sd_card 463 drivers/staging/rts5208/rtsx_chip.h #define SD_SET_CLASS_TEN(sd_card) ((sd_card)->sd_setting |= \ sd_card 465 drivers/staging/rts5208/rtsx_chip.h #define SD_CHK_CLASS_TEN(sd_card) ((sd_card)->sd_setting & \ sd_card 467 drivers/staging/rts5208/rtsx_chip.h #define SD_CLR_CLASS_TEN(sd_card) ((sd_card)->sd_setting &= \ sd_card 469 drivers/staging/rts5208/rtsx_chip.h #define SD_SET_1V8(sd_card) ((sd_card)->sd_setting |= \ sd_card 471 drivers/staging/rts5208/rtsx_chip.h #define SD_CHK_1V8(sd_card) ((sd_card)->sd_setting & \ sd_card 473 drivers/staging/rts5208/rtsx_chip.h #define SD_CLR_1V8(sd_card) ((sd_card)->sd_setting &= \ sd_card 770 drivers/staging/rts5208/rtsx_chip.h struct sd_info sd_card; sd_card 428 drivers/staging/rts5208/rtsx_scsi.c struct sd_info *sd_card = &chip->sd_card; sd_card 430 drivers/staging/rts5208/rtsx_scsi.c if (sd_card->sd_lock_notify) { sd_card 431 drivers/staging/rts5208/rtsx_scsi.c sd_card->sd_lock_notify = 0; sd_card 434 drivers/staging/rts5208/rtsx_scsi.c } else if (sd_card->sd_lock_status & SD_LOCKED) { sd_card 836 drivers/staging/rts5208/rtsx_scsi.c struct sd_info *sd_card = &chip->sd_card; sd_card 863 drivers/staging/rts5208/rtsx_scsi.c if (sd_card->sd_erase_status) { sd_card 873 drivers/staging/rts5208/rtsx_scsi.c if (sd_card->sd_lock_status & SD_LOCKED) { sd_card 1296 drivers/staging/rts5208/rtsx_scsi.c struct sd_info *sd_card = &chip->sd_card; sd_card 1310 drivers/staging/rts5208/rtsx_scsi.c rtsx_stor_set_xfer_buf(sd_card->raw_csd, scsi_bufflen(srb), srb); sd_card 1400 drivers/staging/rts5208/rtsx_scsi.c struct sd_info *sd_card = &chip->sd_card; sd_card 1409 drivers/staging/rts5208/rtsx_scsi.c sd_card->sd_clock = srb->cmnd[5]; sd_card 1461 drivers/staging/rts5208/rtsx_scsi.c struct sd_info *sd_card = &chip->sd_card; sd_card 1471 drivers/staging/rts5208/rtsx_scsi.c tmp = (u8)(sd_card->sd_clock); sd_card 1539 drivers/staging/rts5208/rtsx_scsi.c struct sd_info *sd_card = &chip->sd_card; sd_card 1588 drivers/staging/rts5208/rtsx_scsi.c if (CHK_SD(sd_card)) { sd_card 1589 drivers/staging/rts5208/rtsx_scsi.c if (CHK_SD_HCXC(sd_card)) { sd_card 1590 drivers/staging/rts5208/rtsx_scsi.c if (sd_card->capacity > 0x4000000) sd_card 1598 drivers/staging/rts5208/rtsx_scsi.c if (CHK_SD_SDR104(sd_card)) sd_card 1600 drivers/staging/rts5208/rtsx_scsi.c else if (CHK_SD_DDR50(sd_card)) sd_card 1602 drivers/staging/rts5208/rtsx_scsi.c else if (CHK_SD_SDR50(sd_card)) sd_card 1604 drivers/staging/rts5208/rtsx_scsi.c else if (CHK_SD_HS(sd_card)) sd_card 1609 drivers/staging/rts5208/rtsx_scsi.c if (CHK_MMC_SECTOR_MODE(sd_card)) sd_card 1614 drivers/staging/rts5208/rtsx_scsi.c if (CHK_MMC_DDR52(sd_card)) sd_card 1616 drivers/staging/rts5208/rtsx_scsi.c else if (CHK_MMC_52M(sd_card)) sd_card 1618 drivers/staging/rts5208/rtsx_scsi.c else if (CHK_MMC_26M(sd_card)) sd_card 1640 drivers/staging/rts5208/rtsx_scsi.c if (sd_card->sd_erase_status) sd_card 1642 drivers/staging/rts5208/rtsx_scsi.c if (sd_card->sd_lock_status & SD_LOCKED) { sd_card 1646 drivers/staging/rts5208/rtsx_scsi.c if (sd_card->sd_lock_status & SD_PWD_EXIST) sd_card 2476 drivers/staging/rts5208/rtsx_scsi.c struct sd_info *sd_card = &chip->sd_card; sd_card 2479 drivers/staging/rts5208/rtsx_scsi.c if (CHK_SD(sd_card)) { sd_card 2480 drivers/staging/rts5208/rtsx_scsi.c if (CHK_SD_HCXC(sd_card)) sd_card 2482 drivers/staging/rts5208/rtsx_scsi.c if (CHK_SD_HS(sd_card)) sd_card 2486 drivers/staging/rts5208/rtsx_scsi.c if (CHK_MMC_52M(sd_card)) sd_card 2488 drivers/staging/rts5208/rtsx_scsi.c if (CHK_MMC_SECTOR_MODE(sd_card)) sd_card 3164 drivers/staging/rts5208/rtsx_scsi.c struct sd_info *sd_card = &chip->sd_card; sd_card 3171 drivers/staging/rts5208/rtsx_scsi.c if (sd_card->sd_erase_status) { sd_card 48 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 50 drivers/staging/rts5208/sd.c sd_card->err_code |= err_code; sd_card 55 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 57 drivers/staging/rts5208/sd.c sd_card->err_code = 0; sd_card 62 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 64 drivers/staging/rts5208/sd.c return sd_card->err_code & err_code; sd_card 115 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 248 drivers/staging/rts5208/sd.c sd_card->sd_data_buf_ready = 1; sd_card 250 drivers/staging/rts5208/sd.c sd_card->sd_data_buf_ready = 0; sd_card 265 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 311 drivers/staging/rts5208/sd.c sd_send_cmd_get_rsp(chip, SEND_STATUS, sd_card->sd_addr, sd_card 331 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 383 drivers/staging/rts5208/sd.c sd_send_cmd_get_rsp(chip, SEND_STATUS, sd_card->sd_addr, sd_card 395 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 407 drivers/staging/rts5208/sd.c retval = sd_send_cmd_get_rsp(chip, SEND_CSD, sd_card->sd_addr, sd_card 416 drivers/staging/rts5208/sd.c memcpy(sd_card->raw_csd, rsp + 1, 15); sd_card 419 drivers/staging/rts5208/sd.c dev_dbg(rtsx_dev(chip), "%*ph\n", 16, sd_card->raw_csd); sd_card 428 drivers/staging/rts5208/sd.c sd_card->sd_clock = 47; sd_card 430 drivers/staging/rts5208/sd.c sd_card->sd_clock = CLK_50; sd_card 434 drivers/staging/rts5208/sd.c sd_card->sd_clock = 39; sd_card 436 drivers/staging/rts5208/sd.c sd_card->sd_clock = CLK_40; sd_card 440 drivers/staging/rts5208/sd.c sd_card->sd_clock = 29; sd_card 442 drivers/staging/rts5208/sd.c sd_card->sd_clock = CLK_30; sd_card 446 drivers/staging/rts5208/sd.c sd_card->sd_clock = 23; sd_card 448 drivers/staging/rts5208/sd.c sd_card->sd_clock = CLK_20; sd_card 452 drivers/staging/rts5208/sd.c sd_card->sd_clock = 19; sd_card 454 drivers/staging/rts5208/sd.c sd_card->sd_clock = CLK_20; sd_card 462 drivers/staging/rts5208/sd.c if (CHK_MMC_SECTOR_MODE(sd_card)) { sd_card 463 drivers/staging/rts5208/sd.c sd_card->capacity = 0; sd_card 465 drivers/staging/rts5208/sd.c if ((!CHK_SD_HCXC(sd_card)) || (csd_ver == 0)) { sd_card 475 drivers/staging/rts5208/sd.c sd_card->capacity = (((u32)(c_size + 1)) * sd_card 483 drivers/staging/rts5208/sd.c sd_card->capacity = (total_sector + 1) << 10; sd_card 500 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 508 drivers/staging/rts5208/sd.c if (CHK_SD_HS(sd_card) || CHK_MMC_52M(sd_card)) { sd_card 537 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 539 drivers/staging/rts5208/sd.c if (CHK_SD_SDR104(sd_card)) { sd_card 541 drivers/staging/rts5208/sd.c sd_card->sd_clock = chip->asic_sd_sdr104_clk; sd_card 543 drivers/staging/rts5208/sd.c sd_card->sd_clock = chip->fpga_sd_sdr104_clk; sd_card 545 drivers/staging/rts5208/sd.c } else if (CHK_SD_DDR50(sd_card)) { sd_card 547 drivers/staging/rts5208/sd.c sd_card->sd_clock = chip->asic_sd_ddr50_clk; sd_card 549 drivers/staging/rts5208/sd.c sd_card->sd_clock = chip->fpga_sd_ddr50_clk; sd_card 551 drivers/staging/rts5208/sd.c } else if (CHK_SD_SDR50(sd_card)) { sd_card 553 drivers/staging/rts5208/sd.c sd_card->sd_clock = chip->asic_sd_sdr50_clk; sd_card 555 drivers/staging/rts5208/sd.c sd_card->sd_clock = chip->fpga_sd_sdr50_clk; sd_card 557 drivers/staging/rts5208/sd.c } else if (CHK_SD_HS(sd_card)) { sd_card 559 drivers/staging/rts5208/sd.c sd_card->sd_clock = chip->asic_sd_hs_clk; sd_card 561 drivers/staging/rts5208/sd.c sd_card->sd_clock = chip->fpga_sd_hs_clk; sd_card 563 drivers/staging/rts5208/sd.c } else if (CHK_MMC_52M(sd_card) || CHK_MMC_DDR52(sd_card)) { sd_card 565 drivers/staging/rts5208/sd.c sd_card->sd_clock = chip->asic_mmc_52m_clk; sd_card 567 drivers/staging/rts5208/sd.c sd_card->sd_clock = chip->fpga_mmc_52m_clk; sd_card 569 drivers/staging/rts5208/sd.c } else if (CHK_MMC_26M(sd_card)) { sd_card 571 drivers/staging/rts5208/sd.c sd_card->sd_clock = 48; sd_card 573 drivers/staging/rts5208/sd.c sd_card->sd_clock = CLK_50; sd_card 599 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 608 drivers/staging/rts5208/sd.c retval = switch_clock(chip, sd_card->sd_clock); sd_card 617 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 625 drivers/staging/rts5208/sd.c addr = sd_card->sd_addr; sd_card 642 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 646 drivers/staging/rts5208/sd.c retval = sd_send_cmd_get_rsp(chip, SEND_STATUS, sd_card->sd_addr, sd_card 652 drivers/staging/rts5208/sd.c sd_card->sd_lock_status |= SD_LOCKED; sd_card 654 drivers/staging/rts5208/sd.c sd_card->sd_lock_status &= ~SD_LOCKED; sd_card 657 drivers/staging/rts5208/sd.c sd_card->sd_lock_status); sd_card 669 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 675 drivers/staging/rts5208/sd.c sd_card->sd_addr, SD_RSP_TYPE_R1, sd_card 817 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 829 drivers/staging/rts5208/sd.c if (CHK_SD_DDR50(sd_card)) sd_card 945 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 949 drivers/staging/rts5208/sd.c retval = sd_send_cmd_get_rsp(chip, APP_CMD, sd_card->sd_addr, sd_card 967 drivers/staging/rts5208/sd.c memcpy(sd_card->raw_scr, buf, 8); sd_card 1091 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 1130 drivers/staging/rts5208/sd.c sd_card->func_group1_mask = buf[0x0D]; sd_card 1131 drivers/staging/rts5208/sd.c sd_card->func_group2_mask = buf[0x0B]; sd_card 1132 drivers/staging/rts5208/sd.c sd_card->func_group3_mask = buf[0x09]; sd_card 1133 drivers/staging/rts5208/sd.c sd_card->func_group4_mask = buf[0x07]; sd_card 1240 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 1251 drivers/staging/rts5208/sd.c sd_card->func_group1_mask &= ~(sd_card->sd_switch_fail); sd_card 1257 drivers/staging/rts5208/sd.c if ((sd_card->func_group1_mask & SDR104_SUPPORT_MASK) && sd_card 1264 drivers/staging/rts5208/sd.c if ((sd_card->func_group1_mask & DDR50_SUPPORT_MASK) && sd_card 1271 drivers/staging/rts5208/sd.c if ((sd_card->func_group1_mask & SDR50_SUPPORT_MASK) && sd_card 1278 drivers/staging/rts5208/sd.c if (sd_card->func_group1_mask & HS_SUPPORT_MASK) sd_card 1294 drivers/staging/rts5208/sd.c if ((sd_card->sd_lock_status & SD_SDR_RST) && sd_card 1296 drivers/staging/rts5208/sd.c (sd_card->func_group1_mask & SDR50_SUPPORT_MASK)) { sd_card 1307 drivers/staging/rts5208/sd.c sd_card->sd_switch_fail = SDR104_SUPPORT_MASK; sd_card 1309 drivers/staging/rts5208/sd.c sd_card->sd_switch_fail = SDR104_SUPPORT_MASK | sd_card 1312 drivers/staging/rts5208/sd.c sd_card->sd_switch_fail = SDR104_SUPPORT_MASK | sd_card 1319 drivers/staging/rts5208/sd.c SET_SD_SDR104(sd_card); sd_card 1321 drivers/staging/rts5208/sd.c SET_SD_DDR50(sd_card); sd_card 1323 drivers/staging/rts5208/sd.c SET_SD_SDR50(sd_card); sd_card 1325 drivers/staging/rts5208/sd.c SET_SD_HS(sd_card); sd_card 1328 drivers/staging/rts5208/sd.c if (CHK_SD_DDR50(sd_card)) { sd_card 1351 drivers/staging/rts5208/sd.c if (sd_card->func_group4_mask & CURRENT_LIMIT_800_MASK) sd_card 1357 drivers/staging/rts5208/sd.c if (sd_card->func_group4_mask & CURRENT_LIMIT_600_MASK) sd_card 1363 drivers/staging/rts5208/sd.c if (sd_card->func_group4_mask & CURRENT_LIMIT_400_MASK) sd_card 1369 drivers/staging/rts5208/sd.c if (sd_card->func_group4_mask & CURRENT_LIMIT_200_MASK) sd_card 1396 drivers/staging/rts5208/sd.c if (CHK_SD_DDR50(sd_card)) { sd_card 1455 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 1465 drivers/staging/rts5208/sd.c retval = sd_send_cmd_get_rsp(chip, APP_CMD, sd_card->sd_addr, sd_card 1490 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 1494 drivers/staging/rts5208/sd.c if (CHK_MMC_8BIT(sd_card)) sd_card 1496 drivers/staging/rts5208/sd.c else if (CHK_MMC_4BIT(sd_card)) sd_card 1527 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 1539 drivers/staging/rts5208/sd.c retval = sd_send_cmd_get_rsp(chip, SEND_STATUS, sd_card->sd_addr, sd_card 1559 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 1567 drivers/staging/rts5208/sd.c if (CHK_SD(sd_card)) { sd_card 1570 drivers/staging/rts5208/sd.c if (CHK_MMC_8BIT(sd_card)) sd_card 1572 drivers/staging/rts5208/sd.c else if (CHK_MMC_4BIT(sd_card)) sd_card 1594 drivers/staging/rts5208/sd.c bus_width, sd_card->raw_csd, 16, 100); sd_card 1606 drivers/staging/rts5208/sd.c sd_send_cmd_get_rsp(chip, SEND_STATUS, sd_card->sd_addr, SD_RSP_TYPE_R1, sd_card 1615 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 1697 drivers/staging/rts5208/sd.c if (CHK_SD_SDR104(sd_card)) { sd_card 1710 drivers/staging/rts5208/sd.c } else if (CHK_SD_SDR50(sd_card)) { sd_card 1733 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 1740 drivers/staging/rts5208/sd.c if (CHK_SD(sd_card)) { sd_card 1741 drivers/staging/rts5208/sd.c if (CHK_SD_DDR50(sd_card)) sd_card 1747 drivers/staging/rts5208/sd.c if (CHK_MMC_DDR52(sd_card)) sd_card 1787 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 1812 drivers/staging/rts5208/sd.c sd_card->sd_addr, SD_RSP_TYPE_R1, sd_card 1843 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 1850 drivers/staging/rts5208/sd.c if (CHK_SD(sd_card)) { sd_card 1851 drivers/staging/rts5208/sd.c if (CHK_SD_DDR50(sd_card)) sd_card 1857 drivers/staging/rts5208/sd.c if (CHK_MMC_DDR52(sd_card)) sd_card 1970 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 1978 drivers/staging/rts5208/sd.c retval = switch_clock(chip, sd_card->sd_clock); sd_card 1983 drivers/staging/rts5208/sd.c if (CHK_SD(sd_card)) { sd_card 1984 drivers/staging/rts5208/sd.c if (CHK_SD_DDR50(sd_card)) sd_card 1989 drivers/staging/rts5208/sd.c if (CHK_MMC_DDR52(sd_card)) sd_card 2002 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 2006 drivers/staging/rts5208/sd.c sd_card->sd_clock = 29; sd_card 2008 drivers/staging/rts5208/sd.c sd_card->sd_clock = CLK_30; sd_card 2010 drivers/staging/rts5208/sd.c sd_card->sd_type = 0; sd_card 2011 drivers/staging/rts5208/sd.c sd_card->seq_mode = 0; sd_card 2012 drivers/staging/rts5208/sd.c sd_card->sd_data_buf_ready = 0; sd_card 2013 drivers/staging/rts5208/sd.c sd_card->capacity = 0; sd_card 2016 drivers/staging/rts5208/sd.c sd_card->sd_lock_status = 0; sd_card 2017 drivers/staging/rts5208/sd.c sd_card->sd_erase_status = 0; sd_card 2207 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 2217 drivers/staging/rts5208/sd.c if (CHK_SD(sd_card)) { sd_card 2220 drivers/staging/rts5208/sd.c if (CHK_MMC_8BIT(sd_card)) sd_card 2222 drivers/staging/rts5208/sd.c else if (CHK_MMC_4BIT(sd_card)) sd_card 2240 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 2246 drivers/staging/rts5208/sd.c retval = sd_send_cmd_get_rsp(chip, APP_CMD, sd_card->sd_addr, sd_card 2262 drivers/staging/rts5208/sd.c sd_send_cmd_get_rsp(chip, SEND_STATUS, sd_card->sd_addr, sd_card 2287 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 2298 drivers/staging/rts5208/sd.c SET_SD(sd_card); sd_card 2308 drivers/staging/rts5208/sd.c if (sd_card->sd_lock_status & SD_UNLOCK_POW_ON) sd_card 2416 drivers/staging/rts5208/sd.c SET_SD_HCXC(sd_card); sd_card 2418 drivers/staging/rts5208/sd.c CLR_SD_HCXC(sd_card); sd_card 2422 drivers/staging/rts5208/sd.c CLR_SD_HCXC(sd_card); sd_card 2444 drivers/staging/rts5208/sd.c sd_card->sd_addr = (u32)rsp[1] << 24; sd_card 2445 drivers/staging/rts5208/sd.c sd_card->sd_addr += (u32)rsp[2] << 16; sd_card 2447 drivers/staging/rts5208/sd.c if (sd_card->sd_addr) sd_card 2465 drivers/staging/rts5208/sd.c if (sd_card->sd_lock_status & SD_LOCKED) { sd_card 2466 drivers/staging/rts5208/sd.c sd_card->sd_lock_status |= (SD_LOCK_1BIT_MODE | SD_PWD_EXIST); sd_card 2468 drivers/staging/rts5208/sd.c } else if (!(sd_card->sd_lock_status & SD_UNLOCK_POW_ON)) { sd_card 2469 drivers/staging/rts5208/sd.c sd_card->sd_lock_status &= ~SD_PWD_EXIST; sd_card 2473 drivers/staging/rts5208/sd.c retval = sd_send_cmd_get_rsp(chip, APP_CMD, sd_card->sd_addr, sd_card 2484 drivers/staging/rts5208/sd.c retval = sd_send_cmd_get_rsp(chip, APP_CMD, sd_card->sd_addr, sd_card 2508 drivers/staging/rts5208/sd.c if (!(sd_card->raw_csd[4] & 0x40)) sd_card 2516 drivers/staging/rts5208/sd.c sd_card->sd_switch_fail = SDR104_SUPPORT_MASK | sd_card 2543 drivers/staging/rts5208/sd.c retval = sd_send_cmd_get_rsp(chip, APP_CMD, sd_card->sd_addr, sd_card 2555 drivers/staging/rts5208/sd.c sd_card->sd_lock_status &= ~SD_LOCK_1BIT_MODE; sd_card 2558 drivers/staging/rts5208/sd.c if (!sd20_mode && CHK_SD30_SPEED(sd_card)) { sd_card 2570 drivers/staging/rts5208/sd.c if (CHK_SD_DDR50(sd_card)) sd_card 2585 drivers/staging/rts5208/sd.c sd_send_cmd_get_rsp(chip, SEND_STATUS, sd_card->sd_addr, sd_card 2588 drivers/staging/rts5208/sd.c if (CHK_SD_DDR50(sd_card)) { sd_card 2615 drivers/staging/rts5208/sd.c if (sd_card->sd_lock_status & SD_UNLOCK_POW_ON) { sd_card 2635 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 2720 drivers/staging/rts5208/sd.c if (CHK_MMC_DDR52(sd_card)) sd_card 2737 drivers/staging/rts5208/sd.c if (CHK_MMC_DDR52(sd_card)) sd_card 2755 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 2759 drivers/staging/rts5208/sd.c CLR_MMC_HS(sd_card); sd_card 2797 drivers/staging/rts5208/sd.c sd_send_cmd_get_rsp(chip, SEND_STATUS, sd_card->sd_addr, sd_card 2805 drivers/staging/rts5208/sd.c sd_send_cmd_get_rsp(chip, SEND_STATUS, sd_card->sd_addr, sd_card 2810 drivers/staging/rts5208/sd.c if (CHK_MMC_SECTOR_MODE(sd_card)) { sd_card 2811 drivers/staging/rts5208/sd.c sd_card->capacity = ((u32)ptr[5] << 24) | ((u32)ptr[4] << 16) | sd_card 2822 drivers/staging/rts5208/sd.c SET_MMC_DDR52(sd_card); sd_card 2824 drivers/staging/rts5208/sd.c SET_MMC_52M(sd_card); sd_card 2826 drivers/staging/rts5208/sd.c SET_MMC_52M(sd_card); sd_card 2828 drivers/staging/rts5208/sd.c SET_MMC_26M(sd_card); sd_card 2834 drivers/staging/rts5208/sd.c CLR_MMC_HS(sd_card); sd_card 2838 drivers/staging/rts5208/sd.c retval = switch_clock(chip, sd_card->sd_clock); sd_card 2845 drivers/staging/rts5208/sd.c SET_MMC_8BIT(sd_card); sd_card 2848 drivers/staging/rts5208/sd.c sd_card->sd_lock_status &= ~SD_LOCK_1BIT_MODE; sd_card 2853 drivers/staging/rts5208/sd.c SET_MMC_4BIT(sd_card); sd_card 2856 drivers/staging/rts5208/sd.c sd_card->sd_lock_status &= ~SD_LOCK_1BIT_MODE; sd_card 2859 drivers/staging/rts5208/sd.c CLR_MMC_8BIT(sd_card); sd_card 2860 drivers/staging/rts5208/sd.c CLR_MMC_4BIT(sd_card); sd_card 2873 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 2881 drivers/staging/rts5208/sd.c if (sd_card->sd_lock_status & SD_UNLOCK_POW_ON) sd_card 2890 drivers/staging/rts5208/sd.c SET_MMC(sd_card); sd_card 2936 drivers/staging/rts5208/sd.c SET_MMC_SECTOR_MODE(sd_card); sd_card 2938 drivers/staging/rts5208/sd.c CLR_MMC_SECTOR_MODE(sd_card); sd_card 2945 drivers/staging/rts5208/sd.c sd_card->sd_addr = 0x00100000; sd_card 2946 drivers/staging/rts5208/sd.c retval = sd_send_cmd_get_rsp(chip, SET_RELATIVE_ADDR, sd_card->sd_addr, sd_card 2955 drivers/staging/rts5208/sd.c spec_ver = (sd_card->raw_csd[0] & 0x3C) >> 2; sd_card 2979 drivers/staging/rts5208/sd.c if (!sd_card->mmc_dont_switch_bus) { sd_card 2987 drivers/staging/rts5208/sd.c sd_card->mmc_dont_switch_bus = 1; sd_card 2992 drivers/staging/rts5208/sd.c if (CHK_MMC_SECTOR_MODE(sd_card) && (sd_card->capacity == 0)) sd_card 2995 drivers/staging/rts5208/sd.c if (switch_ddr && CHK_MMC_DDR52(sd_card)) { sd_card 3026 drivers/staging/rts5208/sd.c if (sd_card->sd_lock_status & SD_UNLOCK_POW_ON) { sd_card 3047 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 3052 drivers/staging/rts5208/sd.c memset(sd_card, 0, sizeof(struct sd_info)); sd_card 3119 drivers/staging/rts5208/sd.c chip->capacity[chip->card2lun[SD_CARD]] = sd_card->capacity; sd_card 3125 drivers/staging/rts5208/sd.c dev_dbg(rtsx_dev(chip), "sd_card->sd_type = 0x%x\n", sd_card->sd_type); sd_card 3132 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 3135 drivers/staging/rts5208/sd.c sd_card->sd_type = 0; sd_card 3136 drivers/staging/rts5208/sd.c sd_card->seq_mode = 0; sd_card 3137 drivers/staging/rts5208/sd.c sd_card->sd_data_buf_ready = 0; sd_card 3138 drivers/staging/rts5208/sd.c sd_card->capacity = 0; sd_card 3139 drivers/staging/rts5208/sd.c sd_card->sd_switch_fail = 0; sd_card 3142 drivers/staging/rts5208/sd.c sd_card->sd_lock_status = 0; sd_card 3143 drivers/staging/rts5208/sd.c sd_card->sd_erase_status = 0; sd_card 3146 drivers/staging/rts5208/sd.c chip->capacity[chip->card2lun[SD_CARD]] = sd_card->capacity = 0; sd_card 3171 drivers/staging/rts5208/sd.c chip->capacity[chip->card2lun[SD_CARD]] = sd_card->capacity; sd_card 3178 drivers/staging/rts5208/sd.c __func__, sd_card->sd_type); sd_card 3187 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 3196 drivers/staging/rts5208/sd.c sd_card->sd_data_buf_ready = 0; sd_card 3199 drivers/staging/rts5208/sd.c sd_card->sd_addr, SD_RSP_TYPE_R1, sd_card 3204 drivers/staging/rts5208/sd.c if (sd_card->sd_data_buf_ready) { sd_card 3206 drivers/staging/rts5208/sd.c sd_card->sd_addr, SD_RSP_TYPE_R1, NULL, 0); sd_card 3217 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 3220 drivers/staging/rts5208/sd.c if (sd_card->seq_mode) { sd_card 3234 drivers/staging/rts5208/sd.c sd_card->seq_mode = 0; sd_card 3242 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 3246 drivers/staging/rts5208/sd.c if (sd_card->sd_clock > 30) sd_card 3247 drivers/staging/rts5208/sd.c sd_card->sd_clock -= 20; sd_card 3249 drivers/staging/rts5208/sd.c switch (sd_card->sd_clock) { sd_card 3251 drivers/staging/rts5208/sd.c sd_card->sd_clock = CLK_150; sd_card 3255 drivers/staging/rts5208/sd.c sd_card->sd_clock = CLK_120; sd_card 3259 drivers/staging/rts5208/sd.c sd_card->sd_clock = CLK_100; sd_card 3263 drivers/staging/rts5208/sd.c sd_card->sd_clock = CLK_80; sd_card 3267 drivers/staging/rts5208/sd.c sd_card->sd_clock = CLK_60; sd_card 3271 drivers/staging/rts5208/sd.c sd_card->sd_clock = CLK_50; sd_card 3289 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 3304 drivers/staging/rts5208/sd.c sd_card->cleanup_counter = 0; sd_card 3307 drivers/staging/rts5208/sd.c sd_card->seq_mode = 0; sd_card 3322 drivers/staging/rts5208/sd.c if (!CHK_SD_HCXC(sd_card) && !CHK_MMC_SECTOR_MODE(sd_card)) sd_card 3335 drivers/staging/rts5208/sd.c if (sd_card->seq_mode && sd_card 3336 drivers/staging/rts5208/sd.c ((sd_card->pre_dir != srb->sc_data_direction) || sd_card 3337 drivers/staging/rts5208/sd.c ((sd_card->pre_sec_addr + sd_card->pre_sec_cnt) != sd_card 3339 drivers/staging/rts5208/sd.c if ((sd_card->pre_sec_cnt < 0x80) && sd_card 3340 drivers/staging/rts5208/sd.c (sd_card->pre_dir == DMA_FROM_DEVICE) && sd_card 3341 drivers/staging/rts5208/sd.c !CHK_SD30_SPEED(sd_card) && sd_card 3342 drivers/staging/rts5208/sd.c !CHK_SD_HS(sd_card) && sd_card 3343 drivers/staging/rts5208/sd.c !CHK_MMC_HS(sd_card)) { sd_card 3344 drivers/staging/rts5208/sd.c sd_send_cmd_get_rsp(chip, SEND_STATUS, sd_card->sd_addr, sd_card 3356 drivers/staging/rts5208/sd.c sd_card->seq_mode = 0; sd_card 3364 drivers/staging/rts5208/sd.c if ((sd_card->pre_sec_cnt < 0x80) && sd_card 3365 drivers/staging/rts5208/sd.c !CHK_SD30_SPEED(sd_card) && sd_card 3366 drivers/staging/rts5208/sd.c !CHK_SD_HS(sd_card) && sd_card 3367 drivers/staging/rts5208/sd.c !CHK_MMC_HS(sd_card)) { sd_card 3368 drivers/staging/rts5208/sd.c sd_send_cmd_get_rsp(chip, SEND_STATUS, sd_card->sd_addr, sd_card 3384 drivers/staging/rts5208/sd.c if (CHK_MMC_8BIT(sd_card)) sd_card 3387 drivers/staging/rts5208/sd.c else if (CHK_MMC_4BIT(sd_card) || CHK_SD(sd_card)) sd_card 3394 drivers/staging/rts5208/sd.c if (sd_card->seq_mode) { sd_card 3489 drivers/staging/rts5208/sd.c sd_card->seq_mode = 1; sd_card 3499 drivers/staging/rts5208/sd.c sd_card->seq_mode = 0; sd_card 3538 drivers/staging/rts5208/sd.c sd_card->pre_sec_addr = start_sector; sd_card 3539 drivers/staging/rts5208/sd.c sd_card->pre_sec_cnt = sector_cnt; sd_card 3540 drivers/staging/rts5208/sd.c sd_card->pre_dir = srb->sc_data_direction; sd_card 3545 drivers/staging/rts5208/sd.c sd_card->seq_mode = 0; sd_card 3554 drivers/staging/rts5208/sd.c if (CHK_MMC_4BIT(sd_card) || CHK_MMC_8BIT(sd_card)) { sd_card 3555 drivers/staging/rts5208/sd.c sd_card->mmc_dont_switch_bus = 1; sd_card 3557 drivers/staging/rts5208/sd.c sd_card->mmc_dont_switch_bus = 0; sd_card 3559 drivers/staging/rts5208/sd.c sd_card->need_retune = 1; sd_card 3743 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 3767 drivers/staging/rts5208/sd.c sd_card->pre_cmd_err = 0; sd_card 3785 drivers/staging/rts5208/sd.c sd_card->sd_pass_thru_en = 0; sd_card 3789 drivers/staging/rts5208/sd.c sd_card->sd_pass_thru_en = 1; sd_card 3797 drivers/staging/rts5208/sd.c buf[5] = (CHK_SD(sd_card) == 1) ? 0x01 : 0x02; sd_card 3801 drivers/staging/rts5208/sd.c buf[6] = (u8)(sd_card->sd_addr >> 16); sd_card 3802 drivers/staging/rts5208/sd.c buf[7] = (u8)(sd_card->sd_addr >> 24); sd_card 3853 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 3860 drivers/staging/rts5208/sd.c if (!sd_card->sd_pass_thru_en) { sd_card 3869 drivers/staging/rts5208/sd.c if (sd_card->pre_cmd_err) { sd_card 3870 drivers/staging/rts5208/sd.c sd_card->pre_cmd_err = 0; sd_card 3890 drivers/staging/rts5208/sd.c sd_card->last_rsp_type = rsp_type; sd_card 3897 drivers/staging/rts5208/sd.c if ((sd_card->sd_lock_status & SD_LOCK_1BIT_MODE) == 0) { sd_card 3898 drivers/staging/rts5208/sd.c if (CHK_MMC_8BIT(sd_card)) { sd_card 3904 drivers/staging/rts5208/sd.c } else if (CHK_SD(sd_card) || CHK_MMC_4BIT(sd_card)) { sd_card 3925 drivers/staging/rts5208/sd.c sd_card->sd_addr, sd_card 3933 drivers/staging/rts5208/sd.c sd_card->rsp, rsp_len, false); sd_card 3953 drivers/staging/rts5208/sd.c sd_card->pre_cmd_err = 1; sd_card 3965 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 3973 drivers/staging/rts5208/sd.c if (!sd_card->sd_pass_thru_en) { sd_card 3978 drivers/staging/rts5208/sd.c if (sd_card->pre_cmd_err) { sd_card 3979 drivers/staging/rts5208/sd.c sd_card->pre_cmd_err = 0; sd_card 4006 drivers/staging/rts5208/sd.c sd_card->last_rsp_type = rsp_type; sd_card 4013 drivers/staging/rts5208/sd.c if ((sd_card->sd_lock_status & SD_LOCK_1BIT_MODE) == 0) { sd_card 4014 drivers/staging/rts5208/sd.c if (CHK_MMC_8BIT(sd_card)) sd_card 4016 drivers/staging/rts5208/sd.c else if (CHK_SD(sd_card) || CHK_MMC_4BIT(sd_card)) sd_card 4044 drivers/staging/rts5208/sd.c sd_card->sd_addr, sd_card 4132 drivers/staging/rts5208/sd.c retval = ext_sd_get_rsp(chip, rsp_len, sd_card->rsp, rsp_type); sd_card 4171 drivers/staging/rts5208/sd.c sd_card->sd_addr, sd_card 4184 drivers/staging/rts5208/sd.c sd_card->pre_cmd_err = 1; sd_card 4199 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 4212 drivers/staging/rts5208/sd.c if (!sd_card->sd_pass_thru_en) { sd_card 4217 drivers/staging/rts5208/sd.c if (sd_card->pre_cmd_err) { sd_card 4218 drivers/staging/rts5208/sd.c sd_card->pre_cmd_err = 0; sd_card 4244 drivers/staging/rts5208/sd.c sd_lock_state = sd_card->sd_lock_status; sd_card 4254 drivers/staging/rts5208/sd.c sd_card->last_rsp_type = rsp_type; sd_card 4261 drivers/staging/rts5208/sd.c if ((sd_card->sd_lock_status & SD_LOCK_1BIT_MODE) == 0) { sd_card 4262 drivers/staging/rts5208/sd.c if (CHK_MMC_8BIT(sd_card)) { sd_card 4268 drivers/staging/rts5208/sd.c } else if (CHK_SD(sd_card) || CHK_MMC_4BIT(sd_card)) { sd_card 4297 drivers/staging/rts5208/sd.c sd_card->sd_addr, sd_card 4305 drivers/staging/rts5208/sd.c sd_card->rsp, rsp_len, false); sd_card 4419 drivers/staging/rts5208/sd.c sd_card->sd_erase_status = SD_UNDER_ERASING; sd_card 4477 drivers/staging/rts5208/sd.c sd_card->sd_addr, sd_card 4492 drivers/staging/rts5208/sd.c sd_card->sd_lock_status &= ~SD_PWD_EXIST; sd_card 4495 drivers/staging/rts5208/sd.c sd_card->sd_lock_status |= SD_PWD_EXIST; sd_card 4499 drivers/staging/rts5208/sd.c sd_lock_state, sd_card->sd_lock_status); sd_card 4500 drivers/staging/rts5208/sd.c if (sd_lock_state ^ (sd_card->sd_lock_status & SD_LOCKED)) { sd_card 4501 drivers/staging/rts5208/sd.c sd_card->sd_lock_notify = 1; sd_card 4503 drivers/staging/rts5208/sd.c (sd_card->sd_lock_status & SD_LOCK_1BIT_MODE)) { sd_card 4504 drivers/staging/rts5208/sd.c sd_card->sd_lock_status |= ( sd_card 4506 drivers/staging/rts5208/sd.c if (CHK_SD(sd_card)) { sd_card 4509 drivers/staging/rts5208/sd.c sd_card->sd_lock_status &= ~(SD_UNLOCK_POW_ON | SD_SDR_RST); sd_card 4514 drivers/staging/rts5208/sd.c sd_card->sd_lock_status &= ~(SD_UNLOCK_POW_ON | SD_SDR_RST); sd_card 4530 drivers/staging/rts5208/sd.c sd_card->pre_cmd_err = 1; sd_card 4545 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 4550 drivers/staging/rts5208/sd.c if (!sd_card->sd_pass_thru_en) { sd_card 4555 drivers/staging/rts5208/sd.c if (sd_card->pre_cmd_err) { sd_card 4556 drivers/staging/rts5208/sd.c sd_card->pre_cmd_err = 0; sd_card 4563 drivers/staging/rts5208/sd.c if (sd_card->last_rsp_type == SD_RSP_TYPE_R0) { sd_card 4566 drivers/staging/rts5208/sd.c } else if (sd_card->last_rsp_type == SD_RSP_TYPE_R2) { sd_card 4571 drivers/staging/rts5208/sd.c rtsx_stor_set_xfer_buf(sd_card->rsp, count, srb); sd_card 4575 drivers/staging/rts5208/sd.c sd_card->rsp[0], sd_card->rsp[1], sd_card 4576 drivers/staging/rts5208/sd.c sd_card->rsp[2], sd_card->rsp[3]); sd_card 4584 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 4588 drivers/staging/rts5208/sd.c if (!sd_card->sd_pass_thru_en) { sd_card 4593 drivers/staging/rts5208/sd.c if (sd_card->pre_cmd_err) { sd_card 4594 drivers/staging/rts5208/sd.c sd_card->pre_cmd_err = 0; sd_card 4611 drivers/staging/rts5208/sd.c sd_card->sd_lock_status |= SD_SDR_RST; sd_card 4616 drivers/staging/rts5208/sd.c sd_card->sd_lock_status &= ~SD_SDR_RST; sd_card 4619 drivers/staging/rts5208/sd.c sd_card->pre_cmd_err = 1; sd_card 4623 drivers/staging/rts5208/sd.c sd_card->sd_lock_status &= ~SD_SDR_RST; sd_card 4631 drivers/staging/rts5208/sd.c sd_card->pre_cmd_err = 1; sd_card 4648 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 4650 drivers/staging/rts5208/sd.c if (sd_card->seq_mode) { sd_card 4653 drivers/staging/rts5208/sd.c sd_card->cleanup_counter = 0; sd_card 4694 drivers/staging/rts5208/sd.c struct sd_info *sd_card = &chip->sd_card; sd_card 4705 drivers/staging/rts5208/sd.c sd_card->sd_lock_status = 0; sd_card 4706 drivers/staging/rts5208/sd.c sd_card->sd_erase_status = 0; sd_card 4709 drivers/staging/rts5208/sd.c memset(sd_card->raw_csd, 0, 16); sd_card 4710 drivers/staging/rts5208/sd.c memset(sd_card->raw_scr, 0, 8);