Lines Matching refs:curr_device

14 static int curr_device = -1;  variable
123 if (curr_device < 0) { in do_mmcinfo()
125 curr_device = 0; in do_mmcinfo()
132 mmc = init_mmc_device(curr_device, false); in do_mmcinfo()
156 struct mmc *mmc = find_mmc_device(curr_device); in do_mmcrpmb_key()
177 struct mmc *mmc = find_mmc_device(curr_device); in do_mmcrpmb_read()
190 curr_device, blk, cnt); in do_mmcrpmb_read()
205 struct mmc *mmc = find_mmc_device(curr_device); in do_mmcrpmb_write()
216 curr_device, blk, cnt); in do_mmcrpmb_write()
228 struct mmc *mmc = find_mmc_device(curr_device); in do_mmcrpmb_counter()
262 mmc = init_mmc_device(curr_device, false); in do_mmcrpmb()
280 if (blk_select_hwpart_devnum(IF_TYPE_MMC, curr_device, MMC_PART_RPMB) != in do_mmcrpmb()
286 if (blk_select_hwpart_devnum(IF_TYPE_MMC, curr_device, original_part) != in do_mmcrpmb()
307 mmc = init_mmc_device(curr_device, false); in do_mmc_read()
312 curr_device, blk, cnt); in do_mmc_read()
356 mmc = init_mmc_device(curr_device, false); in do_mmc_sparse_write()
361 curr_device, blk); in do_mmc_sparse_write()
400 mmc = init_mmc_device(curr_device, false); in do_mmc_write()
405 curr_device, blk, cnt); in do_mmc_write()
428 mmc = init_mmc_device(curr_device, false); in do_mmc_erase()
433 curr_device, blk, cnt); in do_mmc_erase()
451 mmc = init_mmc_device(curr_device, true); in do_mmc_rescan()
463 mmc = init_mmc_device(curr_device, false); in do_mmc_part()
467 mmc_dev = blk_get_devnum_by_type(IF_TYPE_MMC, curr_device); in do_mmc_part()
483 dev = curr_device; in do_mmc_dev()
508 curr_device = dev; in do_mmc_dev()
510 printf("mmc%d is current device\n", curr_device); in do_mmc_dev()
513 curr_device, mmc_get_blk_desc(mmc)->hwpart); in do_mmc_dev()
601 mmc = init_mmc_device(curr_device, false); in do_mmc_hwpartition()
833 mmc = find_mmc_device(curr_device); in do_mmc_setdsr()
835 printf("no mmc device at slot %x\n", curr_device); in do_mmc_setdsr()
922 if (curr_device < 0) { in do_mmcops()
924 curr_device = 0; in do_mmcops()