Lines Matching refs:block_dev
21 struct blk_desc *block_dev = &ums_dev->block_dev; in ums_read_sector() local
24 return blk_dread(block_dev, blkstart, blkcnt, buf); in ums_read_sector()
30 struct blk_desc *block_dev = &ums_dev->block_dev; in ums_write_sector() local
33 return blk_dwrite(block_dev, blkstart, blkcnt, buf); in ums_write_sector()
55 struct blk_desc *block_dev; in ums_init() local
74 &block_dev, &info, 1); in ums_init()
87 if (block_dev->blksz != SECTOR_SIZE) in ums_init()
98 ums[ums_count].num_sectors = block_dev->lba; in ums_init()
112 ums[ums_count].block_dev = *block_dev; in ums_init()
115 ums_count, ums[ums_count].block_dev.devnum, in ums_init()
116 ums[ums_count].block_dev.hwpart, in ums_init()