/kernel/linux/linux-5.10/drivers/mmc/core/ |
H A D | sdio.c | 649 u32 rocr = 0; in mmc_sdio_init_card() local 667 err = mmc_send_io_op_cond(host, ocr, &rocr); in mmc_sdio_init_card() 687 if ((rocr & R4_MEMORY_PRESENT) && in mmc_sdio_init_card() 688 mmc_sd_get_cid(host, ocr & rocr, card->raw_cid, NULL) == 0) { in mmc_sdio_init_card() 720 * fails to check rocr & R4_18V_PRESENT, but we still need to in mmc_sdio_init_card() 724 if (rocr & ocr & R4_18V_PRESENT) { in mmc_sdio_init_card() 1195 u32 ocr, rocr; in mmc_attach_sdio() local 1209 rocr = mmc_select_voltage(host, ocr); in mmc_attach_sdio() 1214 if (!rocr) { in mmc_attach_sdio() 1222 err = mmc_sdio_init_card(host, rocr, NUL in mmc_attach_sdio() [all...] |
H A D | sdio_ops.c | 18 int mmc_send_io_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr) in mmc_send_io_op_cond() argument 56 if (rocr) in mmc_send_io_op_cond() 57 *rocr = cmd.resp[mmc_host_is_spi(host) ? 1 : 0]; in mmc_send_io_op_cond()
|
H A D | sd.c | 798 int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr) in mmc_sd_get_cid() argument 845 err = mmc_send_app_op_cond(host, ocr, rocr); in mmc_sd_get_cid() 857 rocr && (*rocr & SD_ROCR_S18A)) { in mmc_sd_get_cid() 1013 u32 rocr = 0; in mmc_sd_init_card() local 1018 err = mmc_sd_get_cid(host, ocr, cid, &rocr); in mmc_sd_init_card() 1106 if (rocr & SD_ROCR_S18A && mmc_host_uhs(host)) { in mmc_sd_init_card() 1335 u32 ocr, rocr; in mmc_attach_sd() local 1364 rocr = mmc_select_voltage(host, ocr); in mmc_attach_sd() 1369 if (!rocr) { in mmc_attach_sd() [all...] |
H A D | sd.h | 12 int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr);
|
H A D | sd_ops.c | 117 int mmc_send_app_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr) in mmc_send_app_op_cond() argument 155 if (rocr && !mmc_host_is_spi(host)) in mmc_send_app_op_cond() 156 *rocr = cmd.resp[0]; in mmc_send_app_op_cond()
|
H A D | sd_ops.h | 17 int mmc_send_app_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr);
|
H A D | sdio_ops.h | 18 int mmc_send_io_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr);
|
H A D | mmc_ops.h | 27 int mmc_send_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr);
|
H A D | mmc.c | 1581 u32 rocr; in mmc_init_card() local 1599 err = mmc_send_op_cond(host, ocr | (1 << 30), &rocr); in mmc_init_card() 1705 if (rocr & BIT(30)) in mmc_init_card() 2245 u32 ocr, rocr; in mmc_attach_mmc() local 2270 rocr = mmc_select_voltage(host, ocr); in mmc_attach_mmc() 2275 if (!rocr) { in mmc_attach_mmc() 2283 err = mmc_init_card(host, rocr, NULL); in mmc_attach_mmc()
|
H A D | mmc_ops.c | 171 int mmc_send_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr) in mmc_send_op_cond() argument 209 if (rocr && !mmc_host_is_spi(host)) in mmc_send_op_cond() 210 *rocr = cmd.resp[0]; in mmc_send_op_cond()
|
/kernel/linux/linux-6.6/drivers/mmc/core/ |
H A D | sdio.c | 664 u32 rocr = 0; in mmc_sdio_init_card() local 682 err = mmc_send_io_op_cond(host, ocr, &rocr); in mmc_sdio_init_card() 702 if ((rocr & R4_MEMORY_PRESENT) && in mmc_sdio_init_card() 703 mmc_sd_get_cid(host, ocr & rocr, card->raw_cid, NULL) == 0) { in mmc_sdio_init_card() 736 * fails to check rocr & R4_18V_PRESENT, but we still need to in mmc_sdio_init_card() 740 if (rocr & ocr & R4_18V_PRESENT) { in mmc_sdio_init_card() 1209 u32 ocr, rocr; in mmc_attach_sdio() local 1223 rocr = mmc_select_voltage(host, ocr); in mmc_attach_sdio() 1228 if (!rocr) { in mmc_attach_sdio() 1236 err = mmc_sdio_init_card(host, rocr, NUL in mmc_attach_sdio() [all...] |
H A D | sdio_ops.c | 18 int mmc_send_io_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr) in mmc_send_io_op_cond() argument 56 if (rocr) in mmc_send_io_op_cond() 57 *rocr = cmd.resp[mmc_host_is_spi(host) ? 1 : 0]; in mmc_send_io_op_cond()
|
H A D | sd.h | 12 int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr);
|
H A D | sd_ops.c | 118 int mmc_send_app_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr) in mmc_send_app_op_cond() argument 156 if (rocr && !mmc_host_is_spi(host)) in mmc_send_app_op_cond() 157 *rocr = cmd.resp[0]; in mmc_send_app_op_cond()
|
H A D | sdio_ops.h | 18 int mmc_send_io_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr);
|
H A D | sd_ops.h | 17 int mmc_send_app_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr);
|
H A D | sd.c | 815 int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr) in mmc_sd_get_cid() argument 862 err = mmc_send_app_op_cond(host, ocr, rocr); in mmc_sd_get_cid() 874 rocr && (*rocr & SD_ROCR_S18A)) { in mmc_sd_get_cid() 1409 u32 rocr = 0; in mmc_sd_init_card() local 1414 err = mmc_sd_get_cid(host, ocr, cid, &rocr); in mmc_sd_init_card() 1502 if (rocr & SD_ROCR_S18A && mmc_host_uhs(host)) { in mmc_sd_init_card() 1830 u32 ocr, rocr; in mmc_attach_sd() local 1859 rocr = mmc_select_voltage(host, ocr); in mmc_attach_sd() 1864 if (!rocr) { in mmc_attach_sd() [all...] |
H A D | mmc_ops.h | 29 int mmc_send_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr);
|
H A D | mmc.c | 1606 u32 rocr; in mmc_init_card() local 1624 err = mmc_send_op_cond(host, ocr | (1 << 30), &rocr); in mmc_init_card() 1730 if (rocr & BIT(30)) in mmc_init_card() 2291 u32 ocr, rocr; in mmc_attach_mmc() local 2316 rocr = mmc_select_voltage(host, ocr); in mmc_attach_mmc() 2321 if (!rocr) { in mmc_attach_mmc() 2329 err = mmc_init_card(host, rocr, NULL); in mmc_attach_mmc()
|
H A D | mmc_ops.c | 223 int mmc_send_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr) in mmc_send_op_cond() argument 243 if (rocr && !mmc_host_is_spi(host)) in mmc_send_op_cond() 244 *rocr = cmd.resp[0]; in mmc_send_op_cond()
|