Home
last modified time | relevance | path

Searched refs:mmc_drv_obj (Results 1 – 9 of 9) sorted by relevance

/external/arm-trusted-firmware/drivers/renesas/common/emmc/
Demmc_utility.c112 mmc_drv_obj.error_info.num = func_no; in emmc_write_error_info()
113 mmc_drv_obj.error_info.code = (uint16_t) error_code; in emmc_write_error_info()
121 mmc_drv_obj.error_info.num = func_no; in emmc_write_error_info_func_no()
129 mmc_drv_obj.cmd_info.cmd = cmd; in emmc_make_nontrans_cmd()
130 mmc_drv_obj.cmd_info.arg = arg; in emmc_make_nontrans_cmd()
131 mmc_drv_obj.cmd_info.dir = HAL_MEMCARD_READ; in emmc_make_nontrans_cmd()
132 mmc_drv_obj.cmd_info.hw = in emmc_make_nontrans_cmd()
136 mmc_drv_obj.trans_size = 0; in emmc_make_nontrans_cmd()
137 mmc_drv_obj.remain_size = 0; in emmc_make_nontrans_cmd()
138 mmc_drv_obj.buff_address_virtual = NULL; in emmc_make_nontrans_cmd()
[all …]
Demmc_interrupt.c49 mmc_drv_obj.error_info.info1 = GETR_32(SD_INFO1); in emmc_interrupt()
50 mmc_drv_obj.error_info.info2 = GETR_32(SD_INFO2); in emmc_interrupt()
53 mmc_drv_obj.int_event1 = in emmc_interrupt()
54 mmc_drv_obj.error_info.info1 & GETR_32(SD_INFO1_MASK); in emmc_interrupt()
55 mmc_drv_obj.int_event2 = in emmc_interrupt()
56 mmc_drv_obj.error_info.info2 & GETR_32(SD_INFO2_MASK); in emmc_interrupt()
59 mmc_drv_obj.error_info.status1 = GETR_32(SD_ERR_STS1); in emmc_interrupt()
60 mmc_drv_obj.error_info.status2 = GETR_32(SD_ERR_STS2); in emmc_interrupt()
63 mmc_drv_obj.error_info.dm_info1 = GETR_32(DM_CM_INFO1); in emmc_interrupt()
64 mmc_drv_obj.error_info.dm_info2 = GETR_32(DM_CM_INFO2); in emmc_interrupt()
[all …]
Demmc_mount.c34 mmc_drv_obj.boot_partition_en = in emmc_set_bootpartition()
35 (EMMC_PARTITION_ID) ((mmc_drv_obj.ext_csd_data[179] & in emmc_set_bootpartition()
40 mmc_drv_obj.boot_partition_en = mmc_drv_obj.partition_access; in emmc_set_bootpartition()
44 mmc_drv_obj.boot_partition_en = PARTITION_ID_BOOT_2; in emmc_set_bootpartition()
46 mmc_drv_obj.boot_partition_en = PARTITION_ID_BOOT_1; in emmc_set_bootpartition()
59 if ((mmc_drv_obj.initialize != TRUE) in emmc_card_init()
60 || (mmc_drv_obj.card_power_enable != TRUE) in emmc_card_init()
68 mmc_drv_obj.current_freq = 0; in emmc_card_init()
69 mmc_drv_obj.max_freq = MMC_20MHZ; in emmc_card_init()
94 emmc_exec_cmd(EMMC_R1_ERROR_MASK, mmc_drv_obj.response); in emmc_card_init()
[all …]
Demmc_cmd.c34 mmc_drv_obj.during_cmd_processing = FALSE; in emmc_softreset()
35 mmc_drv_obj.during_transfer = FALSE; in emmc_softreset()
36 mmc_drv_obj.during_dma_transfer = FALSE; in emmc_softreset()
37 mmc_drv_obj.state_machine_blocking = FALSE; in emmc_softreset()
38 mmc_drv_obj.force_terminate = FALSE; in emmc_softreset()
39 mmc_drv_obj.dma_error_flag = FALSE; in emmc_softreset()
78 if (mmc_drv_obj.response_length != EMMC_MAX_RESPONSE_LENGTH) { in emmc_read_response()
99 ((HAL_MEMCARD_RESPONSE_TYPE)mmc_drv_obj.cmd_info.cmd & HAL_MEMCARD_RESPONSE_TYPE_MASK); in emmc_response_check()
110 mmc_drv_obj.current_state = in emmc_response_check()
161 ERROR("BL2: emmc ERR SD_INFO2 = 0x%x\n", mmc_drv_obj.error_info.info2); in cmdErrSdInfo2Log()
[all …]
Demmc_init.c18 st_mmc_base mmc_drv_obj; variable
25 mmc_drv_obj.card_power_enable = TRUE; in rcar_emmc_memcard_power()
28 mmc_drv_obj.card_power_enable = FALSE; in rcar_emmc_memcard_power()
29 mmc_drv_obj.mount = FALSE; in rcar_emmc_memcard_power()
30 mmc_drv_obj.selected = FALSE; in rcar_emmc_memcard_power()
37 mmc_drv_obj.retries_after_fail = retry; in emmc_set_retry_count()
42 mmc_drv_obj.data_timeout = data_timeout; in emmc_set_data_timeout()
65 emmc_memset((uint8_t *) (&mmc_drv_obj), 0, sizeof(st_mmc_base)); in emmc_drv_init()
66 mmc_drv_obj.card_present = HAL_MEMCARD_CARD_IS_IN; in emmc_drv_init()
67 mmc_drv_obj.data_timeout = EMMC_RW_DATA_TIMEOUT; in emmc_drv_init()
[all …]
Demmc_read.c36 result = emmc_exec_cmd(EMMC_R1_ERROR_MASK, mmc_drv_obj.response); in emmc_multiple_block_read()
50 result = emmc_exec_cmd(EMMC_R1_ERROR_MASK, mmc_drv_obj.response); in emmc_multiple_block_read()
57 result = emmc_exec_cmd(EMMC_R1_ERROR_MASK, mmc_drv_obj.response); in emmc_multiple_block_read()
69 if ((mmc_drv_obj.r1_card_status & EMMC_R1_READY) == 0) { in emmc_multiple_block_read()
76 if (mmc_drv_obj.current_state != EMMC_R1_STATE_TRAN) { in emmc_multiple_block_read()
101 if (mmc_drv_obj.mount != TRUE) { in emmc_read_sector()
Demmc_def.h26 extern st_mmc_base mmc_drv_obj;
Demmc_std.h36 #define EMMC_GET_CID(x, y) (emmc_bit_field(mmc_drv_obj.cid_data, (x), (y)))
49 #define EMMC_GET_CSD(x, y) (emmc_bit_field(mmc_drv_obj.csd_data, (x), (y)))
/external/arm-trusted-firmware/drivers/renesas/common/io/
Dio_emmcdrv.c97 emmcdrv_bootpartition = mmc_drv_obj.boot_partition_en; in emmcdrv_block_open()