Lines Matching refs:block_dev
404 unsigned long blk_dread(struct blk_desc *block_dev, lbaint_t start, in blk_dread() argument
407 struct udevice *dev = block_dev->bdev; in blk_dread()
414 if (blkcache_read(block_dev->if_type, block_dev->devnum, in blk_dread()
415 start, blkcnt, block_dev->blksz, buffer)) in blk_dread()
419 blkcache_fill(block_dev->if_type, block_dev->devnum, in blk_dread()
420 start, blkcnt, block_dev->blksz, buffer); in blk_dread()
425 unsigned long blk_dwrite(struct blk_desc *block_dev, lbaint_t start, in blk_dwrite() argument
428 struct udevice *dev = block_dev->bdev; in blk_dwrite()
434 blkcache_invalidate(block_dev->if_type, block_dev->devnum); in blk_dwrite()
438 unsigned long blk_derase(struct blk_desc *block_dev, lbaint_t start, in blk_derase() argument
441 struct udevice *dev = block_dev->bdev; in blk_derase()
447 blkcache_invalidate(block_dev->if_type, block_dev->devnum); in blk_derase()