| /platform/stm32f4xx/ |
| A D | flash.c | 40 bdev_t bdev; member 56 bio_initialize_bdev(&sg_flash.bdev, in stmflash_init() 71 bio_register_device(&sg_flash.bdev); in stmflash_init() 77 static ssize_t stmflash_bdev_read(struct bdev *bdev, void *buf, off_t offset, size_t len) { in stmflash_bdev_read() argument 80 len = bio_trim_range(bdev, offset, len); in stmflash_bdev_read() 89 static ssize_t stmflash_bdev_read_block(struct bdev *bdev, void *buf, bnum_t block, uint count) { in stmflash_bdev_read_block() argument 94 static ssize_t stmflash_bdev_write(struct bdev *bdev, const void *buf, off_t offset, size_t len) { in stmflash_bdev_write() argument 97 len = bio_trim_range(bdev, offset, len); in stmflash_bdev_write() 118 static ssize_t stmflash_bdev_write_block(struct bdev *bdev, const void *_buf, bnum_t block, uint co… in stmflash_bdev_write_block() argument 124 static ssize_t stmflash_bdev_erase(struct bdev *bdev, off_t offset, size_t len) { in stmflash_bdev_erase() argument [all …]
|
| /platform/stm32f7xx/ |
| A D | flash.c | 35 bdev_t bdev; member 43 static ssize_t stm32_flash_bdev_write(struct bdev *bdev, const void *buf, off_t offset, size_t len); 78 flash.bdev.erase_byte = 0xff; in stm32_flash_init() 88 bio_register_device(&flash.bdev); in stm32_flash_init() 91 static ssize_t stm32_flash_bdev_read(struct bdev *bdev, void *buf, off_t offset, size_t len) { in stm32_flash_bdev_read() argument 99 static ssize_t stm32_flash_bdev_read_block(struct bdev *bdev, void *buf, bnum_t block, uint count) { in stm32_flash_bdev_read_block() argument 102 memcpy(buf, (uint8_t *)FLASHAXI_BASE + block * bdev->block_size, count * bdev->block_size); in stm32_flash_bdev_read_block() 104 return count * bdev->block_size; in stm32_flash_bdev_read_block() 107 static ssize_t stm32_flash_bdev_write_block(struct bdev *bdev, const void *buf, bnum_t block, uint … in stm32_flash_bdev_write_block() argument 156 static ssize_t stm32_flash_bdev_erase(struct bdev *bdev, off_t offset, size_t len) { in stm32_flash_bdev_erase() argument [all …]
|
| A D | qspi.c | 51 static ssize_t spiflash_bdev_read(struct bdev *device, void *buf, off_t offset, size_t len); 52 static ssize_t spiflash_bdev_read_block(struct bdev *device, void *buf, bnum_t block, uint count); 53 static ssize_t spiflash_bdev_write_block(struct bdev *device, const void *buf, bnum_t block, uint c… 54 static ssize_t spiflash_bdev_erase(struct bdev *device, off_t offset, size_t len); 55 static int spiflash_ioctl(struct bdev *device, int request, void *argp); 299 static ssize_t spiflash_bdev_read_block(struct bdev *device, void *buf, in spiflash_bdev_read_block() 366 static ssize_t spiflash_bdev_write_block(struct bdev *device, const void *_buf, in spiflash_bdev_write_block() 396 static ssize_t spiflash_bdev_erase(struct bdev *device, off_t offset, in spiflash_bdev_erase() 441 static int spiflash_ioctl(struct bdev *device, int request, void *argp) { in spiflash_ioctl()
|
| /platform/zynq/ |
| A D | spiflash.c | 48 bdev_t bdev; member 291 flash.bdev.read = &spiflash_bdev_read; in spiflash_detect() 296 flash.bdev.ioctl = &spiflash_ioctl; in spiflash_detect() 299 flash.bdev.erase_byte = 0xff; in spiflash_detect() 301 bio_register_device(&flash.bdev); in spiflash_detect() 317 static ssize_t spiflash_bdev_read(struct bdev *bdev, void *buf, off_t offset, size_t len) { in spiflash_bdev_read() argument 332 static ssize_t spiflash_bdev_read_block(struct bdev *bdev, void *buf, bnum_t block, uint count) { in spiflash_bdev_read_block() argument 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 368 static ssize_t spiflash_bdev_erase(struct bdev *bdev, off_t offset, size_t len) { in spiflash_bdev_erase() argument [all …]
|
| /platform/armemu/ |
| A D | blkdev.c | 21 ssize_t read_block(struct bdev *dev, void *buf, bnum_t block, uint count) { in read_block() 36 ssize_t write_block(struct bdev *dev, const void *buf, bnum_t block, uint count) { in write_block()
|