Lines Matching refs:blkdev
40 struct block_device *blkdev; member
58 struct address_space *mapping = dev->blkdev->bd_inode->i_mapping; in _block2mtd_erase()
120 page = page_read(dev->blkdev->bd_inode->i_mapping, index); in block2mtd_read()
142 struct address_space *mapping = dev->blkdev->bd_inode->i_mapping; in _block2mtd_write()
197 sync_blockdev(dev->blkdev); in block2mtd_sync()
209 if (dev->blkdev) { in block2mtd_free_device()
210 invalidate_mapping_pages(dev->blkdev->bd_inode->i_mapping, in block2mtd_free_device()
212 blkdev_put(dev->blkdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in block2mtd_free_device()
268 dev->blkdev = bdev; in add_device()
275 if ((long)dev->blkdev->bd_inode->i_size % erase_size) { in add_device()
293 dev->mtd.size = dev->blkdev->bd_inode->i_size & PAGE_MASK; in add_device()