Lines Matching refs:cur_dev
37 static struct blk_desc *cur_dev; variable
48 if (!cur_dev) in disk_read()
51 ret = blk_dread(cur_dev, cur_part_info.start + block, nr_blocks, buf); in disk_read()
63 cur_dev = dev_desc; in fat_set_blk_dev()
68 cur_dev = NULL; in fat_set_blk_dev()
74 cur_dev = NULL; in fat_set_blk_dev()
84 cur_dev = NULL; in fat_set_blk_dev()
93 cur_dev = NULL; in fat_register_device()
486 if (cur_dev == NULL) { in read_bootsectandvi()
491 block = malloc_cache_aligned(cur_dev->blksz); in read_bootsectandvi()
969 if (cur_dev == NULL) { in file_fat_detectfs()
980 switch (cur_dev->if_type) { in file_fat_detectfs()
1006 printf("\n Device %d: ", cur_dev->devnum); in file_fat_detectfs()
1007 dev_print(cur_dev); in file_fat_detectfs()