Lines Matching refs:block_dev
95 unsigned long (*block_read)(struct blk_desc *block_dev,
99 unsigned long (*block_write)(struct blk_desc *block_dev,
103 unsigned long (*block_erase)(struct blk_desc *block_dev,
270 unsigned long blk_dread(struct blk_desc *block_dev, lbaint_t start,
272 unsigned long blk_dwrite(struct blk_desc *block_dev, lbaint_t start,
274 unsigned long blk_derase(struct blk_desc *block_dev, lbaint_t start,
417 static inline ulong blk_dread(struct blk_desc *block_dev, lbaint_t start, in blk_dread() argument
421 if (blkcache_read(block_dev->if_type, block_dev->devnum, in blk_dread()
422 start, blkcnt, block_dev->blksz, buffer)) in blk_dread()
430 blks_read = block_dev->block_read(block_dev, start, blkcnt, buffer); in blk_dread()
432 blkcache_fill(block_dev->if_type, block_dev->devnum, in blk_dread()
433 start, blkcnt, block_dev->blksz, buffer); in blk_dread()
438 static inline ulong blk_dwrite(struct blk_desc *block_dev, lbaint_t start, in blk_dwrite() argument
441 blkcache_invalidate(block_dev->if_type, block_dev->devnum); in blk_dwrite()
442 return block_dev->block_write(block_dev, start, blkcnt, buffer); in blk_dwrite()
445 static inline ulong blk_derase(struct blk_desc *block_dev, lbaint_t start, in blk_derase() argument
448 blkcache_invalidate(block_dev->if_type, block_dev->devnum); in blk_derase()
449 return block_dev->block_erase(block_dev, start, blkcnt); in blk_derase()