Lines Matching refs:block
57 static ssize_t spiflash_bdev_read_block(struct bdev *, void *buf, bnum_t block, uint count);
58 static ssize_t spiflash_bdev_write_block(struct bdev *, const void *buf, bnum_t block, uint count);
332 static ssize_t spiflash_bdev_read_block(struct bdev *bdev, void *buf, bnum_t block, uint count) { in spiflash_bdev_read_block() argument
333 LTRACEF("dev %p, buf %p, block 0x%x, count %u\n", bdev, buf, block, count); in spiflash_bdev_read_block()
335 count = bio_trim_block_range(bdev, block, count); in spiflash_bdev_read_block()
339 return spiflash_bdev_read(bdev, buf, block << bdev->block_shift, count << bdev->block_shift); in spiflash_bdev_read_block()
342 static ssize_t spiflash_bdev_write_block(struct bdev *bdev, const void *_buf, bnum_t block, uint co… in spiflash_bdev_write_block() argument
343 LTRACEF("dev %p, buf %p, block 0x%x, count %u\n", bdev, _buf, block, count); in spiflash_bdev_write_block()
347 count = bio_trim_block_range(bdev, block, count); in spiflash_bdev_write_block()
355 ssize_t err = qspi_write_page(&flash.qspi, block * PAGE_PROGRAM_SIZE, buf); in spiflash_bdev_write_block()
361 block++; in spiflash_bdev_write_block()