Lines Matching refs:error

356 	int error;  in mmc_switch_to_high_frquency()  local
367 error = esdhc_send_cmd(mmc, CMD_SWITCH_FUNC, SET_EXT_CSD_HS_TIMING); in mmc_switch_to_high_frquency()
368 if (error != 0) { in mmc_switch_to_high_frquency()
369 return error; in mmc_switch_to_high_frquency()
371 error = esdhc_wait_response(mmc, response); in mmc_switch_to_high_frquency()
372 if (error != 0) { in mmc_switch_to_high_frquency()
373 return error; in mmc_switch_to_high_frquency()
379 error = esdhc_send_cmd(mmc, in mmc_switch_to_high_frquency()
381 if (error != 0) { in mmc_switch_to_high_frquency()
382 return error; in mmc_switch_to_high_frquency()
385 error = esdhc_wait_response(mmc, response); in mmc_switch_to_high_frquency()
386 if (error != 0) { in mmc_switch_to_high_frquency()
387 return error; in mmc_switch_to_high_frquency()
875 int error = 0; in change_state_to_transfer_state() local
882 error = esdhc_send_cmd(mmc, CMD_SELECT_CARD, mmc->card.rca << 16); in change_state_to_transfer_state()
883 if (error != 0) { in change_state_to_transfer_state()
884 return error; in change_state_to_transfer_state()
886 error = esdhc_wait_response(mmc, response); in change_state_to_transfer_state()
887 if (error != 0) { in change_state_to_transfer_state()
888 return error; in change_state_to_transfer_state()
894 error = esdhc_send_cmd(mmc, in change_state_to_transfer_state()
896 if (error != 0) { in change_state_to_transfer_state()
897 return error; in change_state_to_transfer_state()
899 error = esdhc_wait_response(mmc, response); in change_state_to_transfer_state()
900 if ((error != 0) || ((response[0] & R1_ERROR) != 0)) { in change_state_to_transfer_state()
901 return error; in change_state_to_transfer_state()
1144 int error = 0; in esdhc_emmc_init() local
1147 error = esdhc_init(mmc, card_detect); in esdhc_emmc_init()
1148 if (error != 0) { in esdhc_emmc_init()
1149 return error; in esdhc_emmc_init()
1191 error = get_cid_rca_csd(mmc); in esdhc_emmc_init()
1192 if (error != 0) { in esdhc_emmc_init()
1197 error = change_state_to_transfer_state(mmc); in esdhc_emmc_init()
1198 if (error != 0) { in esdhc_emmc_init()
1204 error = sd_switch_to_high_freq(mmc); in esdhc_emmc_init()
1206 error = mmc_switch_to_high_frquency(mmc); in esdhc_emmc_init()
1208 if (error != 0) { in esdhc_emmc_init()
1345 int error = 0; in esdhc_read() local
1379 error = esdhc_read_block(mmc, buff, blk); in esdhc_read()
1380 if (error != 0) { in esdhc_read()
1381 ERROR("Read error = %x\n", error); in esdhc_read()
1382 return error; in esdhc_read()
1391 return error; in esdhc_read()
1407 int error = 0; in esdhc_write() local
1441 error = esdhc_write_block(mmc, buff, blk); in esdhc_write()
1442 if (error != 0U) { in esdhc_write()
1443 ERROR("Write error = %x\n", error); in esdhc_write()
1444 return error; in esdhc_write()
1453 return error; in esdhc_write()