Lines Matching refs:max_current
534 u32 voltage, max_current; in sd_get_host_max_current() local
539 max_current = host->max_current_180; in sd_get_host_max_current()
543 max_current = host->max_current_300; in sd_get_host_max_current()
547 max_current = host->max_current_330; in sd_get_host_max_current()
550 max_current = 0; in sd_get_host_max_current()
553 return max_current; in sd_get_host_max_current()
560 u32 max_current; in sd_set_current_limit() local
576 max_current = sd_get_host_max_current(card->host); in sd_set_current_limit()
593 if (max_current >= 800 && in sd_set_current_limit()
596 else if (max_current >= 600 && in sd_set_current_limit()
599 else if (max_current >= 400 && in sd_set_current_limit()
602 else if (max_current >= 200 && in sd_set_current_limit()
818 u32 max_current; in mmc_sd_get_cid() local
858 max_current = sd_get_host_max_current(host); in mmc_sd_get_cid()
859 if (max_current > 150) in mmc_sd_get_cid()