| /rk3399_rockchip-uboot/include/ |
| H A D | sandboxfs.h | 23 int sandbox_fs_read_at(const char *filename, loff_t pos, void *buffer, 24 loff_t maxsize, loff_t *actread); 25 int sandbox_fs_write_at(const char *filename, loff_t pos, void *buffer, 26 loff_t maxsize, loff_t *actwrite); 31 int sandbox_fs_size(const char *filename, loff_t *size); 32 int fs_read_sandbox(const char *filename, void *buf, loff_t offset, loff_t len, 33 loff_t *actread); 34 int fs_write_sandbox(const char *filename, void *buf, loff_t offset, 35 loff_t len, loff_t *actwrite);
|
| H A D | nand.h | 48 static inline int nand_read(struct mtd_info *info, loff_t ofs, size_t *len, in nand_read() 54 static inline int nand_write(struct mtd_info *info, loff_t ofs, size_t *len, in nand_write() 60 static inline int nand_block_isbad(struct mtd_info *info, loff_t ofs) in nand_block_isbad() 65 static inline int nand_erase(struct mtd_info *info, loff_t off, size_t size) in nand_erase() 85 loff_t length; /* number of bytes to erase */ 86 loff_t offset; /* first address in NAND to erase */ 96 loff_t lim; 101 int nand_read_skip_bad(struct mtd_info *mtd, loff_t offset, size_t *length, 102 size_t *actual, loff_t lim, u_char *buffer); 107 int nand_write_skip_bad(struct mtd_info *mtd, loff_t offset, size_t *length, [all …]
|
| H A D | ext4fs.h | 132 int ext4_write_file(const char *filename, void *buf, loff_t offset, loff_t len, 133 loff_t *actwrite); 139 int ext4fs_open(const char *filename, loff_t *len); 140 int ext4fs_read(char *buf, loff_t offset, loff_t len, loff_t *actread); 146 int ext4fs_size(const char *filename, loff_t *size); 153 int ext4_read_file(const char *filename, void *buf, loff_t offset, loff_t len, 154 loff_t *actread);
|
| H A D | fs.h | 71 int fs_size(const char *filename, loff_t *size); 84 int fs_read(const char *filename, ulong addr, loff_t offset, loff_t len, 85 loff_t *actread); 98 int fs_write(const char *filename, ulong addr, loff_t offset, loff_t len, 99 loff_t *actwrite); 115 loff_t size; /* size in bytes */
|
| H A D | onenand_uboot.h | 33 extern int onenand_read(struct mtd_info *mtd, loff_t from, size_t len, 35 extern int onenand_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops); 36 extern int onenand_write(struct mtd_info *mtd, loff_t from, size_t len, 42 extern unsigned onenand_block(struct onenand_chip *this, loff_t addr); 44 extern loff_t onenand_addr(struct onenand_chip *this, int block); 46 extern int flexonenand_region(struct mtd_info *mtd, loff_t addr);
|
| H A D | fat.h | 192 int fat_size(const char *filename, loff_t *size); 193 int file_fat_read_at(const char *filename, loff_t pos, void *buffer, 194 loff_t maxsize, loff_t *actread); 199 int file_fat_write(const char *filename, void *buf, loff_t offset, loff_t len, 200 loff_t *actwrite); 201 int fat_read_file(const char *filename, void *buf, loff_t offset, loff_t len, 202 loff_t *actread);
|
| H A D | ubifs_uboot.h | 27 int ubifs_size(const char *filename, loff_t *size); 28 int ubifs_read(const char *filename, void *buf, loff_t offset, 29 loff_t size, loff_t *actread);
|
| /rk3399_rockchip-uboot/fs/sandbox/ |
| H A D | sandboxfs.c | 20 int sandbox_fs_read_at(const char *filename, loff_t pos, void *buffer, in sandbox_fs_read_at() 21 loff_t maxsize, loff_t *actread) in sandbox_fs_read_at() 23 loff_t size; in sandbox_fs_read_at() 57 int sandbox_fs_write_at(const char *filename, loff_t pos, void *buffer, in sandbox_fs_write_at() 58 loff_t towrite, loff_t *actwrite) in sandbox_fs_write_at() 105 loff_t size; in sandbox_fs_exists() 112 int sandbox_fs_size(const char *filename, loff_t *size) in sandbox_fs_size() 121 int fs_read_sandbox(const char *filename, void *buf, loff_t offset, loff_t len, in fs_read_sandbox() 122 loff_t *actread) in fs_read_sandbox() 133 int fs_write_sandbox(const char *filename, void *buf, loff_t offset, in fs_write_sandbox() [all …]
|
| /rk3399_rockchip-uboot/include/linux/mtd/ |
| H A D | mtd.h | 240 int (*_point) (struct mtd_info *mtd, loff_t from, size_t len, 242 int (*_unpoint) (struct mtd_info *mtd, loff_t from, size_t len); 248 int (*_read) (struct mtd_info *mtd, loff_t from, size_t len, 250 int (*_write) (struct mtd_info *mtd, loff_t to, size_t len, 252 int (*_panic_write) (struct mtd_info *mtd, loff_t to, size_t len, 254 int (*_read_oob) (struct mtd_info *mtd, loff_t from, 256 int (*_write_oob) (struct mtd_info *mtd, loff_t to, 260 int (*_read_fact_prot_reg) (struct mtd_info *mtd, loff_t from, 264 int (*_read_user_prot_reg) (struct mtd_info *mtd, loff_t from, 266 int (*_write_user_prot_reg) (struct mtd_info *mtd, loff_t to, [all …]
|
| H A D | onenand.h | 92 int (*command) (struct mtd_info *mtd, int cmd, loff_t address, 97 int (*read_bufferram) (struct mtd_info *mtd, loff_t addr, int area, 99 int (*write_bufferram) (struct mtd_info *mtd, loff_t addr, int area, 106 int (*block_markbad)(struct mtd_info *mtd, loff_t ofs); 175 int onenand_bbt_read_oob(struct mtd_info *mtd, loff_t from, 178 unsigned int onenand_block(struct onenand_chip *this, loff_t addr); 179 int flexonenand_region(struct mtd_info *mtd, loff_t addr);
|
| /rk3399_rockchip-uboot/fs/ |
| H A D | fs.c | 74 static inline int fs_size_unsupported(const char *filename, loff_t *size) in fs_size_unsupported() 80 loff_t offset, loff_t len, in fs_read_unsupported() 81 loff_t *actread) in fs_read_unsupported() 87 loff_t offset, loff_t len, in fs_write_unsupported() 88 loff_t *actwrite) in fs_write_unsupported() 124 int (*size)(const char *filename, loff_t *size); 125 int (*read)(const char *filename, void *buf, loff_t offset, 126 loff_t len, loff_t *actread); 127 int (*write)(const char *filename, void *buf, loff_t offset, 128 loff_t len, loff_t *actwrite); [all …]
|
| /rk3399_rockchip-uboot/fs/ext4/ |
| H A D | ext4fs.c | 49 int ext4fs_read_file(struct ext2fs_node *node, loff_t pos, in ext4fs_read_file() 50 loff_t len, char *buf, loff_t *actread) in ext4fs_read_file() 190 loff_t file_len; in ext4fs_exists() 197 int ext4fs_size(const char *filename, loff_t *size) in ext4fs_size() 202 int ext4fs_read(char *buf, loff_t offset, loff_t len, loff_t *actread) in ext4fs_read() 223 int ext4_read_file(const char *filename, void *buf, loff_t offset, loff_t len, in ext4_read_file() 224 loff_t *len_read) in ext4_read_file() 226 loff_t file_len; in ext4_read_file()
|
| H A D | ext4_common.h | 53 int ext4fs_read_file(struct ext2fs_node *node, loff_t pos, loff_t len, 54 char *buf, loff_t *actread);
|
| /rk3399_rockchip-uboot/fs/yaffs2/ |
| H A D | yaffsfs.h | 57 loff_t st_size; /* total size, in bytes */ 93 int yaffs_pread(int fd, void *buf, unsigned int nbyte, loff_t offset); 94 int yaffs_pwrite(int fd, const void *buf, unsigned int nbyte, loff_t offset); 96 loff_t yaffs_lseek(int fd, loff_t offset, int whence) ; 98 int yaffs_truncate(const YCHAR *path, loff_t new_size); 99 int yaffs_ftruncate(int fd, loff_t new_size); 176 loff_t yaffs_freespace(const YCHAR *path); 177 loff_t yaffs_totalspace(const YCHAR *path);
|
| H A D | yaffs_guts.h | 205 loff_t extra_file_size; /* Length if it is a file */ 370 loff_t file_size; 371 loff_t scanned_size; 372 loff_t shrink_size; 500 loff_t size_or_equiv_obj; 842 loff_t yaffs_get_obj_length(struct yaffs_obj *obj); 848 int yaffs_file_rd(struct yaffs_obj *obj, u8 * buffer, loff_t offset, 850 int yaffs_wr_file(struct yaffs_obj *obj, const u8 * buffer, loff_t offset, 852 int yaffs_resize_file(struct yaffs_obj *obj, loff_t new_size); 946 int yaffs_do_file_wr(struct yaffs_obj *in, const u8 *buffer, loff_t offset, [all …]
|
| H A D | yaffs_mtdif.c | 69 loff_t addr = ((loff_t) chunkInNAND) * dev->data_bytes_per_chunk; in nandmtd_WriteChunkToNAND() 105 loff_t addr = ((loff_t) chunkInNAND) * dev->data_bytes_per_chunk; in nandmtd_ReadChunkFromNAND() 138 ((loff_t) blockNumber) * dev->data_bytes_per_chunk in nandmtd_EraseBlockInNAND()
|
| /rk3399_rockchip-uboot/drivers/mtd/ |
| H A D | mtd_blk.c | 39 static loff_t usbplug_dummy_partition_write_last_addr; 40 static loff_t usbplug_dummy_partition_write_seek; 41 static loff_t usbplug_dummy_partition_read_last_addr; 42 static loff_t usbplug_dummy_partition_read_seek; 46 loff_t offset, in mtd_blk_map_table_init() 110 static bool get_mtd_blk_map_address(struct mtd_info *mtd, loff_t *off) in get_mtd_blk_map_address() 113 loff_t offset = *off; in get_mtd_blk_map_address() 125 *off = (loff_t)(((u32)mtd_map_blk_table[(u64)offset >> in get_mtd_blk_map_address() 183 static __maybe_unused int mtd_map_read(struct mtd_info *mtd, loff_t offset, in mtd_map_read() 185 loff_t lim, u_char *buffer) in mtd_map_read() [all …]
|
| H A D | mtd_uboot.c | 381 static int get_part(const char *partname, int *idx, loff_t *off, loff_t *size, in get_part() 382 loff_t *maxsize, int devtype) in get_part() 415 int mtd_arg_off(const char *arg, int *idx, loff_t *off, loff_t *size, in mtd_arg_off() 416 loff_t *maxsize, int devtype, uint64_t chipsize) in mtd_arg_off() 431 int mtd_arg_off_size(int argc, char *const argv[], int *idx, loff_t *off, in mtd_arg_off_size() 432 loff_t *size, loff_t *maxsize, int devtype, in mtd_arg_off_size()
|
| H A D | mtdpart.c | 290 static int part_read(struct mtd_info *mtd, loff_t from, size_t len, in part_read() 309 static int part_point(struct mtd_info *mtd, loff_t from, size_t len, in part_point() 316 static int part_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in part_unpoint() 331 static int part_read_oob(struct mtd_info *mtd, loff_t from, in part_read_oob() 368 static int part_read_user_prot_reg(struct mtd_info *mtd, loff_t from, in part_read_user_prot_reg() 382 static int part_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, in part_read_fact_prot_reg() 396 static int part_write(struct mtd_info *mtd, loff_t to, size_t len, in part_write() 403 static int part_panic_write(struct mtd_info *mtd, loff_t to, size_t len, in part_panic_write() 410 static int part_write_oob(struct mtd_info *mtd, loff_t to, in part_write_oob() 420 static int part_write_user_prot_reg(struct mtd_info *mtd, loff_t from, in part_write_user_prot_reg() [all …]
|
| /rk3399_rockchip-uboot/drivers/mtd/nand/raw/ |
| H A D | mxs_nand.h | 60 loff_t from, struct mtd_oob_ops *ops); 62 loff_t to, struct mtd_oob_ops *ops); 64 loff_t ofs);
|
| H A D | nand_bbt.c | 77 static int nand_update_bbt(struct mtd_info *mtd, loff_t offs); 175 loff_t from; in read_bbt() 183 from = ((loff_t)page) << this->page_shift; in read_bbt() 221 (loff_t)(offs + act) << in read_bbt() 233 (loff_t)(offs + act) << in read_bbt() 288 static int scan_read_data(struct mtd_info *mtd, uint8_t *buf, loff_t offs, in scan_read_data() 312 static int scan_read_oob(struct mtd_info *mtd, uint8_t *buf, loff_t offs, in scan_read_oob() 342 static int scan_read(struct mtd_info *mtd, uint8_t *buf, loff_t offs, in scan_read() 352 static int scan_write_bbt(struct mtd_info *mtd, loff_t offs, size_t len, in scan_write_bbt() 393 scan_read(mtd, buf, (loff_t)td->pages[0] << this->page_shift, in read_abs_bbts() [all …]
|
| H A D | nand_util.c | 265 int nand_get_lock_status(struct mtd_info *mtd, loff_t offset) in nand_get_lock_status() 310 int nand_unlock(struct mtd_info *mtd, loff_t start, size_t length, in nand_unlock() 409 static int check_skip_len(struct mtd_info *mtd, loff_t offset, size_t length, in check_skip_len() 417 loff_t block_start; in check_skip_len() 422 block_start = offset & ~(loff_t)(mtd->erasesize - 1); in check_skip_len() 479 loff_t ofs) in nand_verify_page_oob() 519 int nand_verify(struct mtd_info *mtd, loff_t ofs, size_t len, u_char *buf) in nand_verify() 572 int nand_write_skip_bad(struct mtd_info *mtd, loff_t offset, size_t *length, in nand_write_skip_bad() 573 size_t *actual, loff_t lim, u_char *buffer, int flags) in nand_write_skip_bad() 706 int nand_read_skip_bad(struct mtd_info *mtd, loff_t offset, size_t *length, in nand_read_skip_bad() [all …]
|
| /rk3399_rockchip-uboot/drivers/mtd/onenand/ |
| H A D | onenand_base.c | 229 static unsigned int flexonenand_block(struct onenand_chip *this, loff_t addr) in flexonenand_block() 248 unsigned int onenand_block(struct onenand_chip *this, loff_t addr) in onenand_block() 262 static loff_t flexonenand_addr(struct onenand_chip *this, int block) in flexonenand_addr() 264 loff_t ofs = 0; in flexonenand_addr() 274 ofs += (loff_t) block << (this->erase_shift - 1); in flexonenand_addr() 276 ofs += (loff_t) (block - boundary - 1) in flexonenand_addr() 281 loff_t onenand_addr(struct onenand_chip *this, int block) in onenand_addr() 284 return (loff_t) block << this->erase_shift; in onenand_addr() 293 int flexonenand_region(struct mtd_info *mtd, loff_t addr) in flexonenand_region() 325 static int onenand_command(struct mtd_info *mtd, int cmd, loff_t addr, in onenand_command() [all …]
|
| /rk3399_rockchip-uboot/cmd/ |
| H A D | onenand.c | 24 static loff_t next_ofs; 25 static loff_t skip_ofs; 61 static int onenand_block_read(loff_t from, size_t len, in onenand_block_read() 67 loff_t ofs = from; in onenand_block_read() 108 static int onenand_write_oneblock_withoob(loff_t to, const u_char * buf, in onenand_write_oneblock_withoob() 132 static int onenand_block_write(loff_t to, size_t len, in onenand_block_write() 138 loff_t ofs; in onenand_block_write() 192 loff_t ofs; in onenand_block_erase() 228 loff_t ofs; in onenand_block_test() 310 loff_t addr; in onenand_dump() [all …]
|
| /rk3399_rockchip-uboot/drivers/bootcount/ |
| H A D | bootcount_ext.c | 16 loff_t len; in bootcount_store() 39 loff_t len_read; in bootcount_load()
|