/lk-master/lib/bio/include/lib/ |
A D | bio.h | 29 typedef struct bdev { struct 49 ssize_t (*read)(struct bdev *, void *buf, off_t offset, size_t len); argument 50 ssize_t (*read_block)(struct bdev *, void *buf, bnum_t block, uint count); argument 51 ssize_t (*write)(struct bdev *, const void *buf, off_t offset, size_t len); argument 52 ssize_t (*write_block)(struct bdev *, const void *buf, bnum_t block, uint count); argument 53 ssize_t (*erase)(struct bdev *, off_t offset, size_t len); argument 54 int (*ioctl)(struct bdev *, int request, void *argp); argument 55 void (*close)(struct bdev *); argument
|
/lk-master/platform/stm32f4xx/ |
A D | flash.c | 40 bdev_t bdev; member 77 static ssize_t stmflash_bdev_read(struct bdev *bdev, void *buf, off_t offset, size_t 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() 94 static ssize_t stmflash_bdev_write(struct bdev *bdev, const void *buf, off_t offset, size_t 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() 124 static ssize_t stmflash_bdev_erase(struct bdev *bdev, off_t offset, size_t len) { in stmflash_bdev_erase() 159 static int stmflash_ioctl(struct bdev *bdev, int request, void *argp) { in stmflash_ioctl()
|
/lk-master/platform/stm32f7xx/ |
A D | flash.c | 35 bdev_t bdev; member 91 static ssize_t stm32_flash_bdev_read(struct bdev *bdev, void *buf, off_t offset, size_t len) { in stm32_flash_bdev_read() 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() 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() 156 static ssize_t stm32_flash_bdev_erase(struct bdev *bdev, off_t offset, size_t len) { in stm32_flash_bdev_erase() 213 static int stm32_flash_ioctl(struct bdev *bdev, int request, void *argp) { in stm32_flash_ioctl()
|
/lk-master/lib/bio/ |
A D | mem.c | 24 static ssize_t mem_bdev_read(bdev_t *bdev, void *buf, off_t offset, size_t len) { in mem_bdev_read() 34 static ssize_t mem_bdev_read_block(struct bdev *bdev, void *buf, bnum_t block, uint count) { in mem_bdev_read_block() 44 static ssize_t mem_bdev_write(bdev_t *bdev, const void *buf, off_t offset, size_t len) { in mem_bdev_write() 54 static ssize_t mem_bdev_write_block(struct bdev *bdev, const void *buf, bnum_t block, uint count) { in mem_bdev_write_block()
|
A D | bio.c | 332 bdev_t *bdev = NULL; in bio_open() local
|
/lk-master/dev/virtio/block/ |
A D | virtio-block.c | 78 bdev_t bdev; member 93 struct virtio_block_dev *bdev = malloc(sizeof(struct virtio_block_dev)); in virtio_block_init() local 161 struct virtio_block_dev *bdev = (struct virtio_block_dev *)dev->priv; in virtio_block_irq_driver_callback() local 194 struct virtio_block_dev *bdev = (struct virtio_block_dev *)dev->priv; in virtio_block_read_write() local 300 static ssize_t virtio_bdev_read_block(struct bdev *bdev, void *buf, bnum_t block, uint count) { in virtio_bdev_read_block() 313 static ssize_t virtio_bdev_write_block(struct bdev *bdev, const void *buf, bnum_t block, uint count… in virtio_bdev_write_block()
|
/lk-master/platform/zynq/ |
A D | spiflash.c | 48 bdev_t bdev; member 317 static ssize_t spiflash_bdev_read(struct bdev *bdev, void *buf, off_t offset, size_t len) { in spiflash_bdev_read() 332 static ssize_t spiflash_bdev_read_block(struct bdev *bdev, void *buf, bnum_t block, uint count) { 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() 368 static ssize_t spiflash_bdev_erase(struct bdev *bdev, off_t offset, size_t len) { in spiflash_bdev_erase() 388 static int spiflash_ioctl(struct bdev *bdev, int request, void *argp) { in spiflash_ioctl()
|
/lk-master/app/lkboot/ |
A D | commands.c | 213 bdev_t *bdev = ptable_get_device(); in do_flash_boot() local 274 bdev_t *bdev; in lkb_handle_command() local
|
/lk-master/lib/ptable/ |
A D | ptable.c | 42 bdev_t *bdev; member 73 bdev_t *bdev = NULL; in ptable_write() local 169 bdev_t *bdev; in ptable_unpublish() local
|
/lk-master/lib/sysparam/ |
A D | sysparam.c | 67 bdev_t *bdev; member 149 status_t sysparam_scan(bdev_t *bdev, off_t offset, size_t len) { in sysparam_scan()
|